@nulllogic/scssleon 1.0.1 → 1.0.2
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/package.json +1 -1
- package/scss/_base.scss +31 -0
- package/scss/_config.scss +109 -0
- package/scss/_content.scss +24 -0
- package/scss/_functions.scss +97 -0
- package/scss/_mixins.scss +22 -0
- package/scss/_reset.scss +347 -0
- package/scss/_root.scss +36 -0
- package/scss/_utilities.scss +356 -0
- package/scss/animations/_placeholder.scss +12 -0
- package/scss/components/_accordion.scss +15 -0
- package/scss/components/_alert.scss +15 -0
- package/scss/components/_badge.scss +15 -0
- package/scss/components/_breadcrumb.scss +15 -0
- package/scss/components/_button.scss +15 -0
- package/scss/components/_button_group.scss +15 -0
- package/scss/components/_card.scss +15 -0
- package/scss/components/_container.scss +39 -0
- package/scss/components/_dropdown.scss +5 -0
- package/scss/components/_form.scss +50 -0
- package/scss/components/_loader.scss +15 -0
- package/scss/components/_modal.scss +15 -0
- package/scss/components/_nav.scss +15 -0
- package/scss/components/_navbar.scss +16 -0
- package/scss/components/_overlay.scss +15 -0
- package/scss/components/_pagination.scss +15 -0
- package/scss/components/_placeholder.scss +33 -0
- package/scss/components/_sidecap.scss +15 -0
- package/scss/components/_table.scss +78 -0
- package/scss/forms/_checkbox.scss +33 -0
- package/scss/forms/_input-group.scss +121 -0
- package/scss/forms/_input.scss +34 -0
- package/scss/forms/_label.scss +15 -0
- package/scss/forms/_radio.scss +34 -0
- package/scss/forms/_range.scss +7 -0
- package/scss/forms/_select.scss +34 -0
- package/scss/forms/_switch.scss +18 -0
- package/scss/forms/_validation.scss +12 -0
- package/scss/helpers/_clearfix.scss +5 -0
- package/scss/helpers/_screen_reader.scss +11 -0
- package/scss/helpers/_text_truncate.scss +5 -0
- package/scss/mixins/_border-radius.scss +3 -0
- package/scss/mixins/_box-shadow.scss +16 -0
- package/scss/mixins/_breakpoints.scss +10 -0
- package/scss/mixins/_clearfix.scss +9 -0
- package/scss/mixins/_forms.scss +152 -0
- package/scss/mixins/_gradients.scss +6 -0
- package/scss/mixins/_grid.scss +93 -0
- package/scss/mixins/_transition.scss +30 -0
- package/scss/mixins/_utilities.scss +15 -0
- package/scss/mixins/generators/_color-sheme.scss +17 -0
- package/scss/mixins/generators/_components.scss +33 -0
- package/scss/mixins/generators/_properties.scss +110 -0
- package/scss/mixins/generators/_wrapper.scss +16 -0
- package/scss/mixins/variants/_alert.scss +24 -0
- package/scss/mixins/variants/_button.scss +122 -0
- package/scss/scssleon.scss +205 -0
- package/scss/themes/_default.scss +874 -0
- package/scss/themes/_wordpress_admin.scss +0 -0
- package/scss/utilities/_api.scss +24 -0
- package/.dockerignore +0 -2
- package/.eslintignore +0 -2
- package/.prettierignore +0 -1
- package/Dockerfile +0 -29
- package/Makefile +0 -22
- package/dist/css/scssleon.css +0 -1830
- package/dist/css/scssleon.css.map +0 -1
- /package/{CHANGELOG.md → scss/components/_icon.scss} +0 -0
- /package/{CONTRIBUTING.md → scss/themes/_shopify_app.scss} +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
@use "sass:meta";
|
|
4
|
+
|
|
5
|
+
@use '../config';
|
|
6
|
+
@use './breakpoints' as mixins;
|
|
7
|
+
@use '../functions' as functions;
|
|
8
|
+
|
|
9
|
+
// Row columns
|
|
10
|
+
@function divide($dividend, $divisor, $precision: 10) {
|
|
11
|
+
|
|
12
|
+
$sign: if($dividend > 0 and $divisor > 0 or $dividend < 0 and $divisor < 0, 1, -1);
|
|
13
|
+
$dividend: abs($dividend);
|
|
14
|
+
$divisor: abs($divisor);
|
|
15
|
+
|
|
16
|
+
@if $dividend == 0 {
|
|
17
|
+
@return 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@if $divisor == 0 {
|
|
21
|
+
@error "Cannot divide by 0";
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
$remainder: $dividend;
|
|
25
|
+
$result: 0;
|
|
26
|
+
$factor: 10;
|
|
27
|
+
|
|
28
|
+
@while ($remainder > 0 and $precision >= 0) {
|
|
29
|
+
$quotient: 0;
|
|
30
|
+
|
|
31
|
+
@while ($remainder >= $divisor) {
|
|
32
|
+
$remainder: $remainder - $divisor;
|
|
33
|
+
$quotient: $quotient + 1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
$result: $result * 10 + $quotient;
|
|
37
|
+
$factor: $factor * .1;
|
|
38
|
+
$remainder: $remainder * 10;
|
|
39
|
+
$precision: $precision - 1;
|
|
40
|
+
|
|
41
|
+
@if ($precision < 0 and $remainder >= $divisor * 5) {
|
|
42
|
+
$result: $result + 1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
}
|
|
46
|
+
$result: $result * $factor * $sign;
|
|
47
|
+
|
|
48
|
+
@return $result;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@mixin generate_columns($size: false, $columns) {
|
|
52
|
+
|
|
53
|
+
@if $size {
|
|
54
|
+
flex: 0 0 auto;
|
|
55
|
+
width: percentage(divide($size, $columns));
|
|
56
|
+
|
|
57
|
+
} @else {
|
|
58
|
+
flex: 1 1 0;
|
|
59
|
+
max-width: 100%;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Framework grid generation
|
|
65
|
+
@mixin generate_grid_columns($columns, $breakpoints) {
|
|
66
|
+
|
|
67
|
+
@each $breakpoint in map-keys($breakpoints) {
|
|
68
|
+
$infix: mixins.breakpoint-infix($breakpoint, $breakpoints);
|
|
69
|
+
|
|
70
|
+
@include mixins.media-breakpoint-up($breakpoint, $breakpoints) {
|
|
71
|
+
|
|
72
|
+
.col#{$infix} {
|
|
73
|
+
flex: 1 0 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.col#{$infix}-auto {
|
|
77
|
+
flex: 0 0 auto;
|
|
78
|
+
width: auto;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@if $columns > 0 {
|
|
82
|
+
@for $i from 1 through $columns {
|
|
83
|
+
.col#{$infix}-#{$i} {
|
|
84
|
+
@include generate_columns($i, $columns);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@mixin transition($transition...) {
|
|
2
|
+
@if length($transition) == 0 {
|
|
3
|
+
$transition: config.$transition-base;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@if length($transition) > 1 {
|
|
7
|
+
@each $value in $transition {
|
|
8
|
+
@if $value == null or $value == none {
|
|
9
|
+
@warn "The keyword 'none' or 'null' must be used as a single argument.";
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@if config.$enable-transitions {
|
|
15
|
+
@if nth($transition, 1) != null {
|
|
16
|
+
transition: $transition;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@if config.$enable-reduced-motion and
|
|
20
|
+
nth($transition, 1) !=
|
|
21
|
+
null and
|
|
22
|
+
nth($transition, 1) !=
|
|
23
|
+
none
|
|
24
|
+
{
|
|
25
|
+
@media (prefers-reduced-motion: reduce) {
|
|
26
|
+
transition: none;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
// Utility generator
|
|
4
|
+
// Used to generate utilities & print utilities
|
|
5
|
+
@mixin generate-utility($property, $settings) {
|
|
6
|
+
$class : map.get($settings, 'property');
|
|
7
|
+
$values : map.get($settings, 'values');
|
|
8
|
+
$suffix : map.get($settings, 'suffix');
|
|
9
|
+
|
|
10
|
+
@each $name, $value in $values {
|
|
11
|
+
.#{$name} {
|
|
12
|
+
#{$property} : #{$value};
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use '../../functions' as functions;
|
|
4
|
+
|
|
5
|
+
// Media that add color variables
|
|
6
|
+
|
|
7
|
+
@mixin generate-color-scheme($schema) {
|
|
8
|
+
@if $schema == 'light' {
|
|
9
|
+
@media (prefers-color-scheme: light) {
|
|
10
|
+
@content
|
|
11
|
+
}
|
|
12
|
+
} @else if $schema == 'dark' {
|
|
13
|
+
@media (prefers-color-scheme: dark) {
|
|
14
|
+
@content
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "sass:meta";
|
|
3
|
+
|
|
4
|
+
@use "properties";
|
|
5
|
+
@use "wrapper";
|
|
6
|
+
|
|
7
|
+
@use "../../functions" as functions;
|
|
8
|
+
|
|
9
|
+
@mixin generate-component($component, $class, $config, $theme) {
|
|
10
|
+
$theme-component: "";
|
|
11
|
+
|
|
12
|
+
// Checking, if the component was previously defined inside theme components
|
|
13
|
+
@if (meta.type-of($component) == "string") {
|
|
14
|
+
/* Loading component settings and styling */
|
|
15
|
+
$theme-component: functions.get-theme(
|
|
16
|
+
$theme,
|
|
17
|
+
"components" + "." + $component
|
|
18
|
+
);
|
|
19
|
+
} @else {
|
|
20
|
+
$theme-component: $component;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
%#{$class} {
|
|
24
|
+
@include properties.generate-properties($class, $theme-component, $config);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@include wrapper.generate-wrapper($config) {
|
|
28
|
+
.#{$class} {
|
|
29
|
+
@extend %#{$class};
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
@use "sass:meta";
|
|
2
|
+
@use "sass:string";
|
|
3
|
+
@use "sass:map";
|
|
4
|
+
|
|
5
|
+
@use "../../functions" as functions;
|
|
6
|
+
@use "../../mixins/generators/color-sheme" as mixin;
|
|
7
|
+
|
|
8
|
+
@mixin generate-css-properties($tag, $property, $value, $config) {
|
|
9
|
+
$prefix: functions.get-config($config, "prefix");
|
|
10
|
+
|
|
11
|
+
--#{$prefix}-#{$tag}-#{functions.str-replace($property, '--', '')}: #{meta.inspect(
|
|
12
|
+
$value
|
|
13
|
+
)};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin generate-css-variables($tag, $property, $value, $config) {
|
|
17
|
+
$prefix: functions.get-config($config, "prefix");
|
|
18
|
+
|
|
19
|
+
@if (meta.type-of($value) == "string" and str-index($value, "var(--") == 1) {
|
|
20
|
+
#{$property}: #{meta.inspect(
|
|
21
|
+
functions.str-replace($value, "--", "--" + $prefix + "-" + $tag + "-")
|
|
22
|
+
)};
|
|
23
|
+
} @else if
|
|
24
|
+
(type-of($value) == "string" and str-index($value, "var(global(") == 1)
|
|
25
|
+
{
|
|
26
|
+
#{$property}: #{meta.inspect(
|
|
27
|
+
functions.str-replace(
|
|
28
|
+
string.slice($value, 0, string.length($value) - 1),
|
|
29
|
+
"global(--",
|
|
30
|
+
"--" + $prefix + "-root-"
|
|
31
|
+
)
|
|
32
|
+
)};
|
|
33
|
+
} @else {
|
|
34
|
+
#{$property}: #{meta.inspect($value)};
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@mixin generate-colors($tag, $value, $config) {
|
|
39
|
+
$prefix: functions.get-config($config, "prefix");
|
|
40
|
+
|
|
41
|
+
@each $color, $color-properties in $value {
|
|
42
|
+
@each $scheme
|
|
43
|
+
in functions.str-split(functions.get-config($config, "color-scheme"), " ")
|
|
44
|
+
{
|
|
45
|
+
@if $scheme == $color {
|
|
46
|
+
@include mixin.generate-color-scheme($color) {
|
|
47
|
+
@each $color-property, $color-value in $color-properties {
|
|
48
|
+
--#{$prefix}-#{$tag}-#{functions.str-replace($color-property, '--', '')}: #{meta.inspect(
|
|
49
|
+
$color-value
|
|
50
|
+
)};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@mixin generate-subclasses($tag, $class, $properties, $config) {
|
|
59
|
+
#{$class} {
|
|
60
|
+
@include generate-properties($tag, $properties, $config);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@mixin generate-responsive($tag, $properties, $config) {
|
|
65
|
+
$breakpoints: functions.get-config($config, "breakpoints");
|
|
66
|
+
|
|
67
|
+
@each $breakpoint, $value in $breakpoints {
|
|
68
|
+
$property: map.get($properties, $breakpoint);
|
|
69
|
+
|
|
70
|
+
@if $property != null {
|
|
71
|
+
@media (min-width: $value) {
|
|
72
|
+
@include generate-properties($tag, $property, $config);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@mixin generate-properties($tag, $properties, $config) {
|
|
79
|
+
$prefix: functions.get-config($config, "prefix");
|
|
80
|
+
|
|
81
|
+
@each $property, $value in $properties {
|
|
82
|
+
// Variables
|
|
83
|
+
// Looking for "--" symbols in the beginning of the property
|
|
84
|
+
// Example: --flex-direction : row
|
|
85
|
+
@if (
|
|
86
|
+
meta.type-of($property) == "string" and str-index($property, "--") == 1
|
|
87
|
+
) {
|
|
88
|
+
@include generate-css-properties($tag, $property, $value, $config);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Colors
|
|
92
|
+
@else if ($property == "colors") {
|
|
93
|
+
@include generate-colors($tag, $value, $config);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// Responsive
|
|
97
|
+
@else if ($property == "responsive") {
|
|
98
|
+
@include generate-responsive($tag, $value, $config);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// Subclasses
|
|
102
|
+
@else if ($property == "subclasses") {
|
|
103
|
+
@each $class, $class_properties in $value {
|
|
104
|
+
@include generate-subclasses($tag, $class, $class_properties, $config);
|
|
105
|
+
}
|
|
106
|
+
} @else {
|
|
107
|
+
@include generate-css-variables($tag, $property, $value, $config);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../../functions" as functions;
|
|
3
|
+
|
|
4
|
+
@mixin generate-wrapper($config) {
|
|
5
|
+
/* Wrapper class variables assigment */
|
|
6
|
+
$is_wrapper_enabled: functions.get-config($config, "enable.wrapper");
|
|
7
|
+
$wrapper_class: functions.get-config($config, "wrapper-class");
|
|
8
|
+
|
|
9
|
+
@if $is_wrapper_enabled {
|
|
10
|
+
.#{$wrapper_class} {
|
|
11
|
+
@content;
|
|
12
|
+
}
|
|
13
|
+
} @else {
|
|
14
|
+
@content;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@use '../../config';
|
|
2
|
+
|
|
3
|
+
// Button variants
|
|
4
|
+
// scss-docs-start alert-variant-mixin
|
|
5
|
+
@mixin alert($name, $value) {
|
|
6
|
+
|
|
7
|
+
@if ($name == 'background') {
|
|
8
|
+
--#{config.$prefix}alert-bg: #{$value};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@if ($name == 'shadow') {
|
|
12
|
+
--#{config.$prefix}alert-box-shadow: #{$value};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@if ($name == 'icon') {
|
|
16
|
+
.icon-wrapper {
|
|
17
|
+
.icon {
|
|
18
|
+
--#{config.$prefix}alert-icon-fill: #{$value};
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
}
|
|
24
|
+
// scss-docs-end alert-variant-mixin
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
@use '../../config';
|
|
2
|
+
|
|
3
|
+
// Button variants
|
|
4
|
+
// scss-docs-start btn-variant-mixin
|
|
5
|
+
@mixin button($state, $options) {
|
|
6
|
+
|
|
7
|
+
@if ($state == 'origin') {
|
|
8
|
+
@each $name, $value in $options {
|
|
9
|
+
|
|
10
|
+
// Default state
|
|
11
|
+
@if ($name == 'background') {
|
|
12
|
+
--#{config.$prefix}btn-bg: #{$value};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@if ($name == 'border') {
|
|
16
|
+
--#{config.$prefix}btn-border-color: #{$value};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@if ($name == 'color') {
|
|
20
|
+
--#{config.$prefix}btn-color: #{$value};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@if ($state == 'hover') {
|
|
26
|
+
@each $name, $value in $options {
|
|
27
|
+
// Hover state
|
|
28
|
+
@if ($name == 'background') {
|
|
29
|
+
--#{config.$prefix}btn-hover-bg: #{$value};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@if ($name == 'border') {
|
|
33
|
+
--#{config.$prefix}btn-hover-border-color: #{$value};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@if ($name == 'color') {
|
|
37
|
+
--#{config.$prefix}btn-hover-color: #{$value};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
//@if ($focus-shadow != null) {
|
|
41
|
+
// --#{config.$prefix}btn-focus-shadow-rgb: #{$focus-shadow};
|
|
42
|
+
//}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@if ($state == 'active') {
|
|
47
|
+
@each $name, $value in $options {
|
|
48
|
+
// Active state
|
|
49
|
+
@if ($name == 'background') {
|
|
50
|
+
--#{config.$prefix}btn-active-bg: #{$value};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@if ($name == 'border') {
|
|
54
|
+
--#{config.$prefix}btn-active-border-color: #{$value};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@if ($name == 'color') {
|
|
58
|
+
--#{config.$prefix}btn-active-color: #{$value};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
//@if($btn-active-box-shadow != null) {
|
|
62
|
+
// --#{config.$prefix}btn-active-shadow: #{$btn-active-box-shadow};
|
|
63
|
+
//}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@if ($state == 'disabled') {
|
|
68
|
+
@each $name, $value in $options {
|
|
69
|
+
|
|
70
|
+
// Disabled state
|
|
71
|
+
@if ($name == 'background') {
|
|
72
|
+
--#{config.$prefix}btn-disabled-bg: #{$value};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@if ($name == 'border') {
|
|
76
|
+
--#{config.$prefix}btn-disabled-border-color: #{$value};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@if ($name == 'color') {
|
|
80
|
+
--#{config.$prefix}btn-disabled-color: #{$value};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// scss-docs-end btn-variant-mixin
|
|
88
|
+
|
|
89
|
+
// scss-docs-start btn-outline-variant-mixin
|
|
90
|
+
@mixin outline-button(
|
|
91
|
+
$color,
|
|
92
|
+
$color-hover: color-contrast($color),
|
|
93
|
+
$active-background: $color,
|
|
94
|
+
$active-border: $color,
|
|
95
|
+
$active-color: color-contrast($active-background)
|
|
96
|
+
) {
|
|
97
|
+
--#{config.$prefix}btn-color: #{$color};
|
|
98
|
+
--#{config.$prefix}btn-border-color: #{$color};
|
|
99
|
+
--#{config.$prefix}btn-hover-color: #{$color-hover};
|
|
100
|
+
--#{config.$prefix}btn-hover-bg: #{$active-background};
|
|
101
|
+
--#{config.$prefix}btn-hover-border-color: #{$active-border};
|
|
102
|
+
//--#{config.$prefix}btn-focus-shadow-rgb: #{to-rgb($color)};
|
|
103
|
+
--#{config.$prefix}btn-active-color: #{$active-color};
|
|
104
|
+
--#{config.$prefix}btn-active-bg: #{$active-background};
|
|
105
|
+
--#{config.$prefix}btn-active-border-color: #{$active-border};
|
|
106
|
+
--#{config.$prefix}btn-active-shadow: #{$btn-active-box-shadow};
|
|
107
|
+
--#{config.$prefix}btn-disabled-color: #{$color};
|
|
108
|
+
--#{config.$prefix}btn-disabled-bg: transparent;
|
|
109
|
+
--#{config.$prefix}btn-disabled-border-color: #{$color};
|
|
110
|
+
--#{config.$prefix}gradient: none;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// scss-docs-end btn-outline-variant-mixin
|
|
114
|
+
|
|
115
|
+
// scss-docs-start btn-size-mixin
|
|
116
|
+
@mixin size($padding-y, $padding-x, $font-size, $border-radius) {
|
|
117
|
+
padding: $padding-y $padding-x;
|
|
118
|
+
font-size: $font-size;
|
|
119
|
+
// Manually declare to provide an override to the browser default
|
|
120
|
+
//@include border-radius($border-radius, 0);
|
|
121
|
+
}
|
|
122
|
+
// scss-docs-end btn-size-mixin
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ------------------------------------------------------------------
|
|
3
|
+
* ███████╗ ██████╗ ██████╗███████╗██╗ ███████╗ ██████╗ ███╗ ██╗
|
|
4
|
+
* ██╔════╝██╔════╝██╔════╝██╔════╝██║ ██╔════╝██╔═══██╗████╗ ██║
|
|
5
|
+
* ███████╗██║ ██║ ███████╗██║ █████╗ ██║ ██║██╔██╗ ██║
|
|
6
|
+
* ╚════██║██║ ██║ ╚════██║██║ ██╔══╝ ██║ ██║██║╚██╗██║
|
|
7
|
+
* ███████║╚██████╗╚██████╗███████║███████╗███████╗╚██████╔╝██║ ╚████║
|
|
8
|
+
* ╚══════╝ ╚═════╝ ╚═════╝╚══════╝╚══════╝╚══════╝ ╚═════╝ ╚═╝ ╚═══╝
|
|
9
|
+
*
|
|
10
|
+
* SCSSLEON v1.0.0 (https://nulllogic.github.io/scssleon/)
|
|
11
|
+
* Copyright 2011-2024 NullLogic
|
|
12
|
+
* Licensed under MIT (https://nulllogic.github.io/scssleon/blob/main/LICENSE)
|
|
13
|
+
* ------------------------------------------------------------------
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
-------------------------------------------------------
|
|
18
|
+
Main configuration - initial configuration requirement
|
|
19
|
+
-------------------------------------------------------
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
// Defining two main variables ( config and theme ) at the top
|
|
23
|
+
// Those two variables will be used to store configuration settings and theme settings
|
|
24
|
+
// You can easily customize any available options to fit your needs
|
|
25
|
+
$config: (
|
|
26
|
+
prefix: "xii",
|
|
27
|
+
enable: (
|
|
28
|
+
wrapper: false,
|
|
29
|
+
),
|
|
30
|
+
) !default;
|
|
31
|
+
|
|
32
|
+
$theme: (
|
|
33
|
+
html: (
|
|
34
|
+
body: (),
|
|
35
|
+
),
|
|
36
|
+
) !default;
|
|
37
|
+
|
|
38
|
+
// ↓ Config
|
|
39
|
+
// Override default config | @example
|
|
40
|
+
@use "config" as config with (
|
|
41
|
+
$config: $config
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
// ↓ Theme
|
|
45
|
+
/* Override default settings in the theme | @example */
|
|
46
|
+
@use "themes/default" as theme with (
|
|
47
|
+
$theme: $theme
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
// Getting updated variables
|
|
51
|
+
$config: config.$config;
|
|
52
|
+
$theme: theme.$theme;
|
|
53
|
+
|
|
54
|
+
/* Main configuration END
|
|
55
|
+
-------------------------------------------------------*/
|
|
56
|
+
|
|
57
|
+
/* ------------------------------------------------------------------
|
|
58
|
+
* Loading modules - this is default configuration with all modules enabled
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
// ↓ Root
|
|
62
|
+
@use "root" with (
|
|
63
|
+
$config: $config,
|
|
64
|
+
$theme: $theme
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
// Great reset
|
|
68
|
+
@use "reset" with (
|
|
69
|
+
$config: $config,
|
|
70
|
+
$theme: $theme
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
// Base
|
|
74
|
+
// Special utility, that will dynamically generate CSS
|
|
75
|
+
// properties for HTML tags, specified in theme
|
|
76
|
+
@use "base" with (
|
|
77
|
+
$config: $config,
|
|
78
|
+
$theme: $theme
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
// Amazing content
|
|
82
|
+
// Special class `.content` to allow formatting of the default html tags
|
|
83
|
+
@use "content" with (
|
|
84
|
+
$config: $config,
|
|
85
|
+
$theme: $theme
|
|
86
|
+
);
|
|
87
|
+
|
|
88
|
+
// ↓ Container
|
|
89
|
+
@use "components/container" with (
|
|
90
|
+
$config: $config,
|
|
91
|
+
$theme: $theme
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
// ↓ Card
|
|
95
|
+
@use "components/card" with (
|
|
96
|
+
$config: $config,
|
|
97
|
+
$theme: $theme
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
// ↓ Badge
|
|
101
|
+
@use "components/badge" with (
|
|
102
|
+
$config: $config,
|
|
103
|
+
$theme: $theme
|
|
104
|
+
);
|
|
105
|
+
|
|
106
|
+
// ↓ Form
|
|
107
|
+
@use "components/form" with (
|
|
108
|
+
$config: $config,
|
|
109
|
+
$theme: $theme
|
|
110
|
+
);
|
|
111
|
+
|
|
112
|
+
// ↓ Buttons
|
|
113
|
+
@use "components/button" with (
|
|
114
|
+
$config: $config,
|
|
115
|
+
$theme: $theme
|
|
116
|
+
);
|
|
117
|
+
@use "components/button-group" with (
|
|
118
|
+
$config: $config,
|
|
119
|
+
$theme: $theme
|
|
120
|
+
);
|
|
121
|
+
|
|
122
|
+
////@use "components/icon";
|
|
123
|
+
//@use "components/button";
|
|
124
|
+
////@use "components/button-group";
|
|
125
|
+
|
|
126
|
+
// ↓ Breadcrumbs
|
|
127
|
+
@use "components/breadcrumb" with (
|
|
128
|
+
$config: $config,
|
|
129
|
+
$theme: $theme
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
@use "components/alert" with (
|
|
133
|
+
$config: $config,
|
|
134
|
+
$theme: $theme
|
|
135
|
+
);
|
|
136
|
+
|
|
137
|
+
@use "components/accordion" with (
|
|
138
|
+
$config: $config,
|
|
139
|
+
$theme: $theme
|
|
140
|
+
);
|
|
141
|
+
|
|
142
|
+
// ↓ Table
|
|
143
|
+
//@use 'components/table' with (
|
|
144
|
+
// $config : config.$updated,
|
|
145
|
+
// $theme: theme.$updated
|
|
146
|
+
//);
|
|
147
|
+
|
|
148
|
+
// ↓ Overlay
|
|
149
|
+
@use "components/overlay" with (
|
|
150
|
+
$config: $config,
|
|
151
|
+
$theme: $theme
|
|
152
|
+
);
|
|
153
|
+
|
|
154
|
+
// ↓ Pagination
|
|
155
|
+
@use "components/pagination" with (
|
|
156
|
+
$config: $config,
|
|
157
|
+
$theme: $theme
|
|
158
|
+
);
|
|
159
|
+
|
|
160
|
+
// ↓ Placeholder
|
|
161
|
+
@use "components/placeholder" with (
|
|
162
|
+
$config: $config,
|
|
163
|
+
$theme: $theme
|
|
164
|
+
);
|
|
165
|
+
|
|
166
|
+
// ↓ Modal
|
|
167
|
+
@use "components/modal" with (
|
|
168
|
+
$config: $config,
|
|
169
|
+
$theme: $theme
|
|
170
|
+
);
|
|
171
|
+
|
|
172
|
+
// ↓ Loader
|
|
173
|
+
@use "components/loader" with (
|
|
174
|
+
$config: $config,
|
|
175
|
+
$theme: $theme
|
|
176
|
+
);
|
|
177
|
+
|
|
178
|
+
// ↓ Nav
|
|
179
|
+
@use "components/nav" with (
|
|
180
|
+
$config: $config,
|
|
181
|
+
$theme: $theme
|
|
182
|
+
);
|
|
183
|
+
|
|
184
|
+
// ↓ Navigation bar
|
|
185
|
+
@use "components/navbar" with (
|
|
186
|
+
$config: $config,
|
|
187
|
+
$theme: $theme
|
|
188
|
+
);
|
|
189
|
+
|
|
190
|
+
// ↓ Sidecap
|
|
191
|
+
@use "components/sidecap" with (
|
|
192
|
+
$config: $config,
|
|
193
|
+
$theme: $theme
|
|
194
|
+
);
|
|
195
|
+
|
|
196
|
+
// ↓ Helpers
|
|
197
|
+
@use "helpers/clearfix";
|
|
198
|
+
@use "helpers/screen_reader";
|
|
199
|
+
@use "helpers/text_truncate";
|
|
200
|
+
|
|
201
|
+
// ↓ Utilities
|
|
202
|
+
@use "utilities/api" with (
|
|
203
|
+
$config: $config,
|
|
204
|
+
$theme: $theme
|
|
205
|
+
);
|