@uqds/card 4.0.7-alpha.0 → 4.0.7
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 +4 -4
- package/src/scss/_card.scss +15 -15
- package/src/scss/_component.scss +31 -30
- package/src/scss/_global.scss +8 -6
- package/src/scss/_story-card.scss +16 -15
package/dist/css/main.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
a.uq-icon::before{height:1.5em;width:1.5em;height:1lh;width:1.2lh;background-position:left bottom;background-size:contain;position:absolute;margin-right:unset;left:-1.2lh}a.uq-icon{margin-left:1.2lh;position:relative}a.uq-icon.uq-icon--right{margin-left:unset;margin-right:1.2lh}a.uq-icon.uq-icon--right::before{left:unset;right:-1.2lh;background-position:right bottom}.uq-card,.uq-story-card{position:relative;display:flex;flex-direction:column;border-radius:4px;border:1px solid
|
|
1
|
+
a.uq-icon::before{height:1.5em;width:1.5em;height:1lh;width:1.2lh;background-position:left bottom;background-size:contain;position:absolute;margin-right:unset;left:-1.2lh}a.uq-icon{margin-left:1.2lh;position:relative}a.uq-icon.uq-icon--right{margin-left:unset;margin-right:1.2lh}a.uq-icon.uq-icon--right::before{left:unset;right:-1.2lh;background-position:right bottom}.uq-card,.uq-story-card{position:relative;display:flex;flex-direction:column;border-radius:4px;border:1px solid var(--uq-grey-200);background:var(--uq-white)}.uq-card:has(a:focus-visible),.uq-story-card:has(a:focus-visible){outline:4px solid var(--uq-utility-500);outline-offset:-1px}.uq-card:has(a:hover),.uq-story-card:has(a:hover){background:var(--uq-grey-50)}.uq-card:has(a:hover) .uq-card__content::after,.uq-story-card:has(a:hover) .uq-card__content::after{left:8px}.uq-card__content{flex:1;display:flex;flex-direction:column;padding:var(--uq-space-l)}.uq-card__content::after{content:"";height:calc(24px + var(--uq-space-l));width:24px;margin-top:auto;position:relative;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3e%3cpath d='M4 12h15M14 18l6-6-6-6' stroke='%2351247a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3c/path%3e%3c/svg%3e");background-position:right bottom;background-size:24px;background-repeat:no-repeat;transition:left 200ms ease-in-out;left:0}.uq-card__title,.uq-story-card__title{margin:0;color:var(--uq-black)}.uq-card__title a,.uq-story-card__title a{color:var(--uq-black);text-decoration:none;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden}.uq-card__title a::after,.uq-story-card__title a::after{content:"";position:absolute;inset:0;z-index:1}.uq-card__title a:focus,.uq-story-card__title a:focus{outline:none}.uq-card__title a:hover,.uq-story-card__title a:hover{color:var(--uq-black);text-decoration:underline;background-color:rgba(0,0,0,0)}.uq-card__description,.uq-story-card__description{margin-top:var(--uq-space-xs)}.uq-card__image,.uq-story-card__image{aspect-ratio:1.5/1;position:relative;flex-shrink:0}.uq-card__image img,.uq-card__image picture,.uq-story-card__image img,.uq-story-card__image picture{width:100%;height:100%;inset:0;position:absolute;object-fit:cover}.uq-card__icon{margin-bottom:var(--uq-space-xs)}.uq-card__icon .uq-icon::before{height:56px;width:56px}.uq-card--text .uq-card__image,.uq-card--text .uq-card__icon{display:none}.uq-card--image .uq-card__icon{display:none}.uq-card--icon .uq-card__image,.uq-card--icon-nav .uq-card__image{display:none}@media(max-width: 37.4375rem){.uq-card--icon-nav .uq-card__content{display:flex;align-items:center;flex-direction:row}.uq-card--icon-nav .uq-card__content::after{height:24px;width:calc(24px + var(--uq-space-m));margin-top:0;margin-left:auto;padding-left:var(--uq-space-m);flex-shrink:0}.uq-card--icon-nav .uq-card__description{display:none}.uq-card--icon-nav .uq-card__icon{margin:0 var(--uq-space-m) 0 0}.uq-card--icon-nav .uq-card__icon .uq-icon::before{height:40px;width:40px}}@container (width > 667px){.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{width:50%}.uq-card-grid--target-1x .uq-card__content{width:50%;padding-inline:var(--uq-space-l) 0}}.uq-story-card__content{flex:1;display:flex;flex-direction:column;padding:var(--uq-space-l)}.uq-story-card__description{display:-webkit-box;line-clamp:4;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.uq-story-card__top-label{margin-bottom:var(--uq-space-xxs);color:var(--uq-grey-700);font-weight:var(--uq-font-weight-medium)}.uq-story-card__bottom-label{padding-top:var(--uq-space-l);margin-top:auto}@media(max-width: 37.4375rem){.uq-card-grid:not(.uq-card-grid--target-1x) .uq-story-card:not(.uq-story-card--feature){border-radius:0;border-inline-width:0;border-top-width:0;display:flex;flex-direction:row-reverse;align-items:start;gap:var(--uq-space-m);padding-bottom:var(--uq-space-m);background-color:rgba(0,0,0,0)}.uq-card-grid:not(.uq-card-grid--target-1x) .uq-story-card:not(.uq-story-card--feature):has(a:hover){background-color:rgba(0,0,0,0)}.uq-card-grid:not(.uq-card-grid--target-1x) .uq-story-card:not(.uq-story-card--feature) .uq-story-card__content{padding:0}.uq-card-grid:not(.uq-card-grid--target-1x) .uq-story-card:not(.uq-story-card--feature) .uq-story-card__image{width:120px;height:100px;aspect-ratio:unset;flex-shrink:0;margin-top:6px}.uq-card-grid:not(.uq-card-grid--target-1x) .uq-story-card:not(.uq-story-card--feature) .uq-story-card__description{display:none}.uq-card-grid:not(.uq-card-grid--target-1x) .uq-story-card:not(.uq-story-card--feature) .uq-story-card__top-label{margin-bottom:0}.uq-card-grid:not(.uq-card-grid--target-1x) .uq-story-card:not(.uq-story-card--feature) .uq-story-card__bottom-label{padding-top:var(--uq-space-xs)}}.uq-card-grid--target-1x .uq-story-card .uq-story-card__description{display:-webkit-box}@container (width > 667px){.uq-card-grid--target-1x .uq-story-card:not(.uq-story-card--feature){display:flex;flex-direction:row-reverse;gap:var(--layout-gap);align-items:center}.uq-card-grid--target-1x .uq-story-card:not(.uq-story-card--feature) .uq-story-card__image{width:50%;height:100%}.uq-card-grid--target-1x .uq-story-card:not(.uq-story-card--feature) .uq-story-card__content{width:50%;padding-inline:var(--uq-space-l) 0}}.uq-story-card--event .uq-story-card__top-label{color:var(--uq-purple-500)}.uq-story-card--event .uq-story-card__description,.uq-story-card--story .uq-story-card__description{display:none}.uq-story-card--feature .uq-story-card__title{font-size:var(--uq-font-size-xxxl)}@media(max-width: 37.4375rem){.uq-story-card--feature .uq-story-card__title{font-size:1.375rem}}.uq-story-card--feature .uq-story-card__description{display:-webkit-box}.uq-story-card--landscape{border-radius:0;border-inline-width:0;border-top-width:0;display:flex;flex-direction:row-reverse;align-items:start;gap:var(--uq-space-m);padding-bottom:var(--uq-space-m);background-color:rgba(0,0,0,0)}.uq-story-card--landscape:has(a:hover){background-color:rgba(0,0,0,0)}.uq-story-card--landscape .uq-story-card__content{padding:0}@container (width < 600px){.uq-story-card--landscape .uq-story-card__title{font-size:22px}}.uq-story-card--landscape .uq-story-card__image{width:227px;height:138px;aspect-ratio:unset;flex-shrink:0;margin-top:6px}@container (width < 600px){.uq-story-card--landscape .uq-story-card__image{width:120px;height:100px}}.uq-story-card--landscape .uq-story-card__image:not(:has(img)){background-color:var(--uq-grey-100);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238c8a8d'%3e%3cg fill='none' stroke='%238c8a8d' stroke-linecap='round' stroke-linejoin='round' stroke-width='.75'%3e%3cpath d='M8 13.6V3.86S6.63 2.34 2 2.29a.25.25 0 0 0-.2.08.25.25 0 0 0-.09.2v9.14c0 .15.12.29.29.29 4.63.09 6 1.6 6 1.6M6.31 7.48a13 13 0 0 0-2.94-.6m2.94 2.95c-.94-.31-1.94-.52-2.94-.6m6.32-1.75a13 13 0 0 1 2.94-.6M9.69 9.83c.94-.31 1.94-.52 2.94-.6'%3e%3c/path%3e%3cpath d='M8 13.6V3.86s1.37-1.52 6-1.57c.09 0 .14.02.2.08s.09.11.09.2v9.14c0 .15-.12.29-.29.29-4.63.09-6 1.6-6 1.6m0 0'%3e%3c/path%3e%3c/g%3e%3c/svg%3e");background-size:88px;background-position:center;background-repeat:no-repeat}.uq-story-card--landscape .uq-story-card__description{display:none}.uq-story-card--landscape .uq-story-card__top-label{margin-bottom:0}.uq-story-card--landscape .uq-story-card__bottom-label{padding-top:var(--uq-space-xs)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uqds/card",
|
|
3
|
-
"version": "4.0.7
|
|
3
|
+
"version": "4.0.7",
|
|
4
4
|
"description": "Card components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"uqds",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"url": "https://github.com/uq-its-ss/design-system/issues"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@uqds/core": "^5.0.
|
|
47
|
+
"@uqds/core": "^5.0.3",
|
|
48
48
|
"@uqds/icon": "^4.0.6",
|
|
49
|
-
"@uqds/layout": "^7.0.3
|
|
49
|
+
"@uqds/layout": "^7.0.3"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "48ca7d774fdccf622c3dc6d32364c3e4a17a4bac"
|
|
52
52
|
}
|
package/src/scss/_card.scss
CHANGED
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
display: flex;
|
|
9
9
|
flex-direction: column;
|
|
10
10
|
border-radius: 4px;
|
|
11
|
-
border: 1px solid #{
|
|
12
|
-
background:
|
|
11
|
+
border: 1px solid #{var(--uq-grey-200)};
|
|
12
|
+
background: var(--uq-white);
|
|
13
13
|
|
|
14
14
|
&:has(a:focus-visible) {
|
|
15
|
-
outline: 4px solid
|
|
15
|
+
outline: 4px solid var(--uq-utility-500);
|
|
16
16
|
outline-offset: -1px;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
&:has(a:hover) {
|
|
20
|
-
background:
|
|
20
|
+
background: var(--uq-grey-50);
|
|
21
21
|
|
|
22
22
|
& .uq-card__content::after {
|
|
23
23
|
left: 8px;
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
flex: 1;
|
|
30
30
|
display: flex;
|
|
31
31
|
flex-direction: column;
|
|
32
|
-
padding:
|
|
32
|
+
padding: var(--uq-space-l);
|
|
33
33
|
|
|
34
34
|
&::after {
|
|
35
35
|
content: "";
|
|
36
|
-
height: calc(24px +
|
|
36
|
+
height: calc(24px + var(--uq-space-l));
|
|
37
37
|
width: 24px;
|
|
38
38
|
margin-top: auto;
|
|
39
39
|
position: relative;
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
.uq-card__title,
|
|
53
53
|
%uq-card__title {
|
|
54
54
|
margin: 0;
|
|
55
|
-
color:
|
|
55
|
+
color: var(--uq-black);
|
|
56
56
|
|
|
57
57
|
& a {
|
|
58
|
-
color:
|
|
58
|
+
color: var(--uq-black);
|
|
59
59
|
text-decoration: none;
|
|
60
60
|
display: -webkit-box;
|
|
61
61
|
-webkit-box-orient: vertical;
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
&:hover {
|
|
77
|
-
color:
|
|
77
|
+
color: var(--uq-black);
|
|
78
78
|
text-decoration: underline;
|
|
79
79
|
background-color: transparent;
|
|
80
80
|
}
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
|
|
84
84
|
.uq-card__description,
|
|
85
85
|
%uq-card__description {
|
|
86
|
-
margin-top:
|
|
86
|
+
margin-top: var(--uq-space-xs);
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
.uq-card__image,
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.uq-card__icon {
|
|
106
|
-
margin-bottom:
|
|
106
|
+
margin-bottom: var(--uq-space-xs);
|
|
107
107
|
|
|
108
108
|
& .uq-icon::before {
|
|
109
109
|
height: 56px;
|
|
@@ -140,10 +140,10 @@
|
|
|
140
140
|
|
|
141
141
|
&::after {
|
|
142
142
|
height: 24px;
|
|
143
|
-
width: calc(24px + #{
|
|
143
|
+
width: calc(24px + #{var(--uq-space-m)});
|
|
144
144
|
margin-top: 0;
|
|
145
145
|
margin-left: auto;
|
|
146
|
-
padding-left:
|
|
146
|
+
padding-left: var(--uq-space-m);
|
|
147
147
|
flex-shrink: 0;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
& .uq-card__icon {
|
|
156
|
-
margin: 0
|
|
156
|
+
margin: 0 var(--uq-space-m) 0 0;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
.uq-card__icon .uq-icon::before {
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
|
|
179
179
|
& .uq-card__content {
|
|
180
180
|
width: 50%;
|
|
181
|
-
padding-inline:
|
|
181
|
+
padding-inline: var(--uq-space-l) 0;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
}
|
package/src/scss/_component.scss
CHANGED
|
@@ -6,16 +6,15 @@
|
|
|
6
6
|
position: relative;
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
|
-
font-family:
|
|
10
|
-
font-size:
|
|
11
|
-
font-weight:
|
|
12
|
-
line-height:
|
|
9
|
+
font-family: var(--uq-font);
|
|
10
|
+
font-size: var(--uq-font-size-m);
|
|
11
|
+
font-weight: var(--uq-font-weight-normal);
|
|
12
|
+
line-height: var(--uq-line-height-long);
|
|
13
13
|
height: 100%;
|
|
14
|
-
background-color:
|
|
15
|
-
border: 1px solid
|
|
16
|
-
border-radius:
|
|
17
|
-
color:
|
|
18
|
-
line-height: core.$space-l;
|
|
14
|
+
background-color: var(--uq-white);
|
|
15
|
+
border: 1px solid var(--uq-grey-200);
|
|
16
|
+
border-radius: var(--uq-space-xxs);
|
|
17
|
+
color: var(--uq-grey-900);
|
|
19
18
|
overflow-wrap: break-word;
|
|
20
19
|
word-wrap: break-word;
|
|
21
20
|
|
|
@@ -27,14 +26,16 @@
|
|
|
27
26
|
bottom: 0;
|
|
28
27
|
left: 0;
|
|
29
28
|
text-indent: -1000%;
|
|
30
|
-
box-shadow: 0
|
|
29
|
+
box-shadow: 0 var(--uq-space-xxs) var(--uq-space-xxs)
|
|
30
|
+
color-mix(in srgb, var(--uq-grey-900) 5%, transparent);
|
|
31
31
|
transition: all ease 0.25s;
|
|
32
32
|
z-index: 10;
|
|
33
33
|
|
|
34
34
|
&:hover,
|
|
35
35
|
&:focus {
|
|
36
36
|
background-color: transparent;
|
|
37
|
-
box-shadow: 0
|
|
37
|
+
box-shadow: 0 var(--uq-space-xs) var(--uq-space-m)
|
|
38
|
+
color-mix(in srgb, var(--uq-grey-900) 15%, transparent);
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
|
|
@@ -70,16 +71,16 @@
|
|
|
70
71
|
}
|
|
71
72
|
&__content {
|
|
72
73
|
flex-grow: 1;
|
|
73
|
-
padding:
|
|
74
|
+
padding: var(--uq-space-l);
|
|
74
75
|
|
|
75
76
|
:last-child .uq-card__title {
|
|
76
|
-
margin-bottom:
|
|
77
|
+
margin-bottom: var(--uq-space-none);
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
&__header {
|
|
81
82
|
:last-child {
|
|
82
|
-
margin:
|
|
83
|
+
margin: var(--uq-space-none) var(--uq-space-none) var(--uq-space-xs);
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
86
|
|
|
@@ -88,43 +89,43 @@
|
|
|
88
89
|
margin-top: 0;
|
|
89
90
|
}
|
|
90
91
|
p:last-child {
|
|
91
|
-
margin-bottom:
|
|
92
|
+
margin-bottom: var(--uq-space-none);
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
&__actions {
|
|
96
|
-
padding:
|
|
97
|
+
padding: var(--uq-space-none) var(--uq-space-l) var(--uq-space-l);
|
|
97
98
|
|
|
98
99
|
p:last-child {
|
|
99
|
-
margin-bottom:
|
|
100
|
+
margin-bottom: var(--uq-space-none);
|
|
100
101
|
}
|
|
101
102
|
}
|
|
102
103
|
|
|
103
104
|
&__title {
|
|
104
|
-
color:
|
|
105
|
-
margin:
|
|
105
|
+
color: var(--uq-grey-900);
|
|
106
|
+
margin: var(--uq-space-none) var(--uq-space-none) var(--uq-space-s);
|
|
106
107
|
|
|
107
108
|
&-super {
|
|
108
|
-
font-size:
|
|
109
|
-
font-weight:
|
|
110
|
-
color:
|
|
109
|
+
font-size: var(--uq-font-size-s);
|
|
110
|
+
font-weight: var(--uq-font-weight-medium);
|
|
111
|
+
color: var(--uq-purple-light);
|
|
111
112
|
text-transform: uppercase;
|
|
112
|
-
margin:
|
|
113
|
+
margin: var(--uq-space-none) var(--uq-space-none) var(--uq-space-xs);
|
|
113
114
|
|
|
114
115
|
@media #{core.$screen-md-up} {
|
|
115
|
-
font-size:
|
|
116
|
+
font-size: var(--uq-font-size-m);
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
&--grey {
|
|
119
|
-
font-weight:
|
|
120
|
-
color:
|
|
120
|
+
font-weight: var(--uq-font-weight-normal);
|
|
121
|
+
color: var(--uq-grey-800);
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
125
|
|
|
125
126
|
// Shaded
|
|
126
127
|
&--shaded {
|
|
127
|
-
background-color:
|
|
128
|
+
background-color: var(--uq-grey-50);
|
|
128
129
|
}
|
|
129
130
|
}
|
|
130
131
|
|
|
@@ -137,13 +138,13 @@
|
|
|
137
138
|
|
|
138
139
|
// This should be replaced with a component specfic class or removed and documented as a body package dependancy for usage with cards.
|
|
139
140
|
.text--link {
|
|
140
|
-
color:
|
|
141
|
+
color: var(--uq-purple-500);
|
|
141
142
|
text-decoration: none;
|
|
142
143
|
transition: 0.2s color;
|
|
143
144
|
|
|
144
145
|
&:hover {
|
|
145
|
-
background-color:
|
|
146
|
-
color:
|
|
146
|
+
background-color: var(--uq-purple-500);
|
|
147
|
+
color: var(--uq-white);
|
|
147
148
|
text-decoration: underline;
|
|
148
149
|
}
|
|
149
150
|
}
|
package/src/scss/_global.scss
CHANGED
|
@@ -29,12 +29,14 @@
|
|
|
29
29
|
flex-direction: row;
|
|
30
30
|
padding-bottom: 1rem;
|
|
31
31
|
border: none;
|
|
32
|
-
border-bottom: 1px solid
|
|
33
|
-
box-shadow: 0
|
|
32
|
+
border-bottom: 1px solid var(--uq-grey-200);
|
|
33
|
+
box-shadow: 0 var(--uq-space-xxs) var(--uq-space-xxs)
|
|
34
|
+
color-mix(in srgb, var(--uq-grey-900) 0%, transparent);
|
|
34
35
|
|
|
35
36
|
&:hover,
|
|
36
37
|
&:focus {
|
|
37
|
-
box-shadow: 0
|
|
38
|
+
box-shadow: 0 var(--uq-space-xs) var(--uq-space-xs)
|
|
39
|
+
color-mix(in srgb, var(--uq-grey-900) 10%, transparent);
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
.uq-card__image__wrapper {
|
|
@@ -49,16 +51,16 @@
|
|
|
49
51
|
min-width: 50%;
|
|
50
52
|
}
|
|
51
53
|
.uq-card__content {
|
|
52
|
-
padding:
|
|
54
|
+
padding: var(--uq-space-none) var(--uq-space-m);
|
|
53
55
|
}
|
|
54
56
|
.uq-card__title {
|
|
55
|
-
margin:
|
|
57
|
+
margin: var(--uq-space-none) var(--uq-space-none) var(--uq-space-xs);
|
|
56
58
|
}
|
|
57
59
|
.uq-card__body {
|
|
58
60
|
display: none;
|
|
59
61
|
}
|
|
60
62
|
.uq-card__actions {
|
|
61
|
-
padding:
|
|
63
|
+
padding: var(--uq-space-none) var(--uq-space-m) var(--uq-space-none);
|
|
62
64
|
}
|
|
63
65
|
}
|
|
64
66
|
}
|
|
@@ -14,7 +14,7 @@ $story-card-font-size-small: 22px;
|
|
|
14
14
|
flex: 1;
|
|
15
15
|
display: flex;
|
|
16
16
|
flex-direction: column;
|
|
17
|
-
padding:
|
|
17
|
+
padding: var(--uq-space-l);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.uq-story-card__title {
|
|
@@ -24,19 +24,20 @@ $story-card-font-size-small: 22px;
|
|
|
24
24
|
.uq-story-card__description {
|
|
25
25
|
@extend %uq-card__description;
|
|
26
26
|
display: -webkit-box;
|
|
27
|
+
line-clamp: 4;
|
|
27
28
|
-webkit-box-orient: vertical;
|
|
28
29
|
-webkit-line-clamp: 4;
|
|
29
30
|
overflow: hidden;
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
.uq-story-card__top-label {
|
|
33
|
-
margin-bottom:
|
|
34
|
-
color:
|
|
35
|
-
font-weight:
|
|
34
|
+
margin-bottom: var(--uq-space-xxs);
|
|
35
|
+
color: var(--uq-grey-700);
|
|
36
|
+
font-weight: var(--uq-font-weight-medium);
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
.uq-story-card__bottom-label {
|
|
39
|
-
padding-top:
|
|
40
|
+
padding-top: var(--uq-space-l);
|
|
40
41
|
margin-top: auto;
|
|
41
42
|
}
|
|
42
43
|
|
|
@@ -57,8 +58,8 @@ $story-card-font-size-small: 22px;
|
|
|
57
58
|
display: flex;
|
|
58
59
|
flex-direction: row-reverse;
|
|
59
60
|
align-items: start;
|
|
60
|
-
gap:
|
|
61
|
-
padding-bottom:
|
|
61
|
+
gap: var(--uq-space-m);
|
|
62
|
+
padding-bottom: var(--uq-space-m);
|
|
62
63
|
background-color: transparent;
|
|
63
64
|
|
|
64
65
|
&:has(a:hover) {
|
|
@@ -86,7 +87,7 @@ $story-card-font-size-small: 22px;
|
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
& .uq-story-card__bottom-label {
|
|
89
|
-
padding-top:
|
|
90
|
+
padding-top: var(--uq-space-xs);
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
93
|
}
|
|
@@ -117,7 +118,7 @@ $story-card-font-size-small: 22px;
|
|
|
117
118
|
|
|
118
119
|
& .uq-story-card__content {
|
|
119
120
|
width: 50%;
|
|
120
|
-
padding-inline:
|
|
121
|
+
padding-inline: var(--uq-space-l) 0;
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
124
|
}
|
|
@@ -129,7 +130,7 @@ $story-card-font-size-small: 22px;
|
|
|
129
130
|
|
|
130
131
|
.uq-story-card--event {
|
|
131
132
|
& .uq-story-card__top-label {
|
|
132
|
-
color:
|
|
133
|
+
color: var(--uq-purple-500);
|
|
133
134
|
}
|
|
134
135
|
}
|
|
135
136
|
|
|
@@ -142,7 +143,7 @@ $story-card-font-size-small: 22px;
|
|
|
142
143
|
|
|
143
144
|
.uq-story-card--feature {
|
|
144
145
|
.uq-story-card__title {
|
|
145
|
-
font-size:
|
|
146
|
+
font-size: var(--uq-font-size-xxxl);
|
|
146
147
|
|
|
147
148
|
@media #{core.$screen-md-down} {
|
|
148
149
|
font-size: core.$font-size-xxl-mobile;
|
|
@@ -161,8 +162,8 @@ $story-card-font-size-small: 22px;
|
|
|
161
162
|
display: flex;
|
|
162
163
|
flex-direction: row-reverse;
|
|
163
164
|
align-items: start;
|
|
164
|
-
gap:
|
|
165
|
-
padding-bottom:
|
|
165
|
+
gap: var(--uq-space-m);
|
|
166
|
+
padding-bottom: var(--uq-space-m);
|
|
166
167
|
background-color: transparent;
|
|
167
168
|
|
|
168
169
|
&:has(a:hover) {
|
|
@@ -192,7 +193,7 @@ $story-card-font-size-small: 22px;
|
|
|
192
193
|
}
|
|
193
194
|
|
|
194
195
|
&:not(:has(img)) {
|
|
195
|
-
background-color:
|
|
196
|
+
background-color: var(--uq-grey-100);
|
|
196
197
|
background-image: url(icon-constants.get-icon(
|
|
197
198
|
"how-youll-learn--book-open-text",
|
|
198
199
|
core.$grey-600
|
|
@@ -212,6 +213,6 @@ $story-card-font-size-small: 22px;
|
|
|
212
213
|
}
|
|
213
214
|
|
|
214
215
|
& .uq-story-card__bottom-label {
|
|
215
|
-
padding-top:
|
|
216
|
+
padding-top: var(--uq-space-xs);
|
|
216
217
|
}
|
|
217
218
|
}
|