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
@@ -1,161 +0,0 @@
|
|
1
|
-
@function list-append($list, $value, $separator:comma)
|
2
|
-
{
|
3
|
-
@return append($list, $value, $separator);
|
4
|
-
}
|
5
|
-
|
6
|
-
@function list-length($list)
|
7
|
-
{
|
8
|
-
@return length($list);
|
9
|
-
}
|
10
|
-
|
11
|
-
@function list-nth($list, $index)
|
12
|
-
{
|
13
|
-
@return nth($list, $index);
|
14
|
-
}
|
15
|
-
|
16
|
-
@function list-first($list)
|
17
|
-
{
|
18
|
-
@return list-nth($list, 1);
|
19
|
-
}
|
20
|
-
|
21
|
-
@function list-second($list)
|
22
|
-
{
|
23
|
-
@return list-nth($list, 2);
|
24
|
-
}
|
25
|
-
|
26
|
-
@function list-last($list)
|
27
|
-
{
|
28
|
-
@return list-nth($list, list-length($list));
|
29
|
-
}
|
30
|
-
|
31
|
-
@function list-head ($list)
|
32
|
-
{
|
33
|
-
@return list-first($list);
|
34
|
-
}
|
35
|
-
|
36
|
-
@function list-tail($list)
|
37
|
-
{
|
38
|
-
$result: ();
|
39
|
-
@for $i from 2 through list-length($list)
|
40
|
-
{
|
41
|
-
$result: list-append($result, list-nth($list, $i));
|
42
|
-
}
|
43
|
-
@return $result;
|
44
|
-
}
|
45
|
-
|
46
|
-
@function list-maybe-nth($list, $i)
|
47
|
-
{
|
48
|
-
@if is-list($list)
|
49
|
-
{
|
50
|
-
@if list-length($list) < $i { @return (); }
|
51
|
-
@return list-nth($list, $i);
|
52
|
-
}
|
53
|
-
}
|
54
|
-
|
55
|
-
@function list-maybe-first($list)
|
56
|
-
{
|
57
|
-
@return list-maybe-nth($list, 1);
|
58
|
-
}
|
59
|
-
|
60
|
-
@function list-maybe-second($list)
|
61
|
-
{
|
62
|
-
@return list-maybe-nth($list, 2);
|
63
|
-
}
|
64
|
-
|
65
|
-
@function list-compact($list)
|
66
|
-
{
|
67
|
-
$result: ();
|
68
|
-
@each $item in $list
|
69
|
-
{
|
70
|
-
@if not is-empty($item) and not is-blank($item)
|
71
|
-
{
|
72
|
-
$result: append($result, $item);
|
73
|
-
}
|
74
|
-
}
|
75
|
-
@return $result;
|
76
|
-
}
|
77
|
-
|
78
|
-
@function list-flatten($values)
|
79
|
-
{
|
80
|
-
$result: ();
|
81
|
-
@each $value in $values
|
82
|
-
{
|
83
|
-
@if is-list($value)
|
84
|
-
{
|
85
|
-
@each $x in list-flatten($value) { $result: list-append($result, $x); }
|
86
|
-
}
|
87
|
-
@else
|
88
|
-
{
|
89
|
-
$result: list-append($result, $value);
|
90
|
-
}
|
91
|
-
}
|
92
|
-
@return $result;
|
93
|
-
}
|
94
|
-
|
95
|
-
// search //////////////////////////////////////////////////////////////////
|
96
|
-
|
97
|
-
@function list-contains-none($items, $these)
|
98
|
-
{
|
99
|
-
@return not list-contains-any($items, $these);
|
100
|
-
}
|
101
|
-
|
102
|
-
@function list-contains-any($items, $these)
|
103
|
-
{
|
104
|
-
@each $item in $items
|
105
|
-
{
|
106
|
-
@if list-contains($these, $item) { @return true; }
|
107
|
-
}
|
108
|
-
@return false;
|
109
|
-
}
|
110
|
-
|
111
|
-
@function list-contains($items, $this)
|
112
|
-
{
|
113
|
-
@each $item in $items
|
114
|
-
{
|
115
|
-
@if $this == $item { @return true; }
|
116
|
-
}
|
117
|
-
@return false;
|
118
|
-
}
|
119
|
-
|
120
|
-
@function list-find-by-nth($lists, $i, $val)
|
121
|
-
{
|
122
|
-
@each $list in $lists
|
123
|
-
{
|
124
|
-
@if $val == list-nth($list, $i) { @return $list; }
|
125
|
-
}
|
126
|
-
@return ();
|
127
|
-
}
|
128
|
-
|
129
|
-
@function list-find-by-first($pairs, $first)
|
130
|
-
{
|
131
|
-
@return list-find-by-nth($pairs, 1, $first);
|
132
|
-
}
|
133
|
-
|
134
|
-
@function list-find-by-second($pairs, $second)
|
135
|
-
{
|
136
|
-
@return list-find-by-nth($pairs, 2, $second);
|
137
|
-
}
|
138
|
-
|
139
|
-
@function list-lookup($pairs, $first)
|
140
|
-
{
|
141
|
-
@return list-second(list-find-by-first($pairs, $first));
|
142
|
-
}
|
143
|
-
|
144
|
-
@function list-reverse-lookup($pairs, $second)
|
145
|
-
{
|
146
|
-
@return list-first(list-find-by-second($pairs, $second));
|
147
|
-
}
|
148
|
-
|
149
|
-
@function list-find-opposite($pairs, $first-or-second)
|
150
|
-
{
|
151
|
-
@return list-find-either(list-lookup($pairs, $first-or-second), list-reverse-lookup($pairs, $first-or-second));
|
152
|
-
}
|
153
|
-
|
154
|
-
@function list-find-either($possibilities)
|
155
|
-
{
|
156
|
-
@each $possibility in $possibilities
|
157
|
-
{
|
158
|
-
@if not is-null($possibility) { @return $possibility; }
|
159
|
-
}
|
160
|
-
@return ();
|
161
|
-
}
|
@@ -1,79 +0,0 @@
|
|
1
|
-
$number-silver-ratio: 2.414;
|
2
|
-
|
3
|
-
$number-golden-ratio: 1.618;
|
4
|
-
$number-golden-ratio-doubled: $number-golden-ratio * 2;
|
5
|
-
|
6
|
-
$number-golden-ratio: 1.618;
|
7
|
-
$number-golden-ratio-doubled: $number-golden-ratio * 2;
|
8
|
-
|
9
|
-
$number-euler: 2.718;
|
10
|
-
$number-pi: 3.142;
|
11
|
-
|
12
|
-
$numbers-from-fractions:
|
13
|
-
("0" 0.000)
|
14
|
-
("1/1" 1.000)
|
15
|
-
("1/2" 0.500)
|
16
|
-
("1/3" 0.333)
|
17
|
-
("2/3" 0.667)
|
18
|
-
("1/4" 0.250)
|
19
|
-
("2/4" 0.500)
|
20
|
-
("3/4" 0.750)
|
21
|
-
;
|
22
|
-
|
23
|
-
@function number-squared($number)
|
24
|
-
{
|
25
|
-
@return $number * $number;
|
26
|
-
}
|
27
|
-
|
28
|
-
@function number-of($amt, $n)
|
29
|
-
{
|
30
|
-
@return ($amt * 0) + $n;
|
31
|
-
}
|
32
|
-
|
33
|
-
@function number-one($amt)
|
34
|
-
{
|
35
|
-
@return number-of($amt, 1);
|
36
|
-
}
|
37
|
-
|
38
|
-
@function number-integral($amt)
|
39
|
-
{
|
40
|
-
@return number-floor($amt + 0.049999);
|
41
|
-
}
|
42
|
-
|
43
|
-
@function number-fractional($amt)
|
44
|
-
{
|
45
|
-
@return $amt - number-integral($amt);
|
46
|
-
}
|
47
|
-
|
48
|
-
/** @param $amt The source.
|
49
|
-
* @returns the first digit after the decimal point.
|
50
|
-
*/
|
51
|
-
@function number-decimal($amt)
|
52
|
-
{
|
53
|
-
@return number-round(number-fractional($amt) * 10);
|
54
|
-
}
|
55
|
-
|
56
|
-
@function number-ceiling($amt)
|
57
|
-
{
|
58
|
-
@return ceil($amt);
|
59
|
-
}
|
60
|
-
|
61
|
-
@function number-floor($amt)
|
62
|
-
{
|
63
|
-
@return floor($amt);
|
64
|
-
}
|
65
|
-
|
66
|
-
@function number-round($amt)
|
67
|
-
{
|
68
|
-
@return round($amt);
|
69
|
-
}
|
70
|
-
|
71
|
-
@function number-unit($number)
|
72
|
-
{
|
73
|
-
@return unit($number);
|
74
|
-
}
|
75
|
-
|
76
|
-
@function number-from-fraction($fraction)
|
77
|
-
{
|
78
|
-
@return list-lookup($numbers-from-fractions, $fraction);
|
79
|
-
}
|
@@ -1,36 +0,0 @@
|
|
1
|
-
@import "dashy/list";
|
2
|
-
|
3
|
-
$opposite-sides:
|
4
|
-
(top bottom)
|
5
|
-
(left right)
|
6
|
-
;
|
7
|
-
|
8
|
-
$opposite-corners:
|
9
|
-
(top-left bottom-right)
|
10
|
-
(top-right bottom-left)
|
11
|
-
;
|
12
|
-
|
13
|
-
$opposite-directions:
|
14
|
-
(up down)
|
15
|
-
(left right)
|
16
|
-
;
|
17
|
-
|
18
|
-
@function opposite-side($side)
|
19
|
-
{
|
20
|
-
@return list-find-opposite($opposite-sides, $side);
|
21
|
-
}
|
22
|
-
|
23
|
-
@function opposite-corner($corner)
|
24
|
-
{
|
25
|
-
@return list-find-opposite($opposite-corners, $corner);
|
26
|
-
}
|
27
|
-
|
28
|
-
@function opposite-direction($direction)
|
29
|
-
{
|
30
|
-
@return list-find-opposite($opposite-directions, $direction);
|
31
|
-
}
|
32
|
-
|
33
|
-
@function opposite-direction-of-side($side)
|
34
|
-
{
|
35
|
-
@return opposite-direction(direction-of-side($side));
|
36
|
-
}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
@import "dashy/list";
|
2
|
-
|
3
|
-
$sides-horizontal: left right;
|
4
|
-
|
5
|
-
$sides-vertical: top bottom;
|
6
|
-
|
7
|
-
$sides: join($sides-horizontal, $sides-vertical);
|
8
|
-
|
9
|
-
$sides-directions:
|
10
|
-
(top up)
|
11
|
-
(bottom down)
|
12
|
-
(left left)
|
13
|
-
(right right);
|
14
|
-
|
15
|
-
@function side-in-direction($direction)
|
16
|
-
{
|
17
|
-
@return list-reverse-lookup($side-directions, $direction);
|
18
|
-
}
|
19
|
-
|
20
|
-
@function side-in-opposite-direction($direction)
|
21
|
-
{
|
22
|
-
@return side-in-direction(opposite-direction($direction));
|
23
|
-
}
|