|
145 | 145 | font-size: 1.25rem; |
146 | 146 | } |
147 | 147 | } |
| 148 | + |
| 149 | +/* Improve this Blog Post banner */ |
| 150 | +.improveBanner { |
| 151 | + width: 100%; |
| 152 | + margin-top: 2rem; |
| 153 | + padding: 1.5rem; |
| 154 | + border-radius: 16px; |
| 155 | + background: #e6f4f1; |
| 156 | + background: color-mix(in srgb, var(--ifm-color-success-contrast-background, #e6f4f1) 60%, transparent); |
| 157 | + border: 1px solid rgba(26, 122, 92, 0.2); |
| 158 | + border: 1px solid color-mix(in srgb, var(--ifm-color-success) 20%, transparent); |
| 159 | + display: flex; |
| 160 | + align-items: flex-start; |
| 161 | + gap: 1.25rem; |
| 162 | + box-sizing: border-box; |
| 163 | +} |
| 164 | + |
| 165 | +.improveIconWrap { |
| 166 | + flex-shrink: 0; |
| 167 | + width: 48px; |
| 168 | + height: 48px; |
| 169 | + border-radius: 10px; |
| 170 | + background: rgba(26, 122, 92, 0.15); |
| 171 | + background: color-mix(in srgb, var(--ifm-color-success) 15%, transparent); |
| 172 | + display: grid; |
| 173 | + place-items: center; |
| 174 | + color: var(--ifm-color-success-dark, #1e7a5c); |
| 175 | +} |
| 176 | + |
| 177 | +.improveContent { |
| 178 | + min-width: 0; |
| 179 | + flex: 1; |
| 180 | +} |
| 181 | + |
| 182 | +.improveTitle { |
| 183 | + margin: 0 0 0.4rem; |
| 184 | + font-size: 1.15rem; |
| 185 | + font-weight: 700; |
| 186 | + line-height: 1.3; |
| 187 | + color: var(--ifm-font-color-base); |
| 188 | + letter-spacing: -0.01em; |
| 189 | +} |
| 190 | + |
| 191 | +.improveDescription { |
| 192 | + margin: 0 0 1rem; |
| 193 | + font-size: 0.95rem; |
| 194 | + line-height: 1.6; |
| 195 | + color: var(--ifm-color-emphasis-800); |
| 196 | +} |
| 197 | + |
| 198 | +.improveActions { |
| 199 | + display: flex; |
| 200 | + flex-wrap: wrap; |
| 201 | + gap: 0.65rem; |
| 202 | +} |
| 203 | + |
| 204 | +.improveEditButton { |
| 205 | + display: inline-flex; |
| 206 | + align-items: center; |
| 207 | + gap: 0.45rem; |
| 208 | + padding: 0.5rem 1.1rem; |
| 209 | + border-radius: 8px; |
| 210 | + background: var(--ifm-color-success-dark, #1a7a5c); |
| 211 | + color: #fff !important; |
| 212 | + font-size: 0.9rem; |
| 213 | + font-weight: 600; |
| 214 | + text-decoration: none !important; |
| 215 | + border: none; |
| 216 | + cursor: pointer; |
| 217 | + transition: background 0.15s; |
| 218 | +} |
| 219 | + |
| 220 | +.improveEditButton:hover { |
| 221 | + background: var(--ifm-color-success-darker, #155f47); |
| 222 | + text-decoration: none !important; |
| 223 | +} |
| 224 | + |
| 225 | +.improveGuidelinesButton { |
| 226 | + display: inline-flex; |
| 227 | + align-items: center; |
| 228 | + gap: 0.45rem; |
| 229 | + padding: 0.5rem 1.1rem; |
| 230 | + border-radius: 8px; |
| 231 | + background: var(--ifm-background-color); |
| 232 | + color: var(--ifm-font-color-base) !important; |
| 233 | + font-size: 0.9rem; |
| 234 | + font-weight: 600; |
| 235 | + text-decoration: none !important; |
| 236 | + border: 1px solid var(--ifm-color-emphasis-300); |
| 237 | + cursor: pointer; |
| 238 | + transition: background 0.15s, border-color 0.15s; |
| 239 | +} |
| 240 | + |
| 241 | +.improveGuidelinesButton:hover { |
| 242 | + background: var(--ifm-color-emphasis-100); |
| 243 | + text-decoration: none !important; |
| 244 | +} |
| 245 | + |
| 246 | +@media (max-width: 640px) { |
| 247 | + .improveBanner { |
| 248 | + flex-direction: column; |
| 249 | + gap: 1rem; |
| 250 | + padding: 1rem; |
| 251 | + } |
| 252 | + |
| 253 | + .improveActions { |
| 254 | + flex-direction: column; |
| 255 | + } |
| 256 | + |
| 257 | + .improveEditButton, |
| 258 | + .improveGuidelinesButton { |
| 259 | + justify-content: center; |
| 260 | + } |
| 261 | +} |
0 commit comments