responsive breakpoints framework

This commit is contained in:
2026-10-20 15:23:51 +02:00
parent 36c5b1e380
commit 0637c0f90d
9 changed files with 117 additions and 25 deletions
@@ -6,6 +6,7 @@
@use "../abstracts/variables" as *;
@use "../abstracts/nodes-on-liste" as *;
@use "../abstracts/breakpoints" as *;
div.layout.layout--twocol-section--50-50.layout--twocol-section{
@@ -34,7 +35,7 @@ div.layout.layout--twocol-section--50-50.layout--twocol-section{
}
}
@media (max-width:431px) {
@media #{$narrow}{
&{
display:block;
div.layout__region{
@@ -7,6 +7,7 @@
@use "../abstracts/variables" as *;
@use "../abstracts/nodes-on-liste" as *;
@use "../abstracts/breakpoints" as *;
div.views-archives-projets{
@@ -27,9 +28,8 @@ div.views-archives-projets{
}
// ONLY FOR DESKTOP
@media (min-width:769px){
// gap: 2em;
// DESKTOP + TABLETTE (≥ 768) — gouttière + rangées de 4.
@media #{$desktop-et-tablette}{
gap: $colsgap;
div.views-row{
flex: 1 0 calc(25% - $colsgap);
@@ -37,9 +37,8 @@ div.views-archives-projets{
}
}
// ONLY FOR MOBILE
@media (max-width:768px){
// gap: 2em;
// MOBILE (≤ 767) : 2 par ligne.
@media #{$mobile}{
gap: $colsgap;
div.views-row{
flex: 1 0 calc(50% - $colsgap);