Skip to content

Commit d3aa5c2

Browse files
author
Richard Feldman
committed
Don't put a space after :
1 parent e4c118f commit d3aa5c2

File tree

7 files changed

+202
-202
lines changed

7 files changed

+202
-202
lines changed

src/Css.elm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7758,7 +7758,7 @@ batch =
77587758
-}
77597759
property : String -> String -> Style
77607760
property key value =
7761-
Property (key ++ ": " ++ value)
7761+
Property (key ++ ":" ++ value)
77627762
|> Preprocess.AppendProperty
77637763

77647764

tests/Compile.elm

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -33,35 +33,35 @@ dreamwriter =
3333
output =
3434
"""
3535
html, body {
36-
width: 100%;
37-
height: 100%;
38-
box-sizing: border-box;
39-
padding: 0;
40-
margin: 0;
36+
width:100%;
37+
height:100%;
38+
box-sizing:border-box;
39+
padding:0;
40+
margin:0;
4141
}
4242
4343
body {
44-
min-width: 1280px;
45-
overflow-x: auto;
44+
min-width:1280px;
45+
overflow-x:auto;
4646
}
4747
4848
body > div {
49-
width: 100%;
50-
height: 100%;
49+
width:100%;
50+
height:100%;
5151
}
5252
5353
.Hidden {
54-
display: none !important;
54+
display:none !important;
5555
}
5656
5757
#Page {
58-
width: 100%;
59-
height: 100%;
60-
box-sizing: border-box;
61-
margin: 0;
62-
padding: 8px;
63-
background-color: rgb(100, 90, 128);
64-
color: rgb(40, 35, 76);
58+
width:100%;
59+
height:100%;
60+
box-sizing:border-box;
61+
margin:0;
62+
padding:8px;
63+
background-color:rgb(100, 90, 128);
64+
color:rgb(40, 35, 76);
6565
}
6666
"""
6767
in
@@ -85,11 +85,11 @@ compileTest =
8585
output =
8686
"""
8787
.BasicStyle1 {
88-
display: none;
88+
display:none;
8989
}
9090
9191
.BasicStyle2 {
92-
display: none;
92+
display:none;
9393
}
9494
"""
9595
in

tests/Media.elm

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ testMediaType str mediaType =
2525
prettyPrint (stylesheet [ basicMediaQuery (only mediaType []) ])
2626

2727
expectedBody =
28-
"\n p {\n background-color: #FF0000;\n"
28+
"\n p {\n background-color:#FF0000;\n"
2929

3030
expected =
3131
"@media only " ++ str ++ " {" ++ expectedBody ++ " }\n}"
@@ -158,7 +158,7 @@ testUnparameterizedFeature featureName component =
158158
prettyPrint (stylesheet [ basicMediaQuery (Media.all [ component ]) ])
159159

160160
expectedBody =
161-
"\n p {\n background-color: #FF0000;\n"
161+
"\n p {\n background-color:#FF0000;\n"
162162

163163
expected =
164164
"@media (" ++ featureName ++ ") {" ++ expectedBody ++ " }\n}"
@@ -173,7 +173,7 @@ expectFeatureWorks featureName n ( component, expectedStr ) =
173173
prettyPrint (stylesheet [ basicMediaQuery (Media.all [ component ]) ])
174174

175175
expectedBody =
176-
"\n p {\n background-color: #FF0000;\n"
176+
"\n p {\n background-color:#FF0000;\n"
177177

178178
expected =
179179
"@media (" ++ featureName ++ ": " ++ expectedStr ++ ") {" ++ expectedBody ++ " }\n}"
@@ -205,34 +205,34 @@ testMedia =
205205
output =
206206
"""
207207
body {
208-
padding: 0;
208+
padding:0;
209209
}
210210
211211
@media only print {
212212
body {
213-
margin: 2em;
213+
margin:2em;
214214
}
215215
}
216216
217217
@media only screen and (max-width: 600px) {
218218
body {
219-
margin: 3em;
219+
margin:3em;
220220
}
221221
}
222222
223223
button {
224-
margin: auto;
224+
margin:auto;
225225
}
226226
227227
@media only screen and (color) and (pointer: fine) and (scan: interlace) and (grid) {
228228
p {
229-
color: #FF0000;
229+
color:#FF0000;
230230
}
231231
}
232232
233233
@media not screen and (color) {
234234
p {
235-
color: #000000;
235+
color:#000000;
236236
}
237237
}
238238
"""
@@ -273,38 +273,38 @@ testWithMedia =
273273
output =
274274
"""
275275
button {
276-
padding: 0;
276+
padding:0;
277277
}
278278
279279
body {
280-
color: #333333;
280+
color:#333333;
281281
}
282282
283283
@media only print,
284284
(monochrome) {
285285
body {
286-
color: #000000;
286+
color:#000000;
287287
}
288288
}
289289
290290
a {
291-
color: #FF0000;
291+
color:#FF0000;
292292
}
293293
294294
@media only print {
295295
a {
296-
text-decoration: none;
296+
text-decoration:none;
297297
}
298298
}
299299
300300
.Container {
301-
max-width: 800px;
301+
max-width:800px;
302302
}
303303
304304
@media only screen and (max-width: 375px),
305305
only screen and (max-height: 667px) {
306306
.Container {
307-
max-width: 300px;
307+
max-width:300px;
308308
}
309309
}
310310
"""
@@ -331,7 +331,7 @@ testMediaQuery =
331331
@media tv,
332332
screen and (scan: interlace) {
333333
body {
334-
background-color: #FFFFFF;
334+
background-color:#FFFFFF;
335335
}
336336
}
337337
"""
@@ -359,13 +359,13 @@ testWithMediaQuery =
359359
output =
360360
"""
361361
body {
362-
font-size: 12px;
362+
font-size:12px;
363363
}
364364
365365
@media screen and (min-device-width: 600px),
366366
screen and (min-width: 600px) {
367367
body {
368-
font-size: 14px;
368+
font-size:14px;
369369
}
370370
}
371371
"""

tests/Properties.elm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,5 +634,5 @@ expectPropertyWorks propertyName ( style, expectedStr ) =
634634
[ test "emitted as expected" <|
635635
\() ->
636636
prettyPrint (stylesheet [ p [ style ] ])
637-
|> Expect.equal ("p {\n " ++ propertyName ++ ": " ++ expectedStr ++ ";\n}")
637+
|> Expect.equal ("p {\n " ++ propertyName ++ ":" ++ expectedStr ++ ";\n}")
638638
]

tests/Selectors.elm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,4 @@ testSelector expectedOutput applySelector =
8989
test (expectedOutput ++ " selector") <|
9090
\() ->
9191
prettyPrint (stylesheet [ applySelector [ display none ] ])
92-
|> Expect.equal (expectedOutput ++ " {\n display: none;\n}")
92+
|> Expect.equal (expectedOutput ++ " {\n display:none;\n}")

tests/Styled.elm

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,36 +15,36 @@ all =
1515
(\_ ->
1616
Query.fromHtml (toUnstyled <| ReadmeExample.view "BUY TICKETS")
1717
|> Query.has
18-
[ Selector.text """._3f6e16e1 {
19-
background-color: #333333;
20-
padding: 20px;
18+
[ Selector.text """._950e85ab {
19+
background-color:#333333;
20+
padding:20px;
2121
}"""
22-
, Selector.text """._3f9bfad4 {
23-
margin: 12px;
24-
color: rgb(255, 255, 255);
22+
, Selector.text """._9052bb8e {
23+
margin:12px;
24+
color:rgb(255, 255, 255);
2525
}"""
26-
, Selector.text """._6b223ffd {
27-
display: inline-block;
28-
padding-bottom: 12px;
26+
, Selector.text """._7bfd0c7b {
27+
display:inline-block;
28+
padding-bottom:12px;
2929
}"""
30-
, Selector.text """._cdb78ed8 {
31-
display: inline-block;
32-
margin-left: 150px;
33-
margin-right: 80px;
34-
vertical-align: middle;
30+
, Selector.text """._33aa99cc {
31+
display:inline-block;
32+
margin-left:150px;
33+
margin-right:80px;
34+
vertical-align:middle;
3535
}"""
36-
, Selector.text """._d090bd45 {
37-
background-color: #222222;
36+
, Selector.text """._1b2cec01 {
37+
background-color:#222222;
3838
}"""
39-
, Selector.text """._dda19319 {
40-
padding: 16px;
41-
padding-left: 24px;
42-
padding-right: 24px;
43-
margin-left: 50px;
44-
margin-right: auto;
45-
color: rgb(255, 255, 255);
46-
background-color: rgb(27, 217, 130);
47-
vertical-align: middle;
39+
, Selector.text """._4503f439 {
40+
padding:16px;
41+
padding-left:24px;
42+
padding-right:24px;
43+
margin-left:50px;
44+
margin-right:auto;
45+
color:rgb(255, 255, 255);
46+
background-color:rgb(27, 217, 130);
47+
vertical-align:middle;
4848
}"""
4949
]
5050
)

0 commit comments

Comments
 (0)