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

135 lines
1.9 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;
a {
text-decoration: none;
color: inherit;
&:link {
}
&:visited {
}
&:focus {
background: var(--primary-accent-transparent);
padding: unset;
border-radius: unset;
}
&:hover {
}
&:active {
}
}
2020-10-16 20:00:32 +00:00
.container {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
}
2021-12-24 06:20:07 +00:00
background: var(--ui-background);
color: var(--ui-text);
2021-12-27 22:42:31 +00:00
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;
2021-12-24 06:20:07 +00:00
@media (min-width: $container-width) {
flex: unset;
}
2021-12-23 05:32:17 +00:00
}
.site-icon {
width: 2em;
height: 2em;
border-radius: 100em;
}
.site-title {
margin: 0;
line-height: 1;
2021-12-24 06:20:07 +00:00
font-size: 1em;
2021-12-23 05:32:17 +00:00
}
2020-10-16 20:00:32 +00:00
.site-nav {
flex-grow: 1;
position: fixed;
bottom: 0;
left: 0;
width: 100vw;
2021-12-24 06:20:07 +00:00
background: var(--ui-background);
color: var(--ui-text-muted);
2020-10-16 20:00:32 +00:00
z-index: 2;
ul {
2021-12-24 06:20:07 +00:00
height: var(--nav-height);
max-width: $container-width;
2020-10-16 20:00:32 +00:00
margin: 0 auto;
display: flex;
justify-content: space-around;
li {
2020-10-17 02:41:13 +00:00
flex: 1;
2021-12-24 06:20:07 +00:00
border-bottom: 4px solid var(--ui-background-track);
2020-10-16 20:00:32 +00:00
&.active {
2021-12-24 06:20:07 +00:00
color: var(--ui-text-bold);
border-bottom: 6px solid var(--primary-accent);
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;}
svg {
width: 1em;
height: 1em;
}
&:link {
}
&:visited {
}
&:focus {
background: var(--primary-accent-transparent);
padding: unset;
border-radius: unset;
}
&:hover {
}
&:active {
}
2020-10-16 20:00:32 +00:00
}
}
}
box-shadow: 0px -2px 2px rgba(0,0,0,0.2);
2021-12-24 06:20:07 +00:00
@media (min-width: $container-width) {
position: unset;
bottom: unset;
left: unset;
2021-12-24 06:20:07 +00:00
flex-grow: unset;
width: 20em;
box-shadow: unset;
}
}
2021-12-24 06:20:07 +00:00
@media (min-width: $container-width) {
.site-header {
position: sticky;
top: 0;
}
2020-10-16 20:00:32 +00:00
}