@uqds/card 4.0.7-alpha.0 → 4.0.7-alpha.1

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
- 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 #dcdcdd;background:#fff}.uq-card:has(a:focus-visible),.uq-story-card:has(a:focus-visible){outline:4px solid #0d6dcd;outline-offset:-1px}.uq-card:has(a:hover),.uq-story-card:has(a:hover){background:#f3f3f4}.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:1.5rem}.uq-card__content::after{content:"";height:calc(24px + 1.5rem);width:24px;margin-top:auto;position:relative;background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%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:#19151c}.uq-card__title a,.uq-story-card__title a{color:#19151c;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:#19151c;text-decoration:underline;background-color:rgba(0,0,0,0)}.uq-card__description,.uq-story-card__description{margin-top:.5rem}.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:.5rem}.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 + 1rem);margin-top:0;margin-left:auto;padding-left:1rem;flex-shrink:0}.uq-card--icon-nav .uq-card__description{display:none}.uq-card--icon-nav .uq-card__icon{margin:0 1rem 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:1.5rem 0}}.uq-story-card__content{flex:1;display:flex;flex-direction:column;padding:1.5rem}.uq-story-card__description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.uq-story-card__top-label{margin-bottom:.25rem;color:#757377;font-weight:500}.uq-story-card__bottom-label{padding-top:1.5rem;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:1rem;padding-bottom:1rem;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:.5rem}}.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:1.5rem 0}}.uq-story-card--event .uq-story-card__top-label{color:#51247a}.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:2rem}@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:1rem;padding-bottom:1rem;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:#e8e8e8;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:.5rem}
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-alpha.0",
3
+ "version": "4.0.7-alpha.1",
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.2",
47
+ "@uqds/core": "^5.0.3-alpha.0",
48
48
  "@uqds/icon": "^4.0.6",
49
- "@uqds/layout": "^7.0.3-alpha.0"
49
+ "@uqds/layout": "^7.0.3-alpha.1"
50
50
  },
51
- "gitHead": "ac002ae195277061674aaa10b9ad6276e49760f4"
51
+ "gitHead": "999347ce02f23d7425d7c9af225531a43e01f4e9"
52
52
  }
@@ -8,16 +8,16 @@
8
8
  display: flex;
9
9
  flex-direction: column;
10
10
  border-radius: 4px;
11
- border: 1px solid #{core.$grey-200};
12
- background: core.$white;
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 core.$utility-500;
15
+ outline: 4px solid var(--uq-utility-500);
16
16
  outline-offset: -1px;
17
17
  }
18
18
 
19
19
  &:has(a:hover) {
20
- background: core.$grey-50;
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: core.$space-l;
32
+ padding: var(--uq-space-l);
33
33
 
34
34
  &::after {
35
35
  content: "";
36
- height: calc(24px + core.$space-l);
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: core.$black;
55
+ color: var(--uq-black);
56
56
 
57
57
  & a {
58
- color: core.$black;
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: core.$black;
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: core.$space-s;
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: core.$space-s;
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 + #{core.$space-m});
143
+ width: calc(24px + #{var(--uq-space-m)});
144
144
  margin-top: 0;
145
145
  margin-left: auto;
146
- padding-left: core.$space-m;
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 core.$space-m 0 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: core.$space-l 0;
181
+ padding-inline: var(--uq-space-l) 0;
182
182
  }
183
183
  }
184
184
  }
@@ -6,16 +6,15 @@
6
6
  position: relative;
7
7
  display: flex;
8
8
  flex-direction: column;
9
- font-family: core.$font-body;
10
- font-size: core.$font-size-m;
11
- font-weight: core.$font-weight-normal;
12
- line-height: core.$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: core.$white;
15
- border: 1px solid core.$grey-200;
16
- border-radius: core.$space-xs;
17
- color: core.$grey-900;
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 core.$space-xs core.$space-xs rgba(core.$grey-900, 0.05);
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 core.$space-s core.$space-m rgba(core.$grey-900, 0.15);
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: core.$space-l;
74
+ padding: var(--uq-space-l);
74
75
 
75
76
  :last-child .uq-card__title {
76
- margin-bottom: core.$space-none;
77
+ margin-bottom: var(--uq-space-none);
77
78
  }
78
79
  }
79
80
 
80
81
  &__header {
81
82
  :last-child {
82
- margin: core.$space-none core.$space-none core.$space-s;
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: core.$space-none;
92
+ margin-bottom: var(--uq-space-none);
92
93
  }
93
94
  }
94
95
 
95
96
  &__actions {
96
- padding: core.$space-none core.$space-l core.$space-l;
97
+ padding: var(--uq-space-none) var(--uq-space-l) var(--uq-space-l);
97
98
 
98
99
  p:last-child {
99
- margin-bottom: core.$space-none;
100
+ margin-bottom: var(--uq-space-none);
100
101
  }
101
102
  }
102
103
 
103
104
  &__title {
104
- color: core.$grey-900;
105
- margin: core.$space-none core.$space-none core.$space-s;
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: core.$font-size-s;
109
- font-weight: core.$font-weight-medium;
110
- color: core.$purple-light;
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: core.$space-none core.$space-none core.$space-s;
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: core.$font-size-m;
116
+ font-size: var(--uq-font-size-m);
116
117
  }
117
118
 
118
119
  &--grey {
119
- font-weight: core.$font-weight-normal;
120
- color: core.$grey-800;
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: core.$grey-50;
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: core.$purple-500;
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: core.$purple-500;
146
- color: core.$white;
146
+ background-color: var(--uq-purple-500);
147
+ color: var(--uq-white);
147
148
  text-decoration: underline;
148
149
  }
149
150
  }
@@ -29,12 +29,14 @@
29
29
  flex-direction: row;
30
30
  padding-bottom: 1rem;
31
31
  border: none;
32
- border-bottom: 1px solid core.$grey-200;
33
- box-shadow: 0 core.$space-xs core.$space-xs rgba(core.$grey-900, 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 core.$space-s core.$space-s rgba(core.$grey-900, 0.1);
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: core.$space-none core.$space-m;
54
+ padding: var(--uq-space-none) var(--uq-space-m);
53
55
  }
54
56
  .uq-card__title {
55
- margin: core.$space-none core.$space-none core.$space-s;
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: core.$space-none core.$space-m core.$space-none;
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: core.$space-l;
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: core.$space-xs;
34
- color: core.$grey-700;
35
- font-weight: core.$font-weight-medium;
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: core.$space-l;
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: core.$space-m;
61
- padding-bottom: core.$space-m;
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: core.$space-s;
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: core.$space-l 0;
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: core.$purple-500;
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: core.$font-size-xxxl;
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: core.$space-m;
165
- padding-bottom: core.$space-m;
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: core.$grey-100;
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: core.$space-s;
216
+ padding-top: var(--uq-space-xs);
216
217
  }
217
218
  }