You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.1 KiB
60 lines
1.1 KiB
5 years ago
|
@import "../../src/scss/variables.scss";
|
||
|
@import "../../src/scss/mixins.scss";
|
||
|
|
||
|
.component-sectionHeader {
|
||
|
position: relative;
|
||
|
width: 100%;
|
||
|
background: $white;
|
||
|
background-image: url(/images/pattern.png);
|
||
|
background-size: auto 100px;
|
||
|
background-repeat: repeat-x;
|
||
|
background-position: center top;
|
||
|
height: 60px;
|
||
|
transition: height .4s;
|
||
|
|
||
|
&:before {
|
||
|
position: absolute;
|
||
|
content: '';
|
||
|
width: 500px;
|
||
|
height: 1px;
|
||
|
border-bottom: 1px solid $white;
|
||
|
top: 50%;
|
||
|
left: 50%;
|
||
|
transform: translate(-50%, -50%);
|
||
|
}
|
||
|
|
||
|
.label {
|
||
|
position: absolute;
|
||
|
display: block;
|
||
|
top: 50%;
|
||
|
left: 50%;
|
||
|
height: 50px;
|
||
|
line-height: 40px;
|
||
|
transform: translate(-50%, -50%);
|
||
|
color: $white;
|
||
|
background: $brown;
|
||
|
padding: 0 10px;
|
||
|
margin: 0;
|
||
|
@include font-style($font-serif, 'regular', $font-46);
|
||
|
transition: height .4s, font-size .4s, line-height .4s;
|
||
|
}
|
||
|
|
||
|
&.sticky {
|
||
|
height: 40px;
|
||
|
|
||
|
.label {
|
||
|
height: 30px;
|
||
|
font-size: $font-24;
|
||
|
line-height: 26px;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
@media (min-width: map-get($grid-breakpoints, 'md')) {
|
||
|
.component-sectionHeader {
|
||
|
//margin-top: $header-height;
|
||
|
}
|
||
|
}
|