Skip to content

Commit 1492e29

Browse files
fix(unity-bootstrap-theme): update ranking card styles
1 parent 25506a2 commit 1492e29

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

packages/unity-bootstrap-theme/src/scss/extends/_ranking-cards.scss

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
border: 1px solid $uds-color-base-gray-3;
55
overflow: hidden;
66

7-
--ranking-card-text-padding: 1.25rem;
7+
--ranking-card-text-padding: 1.5rem;
88

99
.info-layer {
1010
display: flex;
@@ -50,11 +50,10 @@
5050
}
5151

5252
svg.fa-chevron-up,
53-
i.fa-chevron-up {
53+
i.fa-chevron-up,
54+
.fa-chevron-up {
5455
transition: all 0.3s ease-in-out;
5556
color: $uds-color-base-gray-7;
56-
height: .875rem;
57-
width: .875rem;
5857
}
5958
}
6059

@@ -63,13 +62,13 @@
6362
display: -webkit-box;
6463
-webkit-box-orient: vertical;
6564
overflow: hidden;
66-
font-size: $uds-size-font-tiny;
65+
font-size: $uds-size-font-small;
66+
line-height: 1.2rem;
6767
-webkit-line-clamp: 3;
6868
line-clamp: 3;
6969
}
7070

7171
>a.read-more {
72-
font-size: $uds-size-font-small;
7372
font-weight: 600;
7473
margin-top: auto;
7574

@@ -98,8 +97,8 @@
9897

9998
>p,
10099
.header>p {
101-
line-clamp: 18;
102-
-webkit-line-clamp: 18;
100+
line-clamp: 22;
101+
-webkit-line-clamp: 22;
103102
}
104103
}
105104
}
@@ -164,7 +163,7 @@
164163
padding-right: var(--ranking-card-text-padding);
165164

166165
p {
167-
font-size: $uds-size-font-small;
166+
font-size: $uds-size-font-medium;
168167
}
169168
}
170169
}
@@ -207,8 +206,8 @@
207206
}
208207

209208
> p {
210-
line-clamp: 15;
211-
-webkit-line-clamp: 15;
209+
line-clamp: 18;
210+
-webkit-line-clamp: 18;
212211
visibility: hidden;
213212
transition: visibility .3s ease-in;
214213
margin: 0;

0 commit comments

Comments
 (0)