diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2024-09-24 12:56:53 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2024-09-24 12:56:53 +0800 |
| commit | e8092863c53c8f32da8af123876999656d789c2c (patch) | |
| tree | 9c436e0265f66142678773189da8438a682151c6 | |
| parent | b74064cecc09cf97833133b32ab750da52bfd49e (diff) | |
feat(CSS): universal margin for <p>
| -rw-r--r-- | src/css/dumbymap.css | 4 | ||||
| -rw-r--r-- | src/css/style.css | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/css/dumbymap.css b/src/css/dumbymap.css index cef4d89..a7729f0 100644 --- a/src/css/dumbymap.css +++ b/src/css/dumbymap.css | |||
| @@ -325,10 +325,6 @@ | |||
| 325 | font-size: 0.8rem; | 325 | font-size: 0.8rem; |
| 326 | pointer-events: auto; | 326 | pointer-events: auto; |
| 327 | 327 | ||
| 328 | p:first-child { | ||
| 329 | margin-top: 0; | ||
| 330 | } | ||
| 331 | |||
| 332 | &:has(.dumby-block.focus) { | 328 | &:has(.dumby-block.focus) { |
| 333 | outline: solid #505050 1px; | 329 | outline: solid #505050 1px; |
| 334 | border-color: #505050 | 330 | border-color: #505050 |
diff --git a/src/css/style.css b/src/css/style.css index 34697dc..122e027 100644 --- a/src/css/style.css +++ b/src/css/style.css | |||
| @@ -49,6 +49,12 @@ h3 { | |||
| 49 | p { | 49 | p { |
| 50 | margin-top: 1em; | 50 | margin-top: 1em; |
| 51 | margin-bottom: 1em; | 51 | margin-bottom: 1em; |
| 52 | &:first-child { | ||
| 53 | margin-top: 0; | ||
| 54 | } | ||
| 55 | &:last-child { | ||
| 56 | margin-bottom: 0; | ||
| 57 | } | ||
| 52 | } | 58 | } |
| 53 | 59 | ||
| 54 | a { | 60 | a { |