Summary Files Commits Branches @commit @diff @stats
path: root / src / styles.css
diff options
context:
space:
mode:
Commit6a0468ef4645ba0bdc0299b8255c6ae501a39f75 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-03-14 14:30:20 +0200
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-03-14 14:30:20 +0200
Files03c6e8b45c1ec0560f8ff0dbe9dcfb5599e9f68c /src/styles.css
syndamia.com-6a0468ef4645ba0bdc0299b8255c6ae501a39f75.tar
syndamia.com-6a0468ef4645ba0bdc0299b8255c6ae501a39f75.tar.gz
syndamia.com-6a0468ef4645ba0bdc0299b8255c6ae501a39f75.zip
Parentc0548ddb17848caad6d6e52c650416f2eaa0274e (diff)
H1 elements now don't have the styling for a link beside them, fixed image sizing, improved ul and ol styling
1 files changed, 10 insertions, 4 deletions
-rw-r--r--src/styles.css14
diff --git a/src/styles.css b/src/styles.css
index 0347281..06bc026 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -95,6 +95,7 @@ body, td, th {
h1 {
font-size: 1.7em;
+ line-height: 1.2em;
}
h2 {
@@ -108,7 +109,8 @@ h3 {
}
img {
- max-width: 99%;
+ max-width: 100%;
+ box-sizing: border-box;
}
img, hr {
@@ -126,20 +128,24 @@ article {
overflow: auto;
}
+ul, ol {
+ padding-inline-start: 30px;
+}
+
/* Show link icon next to headings */
-h1, h2, h3, h4, h5, h6 {
+h2, h3, h4, h5, h6 {
display: inline-block;
margin-block-start: 0.4em;
margin-block-end: 0.5em; /* Account for it being an inline block, as opposed to a normal block */
line-height: 1.25em;
}
-h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p {
+h2 + p, h3 + p, h4 + p, h5 + p, h6 + p {
display: inline;
}
-h1 + p img, h2 + p img, h3 + p img, h4 + p img, h5 + p img, h6 + p img {
+h2 + p img, h3 + p img, h4 + p img, h5 + p img, h6 + p img {
height: 1.3em;
border: none;
vertical-align: text-top;