custard 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,20 @@
1
+ @import '../variables';
2
+
3
+ @mixin custard-setup-text {
4
+
5
+ $text: #{$custard-namespace}#{$custard-prefix-text};
6
+
7
+ @each $position in center, left, right {
8
+ .#{$text}-#{$position} {
9
+ text-align: $position;
10
+ }
11
+ }
12
+
13
+ .#{$text}-ellipsis {
14
+ overflow: hidden;
15
+ white-space: nowrap;
16
+ text-overflow: ellipsis;
17
+ }
18
+ }
19
+
20
+ @include custard-setup-text;
@@ -0,0 +1,21 @@
1
+ @import '../variables';
2
+
3
+ @mixin custard-setup-wrap {
4
+
5
+ $wrap: #{$custard-namespace}#{$custard-prefix-wrap};
6
+
7
+ .#{$wrap}-all {
8
+ width: 100%;
9
+ height: 100%;
10
+ }
11
+
12
+ .#{$wrap}-width {
13
+ width: 100%;
14
+ }
15
+
16
+ .#{$wrap}-height {
17
+ height: 100%;
18
+ }
19
+ }
20
+
21
+ @include custard-setup-wrap;
@@ -0,0 +1,20 @@
1
+ @import '../variables';
2
+
3
+ @mixin custard-setup-z-index {
4
+
5
+ $z-index: #{$custard-namespace}#{$custard-prefix-z-index};
6
+
7
+ @for $n from 1 through 9 {
8
+
9
+ @each $multiplier in 1, 10, 100, 1000 {
10
+
11
+ $number: $n * $multiplier;
12
+
13
+ .#{$z-index}-#{$number} {
14
+ z-index: $number;
15
+ }
16
+ }
17
+ }
18
+ }
19
+
20
+ @include custard-setup-z-index;
@@ -0,0 +1,41 @@
1
+
2
+ $custard-variables-included: true;
3
+
4
+ $custard-namespace: '' !default;
5
+ $custard-prefix-border: bdr !default;
6
+ $custard-prefix-color: color !default;
7
+ $custard-prefix-cursor: cur !default;
8
+ $custard-prefix-display: ds !default;
9
+ $custard-prefix-font: font !default;
10
+ $custard-prefix-margin: mgn !default;
11
+ $custard-prefix-padding: pdg !default;
12
+ $custard-prefix-overflow: over !default;
13
+ $custard-prefix-position: posi !default;
14
+ $custard-prefix-text: text !default;
15
+ $custard-prefix-wrap: wrap !default;
16
+ $custard-prefix-z-index: z-index !default;
17
+
18
+ $custard-vendor-prefixes: (-ms-, -webkit-, -o-, -moz-, '') !default;
19
+
20
+ @mixin with-vendor-prefix($name, $value) {
21
+ @each $prefix in $custard-vendor-prefixes {
22
+ #{$prefix}#{$name}: $value;
23
+ }
24
+ }
25
+
26
+ $custard-hex-list: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F;
27
+
28
+ $custard-direction-hash: (
29
+ '': '',
30
+ -t: -top,
31
+ -tb: (-top, -bottom),
32
+ -tr: (-top, -right),
33
+ -trb: (-top, -right, -bottom),
34
+ -trl: (-top, -right, -left),
35
+ -r: -right,
36
+ -rb: (-right, -bottom),
37
+ -rbl: (-right, -bottom, -left),
38
+ -b: -bottom,
39
+ -bl: (-bottom, -left),
40
+ -l: -left
41
+ );