aboutsummaryrefslogtreecommitdiffhomepage
path: root/static
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2023-03-18 16:53:57 +0900
committernsfisis <nsfisis@gmail.com>2023-03-18 16:53:57 +0900
commit0fb528619a4c08e38f3fdd5a8ebbe9c628c236d9 (patch)
tree60b65d345ab214fb1d345a8666d7a7013b5905ca /static
parent81f2357697cbe4476da3c344d1c71154b848c2a6 (diff)
downloadblog.nsfisis.dev-0fb528619a4c08e38f3fdd5a8ebbe9c628c236d9.tar.gz
blog.nsfisis.dev-0fb528619a4c08e38f3fdd5a8ebbe9c628c236d9.tar.zst
blog.nsfisis.dev-0fb528619a4c08e38f3fdd5a8ebbe9c628c236d9.zip
fix(style): fix corrupted header on mobile device
Diffstat (limited to 'static')
-rw-r--r--static/style.css23
1 files changed, 17 insertions, 6 deletions
diff --git a/static/style.css b/static/style.css
index e919bc9..953aaf4 100644
--- a/static/style.css
+++ b/static/style.css
@@ -19,12 +19,6 @@ body {
justify-content: space-between;
}
-@media screen and (max-width: 768px) {
- main {
- padding: 0 1rem;
- }
-}
-
header.header {
background-color: #f5f5f5;
display: flex;
@@ -58,6 +52,7 @@ nav ul {
padding: 0;
margin: 0;
display: flex;
+ flex-direction: row;
}
nav ul li {
@@ -215,3 +210,19 @@ article.post-entry {
text-align: left;
color: #666;
}
+
+@media screen and (max-width: 768px) {
+ main {
+ padding: 0 1rem;
+ }
+}
+
+@media screen and (max-width: 1200px) {
+ header.header {
+ padding: 1rem 0;
+ }
+
+ nav ul li:not(:first-child) {
+ display: none;
+ }
+}