@nappr/nappr-styles 0.3.2 → 0.3.3
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/README.md +33 -20
- package/dist/styles.css +7462 -1
- package/dist/styles.css.map +1 -1
- package/dist/styles.min.css +3 -0
- package/dist/styles.min.css.map +1 -0
- package/docs/_coverpage.md +2 -2
- package/docs/_sidebar.md +2 -2
- package/docs/docs.theme.css +2 -1
- package/docs/docs.theme.css.map +1 -1
- package/docs/index.html +1 -1
- package/docs/pages/displays.md +26 -8
- package/docs/pages/grid.md +365 -0
- package/docs/pages/helpers.md +30 -18
- package/docs/pages/quick-start.md +100 -14
- package/docs/temp.scss +122 -0
- package/index.d.ts +25 -0
- package/package.json +48 -14
- package/sass/_globals.module.scss +43 -0
- package/sass/_globals.scss +78 -0
- package/sass/components/_.scss +1 -0
- package/sass/components/_badge.scss +58 -0
- package/sass/components/_button.scss +212 -0
- package/sass/components/scrollbar/_.scss +102 -0
- package/sass/configs/_.scss +7 -0
- package/sass/configs/_breakpoints.scss +12 -0
- package/sass/configs/_defaults.scss +6 -0
- package/sass/configs/_grid.scss +8 -0
- package/sass/configs/_palettes.scss +72 -0
- package/sass/configs/_spacing.scss +36 -0
- package/sass/configs/_text.scss +41 -0
- package/sass/configs/_themes.scss +24 -0
- package/sass/core/funcs/_list.scss +43 -0
- package/sass/core/funcs/_map.scss +42 -0
- package/sass/core/funcs/_math.scss +35 -0
- package/sass/core/funcs/_string.scss +47 -0
- package/sass/core/mixins/_.scss +3 -0
- package/{lib → sass/core}/mixins/_links.scss +2 -2
- package/sass/core/mixins/_media-queries.scss +22 -0
- package/sass/core/mixins/_typography.scss +26 -0
- package/sass/core/placeholders/_.scss +4 -0
- package/sass/core/placeholders/_dimensions.scss +16 -0
- package/sass/core/placeholders/_flexbox.scss +11 -0
- package/sass/core/placeholders/_lists.scss +41 -0
- package/sass/core/placeholders/_positions.scss +19 -0
- package/sass/core/placeholders/_typography.scss +10 -0
- package/sass/elements/_.scss +6 -0
- package/sass/elements/_dialog.scss +13 -0
- package/{lib/htmls → sass/elements}/_form.scss +28 -6
- package/sass/elements/_links.scss +21 -0
- package/sass/elements/_lists.scss +11 -0
- package/{lib/htmls → sass/elements}/_table.scss +2 -6
- package/sass/elements/_typography.scss +13 -0
- package/sass/layout/grid/_.scss +4 -0
- package/sass/layout/grid/_columns.scss +32 -0
- package/sass/layout/grid/_gaps.scss +42 -0
- package/sass/layout/grid/_grid.scss +130 -0
- package/sass/layout/grid/_offsets.scss +35 -0
- package/sass/main.scss +59 -0
- package/sass/resets/_.scss +5 -0
- package/sass/resets/_base.scss +69 -0
- package/sass/resets/_nappr.scss +82 -0
- package/sass/themes/_dark.scss +17 -0
- package/sass/themes/_dracula.scss +17 -0
- package/sass/themes/_github-light.scss +17 -0
- package/sass/themes/_light.scss +17 -0
- package/sass/themes/_monokai-pro.scss +17 -0
- package/sass/themes/_night-owl.scss +17 -0
- package/sass/themes/_nord.scss +17 -0
- package/sass/themes/_tokyo-night.scss +17 -0
- package/sass/utilities/_.scss +21 -0
- package/sass/utilities/_dimensions.scss +11 -0
- package/sass/utilities/_displays.scss +111 -0
- package/sass/utilities/_flexbox.scss +81 -0
- package/{lib/helpers → sass/utilities}/_floats.scss +10 -13
- package/sass/utilities/_lists.scss +86 -0
- package/sass/utilities/_negates.scss +121 -0
- package/sass/utilities/_palette.scss +11 -0
- package/sass/utilities/_scrolls.scss +67 -0
- package/sass/utilities/_spacers.scss +120 -0
- package/sass/utilities/_square-grid.scss +33 -0
- package/sass/utilities/_typography.scss +106 -0
- package/sass/utilities/_visibility.scss +60 -0
- package/sass/utilities/_wrap.scss +12 -0
- package/styles.scss +5 -1
- package/lib/_globals.scss +0 -16
- package/lib/_reset.scss +0 -223
- package/lib/customs/scrollbar.scss +0 -40
- package/lib/funcs/_.scss +0 -5
- package/lib/funcs/_get-color.scss +0 -3
- package/lib/funcs/_math.scss +0 -5
- package/lib/funcs/_merge-palette.scss +0 -12
- package/lib/funcs/_rem.scss +0 -104
- package/lib/funcs/_strings.scss +0 -35
- package/lib/grid/_.scss +0 -4
- package/lib/grid/_col.scss +0 -117
- package/lib/grid/_row.scss +0 -117
- package/lib/grid/_square.scss +0 -34
- package/lib/grid/_wrap.scss +0 -39
- package/lib/helpers/_.scss +0 -9
- package/lib/helpers/_displays.scss +0 -151
- package/lib/helpers/_flexbox.scss +0 -105
- package/lib/helpers/_margins.scss +0 -13
- package/lib/helpers/_negates.scss +0 -171
- package/lib/helpers/_scrolls.scss +0 -55
- package/lib/helpers/_texts.scss +0 -101
- package/lib/helpers/_visibility.scss +0 -34
- package/lib/htmls/_.scss +0 -4
- package/lib/htmls/_headings.scss +0 -29
- package/lib/htmls/_links.scss +0 -11
- package/lib/mixins/_.scss +0 -9
- package/lib/mixins/_border-radius.scss +0 -61
- package/lib/mixins/_border.scss +0 -48
- package/lib/mixins/_dimensions.scss +0 -48
- package/lib/mixins/_font-size.scss +0 -22
- package/lib/mixins/_line-height.scss +0 -19
- package/lib/mixins/_margin-padding.scss +0 -66
- package/lib/mixins/_root-variables.scss +0 -11
- package/lib/mixins/_theme.scss +0 -25
- package/lib/styles.scss +0 -19
- package/lib/variables/_.scss +0 -4
- package/lib/variables/_breakpoints.scss +0 -5
- package/lib/variables/_colors.scss +0 -60
- package/lib/variables/_defaults.scss +0 -53
- /package/{lib/helpers → sass/utilities}/_pointers.scss +0 -0
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
@use '../htmls/form';
|
|
2
|
-
|
|
3
|
-
/* -------------------------------------------------
|
|
4
|
-
|
|
5
|
-
NEGATES
|
|
6
|
-
|
|
7
|
-
------------------------------------------------- */
|
|
8
|
-
.no-click {
|
|
9
|
-
@extend .not-allowed;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.no-events {
|
|
13
|
-
pointer-events: none;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.no-no-events {
|
|
17
|
-
pointer-events: none !important;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.no-flex-grow {
|
|
21
|
-
flex: 0 1;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.no-no-flex-grow {
|
|
25
|
-
flex: 0 1 !important;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.no-flex-shrink {
|
|
29
|
-
flex: 1 0;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.no-no-flex-shrink {
|
|
33
|
-
flex: 1 0 !important;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.no-float {
|
|
37
|
-
float: none;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.no-no-float {
|
|
41
|
-
float: none !important;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.no-flex {
|
|
45
|
-
flex: none;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.no-no-flex {
|
|
49
|
-
flex: none !important;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.no-margin {
|
|
53
|
-
margin: 0;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.no-no-margin {
|
|
57
|
-
margin: 0 !important;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.no-padding {
|
|
61
|
-
padding: 0;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.no-no-padding {
|
|
65
|
-
padding: 0 !important;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.no-border {
|
|
69
|
-
border: 0;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.no-no-border {
|
|
73
|
-
border: 0 !important;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.no-radius {
|
|
77
|
-
border-radius: 0;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.no-no-radius {
|
|
81
|
-
border-radius: 0 !important;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.no-background {
|
|
85
|
-
background-color: transparent;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.no-no-background {
|
|
89
|
-
background: none !important;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.no-outline {
|
|
93
|
-
outline: none;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.no-no-outline {
|
|
97
|
-
outline: none !important;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.no-pointer {
|
|
101
|
-
cursor: default;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.no-no-pointer {
|
|
105
|
-
cursor: default !important;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.no-select {
|
|
109
|
-
user-select: none;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.no-no-select {
|
|
113
|
-
user-select: none !important;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.no-underline,
|
|
117
|
-
a.no-underline,
|
|
118
|
-
a.no-underline:hover,
|
|
119
|
-
a.no-underline:active,
|
|
120
|
-
a.no-underline:visited {
|
|
121
|
-
text-decoration: none;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.no-no-underline,
|
|
125
|
-
a.no-no-underline,
|
|
126
|
-
a.no-no-underline:hover,
|
|
127
|
-
a.no-no-underline:active,
|
|
128
|
-
a.no-no-underline:visited {
|
|
129
|
-
text-decoration: none !important;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.no-scroll,
|
|
133
|
-
.no-overflow {
|
|
134
|
-
overflow: hidden;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.no-no-overflow,
|
|
138
|
-
.no-no-scroll {
|
|
139
|
-
overflow: hidden !important;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.no-scroll-x {
|
|
143
|
-
overflow-x: hidden;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.no-no-scroll-x {
|
|
147
|
-
overflow-x: hidden !important;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.no-scroll-y {
|
|
151
|
-
overflow-y: hidden;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.no-no-scroll-y {
|
|
155
|
-
overflow-y: hidden !important;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.nowrap,
|
|
159
|
-
.no-wrap {
|
|
160
|
-
white-space: nowrap;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.no-nowrap,
|
|
164
|
-
.no-no-wrap {
|
|
165
|
-
white-space: nowrap !important;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.no-margin-padding {
|
|
169
|
-
margin: 0;
|
|
170
|
-
padding: 0;
|
|
171
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
@use './displays';
|
|
2
|
-
|
|
3
|
-
.scroll-x {
|
|
4
|
-
overflow-x: scroll;
|
|
5
|
-
overflow-y: hidden;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.scroll-y {
|
|
9
|
-
overflow-x: hidden;
|
|
10
|
-
overflow-y: scroll;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.scroll-x-auto {
|
|
14
|
-
overflow-x: auto;
|
|
15
|
-
overflow-y: hidden;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.scroll-y-auto {
|
|
19
|
-
overflow-x: hidden;
|
|
20
|
-
overflow-y: auto;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/* ----------------------------------------
|
|
24
|
-
|
|
25
|
-
SCROLLBOX
|
|
26
|
-
|
|
27
|
-
---------------------------------------- */
|
|
28
|
-
|
|
29
|
-
.is-scrollbox-wrapper {
|
|
30
|
-
@extend .is-relative;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.is-scrollbox {
|
|
34
|
-
@extend .is-absolute;
|
|
35
|
-
@extend .is-full-layout;
|
|
36
|
-
|
|
37
|
-
overflow-x: auto;
|
|
38
|
-
overflow-y: auto;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.is-scrollbox-y {
|
|
42
|
-
@extend .is-scrollbox;
|
|
43
|
-
|
|
44
|
-
height: auto;
|
|
45
|
-
overflow-x: hidden;
|
|
46
|
-
overflow-y: auto;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.is-scrollbox-x {
|
|
50
|
-
@extend .is-scrollbox;
|
|
51
|
-
|
|
52
|
-
height: auto;
|
|
53
|
-
overflow-x: auto;
|
|
54
|
-
overflow-y: hidden;
|
|
55
|
-
}
|
package/lib/helpers/_texts.scss
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/* ----------------------------
|
|
2
|
-
|
|
3
|
-
Alignments
|
|
4
|
-
|
|
5
|
-
---------------------------- */
|
|
6
|
-
|
|
7
|
-
.text-left {
|
|
8
|
-
text-align: left;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.text-right {
|
|
12
|
-
text-align: right;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.text-center {
|
|
16
|
-
text-align: center;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.text-justify {
|
|
20
|
-
text-align: justify;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.text-overflow,
|
|
24
|
-
.text-ellipsis {
|
|
25
|
-
white-space: nowrap;
|
|
26
|
-
text-overflow: ellipsis;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/* ----------------------------
|
|
30
|
-
|
|
31
|
-
Font Weight
|
|
32
|
-
|
|
33
|
-
---------------------------- */
|
|
34
|
-
|
|
35
|
-
.is-thin {
|
|
36
|
-
font-weight: 100;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.is-light {
|
|
40
|
-
font-weight: 300;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.is-normal,
|
|
44
|
-
.is-regular {
|
|
45
|
-
font-weight: 400;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.is-medium {
|
|
49
|
-
font-weight: 500;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.is-semi-bold {
|
|
53
|
-
font-weight: 600;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.is-bold {
|
|
57
|
-
font-weight: 700;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.is-black,
|
|
61
|
-
.is-extra-bold {
|
|
62
|
-
font-weight: 900;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/* ----------------------------
|
|
66
|
-
|
|
67
|
-
Font Style
|
|
68
|
-
|
|
69
|
-
---------------------------- */
|
|
70
|
-
|
|
71
|
-
.is-italic {
|
|
72
|
-
font-style: italic;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.is-lowercase {
|
|
76
|
-
text-transform: lowercase;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.is-uppercase {
|
|
80
|
-
text-transform: uppercase;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.is-capitalize {
|
|
84
|
-
text-transform: capitalize;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.is-underline {
|
|
88
|
-
text-decoration: underline;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.is-stroked {
|
|
92
|
-
text-decoration: line-through;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.is-small-caps {
|
|
96
|
-
font-variant: small-caps;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.force-line-break {
|
|
100
|
-
white-space: normal;
|
|
101
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
.is-hidden {
|
|
2
|
-
display: none;
|
|
3
|
-
visibility: hidden;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.is-visible {
|
|
7
|
-
display: inherit;
|
|
8
|
-
visibility: inherit;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.hide {
|
|
12
|
-
@extend .is-hidden;
|
|
13
|
-
|
|
14
|
-
font-size: 0;
|
|
15
|
-
height: 0;
|
|
16
|
-
line-height: 0;
|
|
17
|
-
max-height: 0;
|
|
18
|
-
max-width: 0;
|
|
19
|
-
min-height: 0;
|
|
20
|
-
min-width: 0;
|
|
21
|
-
width: 0;
|
|
22
|
-
|
|
23
|
-
&::before {
|
|
24
|
-
@extend .is-hidden;
|
|
25
|
-
|
|
26
|
-
content: none;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&::after {
|
|
30
|
-
@extend .is-hidden;
|
|
31
|
-
|
|
32
|
-
content: none;
|
|
33
|
-
}
|
|
34
|
-
}
|
package/lib/htmls/_.scss
DELETED
package/lib/htmls/_headings.scss
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
h1 {
|
|
2
|
-
font-size: 2.8rem;
|
|
3
|
-
line-height: 1.1;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
h2 {
|
|
7
|
-
font-size: 2.2rem;
|
|
8
|
-
line-height: 1.1;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
h3 {
|
|
12
|
-
font-size: 1.6rem;
|
|
13
|
-
line-height: 1.1;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
h4 {
|
|
17
|
-
font-size: 1.4rem;
|
|
18
|
-
line-height: 1.1;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
h5 {
|
|
22
|
-
font-size: 1.2rem;
|
|
23
|
-
line-height: 1.1;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
h6 {
|
|
27
|
-
font-size: 1.1rem;
|
|
28
|
-
line-height: 1.1;
|
|
29
|
-
}
|
package/lib/htmls/_links.scss
DELETED
package/lib/mixins/_.scss
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
@use '../funcs/rem' as rem;
|
|
2
|
-
@use "../variables/defaults" as defaults;
|
|
3
|
-
@use '../funcs/math' as math;
|
|
4
|
-
|
|
5
|
-
@each $size in defaults.$BORDER_RADIUS_MAP {
|
|
6
|
-
$sides: (all, top, left, right, bottom);
|
|
7
|
-
|
|
8
|
-
$pixelValue: math.number-to-pixel($size);
|
|
9
|
-
|
|
10
|
-
@each $side in $sides {
|
|
11
|
-
@if $side == 'all' {
|
|
12
|
-
// all border radius
|
|
13
|
-
.rad#{$size},
|
|
14
|
-
.brad#{$size} {
|
|
15
|
-
$value: rem.convert($pixelValue);
|
|
16
|
-
border-radius: $value;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@else if $side == 'top' {
|
|
21
|
-
.radt#{$size},
|
|
22
|
-
.bradt#{$size} {
|
|
23
|
-
$value: rem.convert($pixelValue);
|
|
24
|
-
border-top-left-radius: $value;
|
|
25
|
-
border-top-right-radius: $value;
|
|
26
|
-
border-style: defaults.$BORDER_STYLE;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@else if $side == 'bottom' {
|
|
31
|
-
.radb#{$size},
|
|
32
|
-
.bradb#{$size} {
|
|
33
|
-
$value: rem.convert($pixelValue);
|
|
34
|
-
border-bottom-right-radius: $value;
|
|
35
|
-
border-bottom-left-radius: $value;
|
|
36
|
-
border-style: defaults.$BORDER_STYLE;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@else if $side == 'right' {
|
|
41
|
-
.radt#{$size},
|
|
42
|
-
.bradt#{$size} {
|
|
43
|
-
$value: rem.convert($pixelValue);
|
|
44
|
-
border-top-right-radius: $value;
|
|
45
|
-
border-bottom-right-radius: $value;
|
|
46
|
-
border-style: defaults.$BORDER_STYLE;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@else if $side == 'left' {
|
|
51
|
-
.radl#{$size},
|
|
52
|
-
.bradl#{$size} {
|
|
53
|
-
$value: rem.convert($pixelValue);
|
|
54
|
-
border-top-left-radius: $value;
|
|
55
|
-
border-bottom-left-radius: $value;
|
|
56
|
-
|
|
57
|
-
border-style: defaults.$BORDER_STYLE;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
package/lib/mixins/_border.scss
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
@use "sass:string";
|
|
2
|
-
@use '../funcs/rem' as rem;
|
|
3
|
-
@use '../funcs/math' as math;
|
|
4
|
-
@use '../variables/defaults' as defaults;
|
|
5
|
-
|
|
6
|
-
@each $size in defaults.$BORDER_SIZE_MAP {
|
|
7
|
-
$sides: (all, topbottom, leftright, top, left, right, bottom);
|
|
8
|
-
|
|
9
|
-
// convert value to SASS variables with unit
|
|
10
|
-
$pixelValue: math.number-to-pixel($size);
|
|
11
|
-
|
|
12
|
-
@each $side in $sides {
|
|
13
|
-
@if $side == 'all' {
|
|
14
|
-
.b#{$size} {
|
|
15
|
-
$value : rem.convert($pixelValue);
|
|
16
|
-
border-width: $value;
|
|
17
|
-
border-style: defaults.$BORDER_STYLE;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@else if $side == 'topbottom' {
|
|
22
|
-
.by#{$size} {
|
|
23
|
-
$value : rem.convert($pixelValue);
|
|
24
|
-
border-top-width: $value;
|
|
25
|
-
border-bottom-width: $value;
|
|
26
|
-
border-style: defaults.$BORDER_STYLE;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@else if $side == 'leftright' {
|
|
31
|
-
.bx#{$size} {
|
|
32
|
-
$value : rem.convert($pixelValue);
|
|
33
|
-
border-left-width: $value;
|
|
34
|
-
border-right-width: $value;
|
|
35
|
-
border-style: defaults.$BORDER_STYLE;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@else {
|
|
40
|
-
// .bl, .br, .bt, .bb
|
|
41
|
-
.b#{string.slice($side, 0, 1)}#{$size} {
|
|
42
|
-
$value : rem.convert($pixelValue);
|
|
43
|
-
border-#{$side}-width: $value;
|
|
44
|
-
border-style: defaults.$BORDER_STYLE;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
@use '../funcs/rem' as rem;
|
|
2
|
-
@use '../variables/defaults' as defaults;
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* USAGE:
|
|
6
|
-
* ---------------------
|
|
7
|
-
*
|
|
8
|
-
* .w33 -> width 33%
|
|
9
|
-
*/
|
|
10
|
-
@mixin withHeight($size) {
|
|
11
|
-
height: rem.convert($size);
|
|
12
|
-
max-height: rem.convert($size);
|
|
13
|
-
min-height: rem.convert($size);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@mixin withWidth($size) {
|
|
17
|
-
max-width: rem.convert($size);
|
|
18
|
-
min-width: rem.convert($size);
|
|
19
|
-
width: rem.convert($size);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@mixin withSize($width, $height: null) {
|
|
23
|
-
@include width($width);
|
|
24
|
-
|
|
25
|
-
@if ($height) {
|
|
26
|
-
@include height($height);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@else {
|
|
30
|
-
@include height($width);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@mixin squareSize($size) {
|
|
35
|
-
@include withSize($size);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@each $size in defaults.$DIMENSIONS_MAP {
|
|
39
|
-
$percentValue: ($size * 1%);
|
|
40
|
-
|
|
41
|
-
.w#{$size} {
|
|
42
|
-
width: $percentValue;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.h#{$size} {
|
|
46
|
-
height: $percentValue;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
@use '../funcs/rem' as rem;
|
|
2
|
-
@use '../variables/defaults' as defaults;
|
|
3
|
-
@use '../funcs/math' as math;
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* USAGE:
|
|
7
|
-
* ---------------------
|
|
8
|
-
*
|
|
9
|
-
* .fs12 -> font-size 12px converted to rem
|
|
10
|
-
*/
|
|
11
|
-
@mixin fontSize($pixelValue) {
|
|
12
|
-
$value: rem.convert($pixelValue);
|
|
13
|
-
font-size: $value;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@each $size in defaults.$FONT_SIZES_MAP {
|
|
17
|
-
$pixelValue: math.number-to-pixel($size);
|
|
18
|
-
|
|
19
|
-
.fs#{$size} {
|
|
20
|
-
@include fontSize($pixelValue);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
@use '../variables/defaults' as defaults;
|
|
2
|
-
@use '../funcs/math' as math;
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* USAGE:
|
|
6
|
-
* ---------------------
|
|
7
|
-
*
|
|
8
|
-
* .ln12 -> line-height 12px converted to rem
|
|
9
|
-
*/
|
|
10
|
-
@mixin lineHeight($value) {
|
|
11
|
-
$pixelValue: math.number-to-pixel($value);
|
|
12
|
-
line-height: $pixelValue;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@each $size in defaults.$LINE_HEIGHT_MAP {
|
|
16
|
-
.lh#{$size} {
|
|
17
|
-
@include lineHeight($size);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
@use "sass:string";
|
|
2
|
-
@use '../funcs/rem' as rem;
|
|
3
|
-
@use '../variables/defaults' as defaults;
|
|
4
|
-
@use '../funcs/math' as math;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* USAGE:
|
|
8
|
-
* ---------------------
|
|
9
|
-
*
|
|
10
|
-
* .m12 -> margin top-right-bottom-left 12px converted to rem
|
|
11
|
-
* .mx12 -> margin right-left 12px converted to rem
|
|
12
|
-
* .pr12 -> padding right 12px converted to rem
|
|
13
|
-
*/
|
|
14
|
-
@each $size in defaults.$SPACINGS_MAP {
|
|
15
|
-
$sides: (all, topbottom, leftright, top, left, right, bottom);
|
|
16
|
-
|
|
17
|
-
// convert value to SASS variables with unit
|
|
18
|
-
$nbx: math.number-to-pixel($size);
|
|
19
|
-
$pixelValue: rem.convert($nbx);
|
|
20
|
-
|
|
21
|
-
@each $side in $sides {
|
|
22
|
-
@if $side == 'all' {
|
|
23
|
-
.m#{$size} {
|
|
24
|
-
margin: $pixelValue;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.p#{$size} {
|
|
28
|
-
padding: $pixelValue;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@else if $side == 'topbottom' {
|
|
33
|
-
.my#{$size} {
|
|
34
|
-
margin-top: $pixelValue;
|
|
35
|
-
margin-bottom: $pixelValue;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.py#{$size} {
|
|
39
|
-
padding-top: $pixelValue;
|
|
40
|
-
padding-bottom: $pixelValue;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@else if $side == 'leftright' {
|
|
45
|
-
.mx#{$size} {
|
|
46
|
-
margin-left: $pixelValue;
|
|
47
|
-
margin-right: $pixelValue;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.px#{$size} {
|
|
51
|
-
padding-left: $pixelValue;
|
|
52
|
-
padding-right: $pixelValue;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@else {
|
|
57
|
-
.m#{string.slice($side, 0, 1)}#{$size} {
|
|
58
|
-
margin-#{$side}: $pixelValue;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.p#{string.slice($side, 0, 1)}#{$size} {
|
|
62
|
-
padding-#{$side}: $pixelValue;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|