1
0
Fork 0
mirror of https://github.com/elementor/hello-theme.git synced 2026-07-29 15:07:33 +08:00
hello-theme/dev/scss/theme/_layout.scss
2026-06-20 20:20:30 +03:00

115 lines
1.5 KiB
SCSS

/**
* Responsive layouts
*/
@use "../reset/variables" as variables;
$containers: '.site-header .header-inner,.site-header:not(.dynamic-header), .site-footer .footer-inner, .site-footer:not(.dynamic-footer),body:not([class*="elementor-page-"]) .site-main, .page-header .entry-title';
#{$containers} {
margin-inline-start: auto;
margin-inline-end: auto;
width: 100%;
}
@media (--hello-screen-xs-and-below) {
#{$containers} {
padding-inline-start: 10px;
padding-inline-end: 10px;
}
}
@media (--hello-screen-xs-and-above) {
#{$containers} {
max-width: 500px;
}
.site-header {
&.header-full-width {
.header-inner {
max-width: 100%;
}
}
}
.site-footer {
&.footer-full-width {
.footer-inner {
max-width: 100%;
}
}
}
}
@media (--hello-screen-sm-and-above) {
#{$containers} {
max-width: 600px;
}
.site-header {
&.header-full-width {
max-width: 100%;
}
}
.site-footer {
&.footer-full-width {
max-width: 100%;
}
}
}
@media (--hello-screen-md-and-above) {
#{$containers} {
max-width: 800px;
}
.site-header {
&.header-full-width {
max-width: 100%;
}
}
.site-footer {
&.footer-full-width {
max-width: 100%;
}
}
}
@media (--hello-screen-xl-and-above) {
#{$containers} {
max-width: 1140px;
}
.site-header {
&.header-full-width {
max-width: 100%;
}
}
.site-footer {
&.footer-full-width {
max-width: 100%;
}
}
}
.site-header + .elementor {
min-height: calc( 100vh - 320px );
}