@uqds/layout 1.0.0-alpha.6 → 1.0.0-alpha.8
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 +1 -1
- package/package.json +3 -3
- package/src/scss/_card-grid.scss +34 -4
- package/src/scss/_global.scss +1 -1
- package/src/scss/_sections.scss +4 -7
package/dist/css/main.css
CHANGED
|
@@ -1 +1 @@
|
|
|
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)
|
|
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);padding-bottom:var(--layout-section-gap)}.uq-sections .uq-sections{padding-bottom: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}@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:repeat(12, 1fr);container-type:inline-size}.uq-card-grid>*{grid-column:auto/span 12}@container (width > 550px){.uq-card-grid--target-2x>*{grid-column:auto/span 6}}@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}}@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}}@container (width > 667px){.uq-card-grid--target-1x .uq-pane,.uq-card-grid--target-1x .uq-story-card,.uq-card-grid--target-1x .uq-card{display:flex;flex-direction:row-reverse;gap:var(--layout-gap);align-items:center}.uq-card-grid--target-1x .uq-card__image,.uq-card-grid--target-1x .uq-story-card__image,.uq-card-grid--target-1x .uq-pane__image{width:50%;height:100%}.uq-card-grid--target-1x .uq-pane__image{margin:0}.uq-card-grid--target-1x .uq-card__content,.uq-card-grid--target-1x .uq-story-card__content{width:50%;padding-inline:1.5rem 0}.uq-card-grid--target-1x .uq-pane__content{width:50%}}
|
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.8",
|
|
4
4
|
"description": "Grid CSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"uqds",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"url": "https://github.com/uq-its-ss/design-system/issues"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@uqds/core": "^1.2.0-alpha.
|
|
44
|
+
"@uqds/core": "^1.2.0-alpha.1"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "3b41c2842c6e11853d433f37392e5dae72566555"
|
|
47
47
|
}
|
package/src/scss/_card-grid.scss
CHANGED
|
@@ -38,12 +38,42 @@
|
|
|
38
38
|
grid-column: auto / span 6;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
@container (width > #{$card-grid-container-md}) {
|
|
42
|
-
grid-column: auto / span 4;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
41
|
@container (width > #{$card-grid-container-lg}) {
|
|
46
42
|
grid-column: auto / span 3;
|
|
47
43
|
}
|
|
48
44
|
}
|
|
49
45
|
}
|
|
46
|
+
|
|
47
|
+
.uq-card-grid--target-1x {
|
|
48
|
+
@container (width > #{$card-grid-container-md}) {
|
|
49
|
+
& .uq-pane,
|
|
50
|
+
& .uq-story-card,
|
|
51
|
+
& .uq-card {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: row-reverse;
|
|
54
|
+
gap: var(--layout-gap);
|
|
55
|
+
align-items: center;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
& .uq-card__image,
|
|
59
|
+
& .uq-story-card__image,
|
|
60
|
+
& .uq-pane__image {
|
|
61
|
+
width: 50%;
|
|
62
|
+
height: 100%;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
& .uq-pane__image {
|
|
66
|
+
margin: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
& .uq-card__content,
|
|
70
|
+
& .uq-story-card__content {
|
|
71
|
+
width: 50%;
|
|
72
|
+
padding-inline: core.$space-l 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
& .uq-pane__content {
|
|
76
|
+
width: 50%;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
package/src/scss/_global.scss
CHANGED
package/src/scss/_sections.scss
CHANGED
|
@@ -2,12 +2,9 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: var(--layout-section-gap);
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
.uq-sections + .uq-footer {
|
|
8
|
-
margin-top: var(--layout-section-gap);
|
|
9
|
-
}
|
|
5
|
+
padding-bottom: var(--layout-section-gap);
|
|
10
6
|
|
|
11
|
-
.uq-sections
|
|
12
|
-
|
|
7
|
+
& .uq-sections {
|
|
8
|
+
padding-bottom: 0;
|
|
9
|
+
}
|
|
13
10
|
}
|