crbtc.org/assets/style/components/_header.scss

85 lines
1.3 KiB
SCSS
Raw Normal View History

2023-07-17 19:11:13 +00:00
header {
display: grid;
grid-template-columns: 2fr 4fr 2fr;
2023-07-17 19:11:13 +00:00
grid-template-rows: 2fr 1fr;
max-width: 60rem;
padding: 2rem 4rem;
margin: 0 auto;
.logo {
grid-row: 1/3;
display: inline-block;
height: 6.25rem;
//border: .2rem solid $w-color;
//padding: .5rem 1rem .5rem .5rem;
2023-07-17 19:11:13 +00:00
h1 {
color: $w-color;
font-size: 1.2rem;
line-height: 1.2rem;
}
a {
display: inline-block;
height: 6.25rem;
img {
max-width: 6.5rem;
}
}
2023-07-17 19:11:13 +00:00
}
.nav,
.auth {
grid-row: 2;
margin: 0 auto;
a {
display: inline-block;
margin: 0 .5rem;
h2 {
color: $f-color;
font-size: 1rem;
&:hover {
color: $fh-color;
text-decoration: underline;
}
}
&:hover { cursor: pointer }
2023-07-17 19:11:13 +00:00
}
}
.auth {
margin: 0;
a {
float: right;
}
}
}
@media only screen and (max-width: 600px) {
header {
grid-template-columns: 5.5rem calc(100% - 5.5rem);
padding: 2.5rem 2rem 1rem 2rem;
2023-07-17 19:11:13 +00:00
.logo h1 {
font-size: 1rem;
line-height: 1rem;
}
.nav {
grid-row: 2;
margin: 0;
text-align: right;
a {
display: inline-block;
}
}
}
}