noctemyth 0.0.36
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/LICENSE +21 -0
- package/README.md +60 -0
- package/dist/css/noctemyth-skelton.css +11880 -0
- package/dist/css/noctemyth-skelton.css.map +1 -0
- package/dist/css/noctemyth-skelton.min.css +11880 -0
- package/dist/css/noctemyth-skelton.min.css.map +1 -0
- package/dist/css/noctemyth-utilities.css +142390 -0
- package/dist/css/noctemyth-utilities.css.map +1 -0
- package/dist/css/noctemyth-utilities.min.css +142390 -0
- package/dist/css/noctemyth-utilities.min.css.map +1 -0
- package/dist/css/noctemyth.css +51864 -0
- package/dist/css/noctemyth.css.map +1 -0
- package/dist/css/noctemyth.min.css +26439 -0
- package/dist/css/noctemyth.min.css.map +1 -0
- package/package.json +61 -0
- package/src/animations/fade.scss +41 -0
- package/src/animations/index.scss +1 -0
- package/src/backgrounds/dot.scss +55 -0
- package/src/backgrounds/gingham.scss +56 -0
- package/src/backgrounds/index.scss +5 -0
- package/src/backgrounds/rhombus.scss +49 -0
- package/src/backgrounds/stripe.scss +45 -0
- package/src/backgrounds/zigzag.scss +71 -0
- package/src/base/dub.scss +9 -0
- package/src/base/element.scss +5 -0
- package/src/base/index.scss +3 -0
- package/src/base/normalize.scss +394 -0
- package/src/components/accordion.scss +179 -0
- package/src/components/badge.scss +109 -0
- package/src/components/blockquote.scss +92 -0
- package/src/components/breadcrumbs.scss +47 -0
- package/src/components/button.scss +157 -0
- package/src/components/card.scss +89 -0
- package/src/components/dialogue.scss +452 -0
- package/src/components/div.scss +7 -0
- package/src/components/footer.scss +21 -0
- package/src/components/hamburger.scss +157 -0
- package/src/components/header.scss +36 -0
- package/src/components/heading.scss +40 -0
- package/src/components/image.scss +10 -0
- package/src/components/index.scss +26 -0
- package/src/components/input.scss +338 -0
- package/src/components/label.scss +17 -0
- package/src/components/link.scss +29 -0
- package/src/components/list.scss +16 -0
- package/src/components/loader.scss +72 -0
- package/src/components/main.scss +8 -0
- package/src/components/message.scss +53 -0
- package/src/components/modal.scss +41 -0
- package/src/components/nav.scss +387 -0
- package/src/components/paragraph.scss +12 -0
- package/src/components/progress.scss +43 -0
- package/src/components/section.scss +7 -0
- package/src/components/span.scss +7 -0
- package/src/css-variables/animation.scss +11 -0
- package/src/css-variables/border.scss +16 -0
- package/src/css-variables/color.scss +604 -0
- package/src/css-variables/components/breadcrumbs.scss +5 -0
- package/src/css-variables/components/button.scss +6 -0
- package/src/css-variables/components/dialogue.scss +15 -0
- package/src/css-variables/components/header.scss +7 -0
- package/src/css-variables/components/heading.scss +5 -0
- package/src/css-variables/components/index.scss +5 -0
- package/src/css-variables/index.scss +7 -0
- package/src/css-variables/miscellaneous.scss +8 -0
- package/src/css-variables/typography.scss +24 -0
- package/src/functions/index.scss +1 -0
- package/src/functions/string.scss +31 -0
- package/src/icons/check.scss +21 -0
- package/src/icons/chevron.scss +30 -0
- package/src/icons/index.scss +2 -0
- package/src/layouts/centering.scss +13 -0
- package/src/layouts/columns.scss +97 -0
- package/src/layouts/container.scss +59 -0
- package/src/layouts/index.scss +3 -0
- package/src/mixins/animation.scss +80 -0
- package/src/mixins/color.scss +33 -0
- package/src/mixins/element.scss +5 -0
- package/src/mixins/index.scss +5 -0
- package/src/mixins/responsive.scss +222 -0
- package/src/noctemyth-skelton.scss +12 -0
- package/src/noctemyth-utilities.scss +3 -0
- package/src/noctemyth.scss +9 -0
- package/src/utilities/border.scss +46 -0
- package/src/utilities/color.scss +327 -0
- package/src/utilities/decoration.scss +16 -0
- package/src/utilities/index.scss +7 -0
- package/src/utilities/positioning.scss +90 -0
- package/src/utilities/sizing.scss +142 -0
- package/src/utilities/spacing.scss +154 -0
- package/src/utilities/typography.scss +109 -0
- package/src/variables/animation.scss +8 -0
- package/src/variables/border.scss +81 -0
- package/src/variables/color.scss +1371 -0
- package/src/variables/components/breadcrumbs.scss +3 -0
- package/src/variables/components/button.scss +3 -0
- package/src/variables/components/dialogue.scss +12 -0
- package/src/variables/components/header.scss +3 -0
- package/src/variables/components/heading.scss +3 -0
- package/src/variables/components/index.scss +5 -0
- package/src/variables/index.scss +8 -0
- package/src/variables/layout.scss +28 -0
- package/src/variables/miscellaneous.scss +14 -0
- package/src/variables/typography.scss +26 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "./string.scss";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@use "sass:string";
|
|
2
|
+
|
|
3
|
+
@function zeroPadding($num, $length) {
|
|
4
|
+
$numString: #{$num};
|
|
5
|
+
$numLength: string.length($numString);
|
|
6
|
+
|
|
7
|
+
@while $numLength < $length {
|
|
8
|
+
$numString: "0" + $numString;
|
|
9
|
+
$numLength: string.length($numString);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@return $numString;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@function strReplace($str, $substr, $newsubstr, $all: false) {
|
|
16
|
+
$pos: string.index($str, $substr);
|
|
17
|
+
|
|
18
|
+
@while $pos != null {
|
|
19
|
+
$strlen: string.length($substr);
|
|
20
|
+
$start: string.slice($str, 0, $pos - 1);
|
|
21
|
+
$end: string.slice($str, $pos + $strlen);
|
|
22
|
+
$str: $start + $newsubstr + $end;
|
|
23
|
+
|
|
24
|
+
@if $all == true {
|
|
25
|
+
$pos: string.index($str, $substr);
|
|
26
|
+
} @else {
|
|
27
|
+
$pos: null;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
@return $str;
|
|
31
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../variables/index.scss" as variables;
|
|
3
|
+
|
|
4
|
+
.check {
|
|
5
|
+
background-color: transparent;
|
|
6
|
+
border-color: var(--#{variables.$prefix}color-default-fore);
|
|
7
|
+
border-radius: 25%;
|
|
8
|
+
border-style: solid;
|
|
9
|
+
border-width: 0 var(--#{variables.$prefix}border-width-medium) var(--#{variables.$prefix}border-width-medium) 0;
|
|
10
|
+
content: "";
|
|
11
|
+
display: inline-block;
|
|
12
|
+
height: 1rem;
|
|
13
|
+
transform: rotate(45deg);
|
|
14
|
+
width: 0.5rem;
|
|
15
|
+
@each $color in variables.$colors {
|
|
16
|
+
$colorName: map.get($color, "name");
|
|
17
|
+
&.is-#{$colorName} {
|
|
18
|
+
border-color: var(--#{variables.$prefix}color-#{$colorName}-fore);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../variables/index.scss" as variables;
|
|
3
|
+
|
|
4
|
+
$line-height: 0.2rem;
|
|
5
|
+
|
|
6
|
+
@mixin chevron() {
|
|
7
|
+
display: inline-block;
|
|
8
|
+
width: 1rem;
|
|
9
|
+
aspect-ratio: 5/3;
|
|
10
|
+
clip-path: polygon(
|
|
11
|
+
0 0,
|
|
12
|
+
0 #{$line-height},
|
|
13
|
+
50% 100%,
|
|
14
|
+
100% #{$line-height},
|
|
15
|
+
100% 0,
|
|
16
|
+
50% calc(100% - #{$line-height})
|
|
17
|
+
);
|
|
18
|
+
background: var(--#{variables.$prefix}color-default-fore);
|
|
19
|
+
@each $color in variables.$colors {
|
|
20
|
+
$colorName: map.get($color, "name");
|
|
21
|
+
&.is-#{$colorName} {
|
|
22
|
+
background: var(--#{variables.$prefix}color-#{$colorName}-fore);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
@content;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.chevron {
|
|
29
|
+
@include chevron();
|
|
30
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
@use "../mixins/index.scss" as mixins;
|
|
3
|
+
@use "../variables/index.scss" as variables;
|
|
4
|
+
@use "../functions/index.scss" as functions;
|
|
5
|
+
|
|
6
|
+
.columns {
|
|
7
|
+
--#{variables.$prefix}gutter-x: 0;
|
|
8
|
+
--#{variables.$prefix}gutter-y: 0;
|
|
9
|
+
@include mixins.element();
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
flex-wrap: wrap;
|
|
13
|
+
margin-top: calc(var(--#{variables.$prefix}gutter-y) * -1);
|
|
14
|
+
margin-right: calc(var(--#{variables.$prefix}gutter-x) * -0.5);
|
|
15
|
+
margin-left: calc(var(--#{variables.$prefix}gutter-x) * -0.5);
|
|
16
|
+
@for $p from 0 through 20 {
|
|
17
|
+
$escapedQuarter: functions.strReplace(#{($p * 0.25)}, ".", "\\.");
|
|
18
|
+
&.has-gutter-#{$escapedQuarter}rem {
|
|
19
|
+
--#{variables.$prefix}gutter-x: #{($p * 0.25rem)};
|
|
20
|
+
--#{variables.$prefix}gutter-y: #{($p * 0.25rem)};
|
|
21
|
+
}
|
|
22
|
+
&.has-gutter-x-#{$escapedQuarter}rem {
|
|
23
|
+
--#{variables.$prefix}gutter-x: #{($p * 0.25rem)};
|
|
24
|
+
}
|
|
25
|
+
&.has-gutter-y-#{$escapedQuarter}rem {
|
|
26
|
+
--#{variables.$prefix}gutter-y: #{($p * 0.25rem)};
|
|
27
|
+
}
|
|
28
|
+
@include mixins.is-responsive("has-gutter", "-#{$escapedQuarter}rem") {
|
|
29
|
+
--#{variables.$prefix}gutter-x: #{($p * 0.25rem)};
|
|
30
|
+
--#{variables.$prefix}gutter-y: #{($p * 0.25rem)};
|
|
31
|
+
}
|
|
32
|
+
@include mixins.is-responsive("has-gutter-x", "-#{$escapedQuarter}rem") {
|
|
33
|
+
--#{variables.$prefix}gutter-x: #{($p * 0.25rem)};
|
|
34
|
+
}
|
|
35
|
+
@include mixins.is-responsive("has-gutter-y", "-#{$escapedQuarter}rem") {
|
|
36
|
+
--#{variables.$prefix}gutter-y: #{($p * 0.25rem)};
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.is-direction-row {
|
|
41
|
+
flex-direction: row;
|
|
42
|
+
}
|
|
43
|
+
&.is-direction-row-reverse {
|
|
44
|
+
flex-direction: row-reverse;
|
|
45
|
+
}
|
|
46
|
+
&.is-direction-column {
|
|
47
|
+
flex-direction: column;
|
|
48
|
+
}
|
|
49
|
+
&.is-direction-column-reverse {
|
|
50
|
+
flex-direction: column-reverse;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@include mixins.is-responsive("is", "-direction-row") {
|
|
54
|
+
flex-direction: row;
|
|
55
|
+
}
|
|
56
|
+
@include mixins.is-responsive("is", "-direction-row-reverse") {
|
|
57
|
+
flex-direction: row-reverse;
|
|
58
|
+
}
|
|
59
|
+
@include mixins.is-responsive("is", "-direction-column") {
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
}
|
|
62
|
+
@include mixins.is-responsive("is", "-direction-column-reverse") {
|
|
63
|
+
flex-direction: column-reverse;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.column {
|
|
67
|
+
@include mixins.element();
|
|
68
|
+
@include mixins.column();
|
|
69
|
+
flex-grow: 1;
|
|
70
|
+
flex-shrink: 0;
|
|
71
|
+
flex-basis: 0%;
|
|
72
|
+
&.is-full {
|
|
73
|
+
flex: none;
|
|
74
|
+
max-width: 100%;
|
|
75
|
+
width: 100%;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
@for $num from 1 through variables.$columns-count {
|
|
79
|
+
.column-#{$num} {
|
|
80
|
+
@include mixins.element();
|
|
81
|
+
@include mixins.column();
|
|
82
|
+
flex-basis: math.percentage(math.div($num, variables.$columns-count));
|
|
83
|
+
max-width: math.percentage(math.div($num, variables.$columns-count));
|
|
84
|
+
width: math.percentage(math.div($num, variables.$columns-count));
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
.column,
|
|
88
|
+
[class^="column-"] {
|
|
89
|
+
@for $num from 1 through variables.$columns-count {
|
|
90
|
+
@include mixins.is-responsive("is", "-" + $num) {
|
|
91
|
+
flex-basis: math.percentage(math.div($num, variables.$columns-count));
|
|
92
|
+
max-width: math.percentage(math.div($num, variables.$columns-count));
|
|
93
|
+
width: math.percentage(math.div($num, variables.$columns-count));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@use "../variables/index.scss" as variables;
|
|
2
|
+
@use "../functions/index.scss" as functions;
|
|
3
|
+
@use "../mixins/index.scss" as mixins;
|
|
4
|
+
|
|
5
|
+
.container {
|
|
6
|
+
--#{variables.$prefix}gutter-x: 0;
|
|
7
|
+
--#{variables.$prefix}gutter-y: 0;
|
|
8
|
+
@include mixins.element();
|
|
9
|
+
padding-top: calc(var(--#{variables.$prefix}gutter-y) * 0.5);
|
|
10
|
+
padding-bottom: calc(var(--#{variables.$prefix}gutter-y) * 0.5);
|
|
11
|
+
padding-right: calc(var(--#{variables.$prefix}gutter-x) * 0.5);
|
|
12
|
+
padding-left: calc(var(--#{variables.$prefix}gutter-x) * 0.5);
|
|
13
|
+
margin-right: auto;
|
|
14
|
+
margin-left: auto;
|
|
15
|
+
width: auto;
|
|
16
|
+
|
|
17
|
+
@for $p from 0 through 20 {
|
|
18
|
+
$escapedQuarter: functions.strReplace(#{($p * 0.25)}, ".", "\\.");
|
|
19
|
+
&.has-gutter-#{$escapedQuarter}rem {
|
|
20
|
+
--#{variables.$prefix}gutter-x: #{($p * 0.25rem)};
|
|
21
|
+
--#{variables.$prefix}gutter-y: #{($p * 0.25rem)};
|
|
22
|
+
}
|
|
23
|
+
&.has-gutter-x-#{$escapedQuarter}rem {
|
|
24
|
+
--#{variables.$prefix}gutter-x: #{($p * 0.25rem)};
|
|
25
|
+
}
|
|
26
|
+
&.has-gutter-y-#{$escapedQuarter}rem {
|
|
27
|
+
--#{variables.$prefix}gutter-y: #{($p * 0.25rem)};
|
|
28
|
+
}
|
|
29
|
+
@include mixins.is-responsive("has-gutter", "-#{$escapedQuarter}rem") {
|
|
30
|
+
--#{variables.$prefix}gutter-x: #{($p * 0.25rem)};
|
|
31
|
+
--#{variables.$prefix}gutter-y: #{($p * 0.25rem)};
|
|
32
|
+
}
|
|
33
|
+
@include mixins.is-responsive("has-gutter-x", "-#{$escapedQuarter}rem") {
|
|
34
|
+
--#{variables.$prefix}gutter-x: #{($p * 0.25rem)};
|
|
35
|
+
}
|
|
36
|
+
@include mixins.is-responsive("has-gutter-y", "-#{$escapedQuarter}rem") {
|
|
37
|
+
--#{variables.$prefix}gutter-y: #{($p * 0.25rem)};
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@include mixins.screen("medium") {
|
|
42
|
+
max-width: variables.$breakpoint-medium;
|
|
43
|
+
&.is-fluid {
|
|
44
|
+
max-width: unset;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
@include mixins.screen("large") {
|
|
48
|
+
max-width: variables.$breakpoint-large;
|
|
49
|
+
&.is-fluid {
|
|
50
|
+
max-width: unset;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
@include mixins.screen("xlarge") {
|
|
54
|
+
max-width: variables.$breakpoint-xlarge;
|
|
55
|
+
&.is-fluid {
|
|
56
|
+
max-width: unset;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
@use "../variables/index.scss" as variables;
|
|
2
|
+
|
|
3
|
+
@mixin animation() {
|
|
4
|
+
animation-fill-mode: both;
|
|
5
|
+
animation-duration: var(--#{variables.$prefix}animation-speed-normal);
|
|
6
|
+
|
|
7
|
+
&.is-infinite {
|
|
8
|
+
animation-iteration-count: infinite;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&.is-heavy {
|
|
12
|
+
animation-duration: var(--#{variables.$prefix}animation-speed-heavy);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&.is-slower {
|
|
16
|
+
animation-duration: var(--#{variables.$prefix}animation-speed-slower);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.is-slow {
|
|
20
|
+
animation-duration: var(--#{variables.$prefix}animation-speed-slow);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&.is-fast {
|
|
24
|
+
animation-duration: var(--#{variables.$prefix}animation-speed-fast);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.is-faster {
|
|
28
|
+
animation-duration: var(--#{variables.$prefix}animation-speed-faster);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.is-flash {
|
|
32
|
+
animation-duration: var(--#{variables.$prefix}animation-speed-flash);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
//#region direction
|
|
36
|
+
&.is-alternate {
|
|
37
|
+
animation-direction: alternate;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.is-reverse {
|
|
41
|
+
animation-direction: reverse;
|
|
42
|
+
}
|
|
43
|
+
//#endregion direction
|
|
44
|
+
|
|
45
|
+
//#region timing-function
|
|
46
|
+
&.is-linear {
|
|
47
|
+
animation-timing-function: cubic-bezier(0, 0, 1, 1);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.is-ease {
|
|
51
|
+
animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.is-ease-in {
|
|
55
|
+
animation-timing-function: cubic-bezier(0.42, 0, 1, 1);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&.is-ease-out {
|
|
59
|
+
animation-timing-function: cubic-bezier(0, 0, 0.58, 1);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.is-ease-in-out {
|
|
63
|
+
animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
|
|
64
|
+
}
|
|
65
|
+
//#endregion timing-function
|
|
66
|
+
|
|
67
|
+
@for $sec from 1 through 10 {
|
|
68
|
+
&.is-delay-#{$sec} {
|
|
69
|
+
animation-delay: 1s * $sec;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@content;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@mixin reduce-motion() {
|
|
77
|
+
@media (print), (prefers-reduced-motion: reduce) {
|
|
78
|
+
@content;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@use "../variables/index.scss" as variables;
|
|
2
|
+
|
|
3
|
+
@mixin setCssVariableColorScheme($colorScheme: "") {
|
|
4
|
+
@if $colorScheme == "light" or $colorScheme == "dark" {
|
|
5
|
+
@media (prefers-color-scheme: $colorScheme) {
|
|
6
|
+
:root {
|
|
7
|
+
@content;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
[data-color-scheme="#{$colorScheme}"] {
|
|
11
|
+
@content;
|
|
12
|
+
}
|
|
13
|
+
} @else {
|
|
14
|
+
[data-color-scheme="#{$colorScheme}"] {
|
|
15
|
+
@content;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@mixin setColorScheme($colorScheme: "") {
|
|
21
|
+
@if $colorScheme == "light" or $colorScheme == "dark" {
|
|
22
|
+
@media (prefers-color-scheme: $colorScheme) {
|
|
23
|
+
@content;
|
|
24
|
+
}
|
|
25
|
+
[data-color-scheme="#{$colorScheme}"] {
|
|
26
|
+
@content;
|
|
27
|
+
}
|
|
28
|
+
} @else {
|
|
29
|
+
[data-color-scheme="#{$colorScheme}"] {
|
|
30
|
+
@content;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
@use "../variables/index.scss" as variables;
|
|
2
|
+
|
|
3
|
+
@mixin screen($size) {
|
|
4
|
+
@if ($size == "xsmall") {
|
|
5
|
+
$max-width: variables.$breakpoint-small -
|
|
6
|
+
variables.$responsive-breakpoint-max-width-offset;
|
|
7
|
+
@media screen and (max-width: $max-width) {
|
|
8
|
+
@content;
|
|
9
|
+
}
|
|
10
|
+
} @else if ($size == "xlarge") {
|
|
11
|
+
$min-width: variables.$breakpoint-xlarge;
|
|
12
|
+
@media screen and (min-width: $min-width) {
|
|
13
|
+
@content;
|
|
14
|
+
}
|
|
15
|
+
} @else {
|
|
16
|
+
$min-width: 0;
|
|
17
|
+
$max-width: 0;
|
|
18
|
+
@if ($size == "small") {
|
|
19
|
+
$min-width: variables.$breakpoint-small;
|
|
20
|
+
$max-width: variables.$breakpoint-medium -
|
|
21
|
+
variables.$responsive-breakpoint-max-width-offset;
|
|
22
|
+
} @else if ($size == "medium") {
|
|
23
|
+
$min-width: variables.$breakpoint-medium;
|
|
24
|
+
$max-width: variables.$breakpoint-large -
|
|
25
|
+
variables.$responsive-breakpoint-max-width-offset;
|
|
26
|
+
} @else if ($size == "large") {
|
|
27
|
+
$min-width: variables.$breakpoint-large;
|
|
28
|
+
$max-width: variables.$breakpoint-xlarge -
|
|
29
|
+
variables.$responsive-breakpoint-max-width-offset;
|
|
30
|
+
} @else {
|
|
31
|
+
@error "wrong size.";
|
|
32
|
+
}
|
|
33
|
+
@media screen and (min-width: $min-width) and (max-width: $max-width) {
|
|
34
|
+
@content;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@mixin is-responsive($prefix: "is", $suffix: "") {
|
|
40
|
+
@include screen("xsmall") {
|
|
41
|
+
&.#{$prefix}-xsmall#{$suffix},
|
|
42
|
+
&.#{$prefix}-small-or-less#{$suffix},
|
|
43
|
+
&.#{$prefix}-medium-or-less#{$suffix},
|
|
44
|
+
&.#{$prefix}-large-or-less#{$suffix} {
|
|
45
|
+
@content;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
@include screen("small") {
|
|
49
|
+
&.#{$prefix}-small-or-less#{$suffix},
|
|
50
|
+
&.#{$prefix}-small#{$suffix},
|
|
51
|
+
&.#{$prefix}-small-or-more#{$suffix},
|
|
52
|
+
&.#{$prefix}-medium-or-less#{$suffix},
|
|
53
|
+
&.#{$prefix}-large-or-less#{$suffix} {
|
|
54
|
+
@content;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
@include screen("medium") {
|
|
58
|
+
&.#{$prefix}-small-or-more#{$suffix},
|
|
59
|
+
&.#{$prefix}-medium-or-less#{$suffix},
|
|
60
|
+
&.#{$prefix}-medium#{$suffix},
|
|
61
|
+
&.#{$prefix}-medium-or-more#{$suffix},
|
|
62
|
+
&.#{$prefix}-large-or-less#{$suffix} {
|
|
63
|
+
@content;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
@include screen("large") {
|
|
67
|
+
&.#{$prefix}-small-or-more#{$suffix},
|
|
68
|
+
&.#{$prefix}-medium-or-more#{$suffix},
|
|
69
|
+
&.#{$prefix}-large-or-less#{$suffix},
|
|
70
|
+
&.#{$prefix}-large#{$suffix},
|
|
71
|
+
&.#{$prefix}-large-or-more#{$suffix} {
|
|
72
|
+
@content;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
@include screen("xlarge") {
|
|
76
|
+
&.#{$prefix}-small-or-more#{$suffix},
|
|
77
|
+
&.#{$prefix}-medium-or-more#{$suffix},
|
|
78
|
+
&.#{$prefix}-large-or-more#{$suffix},
|
|
79
|
+
&.#{$prefix}-xlarge#{$suffix} {
|
|
80
|
+
@content;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@mixin add-responsible-visible() {
|
|
86
|
+
@content;
|
|
87
|
+
&.is-xsmall {
|
|
88
|
+
@include screen("small") {
|
|
89
|
+
display: none !important;
|
|
90
|
+
}
|
|
91
|
+
@include screen("medium") {
|
|
92
|
+
display: none !important;
|
|
93
|
+
}
|
|
94
|
+
@include screen("large") {
|
|
95
|
+
display: none !important;
|
|
96
|
+
}
|
|
97
|
+
@include screen("xlarge") {
|
|
98
|
+
display: none !important;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&.is-small-or-less {
|
|
103
|
+
@include screen("medium") {
|
|
104
|
+
display: none !important;
|
|
105
|
+
}
|
|
106
|
+
@include screen("large") {
|
|
107
|
+
display: none !important;
|
|
108
|
+
}
|
|
109
|
+
@include screen("xlarge") {
|
|
110
|
+
display: none !important;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
&.is-small {
|
|
114
|
+
@include screen("xsmall") {
|
|
115
|
+
display: none !important;
|
|
116
|
+
}
|
|
117
|
+
@include screen("medium") {
|
|
118
|
+
display: none !important;
|
|
119
|
+
}
|
|
120
|
+
@include screen("large") {
|
|
121
|
+
display: none !important;
|
|
122
|
+
}
|
|
123
|
+
@include screen("xlarge") {
|
|
124
|
+
display: none !important;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
&.is-small-or-more {
|
|
128
|
+
@include screen("xsmall") {
|
|
129
|
+
display: none !important;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&.is-medium-or-less {
|
|
134
|
+
@include screen("large") {
|
|
135
|
+
display: none !important;
|
|
136
|
+
}
|
|
137
|
+
@include screen("xlarge") {
|
|
138
|
+
display: none !important;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
&.is-medium {
|
|
142
|
+
@include screen("xsmall") {
|
|
143
|
+
display: none !important;
|
|
144
|
+
}
|
|
145
|
+
@include screen("small") {
|
|
146
|
+
display: none !important;
|
|
147
|
+
}
|
|
148
|
+
@include screen("large") {
|
|
149
|
+
display: none !important;
|
|
150
|
+
}
|
|
151
|
+
@include screen("xlarge") {
|
|
152
|
+
display: none !important;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
&.is-medium-or-more {
|
|
156
|
+
@include screen("small") {
|
|
157
|
+
display: none !important;
|
|
158
|
+
}
|
|
159
|
+
@include screen("xsmall") {
|
|
160
|
+
display: none !important;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&.is-large-or-less {
|
|
165
|
+
@include screen("xlarge") {
|
|
166
|
+
display: none !important;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
&.is-large {
|
|
170
|
+
@include screen("xsmall") {
|
|
171
|
+
display: none !important;
|
|
172
|
+
}
|
|
173
|
+
@include screen("small") {
|
|
174
|
+
display: none !important;
|
|
175
|
+
}
|
|
176
|
+
@include screen("medium") {
|
|
177
|
+
display: none !important;
|
|
178
|
+
}
|
|
179
|
+
@include screen("xlarge") {
|
|
180
|
+
display: none !important;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
&.is-large-or-more {
|
|
184
|
+
@include screen("xsmall") {
|
|
185
|
+
display: none !important;
|
|
186
|
+
}
|
|
187
|
+
@include screen("small") {
|
|
188
|
+
display: none !important;
|
|
189
|
+
}
|
|
190
|
+
@include screen("medium") {
|
|
191
|
+
display: none !important;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&.is-xlarge {
|
|
196
|
+
@include screen("xsmall") {
|
|
197
|
+
display: none !important;
|
|
198
|
+
}
|
|
199
|
+
@include screen("small") {
|
|
200
|
+
display: none !important;
|
|
201
|
+
}
|
|
202
|
+
@include screen("medium") {
|
|
203
|
+
display: none !important;
|
|
204
|
+
}
|
|
205
|
+
@include screen("large") {
|
|
206
|
+
display: none !important;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
@mixin column() {
|
|
212
|
+
display: block;
|
|
213
|
+
flex-grow: 0;
|
|
214
|
+
flex-shrink: 0;
|
|
215
|
+
flex-basis: auto;
|
|
216
|
+
position: relative;
|
|
217
|
+
width: 100%;
|
|
218
|
+
max-width: 100%;
|
|
219
|
+
padding-top: calc(var(--#{variables.$prefix}gutter-y));
|
|
220
|
+
padding-right: calc(var(--#{variables.$prefix}gutter-x) * 0.5);
|
|
221
|
+
padding-left: calc(var(--#{variables.$prefix}gutter-x) * 0.5);
|
|
222
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*! noctemyth-skelton | MIT License | github.com/kaminoctem/noctemyth */
|
|
2
|
+
|
|
3
|
+
@use "./variables/index.scss" as variables with (
|
|
4
|
+
$is-skelton: true,
|
|
5
|
+
);
|
|
6
|
+
|
|
7
|
+
@forward "./css-variables/index.scss";
|
|
8
|
+
@forward "./base/index.scss";
|
|
9
|
+
@forward "./icons/index.scss";
|
|
10
|
+
@forward "./components/index.scss";
|
|
11
|
+
@forward "./backgrounds/index.scss";
|
|
12
|
+
@forward "./layouts/index.scss";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*! noctemyth | MIT License | github.com/kaminoctem/noctemyth */
|
|
2
|
+
|
|
3
|
+
@forward "./css-variables/index.scss";
|
|
4
|
+
@forward "./base/index.scss";
|
|
5
|
+
@forward "./animations/index.scss";
|
|
6
|
+
@forward "./icons/index.scss";
|
|
7
|
+
@forward "./components/index.scss";
|
|
8
|
+
@forward "./backgrounds/index.scss";
|
|
9
|
+
@forward "./layouts/index.scss";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../variables/index.scss" as variables;
|
|
3
|
+
|
|
4
|
+
@each $borderStyle in variables.$borderStyles {
|
|
5
|
+
.border-#{$borderStyle} {
|
|
6
|
+
border-style: #{$borderStyle};
|
|
7
|
+
border-width: var(--#{variables.$prefix}border-width-medium);
|
|
8
|
+
}
|
|
9
|
+
@each $borderSide in variables.$borderSides {
|
|
10
|
+
.border-#{$borderSide}-#{$borderStyle} {
|
|
11
|
+
border-#{$borderSide}-style: #{$borderStyle};
|
|
12
|
+
border-#{$borderSide}-width: var(
|
|
13
|
+
--#{variables.$prefix}border-width-medium
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@each $borderWidth in variables.$borderWidths {
|
|
20
|
+
$name: map.get($borderWidth, "name");
|
|
21
|
+
.border-width-#{$name} {
|
|
22
|
+
border-width: var(--#{variables.$prefix}border-width-#{$name});
|
|
23
|
+
}
|
|
24
|
+
@each $borderSide in variables.$borderSides {
|
|
25
|
+
.border-#{$borderSide}-width-#{$name} {
|
|
26
|
+
border-#{$borderSide}-width: var(
|
|
27
|
+
--#{variables.$prefix}border-width-#{$name}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@each $borderRadius in variables.$borderRadiuses {
|
|
34
|
+
$name: map.get($borderRadius, "name");
|
|
35
|
+
.border-radius-#{$name} {
|
|
36
|
+
border-radius: var(--#{variables.$prefix}border-radius-#{$name});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.border-sepalated {
|
|
41
|
+
border-collapse: separate;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.border-collapted {
|
|
45
|
+
border-collapse: collapse;
|
|
46
|
+
}
|