dashy 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/_dashy.scss +1 -14
- data/app/assets/stylesheets/dashy/_select.scss +3 -121
- data/app/assets/stylesheets/dashy/_set.scss +3 -76
- data/app/assets/stylesheets/dashy/all/_clears.scss +1 -0
- data/app/assets/stylesheets/dashy/all/_corners.scss +1 -0
- data/app/assets/stylesheets/dashy/all/_dimensions.scss +1 -0
- data/app/assets/stylesheets/dashy/all/_directions.scss +1 -0
- data/app/assets/stylesheets/dashy/all/_displays.scss +1 -0
- data/app/assets/stylesheets/dashy/all/_orientations.scss +1 -0
- data/app/assets/stylesheets/dashy/all/_overflows.scss +1 -0
- data/app/assets/stylesheets/dashy/all/_positions.scss +1 -0
- data/app/assets/stylesheets/dashy/all/_sides.scss +2 -0
- data/app/assets/stylesheets/dashy/all/font/_styles.scss +1 -0
- data/app/assets/stylesheets/dashy/all/font/_weights.scss +1 -0
- data/app/assets/stylesheets/dashy/all/horizontal/_dimensions.scss +1 -0
- data/app/assets/stylesheets/dashy/all/horizontal/_directions.scss +1 -0
- data/app/assets/stylesheets/dashy/all/horizontal/_sides.scss +1 -0
- data/app/assets/stylesheets/dashy/all/text/_aligns.scss +1 -0
- data/app/assets/stylesheets/dashy/all/text/_decorations.scss +1 -0
- data/app/assets/stylesheets/dashy/all/text/_inputs.scss +1 -0
- data/app/assets/stylesheets/dashy/all/text/_transforms.scss +1 -0
- data/app/assets/stylesheets/dashy/all/vertical/_aligns.scss +1 -0
- data/app/assets/stylesheets/dashy/all/vertical/_dimensions.scss +1 -0
- data/app/assets/stylesheets/dashy/all/vertical/_directions.scss +1 -0
- data/app/assets/stylesheets/dashy/all/vertical/_sides.scss +1 -0
- data/app/assets/stylesheets/dashy/default/font/_size.scss +1 -0
- data/app/assets/stylesheets/dashy/default/line/_height.scss +1 -0
- data/app/assets/stylesheets/dashy/default/page/_width.scss +1 -0
- data/app/assets/stylesheets/dashy/default/text/_align.scss +1 -0
- data/app/assets/stylesheets/dashy/default/vertical/_align.scss +1 -0
- data/app/assets/stylesheets/dashy/define/_append.scss +53 -0
- data/app/assets/stylesheets/dashy/define/_backspace.scss +15 -0
- data/app/assets/stylesheets/dashy/define/_clear.scss +15 -0
- data/app/assets/stylesheets/dashy/define/_display.scss +15 -0
- data/app/assets/stylesheets/dashy/define/_float.scss +15 -0
- data/app/assets/stylesheets/dashy/define/_gutter.scss +21 -0
- data/app/assets/stylesheets/dashy/define/_height.scss +15 -0
- data/app/assets/stylesheets/dashy/define/_inner.scss +15 -0
- data/app/assets/stylesheets/dashy/define/_opacity.scss +53 -0
- data/app/assets/stylesheets/dashy/define/_outer.scss +15 -0
- data/app/assets/stylesheets/dashy/define/_overflow.scss +15 -0
- data/app/assets/stylesheets/dashy/define/_pad.scss +15 -0
- data/app/assets/stylesheets/dashy/define/_position.scss +15 -0
- data/app/assets/stylesheets/dashy/define/_prepend.scss +53 -0
- data/app/assets/stylesheets/dashy/define/_pull.scss +17 -0
- data/app/assets/stylesheets/dashy/define/_push.scss +22 -0
- data/app/assets/stylesheets/dashy/define/_space.scss +15 -0
- data/app/assets/stylesheets/dashy/define/_width.scss +53 -0
- data/app/assets/stylesheets/dashy/define/column/_count.scss +15 -0
- data/app/assets/stylesheets/dashy/define/column/_fill.scss +15 -0
- data/app/assets/stylesheets/dashy/define/column/_gap.scss +15 -0
- data/app/assets/stylesheets/dashy/define/column/break/_inside.scss +15 -0
- data/app/assets/stylesheets/dashy/define/font/_size.scss +15 -0
- data/app/assets/stylesheets/dashy/define/font/_style.scss +15 -0
- data/app/assets/stylesheets/dashy/define/font/_weight.scss +15 -0
- data/app/assets/stylesheets/dashy/define/line/_height.scss +17 -0
- data/app/assets/stylesheets/dashy/define/max/_height.scss +15 -0
- data/app/assets/stylesheets/dashy/define/max/_width.scss +15 -0
- data/app/assets/stylesheets/dashy/define/min/_height.scss +15 -0
- data/app/assets/stylesheets/dashy/define/min/_width.scss +15 -0
- data/app/assets/stylesheets/dashy/define/text/_align.scss +15 -0
- data/app/assets/stylesheets/dashy/define/text/_color.scss +15 -0
- data/app/assets/stylesheets/dashy/define/text/_decoration.scss +15 -0
- data/app/assets/stylesheets/dashy/define/text/_transform.scss +15 -0
- data/app/assets/stylesheets/dashy/define/vertical/_align.scss +15 -0
- data/app/assets/stylesheets/dashy/get/_direction.scss +6 -0
- data/app/assets/stylesheets/dashy/get/_side.scss +11 -0
- data/app/assets/stylesheets/dashy/get/opposite/_corner.scss +6 -0
- data/app/assets/stylesheets/dashy/get/opposite/_direction.scss +6 -0
- data/app/assets/stylesheets/dashy/get/opposite/_side.scss +6 -0
- data/app/assets/stylesheets/dashy/initialize/_pull.scss +14 -0
- data/app/assets/stylesheets/dashy/initialize/_push.scss +14 -0
- data/app/assets/stylesheets/dashy/is/_blank.scss +5 -0
- data/app/assets/stylesheets/dashy/is/_boolean.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_color.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_em.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_empty.scss +5 -0
- data/app/assets/stylesheets/dashy/is/_ex.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_list.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_nothing.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_null.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_number.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_percentage.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_px.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_rem.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_round.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_something.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_string.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_unit.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_unitful.scss +4 -0
- data/app/assets/stylesheets/dashy/is/_unitless.scss +4 -0
- data/app/assets/stylesheets/dashy/list/_append.scss +4 -0
- data/app/assets/stylesheets/dashy/list/_first.scss +4 -0
- data/app/assets/stylesheets/dashy/list/_last.scss +4 -0
- data/app/assets/stylesheets/dashy/list/_length.scss +4 -0
- data/app/assets/stylesheets/dashy/list/_nth.scss +5 -0
- data/app/assets/stylesheets/dashy/list/_second.scss +4 -0
- data/app/assets/stylesheets/dashy/number/_approximate.scss +14 -0
- data/app/assets/stylesheets/dashy/number/_ceiling.scss +4 -0
- data/app/assets/stylesheets/dashy/number/_decimal.scss +7 -0
- data/app/assets/stylesheets/dashy/number/_floor.scss +4 -0
- data/app/assets/stylesheets/dashy/number/_fractional.scss +4 -0
- data/app/assets/stylesheets/dashy/number/_integral.scss +4 -0
- data/app/assets/stylesheets/dashy/number/_of.scss +4 -0
- data/app/assets/stylesheets/dashy/number/_one.scss +4 -0
- data/app/assets/stylesheets/dashy/number/_round.scss +4 -0
- data/app/assets/stylesheets/dashy/number/_squared.scss +4 -0
- data/app/assets/stylesheets/dashy/number/_unit.scss +4 -0
- data/app/assets/stylesheets/dashy/select/_as.scss +0 -0
- data/app/assets/stylesheets/dashy/select/_attribute.scss +11 -0
- data/app/assets/stylesheets/dashy/select/_buttons.scss +14 -0
- data/app/assets/stylesheets/dashy/select/_children.scss +4 -0
- data/app/assets/stylesheets/dashy/select/_class.scss +9 -0
- data/app/assets/stylesheets/dashy/select/_descendants.scss +4 -0
- data/app/assets/stylesheets/dashy/select/_either.scss +0 -0
- data/app/assets/stylesheets/dashy/select/_following.scss +4 -0
- data/app/assets/stylesheets/dashy/select/_inputs.scss +9 -0
- data/app/assets/stylesheets/dashy/select/_lists.scss +9 -0
- data/app/assets/stylesheets/dashy/select/_next.scss +4 -0
- data/app/assets/stylesheets/dashy/select/_pseudoclass.scss +0 -0
- data/app/assets/stylesheets/dashy/select/_tables.scss +9 -0
- data/app/assets/stylesheets/dashy/select/_tabloids.scss +9 -0
- data/app/assets/stylesheets/dashy/select/as/_children.scss +4 -0
- data/app/assets/stylesheets/dashy/select/as/_descendants.scss +4 -0
- data/app/assets/stylesheets/dashy/select/as/_following.scss +4 -0
- data/app/assets/stylesheets/dashy/select/as/_next.scss +4 -0
- data/app/assets/stylesheets/dashy/select/attribute/_prefix.scss +9 -0
- data/app/assets/stylesheets/dashy/select/attribute/_suffix.scss +9 -0
- data/app/assets/stylesheets/dashy/select/class/_prefix.scss +9 -0
- data/app/assets/stylesheets/dashy/select/class/_suffix.scss +4 -0
- data/app/assets/stylesheets/dashy/select/list/_items.scss +9 -0
- data/app/assets/stylesheets/dashy/select/lists/_items.scss +9 -0
- data/app/assets/stylesheets/dashy/select/table/_cells.scss +9 -0
- data/app/assets/stylesheets/dashy/select/table/_groups.scss +4 -0
- data/app/assets/stylesheets/dashy/select/table/_rows.scss +4 -0
- data/app/assets/stylesheets/dashy/select/table/groups/_rows.scss +4 -0
- data/app/assets/stylesheets/dashy/select/table/groups/rows/_cells.scss +4 -0
- data/app/assets/stylesheets/dashy/select/tabloids/_rows.scss +10 -0
- data/app/assets/stylesheets/dashy/select/tabloids/rows/_cells.scss +9 -0
- data/app/assets/stylesheets/dashy/select/text/_inputs.scss +11 -0
- data/app/assets/stylesheets/dashy/set/_animation.scss +10 -0
- data/app/assets/stylesheets/dashy/set/_append.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_backspace.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_clear.scss +13 -0
- data/app/assets/stylesheets/dashy/set/_display.scss +11 -0
- data/app/assets/stylesheets/dashy/set/_float.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_height.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_inner.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_keyframes.scss +7 -0
- data/app/assets/stylesheets/dashy/set/_margin.scss +5 -0
- data/app/assets/stylesheets/dashy/set/_opacity.scss +9 -0
- data/app/assets/stylesheets/dashy/set/_outer.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_overflow.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_pad.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_padding.scss +5 -0
- data/app/assets/stylesheets/dashy/set/_position.scss +11 -0
- data/app/assets/stylesheets/dashy/set/_prepend.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_pull.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_push.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_rem.scss +5 -0
- data/app/assets/stylesheets/dashy/set/_rgb.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_rgba.scss +8 -0
- data/app/assets/stylesheets/dashy/set/_space.scss +4 -0
- data/app/assets/stylesheets/dashy/set/_transition.scss +7 -0
- data/app/assets/stylesheets/dashy/set/_tweening.scss +5 -0
- data/app/assets/stylesheets/dashy/set/_width.scss +4 -0
- data/app/assets/stylesheets/dashy/set/background/gradient.scss +37 -0
- data/app/assets/stylesheets/dashy/set/border/_radius.scss +6 -0
- data/app/assets/stylesheets/dashy/set/box/_shadow.scss +6 -0
- data/app/assets/stylesheets/dashy/set/box/_sizing.scss +6 -0
- data/app/assets/stylesheets/dashy/set/column/_count.scss +6 -0
- data/app/assets/stylesheets/dashy/set/column/_fill.scss +6 -0
- data/app/assets/stylesheets/dashy/set/column/_gap.scss +6 -0
- data/app/assets/stylesheets/dashy/set/column/break/_inside.scss +6 -0
- data/app/assets/stylesheets/dashy/set/font/_size.scss +4 -0
- data/app/assets/stylesheets/dashy/set/font/_style.scss +4 -0
- data/app/assets/stylesheets/dashy/set/font/_weight.scss +4 -0
- data/app/assets/stylesheets/dashy/set/line/_height.scss +4 -0
- data/app/assets/stylesheets/dashy/set/max/_height.scss +4 -0
- data/app/assets/stylesheets/dashy/set/max/_width.scss +4 -0
- data/app/assets/stylesheets/dashy/set/min/_height.scss +7 -0
- data/app/assets/stylesheets/dashy/set/min/_width.scss +4 -0
- data/app/assets/stylesheets/dashy/set/text/_align.scss +4 -0
- data/app/assets/stylesheets/dashy/set/text/_color.scss +4 -0
- data/app/assets/stylesheets/dashy/set/text/_decoration.scss +4 -0
- data/app/assets/stylesheets/dashy/set/text/_transform.scss +4 -0
- data/app/assets/stylesheets/dashy/set/vertical/_align.scss +4 -0
- data/app/assets/stylesheets/dashy/string/_hyphenate.scss +4 -0
- data/app/assets/stylesheets/dashy/string/_join.scss +0 -0
- data/app/assets/stylesheets/dashy/to/_dimension.scss +11 -0
- data/app/assets/stylesheets/dashy/to/_fraction.scss +12 -0
- data/app/assets/stylesheets/dashy/to/_number.scss +9 -0
- data/app/assets/stylesheets/dashy/to/_orientation.scss +11 -0
- data/app/assets/stylesheets/dashy/to/_percentage.scss +9 -0
- data/app/assets/stylesheets/dashy/to/_px.scss +9 -0
- data/app/assets/stylesheets/dashy/to/_unitless.scss +4 -0
- data/lib/dashy/version.rb +1 -1
- data/lib/dashy.rb +1 -0
- data/lib/sass/script/functions/dashy.rb +80 -271
- data/lib/sass/script/value/string/dashy.rb +25 -0
- metadata +197 -15
- data/app/assets/stylesheets/dashy/_color.scss +0 -5
- data/app/assets/stylesheets/dashy/_corner.scss +0 -15
- data/app/assets/stylesheets/dashy/_default.scss +0 -14
- data/app/assets/stylesheets/dashy/_define.scss +0 -158
- data/app/assets/stylesheets/dashy/_direction.scss +0 -36
- data/app/assets/stylesheets/dashy/_font-family.scss +0 -36
- data/app/assets/stylesheets/dashy/_is.scss +0 -81
- data/app/assets/stylesheets/dashy/_line-height.scss +0 -10
- data/app/assets/stylesheets/dashy/_list.scss +0 -161
- data/app/assets/stylesheets/dashy/_number.scss +0 -79
- data/app/assets/stylesheets/dashy/_opposite.scss +0 -36
- data/app/assets/stylesheets/dashy/_side.scss +0 -23
@@ -0,0 +1,53 @@
|
|
1
|
+
@mixin define-prepend($prepend)
|
2
|
+
{
|
3
|
+
@if is-unitless($prepend)
|
4
|
+
{
|
5
|
+
@include define-elastic-prepend(to-percentage-from-unitless($prepend));
|
6
|
+
}
|
7
|
+
@else if is-percentage($prepend)
|
8
|
+
{
|
9
|
+
@include define-elastic-prepend($prepend);
|
10
|
+
}
|
11
|
+
@else
|
12
|
+
{
|
13
|
+
@include define-fixed-prepend($prepend);
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
@mixin define-elastic-prepend($prepend-percentage)
|
18
|
+
{
|
19
|
+
$prepend-fraction: to-fraction-from-percentage($prepend-percentage);
|
20
|
+
$approximate-prepend-percentage: number-approximate-low($prepend-percentage);
|
21
|
+
|
22
|
+
@if is-round($approximate-prepend-percentage)
|
23
|
+
{
|
24
|
+
#{ select-class(prepend $approximate-prepend-percentage) },
|
25
|
+
#{ select-class(prepend $prepend-fraction) }
|
26
|
+
{
|
27
|
+
@include set-prepend($approximate-prepend-percentage);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
@else
|
31
|
+
{
|
32
|
+
#{ select-class(prepend $prepend-fraction) }
|
33
|
+
{
|
34
|
+
@include set-prepend($approximate-prepend-percentage);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
@mixin define-fixed-prepend($prepend)
|
40
|
+
{
|
41
|
+
#{ select-class(prepend $prepend) }
|
42
|
+
{
|
43
|
+
@include set-prepend($prepend);
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
@mixin define-prepends($prepends)
|
48
|
+
{
|
49
|
+
@each $prepend in list-series($prepends)
|
50
|
+
{
|
51
|
+
@include define-prepend($prepend);
|
52
|
+
}
|
53
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
@mixin define-pull($direction, $amount)
|
2
|
+
{
|
3
|
+
@include initialize-pull;
|
4
|
+
|
5
|
+
#{ select-class(pull $direction $amount) }
|
6
|
+
{
|
7
|
+
@include set-pull($direction, $amount);
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
@mixin define-pulls($directions, $amounts)
|
12
|
+
{
|
13
|
+
@each $direction in $directions { @each $amount in list-series($amounts)
|
14
|
+
{
|
15
|
+
@include define-pull($direction, $amount);
|
16
|
+
}}
|
17
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
@mixin define-push($direction, $amount)
|
2
|
+
{
|
3
|
+
@include initialize-push;
|
4
|
+
|
5
|
+
#{ select-class(push $direction $amount) }
|
6
|
+
{
|
7
|
+
@include set-push($direction, $amount);
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
@mixin define-pushs($directions, $amounts)
|
12
|
+
{
|
13
|
+
@each $direction in $directions { @each $amount in list-series($amounts)
|
14
|
+
{
|
15
|
+
@include define-push($direction, $amount);
|
16
|
+
}}
|
17
|
+
}
|
18
|
+
|
19
|
+
@mixin define-pushes($directions, $amounts)
|
20
|
+
{
|
21
|
+
@include define-pushs($directions, $amounts);
|
22
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@mixin define-space($side, $amount)
|
2
|
+
{
|
3
|
+
#{ select-class(space $side $amount) }
|
4
|
+
{
|
5
|
+
@include set-space($side, $amount);
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin define-spaces($sides, $amounts)
|
10
|
+
{
|
11
|
+
@each $side in $sides { @each $amount in list-series($amounts)
|
12
|
+
{
|
13
|
+
@include define-space($side, $amount);
|
14
|
+
}}
|
15
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
@mixin define-width($width)
|
2
|
+
{
|
3
|
+
@if is-unitless($width)
|
4
|
+
{
|
5
|
+
@include define-elastic-width(to-percentage-from-unitless($width));
|
6
|
+
}
|
7
|
+
@else if is-percentage($width)
|
8
|
+
{
|
9
|
+
@include define-elastic-width($width);
|
10
|
+
}
|
11
|
+
@else
|
12
|
+
{
|
13
|
+
@include define-fixed-width($width);
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
@mixin define-elastic-width($width-percentage)
|
18
|
+
{
|
19
|
+
$width-fraction: to-fraction-from-percentage($width-percentage);
|
20
|
+
$approximate-width-percentage: number-approximate-low($width-percentage);
|
21
|
+
|
22
|
+
@if is-round($approximate-width-percentage)
|
23
|
+
{
|
24
|
+
#{ select-class(width $approximate-width-percentage) },
|
25
|
+
#{ select-class(width $width-fraction) }
|
26
|
+
{
|
27
|
+
@include set-width($approximate-width-percentage);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
@else
|
31
|
+
{
|
32
|
+
#{ select-class(width $width-fraction) }
|
33
|
+
{
|
34
|
+
@include set-width($approximate-width-percentage);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
@mixin define-fixed-width($width)
|
40
|
+
{
|
41
|
+
#{ select-class(width $width) }
|
42
|
+
{
|
43
|
+
@include set-width($width);
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
@mixin define-widths($widths)
|
48
|
+
{
|
49
|
+
@each $width in list-series($widths)
|
50
|
+
{
|
51
|
+
@include define-width($width);
|
52
|
+
}
|
53
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@mixin define-column-count($count)
|
2
|
+
{
|
3
|
+
#{ select-class(column-count $count) }
|
4
|
+
{
|
5
|
+
@include set-column-count($count);
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin define-column-counts($counts)
|
10
|
+
{
|
11
|
+
@each $count in list-series($counts)
|
12
|
+
{
|
13
|
+
@include define-column-count($count);
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@mixin define-column-break-inside($break)
|
2
|
+
{
|
3
|
+
#{ select-class(column-break-inside $break) }
|
4
|
+
{
|
5
|
+
@include set-column-break-inside($break);
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin define-column-break-insides($breaks)
|
10
|
+
{
|
11
|
+
@each $break in $breaks
|
12
|
+
{
|
13
|
+
@include define-column-break-inside($break);
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@mixin define-font-size($size)
|
2
|
+
{
|
3
|
+
#{ select-class(font-size $size) }, #{ select-class(font $size) }
|
4
|
+
{
|
5
|
+
@include set-font-size($size);
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin define-font-sizes($sizes)
|
10
|
+
{
|
11
|
+
@each $size in list-series($sizes)
|
12
|
+
{
|
13
|
+
@include define-font-size($size);
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@mixin define-font-style($style)
|
2
|
+
{
|
3
|
+
#{ select-class(font-style $style) }, #{ select-class(font $style) }
|
4
|
+
{
|
5
|
+
@include set-font-style($style);
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin define-font-styles($styles: $all-font-styles)
|
10
|
+
{
|
11
|
+
@each $style in $styles
|
12
|
+
{
|
13
|
+
@include define-font-style($style);
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@mixin define-font-weight($weight)
|
2
|
+
{
|
3
|
+
#{ select-class(font-weight $weight) }, #{ select-class(font $weight) }
|
4
|
+
{
|
5
|
+
@include set-font-weight($weight);
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin define-font-weights($weights)
|
10
|
+
{
|
11
|
+
@each $weight in list-series($weights)
|
12
|
+
{
|
13
|
+
@include define-font-weight($weight);
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
@mixin define-line-height($height)
|
2
|
+
{
|
3
|
+
$approximate-height: number-approximate($height);
|
4
|
+
|
5
|
+
#{ select-class(line-height $approximate-height) }, #{ select-class(line $approximate-height) }
|
6
|
+
{
|
7
|
+
@include set-line-height($height);
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
@mixin define-line-heights($heights)
|
12
|
+
{
|
13
|
+
@each $height in list-series($heights)
|
14
|
+
{
|
15
|
+
@include define-line-height($height);
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@mixin define-max-height($height)
|
2
|
+
{
|
3
|
+
#{ select-class(max-height $height) }
|
4
|
+
{
|
5
|
+
@include set-max-height($height);
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin define-max-heights($heights)
|
10
|
+
{
|
11
|
+
@each $height in list-series($heights)
|
12
|
+
{
|
13
|
+
@include define-max-height($height);
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@mixin define-max-width($width)
|
2
|
+
{
|
3
|
+
#{ select-class(max-width $width) }
|
4
|
+
{
|
5
|
+
@include set-max-width($width);
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin define-max-widths($widths)
|
10
|
+
{
|
11
|
+
@each $width in list-series($widths)
|
12
|
+
{
|
13
|
+
@include define-max-width($width);
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@mixin define-min-height($height)
|
2
|
+
{
|
3
|
+
#{ select-class(min-height $height) }
|
4
|
+
{
|
5
|
+
@include set-min-height($height);
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin define-min-heights($heights)
|
10
|
+
{
|
11
|
+
@each $height in list-series($heights)
|
12
|
+
{
|
13
|
+
@include define-min-height($height);
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@mixin define-min-width($width)
|
2
|
+
{
|
3
|
+
#{ select-class(min-width $width) }
|
4
|
+
{
|
5
|
+
@include set-min-width($width);
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin define-min-widths($widths)
|
10
|
+
{
|
11
|
+
@each $width in list-series($widths)
|
12
|
+
{
|
13
|
+
@include define-min-width($width);
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@mixin define-text-align($align)
|
2
|
+
{
|
3
|
+
#{ select-class(text-align $align) }, #{ select-class(text $align) }, #{ select-class(align $align) }
|
4
|
+
{
|
5
|
+
@include set-text-align($align);
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin define-text-aligns($aligns: $all-text-aligns)
|
10
|
+
{
|
11
|
+
@each $align in $aligns
|
12
|
+
{
|
13
|
+
@include define-text-align($align);
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@mixin define-text-color($color)
|
2
|
+
{
|
3
|
+
#{ select-class(text-color $color) }, #{ select-class(text $color) }
|
4
|
+
{
|
5
|
+
@include set-text-color($color);
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin define-text-colors($colors)
|
10
|
+
{
|
11
|
+
@each $color in $colors
|
12
|
+
{
|
13
|
+
@include define-text-color($color);
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@mixin define-text-decoration($decoration)
|
2
|
+
{
|
3
|
+
#{ select-class(text-decoration $decoration) }, #{ select-class(text $decoration) }
|
4
|
+
{
|
5
|
+
@include set-text-decoration($decoration);
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin define-text-decorations($decorations: $all-text-decorations)
|
10
|
+
{
|
11
|
+
@each $decoration in $decorations
|
12
|
+
{
|
13
|
+
@include define-text-decoration($decoration);
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@mixin define-text-transform($transform)
|
2
|
+
{
|
3
|
+
#{ select-class(text-transform $transform) }, #{ select-class(text $transform) }
|
4
|
+
{
|
5
|
+
@include set-text-transform($transform);
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin define-text-transforms($transforms: $all-text-transforms)
|
10
|
+
{
|
11
|
+
@each $transform in $transforms
|
12
|
+
{
|
13
|
+
@include define-text-transform($transform);
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@mixin define-vertical-align($align)
|
2
|
+
{
|
3
|
+
#{ select-class(vertical-align $align) }, #{ select-class(vertical $align) }, #{ select-class(align $align) }
|
4
|
+
{
|
5
|
+
@include set-vertical-align($align);
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin define-vertical-aligns($aligns: $all-vertical-aligns)
|
10
|
+
{
|
11
|
+
@each $align in $aligns
|
12
|
+
{
|
13
|
+
@include define-vertical-align($align);
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
$get-side-in-direction: (up: top, down: bottom, left: left, right: right);
|
2
|
+
|
3
|
+
@function get-side-in-direction($direction)
|
4
|
+
{
|
5
|
+
@return map-get($get-side-in-direction, $direction);
|
6
|
+
}
|
7
|
+
|
8
|
+
@function get-side-in-opposite-direction($direction)
|
9
|
+
{
|
10
|
+
@return get-side-in-direction(get-opposite-direction($direction));
|
11
|
+
}
|