mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-21 21:49:31 -07:00
fix: fix article regresssion (#250)
* refactor: output article element when needed * refactor: refactor container styles and media queries - Add the `$tablet` variable to `_container.scss` - Add a media query to `_container.scss` - Import `_container.scss` in `critical.scss` - Remove the import of `_container.scss` in `style.scss`
This commit is contained in:
@@ -1,19 +1,23 @@
|
||||
.container {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
z-index: 0;
|
||||
$tablet: map-get($breakpoints, 'tablet') - 1;
|
||||
|
||||
width: 100vw;
|
||||
height: var(--window-height);
|
||||
@media (max-width: $tablet), (hover: none) {
|
||||
.container {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
z-index: 0;
|
||||
|
||||
overflow-y: scroll;
|
||||
overflow-x: hidden;
|
||||
background: white;
|
||||
width: 100vw;
|
||||
height: var(--window-height);
|
||||
|
||||
overscroll-behavior: none;
|
||||
-webkit-overflow-scrolling: none;
|
||||
}
|
||||
|
||||
.disableScroll {
|
||||
pointer-events: none;
|
||||
overflow-y: scroll;
|
||||
overflow-x: hidden;
|
||||
background: white;
|
||||
|
||||
overscroll-behavior: none;
|
||||
-webkit-overflow-scrolling: none;
|
||||
}
|
||||
|
||||
.disableScroll {
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user