2
0
Fork 0
inspin.io/assets/style/components/header.css

187 lines
3.2 KiB
CSS

header {
width: 100%;
.nav {
display: grid;
grid-template-columns: 10rem calc(100% - 26rem) 16rem;
max-width: 58rem;
padding: 2rem 4rem;
margin: 0 auto;
.logo {
width: fit-content;
line-height: 0;
margin: .35rem .25rem;
img {
height: 1.75rem;
}
}
/*
.logo {
color: var(--f-color);
width: fit-content;
font-size: 1.25rem;
font-weight: 800;
line-height: 1.55rem;
margin: .35rem .25rem;
}
*/
.links,
.cta,
.user {
list-style-type: none;
white-space: nowrap;
padding: 0;
margin: 0;
li {
display: inline-block;
margin: .5rem .625rem 0 .625rem;
a {
color: var(--fs-color);
font-size: 1rem;
font-weight: 600;
&:hover {
color: var(--w-color);
}
}
.highlight {
color: var(--w-color);
}
}
.btn {
margin: 0;
a {
display: inline-block;
color: var(--s-color);
padding: .35rem 1rem .45rem 1rem;
margin: 0 0 0 1.25rem;
border: .15rem solid var(--s-color);
border-radius: .25rem;
&:hover {
color: var(--s-color);
background: var(--btn-hover);
}
}
/*
a {
display: inline-block;
color: var(--t-color);
background: var(--s-color);
padding: .35rem 1rem .45rem 1rem;
margin: 0 0 0 1.25rem;
border: .15rem solid var(--s-color);
border-radius: .25rem;
&:hover {
color: var(--t-color);
background: var(--sh-color);
}
}
*/
}
}
.links {
padding: 0 .5rem;
}
.cta li,
.user li {
float: right;
a {
font-weight: 600;
}
}
}
}
@media only screen and (--viewport-4) {
header {
.nav {
grid-template-columns: 2fr 1fr;
max-width: unset;
padding: 1.5rem 2rem;
margin: 0;
.icon-bars {
position: absolute;
right: 2rem;
font-size: 1.15rem;
margin: .7rem;
&:hover {
cursor: pointer;
}
}
.menu {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background: rgba(#1b1e28, .96);
padding: 1.85rem 2rem;
z-index: 999;
.icon-times {
position: absolute;
right: 2.1rem;
font-size: 1.3rem;
margin: .25rem .7rem;
}
}
}
.nav {
.links {
display: block;
padding: 4rem 2rem 0 1.75rem;
text-align: center;
li {
display: block;
margin: 1rem .725rem 0 .725rem;
a {
color: var(--fs-color);
font-size: 2rem;
font-weight: 600;
}
}
}
}
}
}
@media only screen and (--viewport-3) {
header {
.nav {
padding: 1.5rem 1.25rem;
.icon-bars {
right: 1rem;
}
.menu {
padding: 1.85rem 1.25rem;
.icon-times {
right: 1.1rem;
}
}
}
}
}