Skip to content

Commit 3e249e1

Browse files
committed
Prettify website CSS
Should help cleanup the diff in remix-run#6448
1 parent 5ccb241 commit 3e249e1

File tree

1 file changed

+84
-44
lines changed

1 file changed

+84
-44
lines changed

website/modules/base.css

Lines changed: 84 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
body {
2-
font-family: -apple-system,
3-
BlinkMacSystemFont,
4-
"Segoe UI",
5-
Roboto,
6-
Oxygen-Sans,
7-
Ubuntu,
8-
Cantarell,
9-
"Helvetica Neue",
10-
sans-serif;
2+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
3+
Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
114
line-height: 1.3;
125
}
13-
h1, h2, h3, h4, h5, h6 { margin: 0; font: inherit; }
6+
h1,
7+
h2,
8+
h3,
9+
h4,
10+
h5,
11+
h6 {
12+
margin: 0;
13+
font: inherit;
14+
}
1415

15-
p { margin: 0 }
16+
p {
17+
margin: 0;
18+
}
1619
a {
1720
color: inherit;
1821
text-decoration: none;
@@ -28,14 +31,25 @@ a {
2831
}
2932

3033
.mobile-scroll {
31-
-webkit-overflow-scrolling: touch
34+
-webkit-overflow-scrolling: touch;
3235
}
3336

34-
* { box-sizing: border-box; }
37+
* {
38+
box-sizing: border-box;
39+
}
3540

36-
.fake-browser h1 { margin: initial; font-size: 150%; }
37-
.fake-browser h2 { margin: initial; font-size: 125%; }
38-
.fake-browser h3 { margin: initial; font-size: 100%; }
41+
.fake-browser h1 {
42+
margin: initial;
43+
font-size: 150%;
44+
}
45+
.fake-browser h2 {
46+
margin: initial;
47+
font-size: 125%;
48+
}
49+
.fake-browser h3 {
50+
margin: initial;
51+
font-size: 100%;
52+
}
3953

4054
.fake-browser a {
4155
color: hsl(200, 50%, 50%);
@@ -47,9 +61,15 @@ a {
4761
color: hsl(0, 78%, 60%);
4862
}
4963

50-
.fake-browser { color: initial }
64+
.fake-browser {
65+
color: initial;
66+
}
5167

52-
pre, code { font-family: Menlo, monospace; line-height: 1.5 }
68+
pre,
69+
code {
70+
font-family: Menlo, monospace;
71+
line-height: 1.5;
72+
}
5373

5474
/* have messed with these! */
5575

@@ -60,9 +80,7 @@ pre, code { font-family: Menlo, monospace; line-height: 1.5 }
6080
.api-doc {
6181
padding-left: 20px;
6282
display: block;
63-
box-shadow:
64-
inset 500px 0 #fff,
65-
inset 1020px 0 rgb(45, 45, 45);
83+
box-shadow: inset 500px 0 #fff, inset 1020px 0 rgb(45, 45, 45);
6684
min-height: 100vh;
6785
}
6886
markdown > pre {
@@ -82,7 +100,7 @@ markdown > *:not(pre):not(h1):not(h2) {
82100
}
83101

84102
markdown:after {
85-
content: ' ';
103+
content: " ";
86104
display: block;
87105
clear: both;
88106
height: 80px;
@@ -109,10 +127,14 @@ markdown h2 {
109127
}
110128

111129
markdown h2:before {
112-
content: ' ';
130+
content: " ";
113131
height: 1px;
114132
width: 200px;
115-
background: linear-gradient(to right, rgba(100, 100, 100, 1) 0%, rgba(85, 85, 85, 0) 100%);
133+
background: linear-gradient(
134+
to right,
135+
rgba(100, 100, 100, 1) 0%,
136+
rgba(85, 85, 85, 0) 100%
137+
);
116138
position: absolute;
117139
left: 480px;
118140
}
@@ -121,12 +143,23 @@ markdown h2 a {
121143
color: rgb(45, 45, 45);
122144
}
123145

124-
markdown pre code { font-size: 11px; }
125-
markdown code { font-size: 12px; }
126-
markdown h2 code { font-size: 100%; font-weight: 100; }
127-
markdown h2 + p { margin-top: 10px; }
146+
markdown pre code {
147+
font-size: 11px;
148+
}
149+
markdown code {
150+
font-size: 12px;
151+
}
152+
markdown h2 code {
153+
font-size: 100%;
154+
font-weight: 100;
155+
}
156+
markdown h2 + p {
157+
margin-top: 10px;
158+
}
128159

129-
markdown h1, h2, h3 {
160+
markdown h1,
161+
h2,
162+
h3 {
130163
position: relative;
131164
clear: both;
132165
}
@@ -166,9 +199,14 @@ markdown h1, h2, h3 {
166199

167200
/* /old stuff */
168201

169-
markdown p { margin: 1em 0; }
202+
markdown p {
203+
margin: 1em 0;
204+
}
170205

171-
markdown h1 + h2 { margin-top: -40px; font-weight: normal }
206+
markdown h1 + h2 {
207+
margin-top: -40px;
208+
font-weight: normal;
209+
}
172210

173211
markdown th {
174212
border-bottom: 1px solid #f0f0f0;
@@ -187,24 +225,27 @@ markdown table th {
187225
padding: 2px 4px;
188226
}
189227

190-
markdown a { color: #d0021b; text-decoration: none }
228+
markdown a {
229+
color: #d0021b;
230+
text-decoration: none;
231+
}
191232

192233
@keyframes loading {
193-
0% { background-position: 0% 50% }
194-
50% { background-position: 100% 50% }
195-
100% { background-position: 0% 50% }
234+
0% {
235+
background-position: 0% 50%;
236+
}
237+
50% {
238+
background-position: 100% 50%;
239+
}
240+
100% {
241+
background-position: 0% 50%;
242+
}
196243
}
197244

198245
.loading {
199246
animation: loading 10s ease infinite;
200-
background-image: linear-gradient(
201-
125deg,
202-
#fff,
203-
#f3f3f3 41%,
204-
#ededed 0,
205-
#fff
206-
);
207-
background-size: 300% 300%
247+
background-image: linear-gradient(125deg, #fff, #f3f3f3 41%, #ededed 0, #fff);
248+
background-size: 300% 300%;
208249
}
209250

210251
.fade-enter {
@@ -216,4 +257,3 @@ markdown a { color: #d0021b; text-decoration: none }
216257
opacity: 1;
217258
transition: opacity 250ms ease-in;
218259
}
219-

0 commit comments

Comments
 (0)