@nappr/nappr-styles 0.3.1 → 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
package/lib/funcs/_rem.scss
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
@use 'sass:math';
|
|
2
|
-
@use 'sass:meta' as meta;
|
|
3
|
-
@use 'sass:list' as list;
|
|
4
|
-
|
|
5
|
-
$rem-px-only: true !default;
|
|
6
|
-
$rem-fallback: true !default;
|
|
7
|
-
|
|
8
|
-
/* ------------------------------------
|
|
9
|
-
|
|
10
|
-
SOURCE: https://github.com/pierreburel/sass-rem
|
|
11
|
-
|
|
12
|
-
------------------------------------ */
|
|
13
|
-
@function rem-separator($list, $separator: false) {
|
|
14
|
-
@if $separator == 'comma' or $separator == 'space' {
|
|
15
|
-
@return list.append($list, null, $separator);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@if meta.function-exists('list-separator') == true {
|
|
19
|
-
@return list.separator($list);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// list-separator polyfill by Hugo Giraudel (https://sass-compatibility.github.io/#list_separator_function)
|
|
23
|
-
$test-list: ();
|
|
24
|
-
|
|
25
|
-
@each $item in $list {
|
|
26
|
-
$test-list: list.append($test-list, $item, space);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@return if($test-list == $list, space, comma);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@mixin rem-baseline($zoom: 100%) {
|
|
33
|
-
$div: math.div($zoom, $body-font-size);
|
|
34
|
-
|
|
35
|
-
font-size: $div * $rem-baseline;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@function rem-convert($to, $values...) {
|
|
39
|
-
$result: ();
|
|
40
|
-
$separator: rem-separator($values);
|
|
41
|
-
|
|
42
|
-
@each $value in $values {
|
|
43
|
-
@if meta.type-of($value) == 'number' and math.unit($value) == 'rem' and $to == 'px' {
|
|
44
|
-
$div: math.div($value, 1rem);
|
|
45
|
-
$result: list.append($result, $div * $rem-baseline, $separator);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@else if
|
|
49
|
-
meta.type-of($value) ==
|
|
50
|
-
'number' and
|
|
51
|
-
math.unit($value) ==
|
|
52
|
-
'px' and
|
|
53
|
-
$to ==
|
|
54
|
-
'rem' {
|
|
55
|
-
$div: math.div($value, $rem-baseline);
|
|
56
|
-
$result: list.append($result, $div * 1rem, $separator);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
@else if meta.type-of($value) == 'list' {
|
|
60
|
-
$value-separator: rem-separator($value);
|
|
61
|
-
$value: rem-convert($to, $value...);
|
|
62
|
-
$value: rem-separator($value, $value-separator);
|
|
63
|
-
$result: list.append($result, $value, $separator);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@else {
|
|
67
|
-
$result: list.append($result, $value, $separator);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
@return if(list.length($result) == 1, list.nth($result, 1), $result);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
@function convert($values...) {
|
|
75
|
-
@if $rem-px-only {
|
|
76
|
-
@return rem-convert(px, $values...);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
@else {
|
|
80
|
-
@return rem-convert(rem, $values...);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
@mixin rem($properties, $values...) {
|
|
87
|
-
@if type-of($properties) == 'map' {
|
|
88
|
-
@each $property in map-keys($properties) {
|
|
89
|
-
@include rem.convert($property, map-get($properties, $property));
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
@else {
|
|
94
|
-
@each $property in $properties {
|
|
95
|
-
@if $rem-fallback or $rem-px-only {
|
|
96
|
-
#{$property}: rem-convert(px, $values...);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
@if not $rem-px-only {
|
|
100
|
-
#{$property}: rem-convert(rem, $values...);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
package/lib/funcs/_strings.scss
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
@use "sass:string";
|
|
2
|
-
|
|
3
|
-
@function contain($list, $value) {
|
|
4
|
-
@return not not index($list, $value);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
@function capitalize($string) {
|
|
8
|
-
@return to-upper-case(string.slice($string, 1, 1)) + string.slice($string, 2);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@function uncapitalize($string) {
|
|
12
|
-
@return to-lower-case(string.slice($string, 1, 1)) + string.slice($string, 2);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@function camelize($string) {
|
|
16
|
-
$progress: $string;
|
|
17
|
-
$result: '';
|
|
18
|
-
$exclude: ' ', '-', '–', '—', '_', ',', ';', ':', '.';
|
|
19
|
-
|
|
20
|
-
@while str-length($progress) > 0 {
|
|
21
|
-
$char: string.slice($progress, 1, 1);
|
|
22
|
-
|
|
23
|
-
@if contain($exclude, $char) {
|
|
24
|
-
$progress: capitalize(string.slice($progress, 2, 2)) +
|
|
25
|
-
string.slice($progress, 3);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@else {
|
|
29
|
-
$result: $result + $char;
|
|
30
|
-
$progress: string.slice($progress, 2);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@return $result;
|
|
35
|
-
}
|
package/lib/grid/_.scss
DELETED
package/lib/grid/_col.scss
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
@use '../mixins/dimensions' as dimensions;
|
|
2
|
-
@use '../helpers/flexbox';
|
|
3
|
-
|
|
4
|
-
.columns {
|
|
5
|
-
@extend .flex-columns;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.columns .col-100,
|
|
9
|
-
.columns .col-80,
|
|
10
|
-
.columns .col-75,
|
|
11
|
-
.columns .col-66,
|
|
12
|
-
.columns .col-50,
|
|
13
|
-
.columns .col-40,
|
|
14
|
-
.columns .col-33,
|
|
15
|
-
.columns .col-25,
|
|
16
|
-
.columns .col-20,
|
|
17
|
-
.columns .col-1of1,
|
|
18
|
-
.columns .col-2of2,
|
|
19
|
-
.columns .col-3of3,
|
|
20
|
-
.columns .col-4of4,
|
|
21
|
-
.columns .col-5of5 {
|
|
22
|
-
$size: 100%;
|
|
23
|
-
|
|
24
|
-
@extend .flex-1;
|
|
25
|
-
|
|
26
|
-
@include dimensions.withWidth($size);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.columns .col-80,
|
|
30
|
-
.columns .col-4of5 {
|
|
31
|
-
$size: 78.5%;
|
|
32
|
-
|
|
33
|
-
@extend .flex-1;
|
|
34
|
-
|
|
35
|
-
@include dimensions.withWidth($size);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.columns .col-75,
|
|
39
|
-
.columns .col-3of4 {
|
|
40
|
-
$size: 73.5%;
|
|
41
|
-
|
|
42
|
-
@extend .flex-1;
|
|
43
|
-
|
|
44
|
-
@include dimensions.withWidth($size);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.columns .col-66,
|
|
48
|
-
.columns .col-2of3 {
|
|
49
|
-
$size: 65.5%;
|
|
50
|
-
|
|
51
|
-
@extend .flex-1;
|
|
52
|
-
|
|
53
|
-
@include dimensions.withWidth($size);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.columns .col-60,
|
|
57
|
-
.columns .col-3of5 {
|
|
58
|
-
$size: 59.5%;
|
|
59
|
-
|
|
60
|
-
@extend .flex-1;
|
|
61
|
-
|
|
62
|
-
@include dimensions.withWidth($size);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.columns .col-50,
|
|
66
|
-
.columns .col-1of2,
|
|
67
|
-
.columns .col-2of4 {
|
|
68
|
-
$size: 47.5%;
|
|
69
|
-
|
|
70
|
-
@extend .flex-1;
|
|
71
|
-
|
|
72
|
-
@include dimensions.withWidth($size);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.columns .col-40,
|
|
76
|
-
.columns .col-2of5 {
|
|
77
|
-
$size: 38%;
|
|
78
|
-
|
|
79
|
-
@extend .flex-1;
|
|
80
|
-
|
|
81
|
-
@include dimensions.withWidth($size);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.columns .col-33,
|
|
85
|
-
.columns .col-1of3 {
|
|
86
|
-
$size: 31%;
|
|
87
|
-
|
|
88
|
-
@extend .flex-1;
|
|
89
|
-
|
|
90
|
-
@include dimensions.withWidth($size);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.columns .col-25,
|
|
94
|
-
.columns .col-1of4 {
|
|
95
|
-
$size: 23%;
|
|
96
|
-
|
|
97
|
-
@extend .flex-1;
|
|
98
|
-
|
|
99
|
-
@include dimensions.withWidth($size);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.columns .col-20,
|
|
103
|
-
.columns .col-1of5 {
|
|
104
|
-
$size: 18%;
|
|
105
|
-
|
|
106
|
-
@extend .flex-1;
|
|
107
|
-
|
|
108
|
-
@include dimensions.withWidth($size);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.columns .col-0 {
|
|
112
|
-
$size: 0%;
|
|
113
|
-
|
|
114
|
-
@extend .flex-1;
|
|
115
|
-
|
|
116
|
-
@include dimensions.withWidth($size);
|
|
117
|
-
}
|
package/lib/grid/_row.scss
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
@use '../mixins/dimensions' as dimensions;
|
|
2
|
-
@use '../helpers/flexbox';
|
|
3
|
-
|
|
4
|
-
.rows {
|
|
5
|
-
@extend .flex-rows;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.rows .row-100,
|
|
9
|
-
.rows .row-80,
|
|
10
|
-
.rows .row-75,
|
|
11
|
-
.rows .row-66,
|
|
12
|
-
.rows .row-50,
|
|
13
|
-
.rows .row-40,
|
|
14
|
-
.rows .row-33,
|
|
15
|
-
.rows .row-25,
|
|
16
|
-
.rows .row-20,
|
|
17
|
-
.rows .row-1of1,
|
|
18
|
-
.rows .row-2of2,
|
|
19
|
-
.rows .row-3of3,
|
|
20
|
-
.rows .row-4of4,
|
|
21
|
-
.rows .row-5of5 {
|
|
22
|
-
$size: 100%;
|
|
23
|
-
|
|
24
|
-
@extend .flex-1;
|
|
25
|
-
|
|
26
|
-
@include dimensions.withHeight($size);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.rows .row-80,
|
|
30
|
-
.rows .row-4of5 {
|
|
31
|
-
$size: 78.5%;
|
|
32
|
-
|
|
33
|
-
@extend .flex-1;
|
|
34
|
-
|
|
35
|
-
@include dimensions.withHeight($size);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.rows .row-75,
|
|
39
|
-
.rows .row-3of4 {
|
|
40
|
-
$size: 73.5%;
|
|
41
|
-
|
|
42
|
-
@extend .flex-1;
|
|
43
|
-
|
|
44
|
-
@include dimensions.withHeight($size);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.rows .row-66,
|
|
48
|
-
.rows .row-2of3 {
|
|
49
|
-
$size: 65.5%;
|
|
50
|
-
|
|
51
|
-
@extend .flex-1;
|
|
52
|
-
|
|
53
|
-
@include dimensions.withHeight($size);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.rows .row-60,
|
|
57
|
-
.rows .row-3of5 {
|
|
58
|
-
$size: 59.5%;
|
|
59
|
-
|
|
60
|
-
@extend .flex-1;
|
|
61
|
-
|
|
62
|
-
@include dimensions.withHeight($size);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.rows .row-50,
|
|
66
|
-
.rows .row-1of2,
|
|
67
|
-
.rows .row-2of4 {
|
|
68
|
-
$size: 47.5%;
|
|
69
|
-
|
|
70
|
-
@extend .flex-1;
|
|
71
|
-
|
|
72
|
-
@include dimensions.withHeight($size);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.rows .row-40,
|
|
76
|
-
.rows .row-2of5 {
|
|
77
|
-
$size: 38%;
|
|
78
|
-
|
|
79
|
-
@extend .flex-1;
|
|
80
|
-
|
|
81
|
-
@include dimensions.withHeight($size);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.rows .row-33,
|
|
85
|
-
.rows .row-1of3 {
|
|
86
|
-
$size: 31%;
|
|
87
|
-
|
|
88
|
-
@extend .flex-1;
|
|
89
|
-
|
|
90
|
-
@include dimensions.withHeight($size);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.rows .row-25,
|
|
94
|
-
.rows .row-1of4 {
|
|
95
|
-
$size: 23%;
|
|
96
|
-
|
|
97
|
-
@extend .flex-1;
|
|
98
|
-
|
|
99
|
-
@include dimensions.withHeight($size);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.rows .row-20,
|
|
103
|
-
.rows .row-1of5 {
|
|
104
|
-
$size: 18%;
|
|
105
|
-
|
|
106
|
-
@extend .flex-1;
|
|
107
|
-
|
|
108
|
-
@include dimensions.withHeight($size);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.rows .row-0 {
|
|
112
|
-
$size: 0%;
|
|
113
|
-
|
|
114
|
-
@extend .flex-1;
|
|
115
|
-
|
|
116
|
-
@include dimensions.withHeight($size);
|
|
117
|
-
}
|
package/lib/grid/_square.scss
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
.square-grid {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: row;
|
|
4
|
-
flex-wrap: wrap;
|
|
5
|
-
justify-content: flex-start;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.square-grid-2 {
|
|
9
|
-
margin: 0 1% 1% 0;
|
|
10
|
-
max-width: 49%;
|
|
11
|
-
min-width: 49%;
|
|
12
|
-
width: 49%;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.square-grid-3 > * {
|
|
16
|
-
margin: 0 1% 1% 0;
|
|
17
|
-
max-width: 32%;
|
|
18
|
-
min-width: 32%;
|
|
19
|
-
width: 32%;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.square-grid-4 > * {
|
|
23
|
-
margin: 0 1% 1% 0;
|
|
24
|
-
max-width: 24%;
|
|
25
|
-
min-width: 24%;
|
|
26
|
-
width: 24%;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.square-grid-5 > * {
|
|
30
|
-
margin: 0 1% 1% 0;
|
|
31
|
-
max-width: 19%;
|
|
32
|
-
min-width: 19%;
|
|
33
|
-
width: 19%;
|
|
34
|
-
}
|
package/lib/grid/_wrap.scss
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
@use '../funcs/rem' as rem;
|
|
2
|
-
@use '../helpers/flexbox';
|
|
3
|
-
|
|
4
|
-
.wrap-1,
|
|
5
|
-
.wrap-2,
|
|
6
|
-
.wrap-3,
|
|
7
|
-
.wrap-4,
|
|
8
|
-
.wrap-5 {
|
|
9
|
-
@extend .flex-wrapper;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.wrap-1 > *,
|
|
13
|
-
.wrap-2 > *,
|
|
14
|
-
.wrap-3 > *,
|
|
15
|
-
.wrap-4 > *,
|
|
16
|
-
.wrap-5 > * {
|
|
17
|
-
margin-bottom: rem.convert(12px);
|
|
18
|
-
flex: 0 0 auto;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.wrap-1 > * {
|
|
22
|
-
width: 100%;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.wrap-2 > * {
|
|
26
|
-
width: 50%;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.wrap-3 > * {
|
|
30
|
-
width: 33.333333%;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.wrap-4 > * {
|
|
34
|
-
width: 25%;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.wrap-5 > * {
|
|
38
|
-
width: 12.5%;
|
|
39
|
-
}
|
package/lib/helpers/_.scss
DELETED
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
.is-circle {
|
|
2
|
-
border-radius: 50%;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.v-align-top {
|
|
6
|
-
vertical-align: top;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.v-align-middle {
|
|
10
|
-
vertical-align: middle;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.v-align-bottom {
|
|
14
|
-
vertical-align: bottom;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/* --------------------------------------------
|
|
18
|
-
|
|
19
|
-
TYPES
|
|
20
|
-
|
|
21
|
-
-------------------------------------------- */
|
|
22
|
-
|
|
23
|
-
.is-flex {
|
|
24
|
-
display: flex;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.is-block {
|
|
28
|
-
display: block;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.is-inline {
|
|
32
|
-
display: inline;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.is-inflex,
|
|
36
|
-
.is-inline-flex {
|
|
37
|
-
display: inline-flex;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.is-inblock,
|
|
41
|
-
.is-inline-block {
|
|
42
|
-
display: inline-block;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.is-overlay {
|
|
46
|
-
@extend .is-absolute;
|
|
47
|
-
@extend .is-zero-abs;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.is-popin,
|
|
51
|
-
.is-popup,
|
|
52
|
-
.is-fixed-overlay {
|
|
53
|
-
@extend .is-fixed;
|
|
54
|
-
@extend .is-top-to-bottom;
|
|
55
|
-
@extend .is-zero-abs;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/* --------------------------------------------
|
|
59
|
-
|
|
60
|
-
POSITIONING
|
|
61
|
-
|
|
62
|
-
-------------------------------------------- */
|
|
63
|
-
|
|
64
|
-
.is-relative {
|
|
65
|
-
position: relative;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.is-absolute {
|
|
69
|
-
position: absolute;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.is-fixed {
|
|
73
|
-
position: fixed;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.is-sticky {
|
|
77
|
-
position: sticky;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/* --------------------------------------------
|
|
81
|
-
|
|
82
|
-
ABSOLUTE PLACEMENTS
|
|
83
|
-
|
|
84
|
-
-------------------------------------------- */
|
|
85
|
-
|
|
86
|
-
.is-zero-abs,
|
|
87
|
-
.is-trbl {
|
|
88
|
-
bottom: 0;
|
|
89
|
-
left: 0;
|
|
90
|
-
right: 0;
|
|
91
|
-
top: 0;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.is-top-left-abs,
|
|
95
|
-
.is-top-left {
|
|
96
|
-
left: 0;
|
|
97
|
-
top: 0;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.is-top-right-abs,
|
|
101
|
-
.is-top-right {
|
|
102
|
-
right: 0;
|
|
103
|
-
top: 0;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.is-bottom-right-abs,
|
|
107
|
-
.is-bottom-right {
|
|
108
|
-
bottom: 0;
|
|
109
|
-
right: 0;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.is-bottom-left-abs,
|
|
113
|
-
.is-bottom-left {
|
|
114
|
-
bottom: 0;
|
|
115
|
-
left: 0;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.is-top-to-bottom-abs,
|
|
119
|
-
.is-top-to-bottom {
|
|
120
|
-
bottom: 0;
|
|
121
|
-
top: 0;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.is-left-to-right-abs,
|
|
125
|
-
.is-left-to-right {
|
|
126
|
-
left: 0;
|
|
127
|
-
right: 0;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/* --------------------------------------------
|
|
131
|
-
|
|
132
|
-
SIZES
|
|
133
|
-
|
|
134
|
-
-------------------------------------------- */
|
|
135
|
-
|
|
136
|
-
.is-full-width {
|
|
137
|
-
max-width: 100%;
|
|
138
|
-
min-width: 100%;
|
|
139
|
-
width: 100%;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.is-full-height {
|
|
143
|
-
height: 100%;
|
|
144
|
-
max-height: 100%;
|
|
145
|
-
min-height: 100%;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.is-full-layout {
|
|
149
|
-
@extend .is-full-width;
|
|
150
|
-
@extend .is-full-height;
|
|
151
|
-
}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
$flexSpaceSizes: (0, 1, 2, 3, 4, 5, 6, 7, 8);
|
|
2
|
-
|
|
3
|
-
@each $space in $flexSpaceSizes {
|
|
4
|
-
.flex-#{$space} {
|
|
5
|
-
flex: #{$space};
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.flex-columns {
|
|
10
|
-
display: flex;
|
|
11
|
-
flex: 1;
|
|
12
|
-
flex-direction: row;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.flex-rows {
|
|
16
|
-
display: flex;
|
|
17
|
-
flex: 1;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.flex-wrap {
|
|
22
|
-
flex-wrap: wrap;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.flex-wrap-inverse {
|
|
26
|
-
flex-wrap: wrap-reverse;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.flex-wrapper {
|
|
30
|
-
display: flex;
|
|
31
|
-
flex: 1;
|
|
32
|
-
flex-direction: row;
|
|
33
|
-
flex-wrap: wrap;
|
|
34
|
-
justify-content: space-between;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/* -----------------------------------------------------
|
|
38
|
-
|
|
39
|
-
Flexbox Layouts (Distribution)
|
|
40
|
-
|
|
41
|
-
----------------------------------------------------- */
|
|
42
|
-
|
|
43
|
-
.flex-start {
|
|
44
|
-
justify-content: start;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.flex-center {
|
|
48
|
-
justify-content: center;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.flex-end {
|
|
52
|
-
justify-content: flex-end;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.flex-between {
|
|
56
|
-
justify-content: space-between;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.flex-around {
|
|
60
|
-
justify-content: space-around;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.flex-evenly {
|
|
64
|
-
justify-content: space-evenly;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.flex-justify > * {
|
|
68
|
-
flex-basis: auto;
|
|
69
|
-
flex-grow: 1;
|
|
70
|
-
flex-shrink: 1;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.flex-stretch {
|
|
74
|
-
justify-content: stretch;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/* -----------------------------------------------------
|
|
78
|
-
|
|
79
|
-
Items Spacers
|
|
80
|
-
|
|
81
|
-
----------------------------------------------------- */
|
|
82
|
-
|
|
83
|
-
.items-start {
|
|
84
|
-
align-items: flex-start;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.items-center {
|
|
88
|
-
align-items: center;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.items-end {
|
|
92
|
-
align-items: flex-end;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.self-start {
|
|
96
|
-
align-self: flex-start;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.self-end {
|
|
100
|
-
align-self: flex-end;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.self-center {
|
|
104
|
-
align-self: center;
|
|
105
|
-
}
|