abdullahtarawneh.com/assets/scss/partials/site-header.scss

90 lines
1.4 KiB
SCSS
Raw Normal View History

2020-10-10 19:47:58 +00:00
.site-header {
2021-12-14 20:35:42 +00:00
z-index: 10;
2020-10-10 23:43:26 +00:00
a {text-decoration: none; color: inherit;}
2020-10-16 20:00:32 +00:00
.container {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
}
box-shadow: 0px 2px 6px rgba(0,0,0,0.2);
2020-10-10 19:47:58 +00:00
}
2020-10-10 23:43:26 +00:00
2021-12-23 05:32:17 +00:00
.site-masthead {
display: flex;
flex-flow: row-reverse;
align-items: center;
padding: 1em 0;
gap: 1em;
flex: 1;
}
.site-icon {
width: 2em;
height: 2em;
border-radius: 100em;
}
.site-title {
margin: 0;
line-height: 1;
font-size: 1rem;
}
2020-10-16 20:00:32 +00:00
2021-12-23 05:32:17 +00:00
.site-footer {
padding-bottom: 4rem;
@media (min-width: 960px) {
2021-12-23 05:32:17 +00:00
padding-bottom: unset;
}
}
2020-10-16 20:00:32 +00:00
.site-nav {
flex-grow: 1;
position: fixed;
bottom: 0;
left: 0;
width: 100vw;
background: white;
color: #777;
2020-10-16 20:00:32 +00:00
z-index: 2;
ul {
2021-12-23 05:32:17 +00:00
height: 4em;
2020-10-16 20:00:32 +00:00
max-width: 960px;
margin: 0 auto;
display: flex;
justify-content: space-around;
li {
2020-10-17 02:41:13 +00:00
flex: 1;
border-bottom: 4px solid #ddd;
2020-10-16 20:00:32 +00:00
&.active {
color: black;
2021-12-23 05:32:17 +00:00
border-bottom: 4px solid #06f;
font-weight: 700;
2020-10-16 20:00:32 +00:00
}
a {
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
height: 100%;
span {padding: 0.25em;}
}
}
}
box-shadow: 0px 2px 6px rgba(0,0,0,0.2);
@media (min-width: 960px) {
position: unset;
bottom: unset;
left: unset;
width: unset;
background: unset;
margin-left: 6em;
box-shadow: none;
}
}
@media (min-width: 960px) {
.site-header {
position: sticky;
top: 0;
background: white;
}
2020-10-16 20:00:32 +00:00
}