Summary Files Commits Branches @commit @diff @stats
path: root / src / styles.css
diff options
context:
space:
mode:
Commita13dd31583d37ab4c45a49cf7284fc22d9e63e2d (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-11-15 09:02:13 +0200
Committer
 Syndamia <kamen@syndamia.com>
2025-11-15 09:02:13 +0200
Files20dbd516fc48864af421c311e96bbb57d6462d58 /src/styles.css
syndamia.com-a13dd31583d37ab4c45a49cf7284fc22d9e63e2d.tar
syndamia.com-a13dd31583d37ab4c45a49cf7284fc22d9e63e2d.tar.gz
syndamia.com-a13dd31583d37ab4c45a49cf7284fc22d9e63e2d.zip
Parentd5f50f58f3dab257c50ab8c9c0db2fb0b436471f (diff)
feat(styles): Make special paragraphs use double borders
1 files changed, 16 insertions, 8 deletions
-rw-r--r--src/styles.css24
diff --git a/src/styles.css b/src/styles.css
index 55d8422..133afe2 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -230,13 +230,26 @@ article > #article-container > h1:first-child {
/*### Wrapper > Article > special paragraphs ###*/
+.question-par { border-left: 2px solid #4a85cb; border-right: none; border-top: none; border-bottom: none; }
+.warn-par { border: 2px dashed #fac848; }
+.important-par { border: 2px dashed #f46062; }
+.note-par { border: 2px dashed #47b481; }
+
.special-par {
position: relative;
+ margin: 1em 0;
+ padding: 2px;
+}
+.special-contents {
+ border: inherit;
+ border-style: solid;
+}
+.special-with-icon {
padding: 0.5em;
padding-left: calc(32px + 1em);
- margin: 1em 0;
}
-.special-par > .gap-small, .special-par > .gap {
+
+.special-contents > .gap-small, .special-contents > .gap {
display: none;
}
.special-par-icon {
@@ -246,13 +259,8 @@ article > #article-container > h1:first-child {
top: calc(50% - 16px);
}
-.question-par { border-left: 2px solid #4a85cb; }
-.warn-par { border: 2px dashed #fac848; }
-.important-par { border: 2px solid #f46062; }
-.note-par {
- border: 2px solid #47b481;
+.note-par > .special-contents {
padding: 0.5rem 1rem;
- background-color: var(--pre-bg-color);
}
.note-par > h1:first-of-type,
.note-par > h2:first-of-type,