summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
Diffstat (limited to 'assets')
-rw-r--r--assets/static/css/blog.css10
-rw-r--r--assets/static/css/style.css30
2 files changed, 23 insertions, 17 deletions
diff --git a/assets/static/css/blog.css b/assets/static/css/blog.css
deleted file mode 100644
index 48a716b..0000000
--- a/assets/static/css/blog.css
+++ /dev/null
@@ -1,10 +0,0 @@
-@charset "UTF-8";
-
-article > p:first-of-type:first-letter {
- color: var(--blue);
- float: left;
- font-weight: 700;
- font-size: 3.8rem;
- line-height: 3.8rem;
- margin: 0.2em 0.1em 0 0;
-}
diff --git a/assets/static/css/style.css b/assets/static/css/style.css
index 1275b1a..675c6c0 100644
--- a/assets/static/css/style.css
+++ b/assets/static/css/style.css
@@ -505,19 +505,27 @@ article {
min-width: var(--column-min-width);
& > header {
- display: flex;
- flex-direction: row;
- align-items: start;
- justify-content: space-between;
margin-bottom: 2rem;
+ &::after {
+ clear: left;
+ content: "";
+ display: block;
+ }
+
& > div {
display: flex;
flex-direction: column;
gap: 0.75rem;
- :has(& > nav) {
- max-width: calc(2 / 3 * 100%);
+ &:not(:last-child) {
+ float: left;
+ width: calc(2 / 3 * 100% - 1rem);
+
+ @media (max-width: 700px) {
+ float: none;
+ width: auto;
+ }
}
/* --- Article metadata --- */
@@ -576,7 +584,10 @@ article {
font-size: 1rem;
line-height: 1.4;
padding: 0.75rem;
- max-width: calc(1 / 3 * 100%);
+ box-sizing: border-box;
+ float: right;
+ margin-left: 1rem;
+ width: calc(1 / 3 * 100%);
& > p {
color: var(--blue);
@@ -611,7 +622,11 @@ article {
}
@media (max-width: 700px) {
+ float: none;
+ margin-bottom: 0;
+ margin-left: 0;
margin-top: 2rem;
+ width: auto;
}
}
}
@@ -664,6 +679,7 @@ article {
}
& > footer {
+ clear: both;
color: var(--dim-foreground);
font-style: italic;
font-size: 1.2rem;