@uqds/layout 1.0.0-alpha.3 → 1.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/css/main.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--container-max-width: 1204px;--layout-gap: 2rem;--section-gap: 6rem;--
|
|
1
|
+
:root{--layout-container-max-width: 1204px;--layout-gap: 2rem;--layout-section-gap: 6rem;--layout-sidebar-width: 261px}@media(max-width: 63.9375rem){:root{--layout-gap: 1.5rem;--layout-section-gap: 4.5rem}}.uq-container{width:100%;max-width:var(--layout-container-max-width);padding-left:var(--layout-gap);padding-right:var(--layout-gap);margin-left:auto;margin-right:auto}.uq-sections{display:flex;flex-direction:column;gap:var(--layout-section-gap)}.uq-sections+.uq-footer{margin-top:var(--layout-section-gap)}.uq-sections:has(.uq-section--shaded:last-child)+.uq-footer{margin-top:0}.uq-sidebar-layout{display:flex;flex-direction:column;gap:var(--layout-section-gap)}@media(min-width: 64rem){.uq-sidebar-layout{display:grid;gap:0;grid-template-columns:var(--layout-sidebar-width) minmax(32px, 80px) minmax(667px, 1fr)}}.uq-sidebar-layout__sidebar{grid-column:1/span 1}.uq-sidebar-layout__main{grid-column:3/span 1}.uq-card-grid{display:grid;gap:var(--layout-gap);grid-template-columns:repeat(12, 1fr);container-type:inline-size}.uq-card-grid>*{grid-column:auto/span 12}@container (width > 460px){.uq-card-grid--target-2x>*{grid-column:auto/span 6}}@container (width > 460px){.uq-card-grid--target-3x>*{grid-column:auto/span 6}}@container (width > 667px){.uq-card-grid--target-3x>*{grid-column:auto/span 4}}@container (width > 460px){.uq-card-grid--target-4x>*{grid-column:auto/span 6}}@container (width > 667px){.uq-card-grid--target-4x>*{grid-column:auto/span 4}}@container (width > 799px){.uq-card-grid--target-4x>*{grid-column:auto/span 3}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uqds/layout",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.5",
|
|
4
4
|
"description": "Grid CSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"uqds",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@uqds/core": "^1.2.0-alpha.0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "60814c1eef0e21be5f086af46cba76bb450b96a0"
|
|
47
47
|
}
|
package/src/scss/_container.scss
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
@use "global" as *;
|
|
3
3
|
|
|
4
4
|
:root {
|
|
5
|
-
--container-max-width: #{$container-max-width};
|
|
5
|
+
--layout-container-max-width: #{$container-max-width};
|
|
6
6
|
--layout-gap: #{core.$space-xl};
|
|
7
|
-
--section-gap: 6rem;
|
|
7
|
+
--layout-section-gap: 6rem;
|
|
8
8
|
|
|
9
|
-
--
|
|
9
|
+
--layout-sidebar-width: 261px;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
// Resize custom properties for tablet/mobile.
|
|
13
13
|
@media #{core.$screen-lg-down} {
|
|
14
14
|
:root {
|
|
15
15
|
--layout-gap: #{core.$space-l};
|
|
16
|
-
--section-gap: #{core.$space-uul};
|
|
16
|
+
--layout-section-gap: #{core.$space-uul};
|
|
17
17
|
}
|
|
18
18
|
}
|
package/src/scss/_sections.scss
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
.uq-sections {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
gap: var(--section-gap);
|
|
4
|
+
gap: var(--layout-section-gap);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.uq-sections + .uq-footer {
|
|
8
|
+
margin-top: var(--layout-section-gap);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.uq-sections:has(.uq-section--shaded:last-child) + .uq-footer {
|
|
12
|
+
margin-top: 0;
|
|
5
13
|
}
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
.uq-sidebar-layout {
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
6
|
-
gap: var(--section-gap);
|
|
6
|
+
gap: var(--layout-section-gap);
|
|
7
7
|
|
|
8
8
|
@media #{core.$screen-lg-up} {
|
|
9
9
|
display: grid;
|
|
10
10
|
gap: 0;
|
|
11
11
|
grid-template-columns:
|
|
12
|
-
var(--
|
|
12
|
+
var(--layout-sidebar-width) minmax(32px, 80px)
|
|
13
13
|
minmax(667px, 1fr);
|
|
14
14
|
}
|
|
15
15
|
}
|