coer-elements 2.0.23 → 2.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/lib/coer-numberbox/coer-numberbox.component.d.ts +8 -1
- package/fesm2022/coer-elements-components.mjs +46 -13
- package/fesm2022/coer-elements-components.mjs.map +1 -1
- package/fesm2022/coer-elements-pages.mjs +2 -2
- package/fesm2022/coer-elements-pages.mjs.map +1 -1
- package/fesm2022/coer-elements-tools.mjs +74 -82
- package/fesm2022/coer-elements-tools.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/animations.scss +101 -8
- package/styles/borders.scss +126 -0
- package/styles/coer-elements.css +1 -19777
- package/styles/colors.scss +103 -112
- package/styles/components.scss +18 -0
- package/styles/cursors.scss +12 -18
- package/styles/{font.scss → fonts.scss} +7 -1
- package/styles/icons/icons-fill-none.scss +3 -0
- package/styles/icons/icons-fill.scss +21 -0
- package/styles/icons/icons-regular-none.scss +3 -0
- package/styles/icons/icons-regular.scss +17 -0
- package/styles/icons/icons.scss +67 -0
- package/styles/index.scss +81 -51
- package/styles/layout-flex-wrap.scss +96 -94
- package/styles/layout-flex.scss +57 -53
- package/styles/layout-grid.scss +22 -14
- package/styles/margins.scss +60 -0
- package/styles/overflow.scss +10 -8
- package/styles/paddings.scss +60 -0
- package/styles/paragraphs.scss +14 -0
- package/styles/positions.scss +60 -0
- package/styles/width-height.scss +123 -118
- package/svg/fill/alarm.fill.svg +4 -0
- package/svg/fill/bell.fill.svg +4 -0
- package/svg/fill/bulb-idea.fill.svg +4 -0
- package/svg/fill/cloud.fill.svg +4 -0
- package/svg/fill/components.fill.svg +4 -0
- package/svg/fill/css.fill.svg +4 -0
- package/svg/fill/dot.fill.svg +4 -0
- package/svg/fill/download.fill.svg +4 -0
- package/svg/fill/gear.fill.svg +4 -0
- package/svg/fill/heart.fill.svg +4 -0
- package/svg/{house-fill.svg → fill/house.fill.svg} +1 -0
- package/svg/fill/html.fill.svg +4 -0
- package/svg/fill/javascript.fill.svg +4 -0
- package/svg/fill/none/bell.fill.none.svg +4 -0
- package/svg/fill/pin-geo.fill.svg +4 -0
- package/svg/fill/screwdriver-wrench.fill.svg +4 -0
- package/svg/fill/toolbox.fill.svg +4 -0
- package/svg/fill/trash-can.fill.svg +4 -0
- package/svg/fill/trophy.fill.svg +4 -0
- package/svg/fill/user.fill.svg +4 -0
- package/svg/regular/alarm.svg +5 -0
- package/svg/{array.svg → regular/array.svg} +1 -0
- package/svg/regular/arrows-sync.svg +4 -0
- package/svg/regular/bars.svg +4 -0
- package/svg/regular/bell.svg +4 -0
- package/svg/regular/cloud.svg +4 -0
- package/svg/regular/components.svg +4 -0
- package/svg/{developer.svg → regular/developer.svg} +2 -1
- package/svg/{envelope.svg → regular/envelope.svg} +2 -1
- package/svg/regular/heart.svg +4 -0
- package/svg/regular/none/bell.none.svg +4 -0
- package/svg/regular/pin-geo.svg +5 -0
- package/svg/regular/t.svg +4 -0
- package/svg/regular/trash-can.svg +5 -0
- package/svg/regular/trophy.svg +4 -0
- package/svg/{whatsapp.svg → regular/whatsapp.svg} +2 -1
- package/styles/border.scss +0 -30
- package/styles/icons.scss +0 -60
- package/styles/margin.scss +0 -21
- package/styles/padding.scss +0 -21
- package/styles/paragraph.scss +0 -3
- package/styles/position.scss +0 -52
- package/svg/bulb-light-idea-fill.svg +0 -3
- package/svg/css.svg +0 -3
- package/svg/html.svg +0 -3
- package/svg/javascript.svg +0 -3
- /package/styles/{scroll-bar.scss → scroll-bars.scss} +0 -0
@@ -1,114 +1,116 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
flex-wrap: wrap !important;
|
4
|
-
gap: 10px;
|
5
|
-
}
|
6
|
-
|
7
|
-
@each $key, $value in (
|
8
|
-
'top': flex-start,
|
9
|
-
'middle': center,
|
10
|
-
'bottom': flex-end
|
11
|
-
) {
|
12
|
-
|
13
|
-
.flex-wrap-#{$key}-left {
|
1
|
+
@mixin mixin($breakpoint) {
|
2
|
+
.#{$breakpoint}flex-wrap {
|
14
3
|
display: flex !important;
|
15
|
-
align-items: $value !important;
|
16
|
-
justify-content: flex-start !important;
|
17
4
|
flex-wrap: wrap !important;
|
18
5
|
gap: 10px;
|
19
6
|
}
|
20
7
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
gap: 10px;
|
35
|
-
}
|
36
|
-
|
37
|
-
.flex-wrap-#{$key}-between {
|
38
|
-
display: flex !important;
|
39
|
-
align-items: $value !important;
|
40
|
-
justify-content: space-between !important;
|
41
|
-
flex-wrap: wrap !important;
|
42
|
-
gap: 10px;
|
43
|
-
}
|
44
|
-
|
45
|
-
.flex-wrap-#{$key}-around {
|
46
|
-
display: flex !important;
|
47
|
-
align-items: $value !important;
|
48
|
-
justify-content: space-around !important;
|
49
|
-
flex-wrap: wrap !important;
|
50
|
-
gap: 10px;
|
51
|
-
}
|
8
|
+
@each $key, $value in (
|
9
|
+
'top': flex-start,
|
10
|
+
'middle': center,
|
11
|
+
'bottom': flex-end
|
12
|
+
) {
|
13
|
+
|
14
|
+
.#{$breakpoint}flex-wrap-#{$key}-left {
|
15
|
+
display: flex !important;
|
16
|
+
align-items: $value !important;
|
17
|
+
justify-content: flex-start !important;
|
18
|
+
flex-wrap: wrap !important;
|
19
|
+
gap: 10px;
|
20
|
+
}
|
52
21
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
22
|
+
.#{$breakpoint}flex-wrap-#{$key}-center {
|
23
|
+
display: flex !important;
|
24
|
+
align-items: $value !important;
|
25
|
+
justify-content: center !important;
|
26
|
+
flex-wrap: wrap !important;
|
27
|
+
gap: 10px;
|
28
|
+
}
|
29
|
+
|
30
|
+
.#{$breakpoint}flex-wrap-#{$key}-right {
|
31
|
+
display: flex !important;
|
32
|
+
align-items: $value !important;
|
33
|
+
justify-content: flex-end !important;
|
34
|
+
flex-wrap: wrap !important;
|
35
|
+
gap: 10px;
|
36
|
+
}
|
37
|
+
|
38
|
+
.#{$breakpoint}flex-wrap-#{$key}-between {
|
39
|
+
display: flex !important;
|
40
|
+
align-items: $value !important;
|
41
|
+
justify-content: space-between !important;
|
42
|
+
flex-wrap: wrap !important;
|
43
|
+
gap: 10px;
|
44
|
+
}
|
45
|
+
|
46
|
+
.#{$breakpoint}flex-wrap-#{$key}-around {
|
47
|
+
display: flex !important;
|
48
|
+
align-items: $value !important;
|
49
|
+
justify-content: space-around !important;
|
50
|
+
flex-wrap: wrap !important;
|
51
|
+
gap: 10px;
|
52
|
+
}
|
53
|
+
|
54
|
+
.#{$breakpoint}flex-wrap-#{$key}-evenly {
|
55
|
+
display: flex !important;
|
56
|
+
align-items: $value !important;
|
57
|
+
justify-content: space-evenly !important;
|
58
|
+
flex-wrap: wrap !important;
|
59
|
+
gap: 10px;
|
60
|
+
}
|
59
61
|
}
|
60
|
-
}
|
61
|
-
|
62
62
|
|
63
|
-
@for $i from 1 through 100 {
|
64
|
-
.flex-item-#{$i}px {
|
65
|
-
flex-basis: $i * 1px !important;
|
66
|
-
}
|
67
|
-
|
68
|
-
.flex-item-#{$i} {
|
69
|
-
flex-basis: $i * 1% !important;
|
70
|
-
}
|
71
63
|
|
72
|
-
|
73
|
-
flex-
|
74
|
-
|
75
|
-
|
64
|
+
@for $i from 1 through 100 {
|
65
|
+
.#{$breakpoint}flex-item-#{$i}px {
|
66
|
+
flex-basis: $i * 1px !important;
|
67
|
+
}
|
76
68
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
}
|
81
|
-
}
|
69
|
+
.#{$breakpoint}flex-item-#{$i} {
|
70
|
+
flex-basis: $i * 1% !important;
|
71
|
+
}
|
82
72
|
|
73
|
+
.#{$breakpoint}flex-item-grow-#{$i}px {
|
74
|
+
flex-grow: 1 !important;
|
75
|
+
flex-basis: $i * 1px !important;
|
76
|
+
}
|
83
77
|
|
84
|
-
|
85
|
-
|
86
|
-
|
78
|
+
.#{$breakpoint}flex-item-grow-#{$i} {
|
79
|
+
flex-grow: 1 !important;
|
80
|
+
flex-basis: $i * 1% !important;
|
81
|
+
}
|
82
|
+
}
|
87
83
|
|
88
|
-
.flex-item-grow-150px {
|
89
|
-
flex-grow: 1 !important;
|
90
|
-
flex-basis: 150px !important;
|
91
|
-
}
|
92
|
-
|
93
84
|
|
94
|
-
|
95
|
-
|
96
|
-
flex-basis: $i * 100px !important;
|
85
|
+
.#{$breakpoint}flex-item-150px {
|
86
|
+
flex-basis: 150px !important;
|
97
87
|
}
|
98
88
|
|
99
|
-
|
89
|
+
.#{$breakpoint}flex-item-grow-150px {
|
100
90
|
flex-grow: 1 !important;
|
101
|
-
flex-basis:
|
102
|
-
}
|
91
|
+
flex-basis: 150px !important;
|
92
|
+
}
|
93
|
+
|
103
94
|
|
104
|
-
@
|
105
|
-
|
106
|
-
flex-basis: $i * 100px
|
107
|
-
}
|
95
|
+
@for $i from 2 through 10 {
|
96
|
+
.#{$breakpoint}flex-item-#{$i * 100}px {
|
97
|
+
flex-basis: $i * 100px !important;
|
98
|
+
}
|
108
99
|
|
109
|
-
|
100
|
+
.#{$breakpoint}flex-item-grow-#{$i * 100}px {
|
110
101
|
flex-grow: 1 !important;
|
111
|
-
flex-basis: $i * 100px
|
112
|
-
}
|
113
|
-
|
114
|
-
|
102
|
+
flex-basis: $i * 100px !important;
|
103
|
+
}
|
104
|
+
|
105
|
+
@if($i * 100 + 50 < 1000) {
|
106
|
+
.#{$breakpoint}flex-item-#{$i * 100 + 50}px {
|
107
|
+
flex-basis: $i * 100px + 50px;
|
108
|
+
}
|
109
|
+
|
110
|
+
.#{$breakpoint}flex-item-grow-#{$i * 100 + 50}px {
|
111
|
+
flex-grow: 1 !important;
|
112
|
+
flex-basis: $i * 100px + 50px;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
package/styles/layout-flex.scss
CHANGED
@@ -1,62 +1,66 @@
|
|
1
|
-
@
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
@mixin mixin($breakpoint) {
|
2
|
+
@each $key, $value in (
|
3
|
+
'top': flex-start,
|
4
|
+
'middle': center,
|
5
|
+
'bottom': flex-end
|
6
|
+
) {
|
6
7
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
.#{$breakpoint}flex-#{$key}-left {
|
9
|
+
display: flex !important;
|
10
|
+
align-items: $value !important;
|
11
|
+
justify-content: flex-start !important;
|
12
|
+
}
|
12
13
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
.#{$breakpoint}flex-#{$key}-center {
|
15
|
+
display: flex !important;
|
16
|
+
align-items: $value !important;
|
17
|
+
justify-content: center !important;
|
18
|
+
}
|
18
19
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
20
|
+
.#{$breakpoint}flex-#{$key}-right {
|
21
|
+
display: flex !important;
|
22
|
+
align-items: $value !important;
|
23
|
+
justify-content: flex-end !important;
|
24
|
+
}
|
25
|
+
|
26
|
+
.#{$breakpoint}flex-#{$key}-between {
|
27
|
+
display: flex !important;
|
28
|
+
align-items: $value !important;
|
29
|
+
justify-content: space-between !important;
|
30
|
+
}
|
31
|
+
|
32
|
+
.#{$breakpoint}flex-#{$key}-around {
|
33
|
+
display: flex !important;
|
34
|
+
align-items: $value !important;
|
35
|
+
justify-content: space-around !important;
|
36
|
+
}
|
37
|
+
|
38
|
+
.#{$breakpoint}flex-#{$key}-evenly {
|
39
|
+
display: flex !important;
|
40
|
+
align-items: $value !important;
|
41
|
+
justify-content: space-evenly !important;
|
42
|
+
}
|
29
43
|
}
|
30
44
|
|
31
|
-
.flex-#{$key}-around {
|
32
|
-
display: flex !important;
|
33
|
-
align-items: $value !important;
|
34
|
-
justify-content: space-around !important;
|
35
|
-
}
|
36
45
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
'column-reverse': column-reverse
|
50
|
-
) {
|
51
|
-
.flex-#{$key} {
|
52
|
-
display: flex !important;
|
53
|
-
flex-direction: $value !important;
|
54
|
-
}
|
55
|
-
}
|
46
|
+
// flex direction
|
47
|
+
@each $key, $value in (
|
48
|
+
'row': row,
|
49
|
+
'row-reverse': row-reverse,
|
50
|
+
'column': column,
|
51
|
+
'column-reverse': column-reverse
|
52
|
+
) {
|
53
|
+
.#{$breakpoint}flex-#{$key} {
|
54
|
+
display: flex !important;
|
55
|
+
flex-direction: $value !important;
|
56
|
+
}
|
57
|
+
}
|
56
58
|
|
57
59
|
|
58
|
-
|
59
|
-
|
60
|
-
gap
|
60
|
+
// gap
|
61
|
+
@for $i from 0 through 100 {
|
62
|
+
.#{$breakpoint}gap-#{$i}px {
|
63
|
+
gap: $i * 1px;
|
64
|
+
}
|
61
65
|
}
|
62
|
-
}
|
66
|
+
}
|
package/styles/layout-grid.scss
CHANGED
@@ -1,18 +1,26 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
@mixin mixin($breakpoint) {
|
2
|
+
.#{$breakpoint}grid {
|
3
|
+
display: grid !important;
|
4
|
+
margin: 10px;
|
5
|
+
gap: 10px;
|
6
|
+
}
|
6
7
|
|
7
|
-
$colums: 12;
|
8
|
-
@for $colum from 1 through $colums {
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
$colums: 12;
|
9
|
+
@for $colum from 1 through $colums {
|
10
|
+
.#{$breakpoint}grid-columns-#{$colum} {
|
11
|
+
grid-template-columns: repeat($colum, 1fr) !important;
|
12
|
+
}
|
12
13
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
@for $span from 1 through ($colums - ($colum - 1)) {
|
15
|
+
.#{$breakpoint}grid-cell-#{$colum}-#{$span} {
|
16
|
+
grid-column: $colum / span $span !important;
|
17
|
+
}
|
18
|
+
}
|
17
19
|
}
|
20
|
+
}
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
.fill-space {
|
25
|
+
flex: 1 1 auto;
|
18
26
|
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
@mixin mixin($breakpoint) {
|
2
|
+
@for $i from 0 through 100 {
|
3
|
+
.#{$breakpoint}margin-#{$i}px {
|
4
|
+
margin: $i * 1px !important;
|
5
|
+
}
|
6
|
+
|
7
|
+
// X - Y
|
8
|
+
.#{$breakpoint}margin-y-#{$i}px {
|
9
|
+
margin-top: $i * 1px !important;
|
10
|
+
margin-bottom: $i * 1px !important;
|
11
|
+
}
|
12
|
+
|
13
|
+
.#{$breakpoint}margin-x-#{$i}px {
|
14
|
+
margin-left: $i * 1px !important;
|
15
|
+
margin-right: $i * 1px !important;
|
16
|
+
}
|
17
|
+
|
18
|
+
// CUBE
|
19
|
+
.#{$breakpoint}margin-trb-#{$i}px {
|
20
|
+
margin-top: $i * 1px !important;
|
21
|
+
margin-right: $i * 1px !important;
|
22
|
+
margin-bottom: $i * 1px !important;
|
23
|
+
}
|
24
|
+
|
25
|
+
.#{$breakpoint}margin-rbl-#{$i}px {
|
26
|
+
margin-right: $i * 1px !important;
|
27
|
+
margin-bottom: $i * 1px !important;
|
28
|
+
margin-left: $i * 1px !important;
|
29
|
+
}
|
30
|
+
|
31
|
+
.#{$breakpoint}margin-blt-#{$i}px {
|
32
|
+
margin-bottom: $i * 1px !important;
|
33
|
+
margin-left: $i * 1px !important;
|
34
|
+
margin-top: $i * 1px !important;
|
35
|
+
}
|
36
|
+
|
37
|
+
.#{$breakpoint}margin-ltr-#{$i}px {
|
38
|
+
margin-left: $i * 1px !important;
|
39
|
+
margin-top: $i * 1px !important;
|
40
|
+
margin-right: $i * 1px !important;
|
41
|
+
}
|
42
|
+
|
43
|
+
// ONE SIDE
|
44
|
+
.#{$breakpoint}margin-top-#{$i}px {
|
45
|
+
margin-top: $i * 1px !important;
|
46
|
+
}
|
47
|
+
|
48
|
+
.#{$breakpoint}margin-right-#{$i}px {
|
49
|
+
margin-right: $i * 1px !important;
|
50
|
+
}
|
51
|
+
|
52
|
+
.#{$breakpoint}margin-bottom-#{$i}px {
|
53
|
+
margin-bottom: $i * 1px !important;
|
54
|
+
}
|
55
|
+
|
56
|
+
.#{$breakpoint}margin-left-#{$i}px {
|
57
|
+
margin-left: $i * 1px !important;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
package/styles/overflow.scss
CHANGED
@@ -1,9 +1,11 @@
|
|
1
|
-
@
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
overflow
|
1
|
+
@mixin mixin($breakpoint) {
|
2
|
+
@each $key, $value in (
|
3
|
+
'auto': auto,
|
4
|
+
'visible': visible,
|
5
|
+
'hidden': hidden,
|
6
|
+
) {
|
7
|
+
.#{$breakpoint}overflow-#{$key} {
|
8
|
+
overflow: $value !important;
|
9
|
+
}
|
8
10
|
}
|
9
|
-
}
|
11
|
+
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
@mixin mixin($breakpoint) {
|
2
|
+
@for $i from 0 through 100 {
|
3
|
+
.#{$breakpoint}padding-#{$i}px {
|
4
|
+
padding: $i * 1px !important;
|
5
|
+
}
|
6
|
+
|
7
|
+
// X - Y
|
8
|
+
.#{$breakpoint}padding-y-#{$i}px {
|
9
|
+
padding-top: $i * 1px !important;
|
10
|
+
padding-bottom: $i * 1px !important;
|
11
|
+
}
|
12
|
+
|
13
|
+
.#{$breakpoint}padding-x-#{$i}px {
|
14
|
+
padding-left: $i * 1px !important;
|
15
|
+
padding-right: $i * 1px !important;
|
16
|
+
}
|
17
|
+
|
18
|
+
// CUBE
|
19
|
+
.#{$breakpoint}padding-trb-#{$i}px {
|
20
|
+
padding-top: $i * 1px !important;
|
21
|
+
padding-right: $i * 1px !important;
|
22
|
+
padding-bottom: $i * 1px !important;
|
23
|
+
}
|
24
|
+
|
25
|
+
.#{$breakpoint}padding-rbl-#{$i}px {
|
26
|
+
padding-right: $i * 1px !important;
|
27
|
+
padding-bottom: $i * 1px !important;
|
28
|
+
padding-left: $i * 1px !important;
|
29
|
+
}
|
30
|
+
|
31
|
+
.#{$breakpoint}padding-blt-#{$i}px {
|
32
|
+
padding-bottom: $i * 1px !important;
|
33
|
+
padding-left: $i * 1px !important;
|
34
|
+
padding-top: $i * 1px !important;
|
35
|
+
}
|
36
|
+
|
37
|
+
.#{$breakpoint}padding-ltr-#{$i}px {
|
38
|
+
padding-left: $i * 1px !important;
|
39
|
+
padding-top: $i * 1px !important;
|
40
|
+
padding-right: $i * 1px !important;
|
41
|
+
}
|
42
|
+
|
43
|
+
// ONE SIDE
|
44
|
+
.#{$breakpoint}padding-top-#{$i}px {
|
45
|
+
padding-top: $i * 1px !important;
|
46
|
+
}
|
47
|
+
|
48
|
+
.#{$breakpoint}padding-right-#{$i}px {
|
49
|
+
padding-right: $i * 1px !important;
|
50
|
+
}
|
51
|
+
|
52
|
+
.#{$breakpoint}padding-bottom-#{$i}px {
|
53
|
+
padding-bottom: $i * 1px !important;
|
54
|
+
}
|
55
|
+
|
56
|
+
.#{$breakpoint}padding-left-#{$i}px {
|
57
|
+
padding-left: $i * 1px !important;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
h1, h2, h3, h4, h5, h6, p, pre, hr, figure, fieldset {
|
2
|
+
margin: 0px;
|
3
|
+
padding: 0px;
|
4
|
+
}
|
5
|
+
|
6
|
+
.no-selection::selection {
|
7
|
+
background-color: transparent !important;
|
8
|
+
}
|
9
|
+
|
10
|
+
@mixin mixin($breakpoint) {
|
11
|
+
.#{$breakpoint}white-space-nowrap {
|
12
|
+
white-space: nowrap !important;
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
@mixin mixin($breakpoint) {
|
2
|
+
|
3
|
+
//z-index
|
4
|
+
$counter: 10;
|
5
|
+
@for $i from 0 through $counter {
|
6
|
+
.#{$breakpoint}position-#{$i + 1} {
|
7
|
+
z-index: $counter - $i !important;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
|
12
|
+
//position
|
13
|
+
@each $key, $value in (
|
14
|
+
'static' : static,
|
15
|
+
'relative': relative,
|
16
|
+
'absolute': absolute,
|
17
|
+
'fixed' : fixed,
|
18
|
+
'sticky' : sticky
|
19
|
+
) {
|
20
|
+
.#{$breakpoint}position-#{$key} {
|
21
|
+
position: $value !important;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
|
26
|
+
//
|
27
|
+
@for $i from 0 through 100 {
|
28
|
+
.#{$breakpoint}top-#{$i}px {
|
29
|
+
top: $i * 1px !important;
|
30
|
+
}
|
31
|
+
|
32
|
+
.#{$breakpoint}top-negative-#{$i}px {
|
33
|
+
top: $i * -1px !important;
|
34
|
+
}
|
35
|
+
|
36
|
+
.#{$breakpoint}right-#{$i}px {
|
37
|
+
right: $i * 1px !important;
|
38
|
+
}
|
39
|
+
|
40
|
+
.#{$breakpoint}right-negative-#{$i}px {
|
41
|
+
right: $i * -1px !important;
|
42
|
+
}
|
43
|
+
|
44
|
+
.#{$breakpoint}bottom-#{$i}px {
|
45
|
+
bottom: $i * 1px !important;
|
46
|
+
}
|
47
|
+
|
48
|
+
.#{$breakpoint}bottom-negative-#{$i}px {
|
49
|
+
bottom: $i * -1px !important;
|
50
|
+
}
|
51
|
+
|
52
|
+
.#{$breakpoint}left-#{$i}px {
|
53
|
+
left: $i * 1px !important;
|
54
|
+
}
|
55
|
+
|
56
|
+
.#{$breakpoint}left-negative-#{$i}px {
|
57
|
+
left: $i * -1px !important;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|