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
94a36e40
Commit
94a36e40
authored
Jul 24, 2014
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generated shorthands are now appended instead of prepended
parent
7c912845
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
shorthand.ml
shorthand.ml
+2
-2
No files found.
shorthand.ml
View file @
94a36e40
...
@@ -79,7 +79,7 @@ let make_shorthands decls =
...
@@ -79,7 +79,7 @@ let make_shorthands decls =
in
in
let
shorthands
=
SS
.
fold
replace
try_shorthands
[]
in
let
shorthands
=
SS
.
fold
replace
try_shorthands
[]
in
(* filter out the original, partial properties, and
pre
pend the shorthands *)
(* filter out the original, partial properties, and
ap
pend the shorthands *)
let
keep_prop
=
function
let
keep_prop
=
function
|
(
_
,
_
,
true
)
->
true
|
(
_
,
_
,
true
)
->
true
|
(
"line-height"
,
_
,
false
)
->
|
(
"line-height"
,
_
,
false
)
->
...
@@ -90,7 +90,7 @@ let make_shorthands decls =
...
@@ -90,7 +90,7 @@ let make_shorthands decls =
let
sub
=
Str
.
matched_group
2
name
in
let
sub
=
Str
.
matched_group
2
name
in
not
(
List
.
mem
sub
(
subprops
base
))
||
not
(
decls_mem
base
shorthands
)
not
(
List
.
mem
sub
(
subprops
base
))
||
not
(
decls_mem
base
shorthands
)
in
in
shorthands
@
List
.
filter
keep_prop
decl
s
List
.
filter
keep_prop
decls
@
shorthand
s
let
transform
=
function
let
transform
=
function
|
Statement
(
Ruleset
(
selectors
,
decls
))
->
|
Statement
(
Ruleset
(
selectors
,
decls
))
->
...
...
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