procode-vs-theme 1.0.3 → 1.0.4
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/dist/index.esm.js +48 -11
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +48 -11
- package/dist/index.js.map +1 -1
- package/dist/src/{_border.scss → base/_border.scss} +11 -8
- package/dist/src/base/_color.scss +41 -0
- package/dist/src/base/_custom-properties.scss +102 -0
- package/dist/src/base/_font.scss +37 -0
- package/dist/src/base/_size.scss +7 -0
- package/dist/src/base/_space.scss +27 -0
- package/dist/src/base/mixins/_breakpoints.scss +27 -0
- package/dist/src/baseExports.ts +35 -0
- package/dist/src/components/_buttons.scss +387 -0
- package/dist/src/components.ts +20 -0
- package/dist/src/index.scss +71 -24
- package/dist/src/index.ts +52 -0
- package/dist/src/layout.ts +23 -0
- package/dist/src/utilities/_cursor.scss +7 -0
- package/dist/src/utilities/_display.scss +20 -0
- package/dist/src/utilities/_flex.scss +82 -0
- package/dist/src/utilities/_opacity.scss +7 -0
- package/dist/src/utilities/_overflow.scss +7 -0
- package/dist/src/utilities/_position.scss +26 -0
- package/dist/src/utilities/_sizing.scss +13 -0
- package/dist/src/utilities/_text.scss +49 -0
- package/dist/src/utilities/_visibility.scss +2 -0
- package/dist/src/utilities/background-color/index.scss +37 -0
- package/dist/src/{_border-radius.scss → utilities/border/_border-radius.scss} +29 -17
- package/dist/src/utilities/box-shadow/index.scss +17 -0
- package/dist/src/utilities/size/index.scss +9 -0
- package/dist/src/utilities/spaces/_gap.scss +15 -0
- package/dist/src/utilities/spaces/_margin.scss +46 -0
- package/dist/src/utilities/spaces/_padding.scss +37 -0
- package/dist/src/utilities/typography/_color.scss +51 -0
- package/dist/src/utilities.ts +112 -0
- package/dist/src/variables.ts +36 -0
- package/dist/types/baseExports.d.ts +0 -2
- package/dist/types/utilities.d.ts +18 -0
- package/dist/types/variables.d.ts +0 -2
- package/dist/utilities.esm.js +39 -3
- package/dist/utilities.esm.js.map +1 -1
- package/dist/utilities.js +47 -2
- package/dist/utilities.js.map +1 -1
- package/dist/variables.esm.js +1 -4
- package/dist/variables.esm.js.map +1 -1
- package/dist/variables.js +0 -4
- package/dist/variables.js.map +1 -1
- package/package.json +2 -2
- package/src/base/_border.scss +11 -8
- package/src/base/_color.scss +3 -1
- package/src/base/_custom-properties.scss +102 -0
- package/src/base/_font.scss +37 -26
- package/src/base/_size.scss +7 -4
- package/src/base/_space.scss +27 -4
- package/src/base/mixins/_breakpoints.scss +27 -0
- package/src/baseExports.ts +0 -4
- package/src/components/_buttons.scss +387 -38
- package/src/index.scss +71 -24
- package/src/utilities/_cursor.scss +7 -0
- package/src/utilities/_display.scss +20 -0
- package/src/utilities/_flex.scss +82 -0
- package/src/utilities/_opacity.scss +7 -0
- package/src/utilities/_overflow.scss +7 -0
- package/src/utilities/_position.scss +26 -0
- package/src/utilities/_sizing.scss +13 -0
- package/src/utilities/_text.scss +49 -0
- package/src/utilities/_visibility.scss +2 -0
- package/src/utilities/border/_border-radius.scss +29 -17
- package/src/utilities/box-shadow/index.scss +17 -8
- package/src/utilities/spaces/_gap.scss +15 -20
- package/src/utilities/spaces/_margin.scss +46 -69
- package/src/utilities/spaces/_padding.scss +37 -69
- package/src/utilities/typography/_color.scss +51 -35
- package/src/utilities.ts +112 -67
- package/src/variables.ts +1 -5
- package/dist/src/_apply-theme.scss +0 -28
- package/dist/src/_buttons.scss +0 -38
- package/dist/src/_color.scss +0 -35
- package/dist/src/_gap.scss +0 -20
- package/dist/src/_margin.scss +0 -69
- package/dist/src/_padding.scss +0 -69
- package/dist/src/_size.scss +0 -4
- package/dist/src/_space.scss +0 -4
- package/src/base/mixins/_apply-theme.scss +0 -28
- /package/dist/src/{_font_size-mx.scss → base/mixins/_font_size-mx.scss} +0 -0
- /package/dist/src/{_media-query-mx.scss → base/mixins/_media-query-mx.scss} +0 -0
- /package/dist/src/{_cards.scss → components/_cards.scss} +0 -0
- /package/dist/src/{_input.scss → components/_input.scss} +0 -0
- /package/dist/src/{_drawer.scss → layout/_drawer.scss} +0 -0
- /package/dist/src/{_footer.scss → layout/_footer.scss} +0 -0
- /package/dist/src/{_header.scss → layout/_header.scss} +0 -0
- /package/dist/src/{_sidebar.scss → layout/_sidebar.scss} +0 -0
- /package/dist/src/{_reset.scss → utilities/_reset.scss} +0 -0
- /package/dist/src/{_border-color.scss → utilities/border/_border-color.scss} +0 -0
- /package/dist/src/{_border-size.scss → utilities/border/_border-size.scss} +0 -0
- /package/dist/src/{_font.scss → utilities/typography/_font.scss} +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
@use "../base/mixins/breakpoints" as bp;
|
|
2
|
+
|
|
3
|
+
// Text alignment
|
|
4
|
+
.qo-text-start { text-align: left; }
|
|
5
|
+
.qo-text-end { text-align: right; }
|
|
6
|
+
.qo-text-center { text-align: center; }
|
|
7
|
+
.qo-text-justify { text-align: justify; }
|
|
8
|
+
|
|
9
|
+
// Text wrapping
|
|
10
|
+
.qo-text-nowrap { white-space: nowrap; }
|
|
11
|
+
.qo-text-wrap { white-space: normal; }
|
|
12
|
+
.qo-text-truncate {
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
text-overflow: ellipsis;
|
|
15
|
+
white-space: nowrap;
|
|
16
|
+
}
|
|
17
|
+
.qo-text-break {
|
|
18
|
+
word-wrap: break-word;
|
|
19
|
+
word-break: break-word;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// Text transform
|
|
23
|
+
.qo-text-uppercase { text-transform: uppercase; }
|
|
24
|
+
.qo-text-lowercase { text-transform: lowercase; }
|
|
25
|
+
.qo-text-capitalize { text-transform: capitalize; }
|
|
26
|
+
|
|
27
|
+
// Text decoration
|
|
28
|
+
.qo-text-decoration-none { text-decoration: none; }
|
|
29
|
+
.qo-text-decoration-underline { text-decoration: underline; }
|
|
30
|
+
.qo-text-decoration-line-through { text-decoration: line-through; }
|
|
31
|
+
|
|
32
|
+
// Font style
|
|
33
|
+
.qo-fst-italic { font-style: italic; }
|
|
34
|
+
.qo-fst-normal { font-style: normal; }
|
|
35
|
+
|
|
36
|
+
// Line height
|
|
37
|
+
.qo-lh-1 { line-height: 1; }
|
|
38
|
+
.qo-lh-sm { line-height: 1.25; }
|
|
39
|
+
.qo-lh-base { line-height: 1.5; }
|
|
40
|
+
.qo-lh-lg { line-height: 2; }
|
|
41
|
+
|
|
42
|
+
// Responsive text alignment
|
|
43
|
+
@each $bp-name, $bp-value in bp.$breakpoints {
|
|
44
|
+
@media (min-width: $bp-value) {
|
|
45
|
+
.qo-text-#{$bp-name}-start { text-align: left; }
|
|
46
|
+
.qo-text-#{$bp-name}-end { text-align: right; }
|
|
47
|
+
.qo-text-#{$bp-name}-center { text-align: center; }
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -1,17 +1,29 @@
|
|
|
1
|
-
@use "../../base/border" as bo;
|
|
2
|
-
|
|
3
|
-
.qo-border-radius-
|
|
4
|
-
border-radius: bo.$border-radius-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.qo-border-radius-
|
|
8
|
-
border-radius: bo.$border-radius-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.qo-border-radius-
|
|
12
|
-
border-radius: bo.$border-radius-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.qo-border-radius-
|
|
16
|
-
border-radius: bo.$border-radius-
|
|
17
|
-
}
|
|
1
|
+
@use "../../base/border" as bo;
|
|
2
|
+
|
|
3
|
+
.qo-border-radius-0 {
|
|
4
|
+
border-radius: bo.$border-radius-0;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.qo-border-radius-sm {
|
|
8
|
+
border-radius: bo.$border-radius-sm;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.qo-border-radius-md {
|
|
12
|
+
border-radius: bo.$border-radius-md;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.qo-border-radius-lg {
|
|
16
|
+
border-radius: bo.$border-radius-lg;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.qo-border-radius-xl {
|
|
20
|
+
border-radius: bo.$border-radius-xl;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.qo-border-radius-pill {
|
|
24
|
+
border-radius: bo.$border-radius-pill;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.qo-border-radius-full {
|
|
28
|
+
border-radius: bo.$border-radius-full;
|
|
29
|
+
}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
@use "../../base/color" as cl;
|
|
2
|
-
|
|
3
|
-
.qo-boxshadow-
|
|
4
|
-
box-shadow:
|
|
5
|
-
}
|
|
6
|
-
.qo-boxshadow-
|
|
7
|
-
box-shadow: 0
|
|
8
|
-
}
|
|
1
|
+
@use "../../base/color" as cl;
|
|
2
|
+
|
|
3
|
+
.qo-boxshadow-none {
|
|
4
|
+
box-shadow: none;
|
|
5
|
+
}
|
|
6
|
+
.qo-boxshadow-sm {
|
|
7
|
+
box-shadow: 0 1px 2px 0 cl.$boxshadow-primary;
|
|
8
|
+
}
|
|
9
|
+
.qo-boxshadow-md {
|
|
10
|
+
box-shadow: 0 4px 8px 0 cl.$boxshadow-primary;
|
|
11
|
+
}
|
|
12
|
+
.qo-boxshadow-lg {
|
|
13
|
+
box-shadow: 0 8px 16px 0 cl.$boxshadow-primary;
|
|
14
|
+
}
|
|
15
|
+
.qo-boxshadow-xl {
|
|
16
|
+
box-shadow: 0 12px 24px 0 cl.$boxshadow-primary;
|
|
17
|
+
}
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
@use "../../base/space" as sp;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
gap
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
.qo-gap-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
gap: sp.$space-lg;
|
|
17
|
-
}
|
|
18
|
-
.qo-gap-xl {
|
|
19
|
-
gap: sp.$space-xl;
|
|
20
|
-
}
|
|
1
|
+
@use "../../base/space" as sp;
|
|
2
|
+
|
|
3
|
+
@each $key, $value in sp.$spacers {
|
|
4
|
+
.qo-gap-#{$key} {
|
|
5
|
+
gap: $value;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.qo-gap-x-#{$key} {
|
|
9
|
+
column-gap: $value;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.qo-gap-y-#{$key} {
|
|
13
|
+
row-gap: $value;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,69 +1,46 @@
|
|
|
1
|
-
@use "../../base/space" as sp;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
.qo-margin-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
margin
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
.qo-margin-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
.qo-margin-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
.qo-margin-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
.qo-margin-botttom-lg {
|
|
48
|
-
margin-bottom: sp.$space-lg;
|
|
49
|
-
}
|
|
50
|
-
.qo-margin-left-lg {
|
|
51
|
-
margin-left: sp.$space-lg;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
//extra large
|
|
55
|
-
.qo-margin-xl {
|
|
56
|
-
margin: sp.$space-xl;
|
|
57
|
-
}
|
|
58
|
-
.qo-margin-top-xl {
|
|
59
|
-
margin-top: sp.$space-xl;
|
|
60
|
-
}
|
|
61
|
-
.qo-margin-right-xl {
|
|
62
|
-
margin-right: sp.$space-xl;
|
|
63
|
-
}
|
|
64
|
-
.qo-margin-botttom-xl {
|
|
65
|
-
margin-bottom: sp.$space-xl;
|
|
66
|
-
}
|
|
67
|
-
.qo-margin-left-xl {
|
|
68
|
-
margin-left: sp.$space-xl;
|
|
69
|
-
}
|
|
1
|
+
@use "../../base/space" as sp;
|
|
2
|
+
|
|
3
|
+
$_directions: (
|
|
4
|
+
"": "",
|
|
5
|
+
"top-": "top",
|
|
6
|
+
"right-": "right",
|
|
7
|
+
"bottom-": "bottom",
|
|
8
|
+
"left-": "left",
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
@each $key, $value in sp.$spacers {
|
|
12
|
+
@each $dir-name, $dir-prop in $_directions {
|
|
13
|
+
.qo-margin-#{$dir-name}#{$key} {
|
|
14
|
+
@if $dir-prop == "" {
|
|
15
|
+
margin: $value;
|
|
16
|
+
} @else {
|
|
17
|
+
margin-#{$dir-prop}: $value;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.qo-margin-x-#{$key} {
|
|
23
|
+
margin-left: $value;
|
|
24
|
+
margin-right: $value;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.qo-margin-y-#{$key} {
|
|
28
|
+
margin-top: $value;
|
|
29
|
+
margin-bottom: $value;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Auto margins
|
|
34
|
+
.qo-margin-auto { margin: auto; }
|
|
35
|
+
.qo-margin-x-auto { margin-left: auto; margin-right: auto; }
|
|
36
|
+
.qo-margin-y-auto { margin-top: auto; margin-bottom: auto; }
|
|
37
|
+
.qo-margin-top-auto { margin-top: auto; }
|
|
38
|
+
.qo-margin-bottom-auto { margin-bottom: auto; }
|
|
39
|
+
.qo-margin-left-auto { margin-left: auto; }
|
|
40
|
+
.qo-margin-right-auto { margin-right: auto; }
|
|
41
|
+
|
|
42
|
+
// @deprecated — typo aliases kept for backwards compatibility
|
|
43
|
+
.qo-margin-botttom-sm { margin-bottom: sp.$space-sm; }
|
|
44
|
+
.qo-margin-botttom-md { margin-bottom: sp.$space-md; }
|
|
45
|
+
.qo-margin-botttom-lg { margin-bottom: sp.$space-lg; }
|
|
46
|
+
.qo-margin-botttom-xl { margin-bottom: sp.$space-xl; }
|
|
@@ -1,69 +1,37 @@
|
|
|
1
|
-
@use "../../base/space" as sp;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
.qo-padding-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
padding
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
.qo-padding-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
.qo-padding-lg {
|
|
39
|
-
padding: sp.$space-lg;
|
|
40
|
-
}
|
|
41
|
-
.qo-padding-top-lg {
|
|
42
|
-
padding-top: sp.$space-lg;
|
|
43
|
-
}
|
|
44
|
-
.qo-padding-right-lg {
|
|
45
|
-
padding-right: sp.$space-lg;
|
|
46
|
-
}
|
|
47
|
-
.qo-padding-botttom-lg {
|
|
48
|
-
padding-bottom: sp.$space-lg;
|
|
49
|
-
}
|
|
50
|
-
.qo-padding-left-lg {
|
|
51
|
-
padding-left: sp.$space-lg;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
//extra large
|
|
55
|
-
.qo-padding-xl {
|
|
56
|
-
padding: sp.$space-xl;
|
|
57
|
-
}
|
|
58
|
-
.qo-padding-top-xl {
|
|
59
|
-
padding-top: sp.$space-xl;
|
|
60
|
-
}
|
|
61
|
-
.qo-padding-right-xl {
|
|
62
|
-
padding-right: sp.$space-xl;
|
|
63
|
-
}
|
|
64
|
-
.qo-padding-botttom-xl {
|
|
65
|
-
padding-bottom: sp.$space-xl;
|
|
66
|
-
}
|
|
67
|
-
.qo-padding-left-xl {
|
|
68
|
-
padding-left: sp.$space-xl;
|
|
69
|
-
}
|
|
1
|
+
@use "../../base/space" as sp;
|
|
2
|
+
|
|
3
|
+
$_directions: (
|
|
4
|
+
"": "",
|
|
5
|
+
"top-": "top",
|
|
6
|
+
"right-": "right",
|
|
7
|
+
"bottom-": "bottom",
|
|
8
|
+
"left-": "left",
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
@each $key, $value in sp.$spacers {
|
|
12
|
+
@each $dir-name, $dir-prop in $_directions {
|
|
13
|
+
.qo-padding-#{$dir-name}#{$key} {
|
|
14
|
+
@if $dir-prop == "" {
|
|
15
|
+
padding: $value;
|
|
16
|
+
} @else {
|
|
17
|
+
padding-#{$dir-prop}: $value;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.qo-padding-x-#{$key} {
|
|
23
|
+
padding-left: $value;
|
|
24
|
+
padding-right: $value;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.qo-padding-y-#{$key} {
|
|
28
|
+
padding-top: $value;
|
|
29
|
+
padding-bottom: $value;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// @deprecated — typo aliases kept for backwards compatibility
|
|
34
|
+
.qo-padding-botttom-sm { padding-bottom: sp.$space-sm; }
|
|
35
|
+
.qo-padding-botttom-md { padding-bottom: sp.$space-md; }
|
|
36
|
+
.qo-padding-botttom-lg { padding-bottom: sp.$space-lg; }
|
|
37
|
+
.qo-padding-botttom-xl { padding-bottom: sp.$space-xl; }
|
|
@@ -1,35 +1,51 @@
|
|
|
1
|
-
@use "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "../../base/color" as cl;
|
|
3
|
+
|
|
4
|
+
.qo-text-primary {
|
|
5
|
+
color: cl.$text-primary;
|
|
6
|
+
}
|
|
7
|
+
.qo-text-secondary {
|
|
8
|
+
color: cl.$text-secondary;
|
|
9
|
+
}
|
|
10
|
+
.qo-text-success {
|
|
11
|
+
color: cl.$text-success;
|
|
12
|
+
}
|
|
13
|
+
.qo-text-warning {
|
|
14
|
+
color: cl.$text-warning;
|
|
15
|
+
}
|
|
16
|
+
.qo-text-danger {
|
|
17
|
+
color: cl.$text-danger;
|
|
18
|
+
}
|
|
19
|
+
.qo-text-info {
|
|
20
|
+
color: cl.$text-info;
|
|
21
|
+
}
|
|
22
|
+
.qo-text-default {
|
|
23
|
+
color: cl.$text-default;
|
|
24
|
+
}
|
|
25
|
+
.qo-text-dark {
|
|
26
|
+
color: cl.$text-dark;
|
|
27
|
+
}
|
|
28
|
+
.qo-text-light {
|
|
29
|
+
color: cl.$text-light;
|
|
30
|
+
}
|
|
31
|
+
.qo-text-tertiary {
|
|
32
|
+
color: cl.$text-tertiary;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// Higher specificity variants when used with .qo-btn (beats Kendo .k-button-* selectors)
|
|
36
|
+
.qo-btn {
|
|
37
|
+
&.qo-text-primary { color: cl.$text-primary; &:hover, &:focus, &:active { color: cl.$text-primary-hover; } }
|
|
38
|
+
&.qo-text-secondary { color: cl.$text-secondary; &:hover, &:focus, &:active { color: cl.$text-dark; } }
|
|
39
|
+
&.qo-text-success { color: cl.$text-success; &:hover, &:focus, &:active { color: color.adjust(cl.$text-success, $lightness: -10%); } }
|
|
40
|
+
&.qo-text-warning { color: cl.$text-warning; &:hover, &:focus, &:active { color: color.adjust(cl.$text-warning, $lightness: -10%); } }
|
|
41
|
+
&.qo-text-danger { color: cl.$text-danger; &:hover, &:focus, &:active { color: cl.$text-danger-hover; } }
|
|
42
|
+
&.qo-text-info { color: cl.$text-info; &:hover, &:focus, &:active { color: color.adjust(cl.$text-info, $lightness: -10%); } }
|
|
43
|
+
&.qo-text-default { color: cl.$text-default; &:hover, &:focus, &:active { color: cl.$text-dark; } }
|
|
44
|
+
&.qo-text-dark { color: cl.$text-dark; &:hover, &:focus, &:active { color: color.adjust(cl.$text-dark, $lightness: -10%); } }
|
|
45
|
+
&.qo-text-light { color: cl.$text-light; &:hover, &:focus, &:active { color: cl.$text-light; } }
|
|
46
|
+
&.qo-text-tertiary { color: cl.$text-tertiary; &:hover, &:focus, &:active { color: color.adjust(cl.$text-tertiary, $lightness: -10%); } }
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.qo-validation {
|
|
50
|
+
color: cl.$text-danger;
|
|
51
|
+
}
|
package/src/utilities.ts
CHANGED
|
@@ -1,67 +1,112 @@
|
|
|
1
|
-
// VS Theme Utilities Export
|
|
2
|
-
// Provides access to all utility styles
|
|
3
|
-
|
|
4
|
-
// Reset and base utilities
|
|
5
|
-
export const reset = './utilities/_reset.scss';
|
|
6
|
-
|
|
7
|
-
// Typography utilities
|
|
8
|
-
export const typographyFont = './utilities/typography/_font.scss';
|
|
9
|
-
export const typographyColor = './utilities/typography/_color.scss';
|
|
10
|
-
export const typography = [typographyFont, typographyColor];
|
|
11
|
-
|
|
12
|
-
// Background utilities
|
|
13
|
-
export const backgroundColor = './utilities/background-color/index.scss';
|
|
14
|
-
|
|
15
|
-
// Border utilities
|
|
16
|
-
export const borderColor = './utilities/border/_border-color.scss';
|
|
17
|
-
export const borderRadius = './utilities/border/_border-radius.scss';
|
|
18
|
-
export const borderSize = './utilities/border/_border-size.scss';
|
|
19
|
-
export const borders = [borderColor, borderRadius, borderSize];
|
|
20
|
-
|
|
21
|
-
// Spacing utilities
|
|
22
|
-
export const gap = './utilities/spaces/_gap.scss';
|
|
23
|
-
export const margin = './utilities/spaces/_margin.scss';
|
|
24
|
-
export const padding = './utilities/spaces/_padding.scss';
|
|
25
|
-
export const spacing = [gap, margin, padding];
|
|
26
|
-
|
|
27
|
-
// Box shadow utilities
|
|
28
|
-
export const boxShadow = './utilities/box-shadow/index.scss';
|
|
29
|
-
|
|
30
|
-
// Size utilities
|
|
31
|
-
export const size = './utilities/size/index.scss';
|
|
32
|
-
|
|
33
|
-
//
|
|
34
|
-
export const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
1
|
+
// VS Theme Utilities Export
|
|
2
|
+
// Provides access to all utility styles
|
|
3
|
+
|
|
4
|
+
// Reset and base utilities
|
|
5
|
+
export const reset = './utilities/_reset.scss';
|
|
6
|
+
|
|
7
|
+
// Typography utilities
|
|
8
|
+
export const typographyFont = './utilities/typography/_font.scss';
|
|
9
|
+
export const typographyColor = './utilities/typography/_color.scss';
|
|
10
|
+
export const typography = [typographyFont, typographyColor];
|
|
11
|
+
|
|
12
|
+
// Background utilities
|
|
13
|
+
export const backgroundColor = './utilities/background-color/index.scss';
|
|
14
|
+
|
|
15
|
+
// Border utilities
|
|
16
|
+
export const borderColor = './utilities/border/_border-color.scss';
|
|
17
|
+
export const borderRadius = './utilities/border/_border-radius.scss';
|
|
18
|
+
export const borderSize = './utilities/border/_border-size.scss';
|
|
19
|
+
export const borders = [borderColor, borderRadius, borderSize];
|
|
20
|
+
|
|
21
|
+
// Spacing utilities
|
|
22
|
+
export const gap = './utilities/spaces/_gap.scss';
|
|
23
|
+
export const margin = './utilities/spaces/_margin.scss';
|
|
24
|
+
export const padding = './utilities/spaces/_padding.scss';
|
|
25
|
+
export const spacing = [gap, margin, padding];
|
|
26
|
+
|
|
27
|
+
// Box shadow utilities
|
|
28
|
+
export const boxShadow = './utilities/box-shadow/index.scss';
|
|
29
|
+
|
|
30
|
+
// Size utilities
|
|
31
|
+
export const size = './utilities/size/index.scss';
|
|
32
|
+
|
|
33
|
+
// Display utilities
|
|
34
|
+
export const display = './utilities/_display.scss';
|
|
35
|
+
|
|
36
|
+
// Flex utilities
|
|
37
|
+
export const flex = './utilities/_flex.scss';
|
|
38
|
+
|
|
39
|
+
// Text utilities
|
|
40
|
+
export const text = './utilities/_text.scss';
|
|
41
|
+
|
|
42
|
+
// Position utilities
|
|
43
|
+
export const position = './utilities/_position.scss';
|
|
44
|
+
|
|
45
|
+
// Overflow utilities
|
|
46
|
+
export const overflow = './utilities/_overflow.scss';
|
|
47
|
+
|
|
48
|
+
// Opacity utilities
|
|
49
|
+
export const opacity = './utilities/_opacity.scss';
|
|
50
|
+
|
|
51
|
+
// Cursor utilities
|
|
52
|
+
export const cursor = './utilities/_cursor.scss';
|
|
53
|
+
|
|
54
|
+
// Sizing utilities (width/height)
|
|
55
|
+
export const sizing = './utilities/_sizing.scss';
|
|
56
|
+
|
|
57
|
+
// Visibility utilities
|
|
58
|
+
export const visibility = './utilities/_visibility.scss';
|
|
59
|
+
|
|
60
|
+
// All utilities combined
|
|
61
|
+
export const allUtilities = [
|
|
62
|
+
reset,
|
|
63
|
+
...typography,
|
|
64
|
+
backgroundColor,
|
|
65
|
+
...borders,
|
|
66
|
+
...spacing,
|
|
67
|
+
boxShadow,
|
|
68
|
+
size,
|
|
69
|
+
display,
|
|
70
|
+
flex,
|
|
71
|
+
text,
|
|
72
|
+
position,
|
|
73
|
+
overflow,
|
|
74
|
+
opacity,
|
|
75
|
+
cursor,
|
|
76
|
+
sizing,
|
|
77
|
+
visibility,
|
|
78
|
+
];
|
|
79
|
+
|
|
80
|
+
export default {
|
|
81
|
+
reset,
|
|
82
|
+
typography: {
|
|
83
|
+
font: typographyFont,
|
|
84
|
+
color: typographyColor,
|
|
85
|
+
all: typography
|
|
86
|
+
},
|
|
87
|
+
backgroundColor,
|
|
88
|
+
borders: {
|
|
89
|
+
color: borderColor,
|
|
90
|
+
radius: borderRadius,
|
|
91
|
+
size: borderSize,
|
|
92
|
+
all: borders
|
|
93
|
+
},
|
|
94
|
+
spacing: {
|
|
95
|
+
gap,
|
|
96
|
+
margin,
|
|
97
|
+
padding,
|
|
98
|
+
all: spacing
|
|
99
|
+
},
|
|
100
|
+
boxShadow,
|
|
101
|
+
size,
|
|
102
|
+
display,
|
|
103
|
+
flex,
|
|
104
|
+
text,
|
|
105
|
+
position,
|
|
106
|
+
overflow,
|
|
107
|
+
opacity,
|
|
108
|
+
cursor,
|
|
109
|
+
sizing,
|
|
110
|
+
visibility,
|
|
111
|
+
all: allUtilities
|
|
112
|
+
};
|