summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2024-09-03 15:35:51 +0200
committerAhmed Abdelhalim <[email protected]>2024-09-03 15:42:54 +0200
commit0de8fe808ef8a714a4d1defed21944866068ff59 (patch)
treec11e4f86c5d8213e5bd6261cddf23d273a8684d7 /assets
parent5718cadcd47ab5f2837b9acdafb6d3d08958e249 (diff)
Modification to blog style and date formats
Diffstat (limited to 'assets')
-rw-r--r--assets/scss/web/_base.scss8
-rw-r--r--assets/scss/web/_blog.scss38
2 files changed, 36 insertions, 10 deletions
diff --git a/assets/scss/web/_base.scss b/assets/scss/web/_base.scss
index 7283ef4..c6149a4 100644
--- a/assets/scss/web/_base.scss
+++ b/assets/scss/web/_base.scss
@@ -45,12 +45,8 @@ body {
}
main {
- margin-left: 2cm;
- margin-right: 2cm;
- @media (max-width: 812px) and (orientation: landscape), (max-width: 375px) {
- margin-left: 1cm;
- margin-right: 1cm;
- }
+ margin-left: 1cm;
+ margin-right: 1cm;
}
a {
diff --git a/assets/scss/web/_blog.scss b/assets/scss/web/_blog.scss
index 89ff691..0b98d8f 100644
--- a/assets/scss/web/_blog.scss
+++ b/assets/scss/web/_blog.scss
@@ -3,24 +3,54 @@
font-weight: 900;
margin-top: 1cm;
}
-.blog__date {
-}
.posts {
- font-size: 1.2rem;
+ font-size: 1.1rem;
list-style: none;
+ @media (max-width: 780px) {
+ font-size: 1rem;
+ padding-left: 0%;
+ margin-left: 0%;
+ }
+}
+
+.post {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
}
.post__link {
}
+.post__date {
+ font-weight: bold;
+ .post__date_short {
+ display: none;
+ }
+ .post__date_long {
+ display: inline;
+ }
+ @media (max-width: 780px) {
+ .post__date_short {
+ display: inline;
+ }
+ .post__date_long {
+ display: none;
+ }
+ }
+}
+
.post__content {
margin-bottom: 2cm;
h1, h2, h3, h4, h5, h6 {
margin-bottom: 0px;
}
h1 {
- font-size: 2rem;
+ font-size: 1.6rem;
+ }
+ h2 {
+ font-size: 1.35rem;
}
blockquote {
margin-left: 0;