hello-theme/assets/scss/theme/_layout.scss
Rami Yushuvaev 4787361a56
Tweak: Use CSS logical properties [ED-10574] (#259)
* Tweak: Use CSS logical properties

* Revert comments changes

* Tweak: Use CSS logical properties

* Remove RTL style, replaced with logical properties

* Fix BC support for Safari 14.0
2023-06-28 19:00:00 +03:00

113 lines
1.4 KiB
SCSS

/**
* Responsive layouts
*/
$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 (max-width: $screen-xs - $screen-diff){
#{$containers} {
padding-inline-start: 10px;
padding-inline-end: 10px;
}
}
@media (min-width: $screen-xs){
#{$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 (min-width: $screen-sm){
#{$containers} {
max-width: 600px;
}
.site-header {
&.header-full-width {
max-width: 100%;
}
}
.site-footer {
&.footer-full-width {
max-width: 100%;
}
}
}
@media (min-width: $screen-md) {
#{$containers} {
max-width: 800px;
}
.site-header {
&.header-full-width {
max-width: 100%;
}
}
.site-footer {
&.footer-full-width {
max-width: 100%;
}
}
}
@media (min-width: $screen-xl) {
#{$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 );
}