Skip to content

Commit 42be71c

Browse files
committed
Update Table widget styles for better alignment and spacing
1 parent f8bdbb3 commit 42be71c

1 file changed

Lines changed: 22 additions & 11 deletions

File tree

website/modules/asset/ui/src/scss/_table-widget.scss

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1+
.sf-table-section {
2+
display: flex;
3+
flex-direction: column;
4+
}
5+
16
.sf-table-intro {
27
margin-bottom: 40px;
38
max-width: 800px;
4-
9+
align-self: center;
10+
width: 100%;
11+
512
h2 {
613
margin-bottom: 20px;
714
}
8-
15+
916
p {
1017
color: $gray-300;
1118
}
@@ -15,7 +22,8 @@
1522
width: 100%;
1623
display: flex;
1724
flex-direction: column;
18-
25+
justify-content: center;
26+
1927
@include breakpoint-medium {
2028
flex-direction: row;
2129
flex-wrap: wrap;
@@ -41,24 +49,28 @@
4149
&:not(:last-child) {
4250
border: 1px solid $gray-200;
4351
}
52+
53+
// prettier-ignore
4454
&:nth-child(3n+6) {
4555
border-top: none;
4656
}
57+
4758
&:nth-child(4n) {
4859
border-top: none;
4960
}
61+
62+
// prettier-ignore
5063
&:nth-child(n+4) {
5164
border-top: none;
5265
}
53-
5466
}
5567
}
5668

5769
.sf-table-cell-title {
5870
font-weight: 700;
5971
font-size: 14px;
6072
color: $gray-500;
61-
73+
6274
@include breakpoint-medium {
6375
font-size: 22px;
6476
}
@@ -69,7 +81,7 @@
6981
font-size: 18px;
7082
color: $gray-500;
7183
margin: 0;
72-
84+
7385
@include breakpoint-medium {
7486
font-size: 22px;
7587
}
@@ -92,21 +104,20 @@
92104
}
93105
}
94106

95-
96107
.sf-table-link {
97-
margin-top:24px;
98-
108+
margin-top: 24px;
109+
99110
a {
100111
color: $gray-300;
101112
text-decoration: underline;
102113
font-weight: 300;
103114
font-size: 11px;
104-
115+
105116
&:hover {
106117
text-decoration: none;
107118
}
108119
}
109120
@include breakpoint-medium {
110121
margin-top: 32px;
111122
}
112-
}
123+
}

0 commit comments

Comments
 (0)