Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mincss
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
mincss
Commits
d2627819
Commit
d2627819
authored
Aug 12, 2015
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
border:none now also becomes border:0 after shorthand generation
parent
b54ca447
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
main.ml
main.ml
+1
-1
util.ml
util.ml
+6
-0
No files found.
main.ml
View file @
d2627819
...
@@ -151,9 +151,9 @@ let handle_args args =
...
@@ -151,9 +151,9 @@ let handle_args args =
(* unfold before pruning duplicates so that shorthand components are
(* unfold before pruning duplicates so that shorthand components are
* correctly pruned *)
* correctly pruned *)
|>
switch
args
.
shorthands
Shorthand
.
unfold_stylesheet
|>
switch
args
.
shorthands
Shorthand
.
unfold_stylesheet
|>
switch
args
.
simple
Simple
.
compress
|>
switch
args
.
duplicates
Duplicates
.
compress
|>
switch
args
.
duplicates
Duplicates
.
compress
|>
switch
args
.
shorthands
Shorthand
.
compress
|>
switch
args
.
shorthands
Shorthand
.
compress
|>
switch
args
.
simple
Simple
.
compress
|>
switch
args
.
sort
Util
.
sort_stylesheet
|>
switch
args
.
sort
Util
.
sort_stylesheet
in
in
let
output
=
let
output
=
...
...
util.ml
View file @
d2627819
...
@@ -116,6 +116,12 @@ let prerr_loc_msg loc msg =
...
@@ -116,6 +116,12 @@ let prerr_loc_msg loc msg =
|
_
->
failwith
(
"expected "
^
#
constructor
)
|
_
->
failwith
(
"expected "
^
#
constructor
)
let
transform_stylesheet
f
stylesheet
=
let
transform_stylesheet
f
stylesheet
=
let
f
x
=
match
f
x
with
|
Expr
(
Concat
[
expr
]
|
Nary
(
_
,
[
expr
]))
->
Expr
expr
|
value
->
value
in
let
rec
trav_expr
=
function
let
rec
trav_expr
=
function
|
Concat
terms
->
f
(
Expr
(
Concat
(
trav_all_expr
terms
)))
|
Concat
terms
->
f
(
Expr
(
Concat
(
trav_all_expr
terms
)))
|
Function
(
name
,
arg
)
->
f
(
Expr
(
Function
(
name
,
expect_expr
arg
)))
|
Function
(
name
,
arg
)
->
f
(
Expr
(
Function
(
name
,
expect_expr
arg
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment