Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mincss
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Taddeüs Kroes
mincss
Commits
d2627819
Commit
d2627819
authored
9 years ago
by
Taddeüs Kroes
Browse files
Options
Downloads
Patches
Plain Diff
border:none now also becomes border:0 after shorthand generation
parent
b54ca447
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
main.ml
+1
-1
1 addition, 1 deletion
main.ml
util.ml
+6
-0
6 additions, 0 deletions
util.ml
with
7 additions
and
1 deletion
main.ml
+
1
−
1
View file @
d2627819
...
...
@@ -151,9 +151,9 @@ let handle_args args =
(* unfold before pruning duplicates so that shorthand components are
* correctly pruned *)
|>
switch
args
.
shorthands
Shorthand
.
unfold_stylesheet
|>
switch
args
.
simple
Simple
.
compress
|>
switch
args
.
duplicates
Duplicates
.
compress
|>
switch
args
.
shorthands
Shorthand
.
compress
|>
switch
args
.
simple
Simple
.
compress
|>
switch
args
.
sort
Util
.
sort_stylesheet
in
let
output
=
...
...
This diff is collapsed.
Click to expand it.
util.ml
+
6
−
0
View file @
d2627819
...
...
@@ -116,6 +116,12 @@ let prerr_loc_msg loc msg =
|
_
->
failwith
(
"expected "
^
#
constructor
)
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
|
Concat
terms
->
f
(
Expr
(
Concat
(
trav_all_expr
terms
)))
|
Function
(
name
,
arg
)
->
f
(
Expr
(
Function
(
name
,
expect_expr
arg
)))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment