@uqds/layout 1.0.4-alpha.0 → 1.1.0-alpha.0
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{--layout-container-max-width: 1204px;--layout-gap: 2rem;--layout-sidebar-width: 261px}@media(max-width: 63.9375rem){:root{--layout-gap: 1.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-container--flex{display:flex;gap:1rem;flex-direction:column;justify-content:center}@media(min-width: 37.5rem){.uq-container--flex{flex-direction:row;justify-content:space-between}}.uq-sidebar-layout{display:flex;flex-direction:column;gap:4.5rem}@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}@media(max-width: 63.9375rem){.uq-sidebar-layout__sidebar{display:none}}.uq-sidebar-layout__main{grid-column:3/span 1}.uq-card-grid{display:grid;gap:var(--layout-gap);grid-template-columns:
|
|
1
|
+
:root{--layout-container-max-width: 1204px;--layout-gap: 2rem;--layout-sidebar-width: 261px}@media(max-width: 63.9375rem){:root{--layout-gap: 1.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-container--flex{display:flex;gap:1rem;flex-direction:column;justify-content:center}@media(min-width: 37.5rem){.uq-container--flex{flex-direction:row;justify-content:space-between}}.uq-sidebar-layout{display:flex;flex-direction:column;gap:4.5rem}@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}@media(max-width: 63.9375rem){.uq-sidebar-layout__sidebar{display:none}}.uq-sidebar-layout__main{grid-column:3/span 1}.uq-sidebar-right-layout{display:flex;flex-direction:column;gap:32px}@media(min-width: 64rem){.uq-sidebar-right-layout{display:grid;gap:32px;grid-template-columns:1fr 296px}}@media(min-width: 75rem){.uq-sidebar-right-layout{grid-template-columns:1fr 308px}}.uq-sidebar-right-layout__sidebar{grid-column:2/span 1}.uq-sidebar-right-layout__main{grid-column:1/span 1}.uq-card-grid{display:grid;gap:var(--layout-gap);grid-template-columns:1fr;container-type:inline-size}.uq-card-grid>*{grid-column:auto/span 1}.uq-card-grid--target-2x{grid-template-columns:1fr 1fr}.uq-card-grid--target-2x>*{grid-column:auto/span 2}@container (width > 550px){.uq-card-grid--target-2x>*{grid-column:auto/span 1}}.uq-card-grid--target-3x{grid-template-columns:repeat(12, 1fr)}.uq-card-grid--target-3x>*{grid-column:auto/span 12}@container (width > 550px){.uq-card-grid--target-3x>*{grid-column:auto/span 6}}@container (width > 667px){.uq-card-grid--target-3x>*{grid-column:auto/span 4}}.uq-card-grid--target-4x{grid-template-columns:repeat(12, 1fr)}.uq-card-grid--target-4x>*{grid-column:auto/span 12}@container (width > 550px){.uq-card-grid--target-4x>*{grid-column:auto/span 6}}@container (width > 799px){.uq-card-grid--target-4x>*{grid-column:auto/span 3}}.uq-reduced-spacing .uq-section:not(.uq-section--no-margin){margin-bottom:4.5rem}.uq-reduced-spacing .uq-card-grid{gap:1.5rem}.uq-article-layout{margin-top:2.5rem}.uq-article-layout .uq-section:not(.uq-section--no-margin){margin-bottom:2rem}.uq-article-layout .uq-card-grid{gap:1.5rem}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uqds/layout",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0-alpha.0",
|
|
4
4
|
"description": "Grid CSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"uqds",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@uqds/core": "^1.2.4-alpha.0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "63ecc577f4c2cd3cecc99ba7990d6aec117eeaad"
|
|
47
47
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@use "@uqds/core/src/scss/global" as core;
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Ensure spacing is correct on article layouts.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
.uq-article-layout {
|
|
8
|
+
margin-top: core.$space-xxl;
|
|
9
|
+
|
|
10
|
+
& .uq-section:not(.uq-section--no-margin) {
|
|
11
|
+
margin-bottom: core.$space-xl;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
& .uq-card-grid {
|
|
15
|
+
gap: core.$space-l;
|
|
16
|
+
}
|
|
17
|
+
}
|
package/src/scss/_card-grid.scss
CHANGED
|
@@ -4,24 +4,32 @@
|
|
|
4
4
|
.uq-card-grid {
|
|
5
5
|
display: grid;
|
|
6
6
|
gap: var(--layout-gap);
|
|
7
|
-
grid-template-columns:
|
|
7
|
+
grid-template-columns: 1fr;
|
|
8
8
|
container-type: inline-size;
|
|
9
9
|
|
|
10
10
|
& > * {
|
|
11
|
-
grid-column: auto / span
|
|
11
|
+
grid-column: auto / span 1;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.uq-card-grid--target-2x {
|
|
16
|
+
grid-template-columns: 1fr 1fr;
|
|
17
|
+
|
|
16
18
|
& > * {
|
|
19
|
+
grid-column: auto / span 2;
|
|
20
|
+
|
|
17
21
|
@container (width > #{$card-grid-container-sm}) {
|
|
18
|
-
grid-column: auto / span
|
|
22
|
+
grid-column: auto / span 1;
|
|
19
23
|
}
|
|
20
24
|
}
|
|
21
25
|
}
|
|
22
26
|
|
|
23
27
|
.uq-card-grid--target-3x {
|
|
28
|
+
grid-template-columns: repeat(12, 1fr);
|
|
29
|
+
|
|
24
30
|
& > * {
|
|
31
|
+
grid-column: auto / span 12;
|
|
32
|
+
|
|
25
33
|
@container (width > #{$card-grid-container-sm}) {
|
|
26
34
|
grid-column: auto / span 6;
|
|
27
35
|
}
|
|
@@ -33,7 +41,11 @@
|
|
|
33
41
|
}
|
|
34
42
|
|
|
35
43
|
.uq-card-grid--target-4x {
|
|
44
|
+
grid-template-columns: repeat(12, 1fr);
|
|
45
|
+
|
|
36
46
|
& > * {
|
|
47
|
+
grid-column: auto / span 12;
|
|
48
|
+
|
|
37
49
|
@container (width > #{$card-grid-container-sm}) {
|
|
38
50
|
grid-column: auto / span 6;
|
|
39
51
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@use "@uqds/core/src/scss/global" as core;
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Ensure sections and card grid have reduced spacing.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
.uq-reduced-spacing {
|
|
8
|
+
& .uq-section:not(.uq-section--no-margin) {
|
|
9
|
+
margin-bottom: core.$space-uul;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
& .uq-card-grid {
|
|
13
|
+
gap: core.$space-l;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@use "@uqds/core/src/scss/global" as core;
|
|
2
|
+
|
|
3
|
+
.uq-sidebar-right-layout {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: 32px;
|
|
7
|
+
|
|
8
|
+
@media #{core.$screen-lg-up} {
|
|
9
|
+
display: grid;
|
|
10
|
+
gap: 32px;
|
|
11
|
+
grid-template-columns:
|
|
12
|
+
1fr
|
|
13
|
+
296px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@media #{core.$screen-xl-up} {
|
|
17
|
+
grid-template-columns:
|
|
18
|
+
1fr
|
|
19
|
+
308px;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.uq-sidebar-right-layout__sidebar {
|
|
24
|
+
grid-column: 2 / span 1;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.uq-sidebar-right-layout__main {
|
|
28
|
+
grid-column: 1 / span 1;
|
|
29
|
+
}
|