bunteshaus.de/themes/buha/assets/scss/banner.scss

96 lines
1.8 KiB
SCSS
Raw Normal View History

2022-06-17 17:45:53 +02:00
// Breakpoints
$bp-tiny: 40em; // 640px
$bp-small: 48em; // 768px
$bp-medium: 64em; // 1024px
$bp-large: 85.375em; // 1366px
$bp-xlarge: 120em; // 1920px
$bp-xxlarge: 160em; // 2560px
// Media Queries
$mq-tiny: "(min-width: #{$bp-tiny})";
$mq-small: "(min-width: #{$bp-small})";
$mq-medium: "(min-width: #{$bp-medium})";
$mq-large: "(min-width: #{$bp-large})";
$mq-xlarge: "(min-width: #{$bp-xlarge})";
$mq-xxlarge: "(min-width: #{$bp-xxlarge})";
$mq-retina: "(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi)";
2022-06-13 04:08:02 +02:00
.b {
2022-06-15 16:33:00 +02:00
height: calc(89vh / 5 );
2022-06-13 04:08:02 +02:00
}
.b_index {
2022-06-15 16:33:00 +02:00
height: calc(89vh / 4.5 );
2022-06-13 04:08:02 +02:00
}
2022-06-14 23:01:19 +02:00
2022-06-07 20:15:31 +02:00
.banner {
2022-06-13 04:08:02 +02:00
width: 98vw;
background-repeat: no-repeat;
background-size: 100%;
background-position: 50% 5rem;
background-attachment: fixed;
display: flex;
flex-direction: column;
justify-content: flex-end;
.title_index {
word-break: break-all;
color: var(--text-main);
background: var(--background-body-opaq);
text-align: center;
margin-bottom: 0;
text-shadow: 0px 4px 3px rgba(0,0,0,0.4),
0px 8px 13px rgba(0,0,0,0.1),
0px 18px 23px rgba(0,0,0,0.1);
}
2022-06-15 15:37:23 +02:00
.title, {
2022-06-13 04:08:02 +02:00
background: var(--background-body-opaq);
word-break: break-all;
color: var(--text-main);
margin-bottom: 0;
text-align: center;
text-shadow: 0px 4px 3px rgba(0,0,0,0.4),
0px 8px 13px rgba(0,0,0,0.1),
0px 18px 23px rgba(0,0,0,0.1);
}
2022-06-15 15:37:23 +02:00
}
.altbg {
2022-06-15 16:51:36 +02:00
max-height: 5em;
2022-06-07 20:15:31 +02:00
}
2022-06-12 13:50:06 +02:00
2022-06-17 17:45:53 +02:00
@media #{$mq-tiny} {
2022-06-12 13:50:06 +02:00
.banner {
2022-06-12 18:05:10 +02:00
width: 89%;
margin-left: auto;
margin-right: auto;
2022-06-15 15:37:23 +02:00
}
2022-06-15 16:15:44 +02:00
.b {
2022-06-15 16:33:00 +02:00
height: calc(89vw / 3.5 );
2022-06-15 16:15:44 +02:00
}
.b_index {
2022-06-15 16:33:00 +02:00
height: calc(89vw / 3 );
2022-06-15 16:15:44 +02:00
}
2022-06-15 16:20:14 +02:00
.altbg {
2022-06-15 16:51:36 +02:00
max-height: 7em;
2022-06-15 16:20:14 +02:00
}
2022-06-12 13:50:06 +02:00
}
2022-06-15 17:10:36 +02:00
.dev {
color: red;
background: var(--background-alt);
display: flex;
2022-06-15 18:17:00 +02:00
font-size: smaller;
2022-06-15 17:10:36 +02:00
}
.black {
2022-06-17 10:09:16 +02:00
color: var(--text-main);
2022-06-15 17:10:36 +02:00
}
.left {
justify-content: flex-start;
}
.right {
justify-content: flex-end;
}