refactor nav
Prithu Goswami prithugoswami524@gmail.com
Sat, 09 May 2020 17:01:55 +0530
2 files changed,
27 insertions(+),
24 deletions(-)
M
hugo-site/static/css/main.css
→
hugo-site/static/css/main.css
@@ -25,33 +25,32 @@ background-color: #f3f3f3;
} nav { - background-color: white; - height: 64px; + height: 5rem; display: flex; - flex-direction: row; align-items: center; - justify-content: space-between; - box-shadow: 0 5px 20px rgba(0,0,0,0.1); } -.wip{ - background-color: rgba(255,224,0,1); - font-size: 20px; - text-align: center; +nav > *:first-child{ + margin-left: 10%; +} +.nav-group { + display: flex; + align-items: center; } -nav ul{ - list-style: none; - padding-left: 30px; +.nav-group > *:not(:first-child) { + margin-left: 4rem; } -nav li{ - display: inline; +#pg { + height: 20px ; + opacity:0.7; + margin-bottom: -3px; } -nav li:not(:last-child){ - padding-right: 40px; +#pg:hover { + fill: #B554E3; } nav a{@@ -81,7 +80,7 @@ /* } */
#intro{ - margin-top: 6rem; + margin-top: 5rem; } .container{@@ -308,7 +307,7 @@ padding: 0.2rem 0.8rem;
} .section-item:hover { - background-color: #f5f5f5; + background-color: #eeeeee; border-radius: 0.4rem; }