Skip to content
Snippets Groups Projects
Commit 52307ee2 authored by Silas Meister's avatar Silas Meister
Browse files

Add centered nav

parent b781ec99
Branches
No related tags found
No related merge requests found
File moved
......@@ -10,7 +10,7 @@
</head>
<body>
<header>
<img class="nasa-img" src="img/nasa.svg" />
<img class="nasa-img" src="img/nasa.png" />
<nav>
<ul class="top-nav">
......
......@@ -72,13 +72,13 @@ nav ul li a {
position: absolute;
left: 0;
top: 0;
width: 5em;
margin-top: 1em;
width: 6em;
z-index: -1;
}
.top-nav {
display: flex;
overflow: hidden;
flex-wrap: nowrap;
flex-direction: row;
justify-content: flex-end;
......@@ -97,6 +97,7 @@ nav ul li a {
.top-nav li a {
border-right: 0.05em solid #eeeeee;
white-space: nowrap;
}
.top-nav li:nth-child(n+7) a {
......@@ -116,6 +117,7 @@ nav ul li a {
padding: 0 0.5em;
height: 100%;
background-color: #55555580;
white-space: nowrap;
}
.search-form input[type="search"] {
......@@ -141,11 +143,24 @@ nav ul li a {
display: flex;
justify-content: center;
align-items: center;
background-color: blue;
margin-top: 1em;
}
.center-nav {
.center-nav li {
padding: 0.5em 0;
background-color: #555555;
}
.center-nav li a {
display: block;
padding: 0.5em 1em;
font-size: 0.7em;
font-weight: 500;
white-space: nowrap;
}
.center-nav li:not(li:last-child) a {
border-right: 0.1em solid #eeeeee;
}
/* Extra small devices (phones, 600px and down) */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment