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

93 lines
1.4 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;
background: $b-color;
}
}
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: 768px) {
2023-07-17 19:11:13 +00:00
header {
2023-11-26 18:46:09 +00:00
grid-template-columns: 6rem calc(100% - 6rem);
padding: 2.5rem 2rem 1rem 2rem;
2023-07-17 19:11:13 +00:00
.logo {
2023-11-26 18:46:09 +00:00
height: 5.75rem;
a {
2023-11-26 18:46:09 +00:00
height: 5.75rem;
img {
2023-11-26 18:46:09 +00:00
max-width: 6rem;
}
}
2023-07-17 19:11:13 +00:00
}
.nav {
grid-row: 2;
margin: 0;
text-align: right;
a {
display: inline-block;
}
}
}
}