about summary refs log tree commit diff homepage
path: root/_css/basic.css
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-03-08 14:16:23 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-03-08 14:16:23 +0700
commita1849b3e81fa23b844933728c9ecce38b00b2a29 (patch)
treedc3a0180f90351b2847d59e31c8f5746a25f19e7 /_css/basic.css
parent752a020bf54082e8af3c966f4740abf5914ac821 (diff)
downloadsite-a1849b3e81fa23b844933728c9ecce38b00b2a29.tar.gz
Clean up style
Diffstat (limited to '_css/basic.css')
-rw-r--r--_css/basic.css88
1 files changed, 15 insertions, 73 deletions
diff --git a/_css/basic.css b/_css/basic.css
index 3b2ffc5..15046be 100644
--- a/_css/basic.css
+++ b/_css/basic.css
@@ -3,7 +3,6 @@
 ================================================================== */
 
 nav {
-  width: 64%;
   display: inline-block;
 }
 
@@ -20,7 +19,6 @@ nav li {
 nav li a {
   color: #004de6;
   text-decoration: none;
-  font-size: 18px;
   font-weight: bold;
   display: inline-block;
   float: center;
@@ -35,24 +33,17 @@ nav li a {
 }
 
 header {
-  text-align: right;
-  margin-top: 50px;
-  margin-bottom: 50px;
+  margin-top: 3rem;
+  margin-bottom: 3rem;
   display: flex;
+  flex-wrap: wrap;
+  justify-content: space-between;
   align-items: center;
 }
 
-header .blog-name {
-  width: 35%;
-  display: inline-block;
-  text-align: left;
-  font-size: 18px;
-  font-family: "Lucida Console", Monaco, monospace;
-  padding-top: 10px;
-}
-
 header .blog-name a {
-  color: #a6a2a0;
+  color: #436e58;
+  font-weight: bold;
   text-decoration: none;
 }
 
@@ -65,65 +56,13 @@ header li a:hover {
   display: none;
 }
 
-@media (max-width: 480px) {
-  header {
-    padding-left: 6%;
-    padding-right: 6%;
-  }
-}
-
-@media (min-width: 481px) {
-  header {
-    padding-left: 12.5%;
-    padding-right: 12.5%;
-  }
-}
-
-/* wide display: enforce maximum width of header to match content */
-@media (min-width: 940px) {
-  header {
-    width: 705px;
-    margin-left: auto;
-    margin-right: auto;
-  }
-}
-
-/*
-medium display: nav goes under name
-*/
-@media (max-width: 760px) {
-  header { display: block; }
-
-  header .blog-name {
-    display: block;
-    width: 100%;
-    padding-bottom: 10px;
-  }
-
-  nav {
-    width: 100%;
-  }
-}
-
 /*
-narrow display: collapse the header (don't show the menu items)
-instead, display a burger menu.
-*/
-@media (max-width: 500px) {
-  header {
-    height: 35px;
-    display: flex;
-    align-items: center;
-  }
-
-  header .blog-name {
-    display: inline-block;
-    width: 70%;
-  }
-
+ * narrow display: collapse the header (don't show the menu items)
+ * instead, display a burger menu.
+ */
+@media (max-width: 480px) {
   nav {
     display: inline-block;
-    width: 27%;
   }
 
   nav ul,
@@ -156,8 +95,6 @@ instead, display a burger menu.
 
   #menu-icon {
     display: inline-block;
-    margin-right: 10px;
-    margin-top: 5px;
   }
 }
 
@@ -188,3 +125,8 @@ td {
 table tbody tr td {
   border: 1px solid lightgray;
 }
+
+.note {
+  background-color: aliceblue;
+  padding: 0px 1em;
+}