Skip to content

Commit 1e94ae8

Browse files
committed
crate/version: Use fluid space scale
1 parent 459011a commit 1e94ae8

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

app/styles/crate/version.module.css

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
.docs {
99
--shadow: 0 2px 3px hsla(51, 50%, 44%, .35);
1010

11-
margin-bottom: 25px;
12-
padding: 25px;
11+
margin-bottom: var(--space-l);
12+
padding: var(--space-m) var(--space-l);
1313
background-color: white;
14-
border-radius: 5px;
14+
border-radius: var(--space-3xs);
1515
box-shadow: var(--shadow);
1616

1717
@media only screen and (max-width: 550px) {
@@ -26,11 +26,12 @@
2626
}
2727

2828
.no-readme {
29-
padding: 40px 15px;
29+
padding: var(--space-l) var(--space-s);
3030
text-align: center;
3131
font-size: 20px;
3232
font-weight: 300;
3333
overflow-wrap: break-word;
34+
line-height: 1.5;
3435

3536
code {
3637
font-size: 18px;
@@ -41,38 +42,38 @@
4142
.placeholder-title {
4243
width: 30%;
4344
height: 25px;
44-
margin: 15px 0 25px;
45-
border-radius: 5px;
45+
margin: var(--space-s) 0 var(--space-m);
46+
border-radius: var(--space-3xs);
4647
opacity: 0.6;
4748
}
4849

4950
.placeholder-subtitle {
5051
width: 50%;
5152
height: 20px;
52-
margin: 35px 0 25px;
53-
border-radius: 5px;
53+
margin: var(--space-l) 0 var(--space-m);
54+
border-radius: var(--space-3xs);
5455
opacity: 0.6;
5556
}
5657

5758
.placeholder-text {
5859
width: 100%;
5960
height: 16px;
60-
margin-top: 15px;
61-
border-radius: 5px;
61+
margin-top: var(--space-xs);
62+
border-radius: var(--space-3xs);
6263
opacity: 0.3;
6364
}
6465

6566
.sidebar {
6667
@media only screen and (min-width: 890px) {
67-
margin-top: 20px;
68-
margin-left: 20px;
68+
margin-top: var(--space-m);
69+
margin-left: var(--space-m);
6970
}
7071
}
7172

7273
.crate-downloads {
7374
display: flex;
7475
flex-wrap: wrap;
75-
margin-top: 25px;
76+
margin-top: var(--space-l);
7677
border-top: 5px solid var(--gray-border);
7778

7879
h3 { width: 100%; }
@@ -86,7 +87,7 @@
8687

8788
.stat {
8889
border-left: 1px solid var(--gray-border);
89-
padding: 10px 20px;
90+
padding: var(--space-s) var(--space-m);
9091
display: flex;
9192
flex-wrap: wrap;
9293
flex-direction: column;
@@ -95,7 +96,7 @@
9596
.num {
9697
font-size: 160%;
9798
font-weight: bold;
98-
margin-bottom: 4px;
99+
margin-bottom: var(--space-3xs);
99100
}
100101

101102
.num__align {
@@ -111,8 +112,7 @@
111112
.graph {
112113
flex-grow: 10;
113114
width: 100%;
114-
margin: 30px 0;
115-
padding-bottom: 20px;
115+
margin: var(--space-xs) 0 var(--space-m);
116116

117117
h4 {
118118
color: var(--main-color-light);
@@ -139,12 +139,12 @@
139139
padding: 10px;
140140
border: none;
141141
border-radius: 5px;
142-
142+
143143
.trigger-label {
144144
min-width: 65px;
145145
}
146146
}
147-
147+
148148
.dropdown-button {
149149
background: none;
150150
border: 0;

0 commit comments

Comments
 (0)