|
12 | 12 | cursor: text; |
13 | 13 | font-family: var(--font-style); |
14 | 14 | font-size: var(--font-size-regular); |
15 | | - line-height: 1.2; |
| 15 | + font-weight: 400; |
16 | 16 | color: inherit; |
17 | 17 | -moz-box-sizing: border-box; |
18 | 18 | box-sizing: border-box; |
@@ -248,11 +248,6 @@ div[data-type="horizontalRule"] { |
248 | 248 | } |
249 | 249 | } |
250 | 250 |
|
251 | | -/* image resizer */ |
252 | | -.moveable-control-box { |
253 | | - z-index: 10 !important; |
254 | | -} |
255 | | - |
256 | 251 | /* Cursor styles for the inline code blocks */ |
257 | 252 | @keyframes blink { |
258 | 253 | 49% { |
@@ -314,88 +309,108 @@ ul[data-type="taskList"] ul[data-type="taskList"] { |
314 | 309 | } |
315 | 310 | /* end numbered, bulleted and to-do lists spacing */ |
316 | 311 |
|
| 312 | +h1, |
| 313 | +h2, |
| 314 | +h3, |
| 315 | +h4, |
| 316 | +h5, |
| 317 | +h6, |
| 318 | +p { |
| 319 | + margin: 0 !important; |
| 320 | +} |
| 321 | + |
317 | 322 | /* tailwind typography */ |
318 | 323 | .prose :where(h1):not(:where([class~="not-prose"], [class~="not-prose"] *)) { |
319 | 324 | &:not(:first-child) { |
320 | | - margin-top: 2rem; |
| 325 | + padding-top: 28px; |
321 | 326 | } |
322 | 327 |
|
323 | | - margin-bottom: 4px; |
| 328 | + padding-bottom: 4px; |
324 | 329 | font-size: var(--font-size-h1); |
325 | 330 | line-height: var(--line-height-h1); |
326 | 331 | font-weight: 600; |
327 | 332 | } |
328 | 333 |
|
329 | 334 | .prose :where(h2):not(:where([class~="not-prose"], [class~="not-prose"] *)) { |
330 | 335 | &:not(:first-child) { |
331 | | - margin-top: 1.4rem; |
| 336 | + padding-top: 28px; |
332 | 337 | } |
333 | 338 |
|
334 | | - margin-bottom: 1px; |
| 339 | + padding-bottom: 4px; |
335 | 340 | font-size: var(--font-size-h2); |
336 | 341 | line-height: var(--line-height-h2); |
337 | 342 | font-weight: 600; |
338 | 343 | } |
339 | 344 |
|
340 | 345 | .prose :where(h3):not(:where([class~="not-prose"], [class~="not-prose"] *)) { |
341 | 346 | &:not(:first-child) { |
342 | | - margin-top: 1rem; |
| 347 | + padding-top: 28px; |
343 | 348 | } |
344 | 349 |
|
345 | | - margin-bottom: 1px; |
| 350 | + padding-bottom: 4px; |
346 | 351 | font-size: var(--font-size-h3); |
347 | 352 | line-height: var(--line-height-h3); |
348 | 353 | font-weight: 600; |
349 | 354 | } |
350 | 355 |
|
351 | 356 | .prose :where(h4):not(:where([class~="not-prose"], [class~="not-prose"] *)) { |
352 | 357 | &:not(:first-child) { |
353 | | - margin-top: 1rem; |
| 358 | + padding-top: 28px; |
354 | 359 | } |
355 | 360 |
|
356 | | - margin-bottom: 1px; |
| 361 | + padding-bottom: 4px; |
357 | 362 | font-size: var(--font-size-h4); |
358 | 363 | line-height: var(--line-height-h4); |
359 | 364 | font-weight: 600; |
360 | 365 | } |
361 | 366 |
|
362 | 367 | .prose :where(h5):not(:where([class~="not-prose"], [class~="not-prose"] *)) { |
363 | 368 | &:not(:first-child) { |
364 | | - margin-top: 1rem; |
| 369 | + padding-top: 20px; |
365 | 370 | } |
366 | 371 |
|
367 | | - margin-bottom: 1px; |
| 372 | + padding-bottom: 4px; |
368 | 373 | font-size: var(--font-size-h5); |
369 | 374 | line-height: var(--line-height-h5); |
370 | 375 | font-weight: 600; |
371 | 376 | } |
372 | 377 |
|
373 | 378 | .prose :where(h6):not(:where([class~="not-prose"], [class~="not-prose"] *)) { |
374 | 379 | &:not(:first-child) { |
375 | | - margin-top: 1rem; |
| 380 | + padding-top: 20px; |
376 | 381 | } |
377 | 382 |
|
378 | | - margin-bottom: 1px; |
| 383 | + padding-bottom: 4px; |
379 | 384 | font-size: var(--font-size-h6); |
380 | 385 | line-height: var(--line-height-h6); |
381 | 386 | font-weight: 600; |
382 | 387 | } |
383 | 388 |
|
384 | 389 | .prose :where(p):not(:where([class~="not-prose"], [class~="not-prose"] *)) { |
| 390 | + &:first-child { |
| 391 | + padding-top: 0; |
| 392 | + } |
| 393 | + |
385 | 394 | &:not(:first-child) { |
386 | | - margin-top: 0.25rem; |
| 395 | + padding-top: 4px; |
387 | 396 | } |
388 | 397 |
|
389 | | - &:first-child { |
390 | | - margin-top: 0; |
| 398 | + &:last-child { |
| 399 | + padding-bottom: 4px; |
| 400 | + } |
| 401 | + |
| 402 | + &:not(:last-child) { |
| 403 | + padding-bottom: 8px; |
391 | 404 | } |
392 | 405 |
|
393 | | - margin-bottom: 1px; |
394 | | - padding: 3px 0; |
395 | 406 | font-size: var(--font-size-regular); |
396 | 407 | line-height: var(--line-height-regular); |
397 | 408 | } |
398 | 409 |
|
| 410 | +p + p { |
| 411 | + padding-top: 8px !important; |
| 412 | +} |
| 413 | + |
399 | 414 | .prose :where(ol):not(:where([class~="not-prose"], [class~="not-prose"] *)) li p, |
400 | 415 | .prose :where(ul):not(:where([class~="not-prose"], [class~="not-prose"] *)) li p { |
401 | 416 | font-size: var(--font-size-list); |
@@ -432,11 +447,6 @@ ul[data-type="taskList"] ul[data-type="taskList"] { |
432 | 447 | [data-text-color="purple"] { |
433 | 448 | color: var(--editor-colors-purple-text); |
434 | 449 | } |
435 | | -/* [data-text-color="pink-blue-gradient"] { |
436 | | - background-clip: text; |
437 | | - color: transparent; |
438 | | - background-image: linear-gradient(90deg, #a961cd 50%, #e75962 100%); |
439 | | -} */ |
440 | 450 | /* end text colors */ |
441 | 451 |
|
442 | 452 | /* background colors */ |
|
0 commit comments