Skip to content

Commit 23d4449

Browse files
committed
FEAT: convert white to #fff and black to #000
1 parent 93f2fff commit 23d4449

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

css.reb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ css-minify: function [tokens][
144144
#" " #"/" #" " keep (#"/")
145145
| #" " #"*" #" " keep (#"*")
146146
]
147+
| "black" keep ("#000")
148+
| "white" keep ("#fff")
147149
| keep skip
148150
]]
149151
]

tests.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ a {
100100
background: repeating-linear-gradient(top left -45deg, black, black 5px, white 5px, white 10px);
101101
}
102102
<!--==-->
103-
a{background-color:white;background:repeating-linear-gradient(top left -45deg,black,black 5px,white 5px,white 10px)}
103+
a{background-color:#fff;background:repeating-linear-gradient(top left -45deg,#000,#000 5px,#fff 5px,#fff 10px)}
104104
<!----------------------------------->
105105

106106
@media print {
@@ -179,7 +179,7 @@ a{background-image:url("http://dude.com");background:url("http://dude.com/hello
179179
color : white ;
180180
}
181181
<!--==-->
182-
a,b{color:white}
182+
a,b{color:#fff}
183183
<!----------------------------------->
184184

185185
@media only all and ( max-width: 50em ), only all and (max-device-width : 800px), only all and (max-width:780px) {
@@ -198,6 +198,6 @@ a {
198198
background: repeating-linear-gradient( top left -45deg , black , black calc( 1 + 1 ) , white 5px , white 10px );
199199
}
200200
<!--==-->
201-
a{width:calc(12/2);width:calc(12*2);width:calc(12 - 2);background:repeating-linear-gradient(top left -45deg,black,black calc(1 + 1),white 5px,white 10px)}
201+
a{width:calc(12/2);width:calc(12*2);width:calc(12 - 2);background:repeating-linear-gradient(top left -45deg,#000,#000 calc(1 + 1),#fff 5px,#fff 10px)}
202202
<!----------------------------------->
203203

0 commit comments

Comments
 (0)