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.
61 lines
1.2 KiB
61 lines
1.2 KiB
@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-40);
|
|
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 {
|
|
.label {
|
|
font-size: $font-46;
|
|
}
|
|
}
|
|
}
|