mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-22 14:09:30 -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 {
|
$tablet: map-get($breakpoints, 'tablet') - 1;
|
||||||
position: fixed;
|
|
||||||
top: 0;
|
|
||||||
z-index: 0;
|
|
||||||
|
|
||||||
width: 100vw;
|
@media (max-width: $tablet), (hover: none) {
|
||||||
height: var(--window-height);
|
.container {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
z-index: 0;
|
||||||
|
|
||||||
overflow-y: scroll;
|
width: 100vw;
|
||||||
overflow-x: hidden;
|
height: var(--window-height);
|
||||||
background: white;
|
|
||||||
|
|
||||||
overscroll-behavior: none;
|
overflow-y: scroll;
|
||||||
-webkit-overflow-scrolling: none;
|
overflow-x: hidden;
|
||||||
}
|
background: white;
|
||||||
|
|
||||||
.disableScroll {
|
overscroll-behavior: none;
|
||||||
pointer-events: none;
|
-webkit-overflow-scrolling: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.disableScroll {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,3 +9,4 @@
|
|||||||
|
|
||||||
@import '_partial/nav';
|
@import '_partial/nav';
|
||||||
@import '_partial/article';
|
@import '_partial/article';
|
||||||
|
@import '_partial/container';
|
||||||
|
|||||||
@@ -6,6 +6,5 @@
|
|||||||
|
|
||||||
@import '_partial/collection';
|
@import '_partial/collection';
|
||||||
@import '_partial/gallery';
|
@import '_partial/gallery';
|
||||||
@import '_partial/container';
|
|
||||||
|
|
||||||
@import 'node_modules/swiper/swiper.scss';
|
@import 'node_modules/swiper/swiper.scss';
|
||||||
|
|||||||
@@ -7,8 +7,10 @@
|
|||||||
</script>
|
</script>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
{{- partial "nav.html" . -}}
|
{{- partial "nav.html" . -}}
|
||||||
<article class="info">
|
{{- with .Content -}}
|
||||||
{{ .Content }}
|
<article class="info">
|
||||||
</article>
|
{{- . -}}
|
||||||
|
</article>
|
||||||
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user