diff --git a/24 - Sticky Nav/style-START.css b/24 - Sticky Nav/style-START.css index c6d59a3..b83b9c0 100644 --- a/24 - Sticky Nav/style-START.css +++ b/24 - Sticky Nav/style-START.css @@ -1,13 +1,15 @@ html { box-sizing: border-box; - background:#eeeeee; - font-family:'helvetica neue'; + background: #eeeeee; + font-family: 'helvetica neue'; font-size: 20px; font-weight: 200; } + body { margin: 0; } + *, *:before, *:after { box-sizing: inherit; } @@ -15,8 +17,8 @@ body { .site-wrap { max-width: 700px; margin: 70px auto; - background:white; - padding:40px; + background: white; + padding: 40px; text-align: justify; box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.05); transform: scale(0.98); @@ -25,25 +27,25 @@ body { header { text-align: center; - height:50vh; - background:url(http://wes.io/iEgP/wow-so-deep.jpg) bottom center no-repeat; - background-size:cover; - display:flex; - align-items:center; + height: 50vh; + background: url(http://wes.io/iEgP/wow-so-deep.jpg) bottom center no-repeat; + background-size: cover; + display: flex; + align-items: center; justify-content: center; } h1 { - color:white; + color: white; font-size: 7vw; - text-shadow: 3px 4px 0 rgba(0,0,0,0.2) + text-shadow: 3px 4px 0 rgba(0,0,0,0.2); } nav { - background:black; - top:0; + background: black; + top: 0; width: 100%; - transition:all 0.5s; + transition: all 0.5s; position: relative; z-index: 1; } @@ -52,11 +54,11 @@ nav ul { margin: 0; padding:0; list-style: none; - display:flex; + display: flex; } nav li { - flex:1; + flex: 1; text-align: center; display: flex; justify-content: center; @@ -64,7 +66,7 @@ nav li { } li.logo { - max-width:0; + max-width: 0; overflow: hidden; background: white; transition: all .5s; @@ -73,14 +75,14 @@ li.logo { } li.logo a { - color:black; + color: black; } nav a { text-decoration: none; - padding:20px; + padding: 20px; display: inline-block; - color:white; - transition:all 0.2s; + color: white; + transition: all 0.2s; text-transform: uppercase; }