Skip to content

Commit 2dedf6b

Browse files
committed
CrateHeader: Use fluid space scale
1 parent a31b62e commit 2dedf6b

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

app/components/crate-header.module.css

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
.header {
2-
padding-top: 30px;
3-
padding-bottom: 30px;
4-
}
5-
61
.heading {
72
display: flex;
83
align-items: baseline;
94
flex-wrap: wrap;
10-
gap: 10px;
5+
gap: var(--space-xs);
116
margin: 0;
127
padding: 0;
138
word-break: break-word;
@@ -18,20 +13,20 @@
1813
}
1914

2015
.description {
21-
margin-top: 15px;
16+
margin-top: var(--space-xs);
2217
line-height: 1.35;
2318
}
2419

2520
.keywords {
2621
list-style: none;
27-
margin: 10px 0 0;
22+
margin: var(--space-xs) 0 0;
2823
padding: 0;
2924

30-
> li {
25+
> * {
3126
display: inline;
3227

33-
&:not(:last-child) {
34-
margin-right: 15px;
28+
+ * {
29+
margin-left: var(--space-s);
3530
}
3631
}
3732
}
@@ -43,22 +38,21 @@
4338
}
4439

4540
.follow-button {
46-
margin-top: 15px;
41+
margin-top: var(--space-s);
4742
}
4843

4944
.nav {
50-
margin-bottom: 20px;
45+
margin-bottom: var(--space-s);
5146
}
5247

53-
5448
@media only screen and (min-width: 751px) {
5549
.header {
5650
display: grid;
5751
grid-template-columns: 1fr auto;
5852
}
5953

6054
.follow-button {
61-
margin: -10px -10px 0 10px;
55+
margin: -10px -10px 0 var(--space-s);
6256
grid-column: 2;
6357
grid-row: 1;
6458
}

0 commit comments

Comments
 (0)