q2-tecton-theme 1.15.1 → 1.16.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/dist/q2-tecton-theme.css +1 -1
- package/dist/q2-tecton-theme.js +1 -0
- package/dist/q2-tecton-utilities.css +1 -0
- package/dist/q2-tecton-utilities.js +1 -0
- package/package.json +2 -2
- package/rollup.config.js +35 -18
- package/src/q2-tecton-theme.js +2 -0
- package/src/q2-tecton-utilities.js +2 -0
- package/src/styles/_functions.scss +41 -0
- package/src/styles/_mixins.scss +21 -0
- package/src/styles/_variables.scss +30 -0
- package/src/styles/functional/_animation.scss +30 -0
- package/src/styles/functional/_border-radius.scss +17 -0
- package/src/styles/functional/_box-shadow.scss +17 -0
- package/src/styles/functional/_color.scss +129 -0
- package/src/styles/functional/_helpers.scss +24 -0
- package/src/styles/functional/_index.scss +6 -0
- package/src/styles/functional/_sizing.scss +124 -0
- package/src/styles/q2-tecton-theme.scss +134 -0
- package/src/styles/q2-tecton-utilities.scss +8 -0
- package/src/styles/utils/_grid.scss +111 -0
- package/src/styles/utils/_index.scss +3 -0
- package/src/styles/utils/_normalize.scss +268 -0
- package/src/styles/utils/_typography.scss +115 -0
- package/dist/index.js +0 -1
- package/src/index.js +0 -2
- package/src/q2-tecton-theme.scss +0 -1429
@@ -0,0 +1 @@
|
|
1
|
+
console.warn('This file is only meant for compilation do not use it directly');
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "q2-tecton-theme",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.16.2",
|
4
4
|
"description": "Default theme for tecton",
|
5
5
|
"main": "./dist/q2-tecton-theme.css",
|
6
6
|
"publishConfig": {
|
@@ -21,5 +21,5 @@
|
|
21
21
|
"rollup-plugin-scss": "^3.0.0",
|
22
22
|
"rollup-plugin-serve": "^1.1.0"
|
23
23
|
},
|
24
|
-
"gitHead": "
|
24
|
+
"gitHead": "a3e5887c6a29921c5403d8a8d60ba888b69c59f8"
|
25
25
|
}
|
package/rollup.config.js
CHANGED
@@ -1,21 +1,38 @@
|
|
1
|
-
import scss from
|
2
|
-
import serve from
|
1
|
+
import scss from 'rollup-plugin-scss';
|
2
|
+
import serve from 'rollup-plugin-serve';
|
3
3
|
|
4
4
|
const isWatching = process.env.ROLLUP_WATCH;
|
5
|
-
export default
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
export default [
|
6
|
+
{
|
7
|
+
input: 'src/q2-tecton-theme.js',
|
8
|
+
output: {
|
9
|
+
file: './dist/q2-tecton-theme.js',
|
10
|
+
},
|
11
|
+
plugins: [
|
12
|
+
scss({
|
13
|
+
outputStyle: 'compressed',
|
14
|
+
}),
|
15
|
+
isWatching &&
|
16
|
+
serve({
|
17
|
+
port: 2020,
|
18
|
+
contentBase: 'dist',
|
19
|
+
}),
|
20
|
+
],
|
9
21
|
},
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
}
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
+
{
|
23
|
+
input: 'src/q2-tecton-utilities.js',
|
24
|
+
output: {
|
25
|
+
file: './dist/q2-tecton-utilities.js',
|
26
|
+
},
|
27
|
+
plugins: [
|
28
|
+
scss({
|
29
|
+
outputStyle: 'compressed',
|
30
|
+
}),
|
31
|
+
isWatching &&
|
32
|
+
serve({
|
33
|
+
port: 2020,
|
34
|
+
contentBase: 'dist',
|
35
|
+
}),
|
36
|
+
],
|
37
|
+
},
|
38
|
+
];
|
@@ -0,0 +1,41 @@
|
|
1
|
+
// Returns a string to use as a class name
|
2
|
+
// This is inspired by Elassus by keeping the naming conventions consistent
|
3
|
+
@function build-class-name(
|
4
|
+
$context,
|
5
|
+
$value: null,
|
6
|
+
$breakpoint-name: null,
|
7
|
+
$pseudo-classes: null
|
8
|
+
) {
|
9
|
+
$result: #{$context};
|
10
|
+
|
11
|
+
@if($value) {
|
12
|
+
$result: #{$result}\(#{$value}\);
|
13
|
+
}
|
14
|
+
|
15
|
+
@if($breakpoint-name) {
|
16
|
+
$result: #{$result}#{$breakpoint-name};
|
17
|
+
}
|
18
|
+
|
19
|
+
$pseudo-base: $result;
|
20
|
+
|
21
|
+
@if($pseudo-classes) {
|
22
|
+
@for $index from 1 through length($pseudo-classes) {
|
23
|
+
$pseudo-class: nth($pseudo-classes, $index);
|
24
|
+
$alias: if((length($pseudo-class) > 0), nth($pseudo-class, 1), null);
|
25
|
+
$selector: if((length($pseudo-class) > 1), nth($pseudo-class, 2), null);
|
26
|
+
$new: $pseudo-base;
|
27
|
+
|
28
|
+
@if ($alias) {
|
29
|
+
$new: '#{$new}\\:#{$alias}';
|
30
|
+
}
|
31
|
+
|
32
|
+
@if ($selector) {
|
33
|
+
$new: '#{$new}:#{$selector}';
|
34
|
+
}
|
35
|
+
|
36
|
+
$result: '#{$result}, .#{$new}';
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
@return $result;
|
41
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
@mixin breakpoint($size) {
|
2
|
+
$breakpoint-xs: 480px !default;
|
3
|
+
$breakpoint-sm: 768px !default;
|
4
|
+
$breakpoint-md: 992px !default;
|
5
|
+
$breakpoint-lg: 1200px !default;
|
6
|
+
$breakpoint-xl: 1400px !default;
|
7
|
+
|
8
|
+
$min-breakpoints: (
|
9
|
+
xs: $breakpoint-xs,
|
10
|
+
sm: $breakpoint-sm,
|
11
|
+
md: $breakpoint-md,
|
12
|
+
lg: $breakpoint-lg,
|
13
|
+
xl: $breakpoint-xl,
|
14
|
+
);
|
15
|
+
|
16
|
+
$value: map-get($min-breakpoints, $size);
|
17
|
+
|
18
|
+
@media screen and (min-width: $value) {
|
19
|
+
@content;
|
20
|
+
}
|
21
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
$type-unit: 'px' !default;
|
2
|
+
$pseudo-classes-map: (
|
3
|
+
f: focus,
|
4
|
+
h: hover,
|
5
|
+
a: active,
|
6
|
+
);
|
7
|
+
$breakpoint-map: (xs, sm, md, lg, xl);
|
8
|
+
|
9
|
+
// Aliases
|
10
|
+
$color-alias: clr;
|
11
|
+
$background-color-alias: bg-#{$color-alias};
|
12
|
+
$border-alias: bd;
|
13
|
+
$border-color-alias: #{$border-alias}-#{$color-alias};
|
14
|
+
$fill-alias: fill;
|
15
|
+
$stroke-alias: stroke;
|
16
|
+
$transition-alias: trans;
|
17
|
+
$duration-alias: #{$transition-alias}-dur;
|
18
|
+
$border-radius-alias: #{$border-alias}-rad;
|
19
|
+
$box-shadow-alias: box-shd;
|
20
|
+
$margin-alias: mrg;
|
21
|
+
$padding-alias: pad;
|
22
|
+
$width-alias: w;
|
23
|
+
$height-alias: h;
|
24
|
+
$x-axis-alias: x;
|
25
|
+
$y-axis-alias: y;
|
26
|
+
$top-alias: t;
|
27
|
+
$bottom-alias: b;
|
28
|
+
$left-alias: l;
|
29
|
+
$right-alias: r;
|
30
|
+
$print-alias: pr;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
// Creates a collection of transition utility classes
|
2
|
+
// Uses $animation-map as the list of durations to create
|
3
|
+
@mixin functionalDuration($scale, $animation) {
|
4
|
+
.#{build-class-name((context: $duration-alias, value: $scale)...)} {
|
5
|
+
transition-duration: map-get($animation, duration);
|
6
|
+
}
|
7
|
+
|
8
|
+
.#{build-class-name((context: $transition-alias, value: $scale)...)} {
|
9
|
+
transition: map-get($animation, tween);
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
$animation-map: (
|
14
|
+
1: (
|
15
|
+
duration: var(--app-duration-1, 0.2s),
|
16
|
+
tween: var(--app-tween-1, 0.2s ease),
|
17
|
+
),
|
18
|
+
2: (
|
19
|
+
duration: var(--app-duration-2, 0.4s),
|
20
|
+
tween: var(--app-tween-2, 0.4s ease),
|
21
|
+
),
|
22
|
+
3: (
|
23
|
+
duration: var(--app-duration-3, 0.8s),
|
24
|
+
tween: var(--app-tween-3, 0.8s ease),
|
25
|
+
),
|
26
|
+
);
|
27
|
+
|
28
|
+
@each $scale, $animation in $animation-map {
|
29
|
+
@include functionalDuration($scale, $animation);
|
30
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// Creates a collection of border radius utility classes
|
2
|
+
// Uses $border-radius-map as the list of border radii to create
|
3
|
+
@mixin functionalBorderRadius($scale, $size) {
|
4
|
+
.#{build-class-name((context: $border-radius-alias, value: $scale)...)} {
|
5
|
+
border-radius: $size;
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
$border-radius-map: (
|
10
|
+
1: var(--app-border-radius-1, 3px),
|
11
|
+
2: var(--app-border-radius-2, 6px),
|
12
|
+
3: var(--app-border-radius-3, 12px),
|
13
|
+
);
|
14
|
+
|
15
|
+
@each $scale, $size in $border-radius-map {
|
16
|
+
@include functionalBorderRadius($scale, $size);
|
17
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// Creates a collection of transition box shadow classes
|
2
|
+
// Uses $box-shadow-map as the list of box shadow classes to create
|
3
|
+
@mixin functionalBoxShadow($scale, $value) {
|
4
|
+
.#{build-class-name((context: $box-shadow-alias, value: $scale)...)} {
|
5
|
+
box-shadow: $value;
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
$box-shadow-map: (
|
10
|
+
1: var(--app-shadow-1, 0 2px 4px rgba(0, 0, 0, 0.3)),
|
11
|
+
2: var(--app-shadow-2, 0 3px 6px rgba(0, 0, 0, 0.3)),
|
12
|
+
3: var(--app-shadow-3, 0 4px 12px rgba(0, 0, 0, 0.3)),
|
13
|
+
);
|
14
|
+
|
15
|
+
@each $scale, $value in $box-shadow-map {
|
16
|
+
@include functionalBoxShadow($scale, $value);
|
17
|
+
}
|
@@ -0,0 +1,129 @@
|
|
1
|
+
// Creates a collection of color utility classes
|
2
|
+
// Uses $color-map as the list of color groups to create
|
3
|
+
@mixin functionalColor($name, $color) {
|
4
|
+
$argument-map: (
|
5
|
+
value: $name,
|
6
|
+
pseudo-classes: $pseudo-classes-map,
|
7
|
+
);
|
8
|
+
|
9
|
+
.#{build-class-name(map-merge((context: $color-alias), $argument-map)...)} {
|
10
|
+
color: $color;
|
11
|
+
}
|
12
|
+
|
13
|
+
.#{build-class-name(map-merge((context: $background-color-alias), $argument-map)...)} {
|
14
|
+
background-color: $color;
|
15
|
+
}
|
16
|
+
|
17
|
+
.#{build-class-name(map-merge((context: $border-color-alias), $argument-map)...)} {
|
18
|
+
border-color: $color;
|
19
|
+
}
|
20
|
+
|
21
|
+
.#{build-class-name(map-merge((context: $fill-alias), $argument-map)...)} {
|
22
|
+
fill: $color;
|
23
|
+
}
|
24
|
+
|
25
|
+
.#{build-class-name(map-merge((context: $stroke-alias), $argument-map)...)} {
|
26
|
+
stroke: $color;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
$color-map: (
|
31
|
+
t-base: var(--t-base, #ffffff),
|
32
|
+
t-text: var(--t-text, #4d4d4d),
|
33
|
+
t-textA: var(--t-textA, rgba(77, 77, 77, 0.77)),
|
34
|
+
t-primary-text: var(--t-primary-text, #ffffff),
|
35
|
+
t-secondary-text: var(--t-secondary-text, #141414),
|
36
|
+
t-tertiary-text: var(--t-tertiary-text, #141414),
|
37
|
+
const-stoplight-info: var(--const-stoplight-info, #0079c1),
|
38
|
+
const-stoplight-success: var(--const-stoplight-success, #0e8a00),
|
39
|
+
const-stoplight-warning: var(--const-stoplight-warning, #f0b400),
|
40
|
+
const-stoplight-alert: var(--const-stoplight-alert, #c30000),
|
41
|
+
t-gray-1: var(--t-gray-1, #0d0d0d),
|
42
|
+
t-gray-2: var(--t-gray-2, #1a1a1a),
|
43
|
+
t-gray-3: var(--t-gray-3, #262626),
|
44
|
+
t-gray-4: var(--t-gray-4, #333333),
|
45
|
+
t-gray-5: var(--t-gray-5, #404040),
|
46
|
+
t-gray-6: var(--t-gray-6, #4d4d4d),
|
47
|
+
t-gray-7: var(--t-gray-7, #666666),
|
48
|
+
t-gray-8: var(--t-gray-8, gray),
|
49
|
+
t-gray-9: var(--t-gray-9, #999999),
|
50
|
+
t-gray-10: var(--t-gray-10, #b3b3b3),
|
51
|
+
t-gray-11: var(--t-gray-11, #cccccc),
|
52
|
+
t-gray-12: var(--t-gray-12, #d9d9d9),
|
53
|
+
t-gray-13: var(--t-gray-13, #e6e6e6),
|
54
|
+
t-gray-14: var(--t-gray-14, #f2f2f2),
|
55
|
+
t-primary: var(--t-primary, #0079c1),
|
56
|
+
t-primary-l1: var(--t-primary-l1, #008de1),
|
57
|
+
t-primary-d1: var(--t-primary-d1, #006dae),
|
58
|
+
t-primary-l2: var(--t-primary-l2, #01a0ff),
|
59
|
+
t-primary-d2: var(--t-primary-d2, #00619a),
|
60
|
+
t-primary-l3: var(--t-primary-l3, #21acff),
|
61
|
+
t-primary-d3: var(--t-primary-d3, #005587),
|
62
|
+
t-primary-l4: var(--t-primary-l4, #41b8ff),
|
63
|
+
t-primary-d4: var(--t-primary-d4, #004974),
|
64
|
+
t-primary-l5: var(--t-primary-l5, #61c4ff),
|
65
|
+
t-primary-d5: var(--t-primary-d5, #003d61),
|
66
|
+
t-secondary: var(--t-secondary, #b3c2cc),
|
67
|
+
t-secondary-l1: var(--t-secondary-l1, #bac9d1),
|
68
|
+
t-secondary-d1: var(--t-secondary-d1, #9cb0bd),
|
69
|
+
t-secondary-l2: var(--t-secondary-l2, #c2cfd6),
|
70
|
+
t-secondary-d2: var(--t-secondary-d2, #859ead),
|
71
|
+
t-secondary-l3: var(--t-secondary-l3, #c9d5db),
|
72
|
+
t-secondary-d3: var(--t-secondary-d3, #6e8c9e),
|
73
|
+
t-secondary-l4: var(--t-secondary-l4, #d1dbe0),
|
74
|
+
t-secondary-d4: var(--t-secondary-d4, #5c798a),
|
75
|
+
t-secondary-l5: var(--t-secondary-l5, #d9e1e6),
|
76
|
+
t-secondary-d5: var(--t-secondary-d5, #4d6473),
|
77
|
+
t-tertiary: var(--t-tertiary, #e8f5fc),
|
78
|
+
t-tertiary-l1: var(--t-tertiary-l1, #ebf6fc),
|
79
|
+
t-tertiary-d1: var(--t-tertiary-d1, #bee1f6),
|
80
|
+
t-tertiary-l2: var(--t-tertiary-l2, #edf7fd),
|
81
|
+
t-tertiary-d2: var(--t-tertiary-d2, #93cef1),
|
82
|
+
t-tertiary-l3: var(--t-tertiary-l3, #eff8fd),
|
83
|
+
t-tertiary-d3: var(--t-tertiary-d3, #68baeb),
|
84
|
+
t-tertiary-l4: var(--t-tertiary-l4, #f1f9fd),
|
85
|
+
t-tertiary-d4: var(--t-tertiary-d4, #3da7e6),
|
86
|
+
t-tertiary-l5: var(--t-tertiary-l5, #f4fafe),
|
87
|
+
t-tertiary-d5: var(--t-tertiary-d5, #1c91d6),
|
88
|
+
t-accent-1-l1: var(--t-accent-1-l1, #e77474),
|
89
|
+
t-accent-1: var(--t-accent-1, #e05252),
|
90
|
+
t-accent-1-d1: var(--t-accent-1-d1, #b62020),
|
91
|
+
t-accent-2-l1: var(--t-accent-2-l1, #e7ad74),
|
92
|
+
t-accent-2: var(--t-accent-2, #e09952),
|
93
|
+
t-accent-2-d1: var(--t-accent-2-d1, #b66b20),
|
94
|
+
t-accent-3-l1: var(--t-accent-3-l1, #e7e774),
|
95
|
+
t-accent-3: var(--t-accent-3, #e0e052),
|
96
|
+
t-accent-3-d1: var(--t-accent-3-d1, #b6b620),
|
97
|
+
t-accent-4-l1: var(--t-accent-4-l1, #ade774),
|
98
|
+
t-accent-4: var(--t-accent-4, #99e052),
|
99
|
+
t-accent-4-d1: var(--t-accent-4-d1, #6bb620),
|
100
|
+
t-accent-5-l1: var(--t-accent-5-l1, #74e774),
|
101
|
+
t-accent-5: var(--t-accent-5, #52e052),
|
102
|
+
t-accent-5-d1: var(--t-accent-5-d1, #20b620),
|
103
|
+
t-accent-6-l1: var(--t-accent-6-l1, #74e7ad),
|
104
|
+
t-accent-6: var(--t-accent-6, #52e099),
|
105
|
+
t-accent-6-d1: var(--t-accent-6-d1, #20b66b),
|
106
|
+
t-accent-7-l1: var(--t-accent-7-l1, #74e7e7),
|
107
|
+
t-accent-7: var(--t-accent-7, #52e0e0),
|
108
|
+
t-accent-7-d1: var(--t-accent-7-d1, #20b6b6),
|
109
|
+
t-accent-8-l1: var(--t-accent-8-l1, #74ade7),
|
110
|
+
t-accent-8: var(--t-accent-8, #5299e0),
|
111
|
+
t-accent-8-d1: var(--t-accent-8-d1, #206bb6),
|
112
|
+
t-accent-9-l1: var(--t-accent-9-l1, #7474e7),
|
113
|
+
t-accent-9: var(--t-accent-9, #5252e0),
|
114
|
+
t-accent-9-d1: var(--t-accent-9-d1, #2020b6),
|
115
|
+
t-accent-10-l1: var(--t-accent-10-l1, #ad74e7),
|
116
|
+
t-accent-10: var(--t-accent-10, #9952e0),
|
117
|
+
t-accent-10-d1: var(--t-accent-10-d1, #6b20b6),
|
118
|
+
t-accent-11-l1: var(--t-accent-11-l1, #e774e7),
|
119
|
+
t-accent-11: var(--t-accent-11, #e052e0),
|
120
|
+
t-accent-11-d1: var(--t-accent-11-d1, #b620b6),
|
121
|
+
t-accent-12-l1: var(--t-accent-12-l1, #e774ad),
|
122
|
+
t-accent-12: var(--t-accent-12, #e05299),
|
123
|
+
t-accent-12-d1: var(--t-accent-12-d1, #b6206b),
|
124
|
+
a11y-gray: var(--t-a11y-gray-color, #747474),
|
125
|
+
);
|
126
|
+
|
127
|
+
@each $name, $color in $color-map {
|
128
|
+
@include functionalColor($name, $color);
|
129
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
*:focus {
|
2
|
+
outline: none;
|
3
|
+
box-shadow: var(--const-global-focus, 0 0 0 2px #33b4ff);
|
4
|
+
}
|
5
|
+
|
6
|
+
body [stencil-hydrated]:focus {
|
7
|
+
box-shadow: none !important;
|
8
|
+
}
|
9
|
+
|
10
|
+
.content {
|
11
|
+
background-color: var(--t-base, #ffffff);
|
12
|
+
border-color: var(--t-gray-11, #cccccc);
|
13
|
+
color: var(--t-text, #4d4d4d);
|
14
|
+
}
|
15
|
+
|
16
|
+
a {
|
17
|
+
color: var(--t-primary, #0079c1);
|
18
|
+
text-decoration: none;
|
19
|
+
|
20
|
+
&:hover {
|
21
|
+
text-decoration: underline;
|
22
|
+
color: var(--t-primary-d4, #004974);
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,124 @@
|
|
1
|
+
// Creates a collection of size utility classes
|
2
|
+
// Uses $sizing-map as the list of size groups to create
|
3
|
+
@mixin functionalSizing($name, $size, $breakpoint: null) {
|
4
|
+
$argument-map: (
|
5
|
+
value: $name,
|
6
|
+
breakpoint-name: $breakpoint,
|
7
|
+
);
|
8
|
+
|
9
|
+
// Margin
|
10
|
+
.#{build-class-name(map-merge((context: $margin-alias), $argument-map)...)} {
|
11
|
+
margin: $size;
|
12
|
+
}
|
13
|
+
|
14
|
+
.#{build-class-name(map-merge((context: #{$margin-alias}-#{$y-axis-alias}), $argument-map)...)} {
|
15
|
+
margin-top: $size;
|
16
|
+
margin-bottom: $size;
|
17
|
+
}
|
18
|
+
|
19
|
+
.#{build-class-name(map-merge((context: #{$margin-alias}-#{$x-axis-alias}), $argument-map)...)} {
|
20
|
+
margin-left: $size;
|
21
|
+
margin-right: $size;
|
22
|
+
}
|
23
|
+
|
24
|
+
.#{build-class-name(map-merge((context: #{$margin-alias}-#{$top-alias}), $argument-map)...)} {
|
25
|
+
margin-top: $size;
|
26
|
+
}
|
27
|
+
|
28
|
+
.#{build-class-name(map-merge((context: #{$margin-alias}-#{$bottom-alias}), $argument-map)...)} {
|
29
|
+
margin-bottom: $size;
|
30
|
+
}
|
31
|
+
|
32
|
+
.#{build-class-name(map-merge((context: #{$margin-alias}-#{$left-alias}), $argument-map)...)} {
|
33
|
+
margin-left: $size;
|
34
|
+
}
|
35
|
+
|
36
|
+
.#{build-class-name(map-merge((context: #{$margin-alias}-#{$right-alias}), $argument-map)...)} {
|
37
|
+
margin-right: $size;
|
38
|
+
}
|
39
|
+
|
40
|
+
// Padding
|
41
|
+
.#{build-class-name(map-merge((context: $padding-alias), $argument-map)...)} {
|
42
|
+
padding: $size;
|
43
|
+
}
|
44
|
+
|
45
|
+
.#{build-class-name(map-merge((context: #{$padding-alias}-#{$y-axis-alias}), $argument-map)...)} {
|
46
|
+
padding-top: $size;
|
47
|
+
padding-bottom: $size;
|
48
|
+
}
|
49
|
+
|
50
|
+
.#{build-class-name(map-merge((context: #{$padding-alias}-#{$x-axis-alias}), $argument-map)...)} {
|
51
|
+
padding-left: $size;
|
52
|
+
padding-right: $size;
|
53
|
+
}
|
54
|
+
|
55
|
+
.#{build-class-name(map-merge((context: #{$padding-alias}-#{$top-alias}), $argument-map)...)} {
|
56
|
+
padding-top: $size;
|
57
|
+
}
|
58
|
+
|
59
|
+
.#{build-class-name(map-merge((context: #{$padding-alias}-#{$bottom-alias}), $argument-map)...)} {
|
60
|
+
padding-bottom: $size;
|
61
|
+
}
|
62
|
+
|
63
|
+
.#{build-class-name(map-merge((context: #{$padding-alias}-#{$left-alias}), $argument-map)...)} {
|
64
|
+
padding-left: $size;
|
65
|
+
}
|
66
|
+
|
67
|
+
.#{build-class-name(map-merge((context: #{$padding-alias}-#{$right-alias}), $argument-map)...)} {
|
68
|
+
padding-right: $size;
|
69
|
+
}
|
70
|
+
|
71
|
+
// Dimension
|
72
|
+
.#{build-class-name(map-merge((context: $width-alias), $argument-map)...)} {
|
73
|
+
width: $size;
|
74
|
+
}
|
75
|
+
|
76
|
+
.#{build-class-name(map-merge((context: $height-alias), $argument-map)...)} {
|
77
|
+
height: $size;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
$sizing-map: (
|
82
|
+
a: auto,
|
83
|
+
// TODO: Start Remove for 2.0
|
84
|
+
0: var(--app-scale-0, 0),
|
85
|
+
1: var(--app-scale-1, 5px),
|
86
|
+
2: var(--app-scale-2, 10px),
|
87
|
+
3: var(--app-scale-3, 15px),
|
88
|
+
4: var(--app-scale-4, 20px),
|
89
|
+
5: var(--app-scale-5, 45px),
|
90
|
+
// TODO: End Remove for 2.0
|
91
|
+
'0x': var(--app-scale-0x, 0px),
|
92
|
+
'1x': var(--app-scale-1x, 5px),
|
93
|
+
'2x': var(--app-scale-2x, 10px),
|
94
|
+
'3x': var(--app-scale-3x, 15px),
|
95
|
+
'4x': var(--app-scale-4x, 20px),
|
96
|
+
'5x': var(--app-scale-5x, 25px),
|
97
|
+
'6x': var(--app-scale-6x, 30px),
|
98
|
+
'7x': var(--app-scale-7x, 35px),
|
99
|
+
'8x': var(--app-scale-8x, 40px),
|
100
|
+
'9x': var(--app-scale-9x, 45px),
|
101
|
+
'10x': var(--app-scale-10x, 50px),
|
102
|
+
'11x': var(--app-scale-11x, 55px),
|
103
|
+
'12x': var(--app-scale-12x, 60px),
|
104
|
+
);
|
105
|
+
|
106
|
+
@each $scale, $size in $sizing-map {
|
107
|
+
@include functionalSizing($scale, $size);
|
108
|
+
}
|
109
|
+
|
110
|
+
// Screen media queries
|
111
|
+
@each $breakpoint in $breakpoint-map {
|
112
|
+
@include breakpoint($breakpoint) {
|
113
|
+
@each $scale, $size in $sizing-map {
|
114
|
+
@include functionalSizing($scale, $size, $breakpoint);
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
// Print media query
|
120
|
+
@media print {
|
121
|
+
@each $scale, $size in $sizing-map {
|
122
|
+
@include functionalSizing($scale, $size, $print-alias);
|
123
|
+
}
|
124
|
+
}
|
@@ -0,0 +1,134 @@
|
|
1
|
+
:root {
|
2
|
+
--const-stoplight-info: #0079c1;
|
3
|
+
--const-stoplight-success: #0e8a00;
|
4
|
+
--const-stoplight-warning: #f0b400;
|
5
|
+
--const-stoplight-alert: #c30000;
|
6
|
+
--const-global-focus: 0 0 0 2px #33b4ff;
|
7
|
+
--app-white: #ffffff;
|
8
|
+
--app-black: #000000;
|
9
|
+
--app-font-size: 14px;
|
10
|
+
--app-font-size-small: 12px;
|
11
|
+
--app-scale-0x: 0px;
|
12
|
+
--app-scale-1x: 5px;
|
13
|
+
--app-scale-2x: 10px;
|
14
|
+
--app-scale-3x: 15px;
|
15
|
+
--app-scale-4x: 20px;
|
16
|
+
--app-scale-5x: 25px;
|
17
|
+
--app-scale-6x: 30px;
|
18
|
+
--app-scale-7x: 35px;
|
19
|
+
--app-scale-8x: 40px;
|
20
|
+
--app-scale-9x: 45px;
|
21
|
+
--app-scale-10x: 50px;
|
22
|
+
--app-scale-11x: 55px;
|
23
|
+
--app-scale-12x: 60px;
|
24
|
+
--app-shadow-1: 0 2px 4px rgba(0, 0, 0, 0.3);
|
25
|
+
--app-shadow-2: 0 3px 6px rgba(0, 0, 0, 0.3);
|
26
|
+
--app-shadow-3: 0 4px 12px rgba(0, 0, 0, 0.3);
|
27
|
+
--app-border-radius-1: 3px;
|
28
|
+
--app-border-radius-2: 6px;
|
29
|
+
--app-border-radius-3: 12px;
|
30
|
+
--app-tween-1: 0.2s ease;
|
31
|
+
--app-tween-2: 0.4s ease;
|
32
|
+
--app-tween-3: 0.8s ease;
|
33
|
+
--app-duration-1: 0.2s;
|
34
|
+
--app-duration-2: 0.4s;
|
35
|
+
--app-duration-3: 0.8s;
|
36
|
+
--app-disabled-opacity: 0.4;
|
37
|
+
--t-base: #ffffff;
|
38
|
+
--t-text: #4d4d4d;
|
39
|
+
--t-textA: rgba(77, 77, 77, 0.77);
|
40
|
+
--t-primary-text: #ffffff;
|
41
|
+
--t-secondary-text: #141414;
|
42
|
+
--t-tertiary-text: #141414;
|
43
|
+
--t-gray-1: #0d0d0d;
|
44
|
+
--t-gray-2: #1a1a1a;
|
45
|
+
--t-gray-3: #262626;
|
46
|
+
--t-gray-4: #333333;
|
47
|
+
--t-gray-5: #404040;
|
48
|
+
--t-gray-6: #4d4d4d;
|
49
|
+
--t-gray-7: #666666;
|
50
|
+
--t-gray-8: gray;
|
51
|
+
--t-gray-9: #999999;
|
52
|
+
--t-gray-10: #b3b3b3;
|
53
|
+
--t-gray-11: #cccccc;
|
54
|
+
--t-gray-12: #d9d9d9;
|
55
|
+
--t-gray-13: #e6e6e6;
|
56
|
+
--t-gray-14: #f2f2f2;
|
57
|
+
--t-base-a0: rgba(255, 255, 255, 0);
|
58
|
+
--t-base-a1: rgba(255, 255, 255, 0.25);
|
59
|
+
--t-base-a2: rgba(255, 255, 255, 0.5);
|
60
|
+
--t-base-a3: rgba(255, 255, 255, 0.75);
|
61
|
+
--t-top-a0: rgba(13, 13, 13, 0);
|
62
|
+
--t-top-a1: rgba(13, 13, 13, 0.35);
|
63
|
+
--t-top-a2: rgba(13, 13, 13, 0.6);
|
64
|
+
--t-top-a3: rgba(13, 13, 13, 0.85);
|
65
|
+
--t-primary: #0079c1;
|
66
|
+
--t-primary-l1: #008de1;
|
67
|
+
--t-primary-d1: #006dae;
|
68
|
+
--t-primary-l2: #01a0ff;
|
69
|
+
--t-primary-d2: #00619a;
|
70
|
+
--t-primary-l3: #21acff;
|
71
|
+
--t-primary-d3: #005587;
|
72
|
+
--t-primary-l4: #41b8ff;
|
73
|
+
--t-primary-d4: #004974;
|
74
|
+
--t-primary-l5: #61c4ff;
|
75
|
+
--t-primary-d5: #003d61;
|
76
|
+
--t-secondary: #b3c2cc;
|
77
|
+
--t-secondary-l1: #bac9d1;
|
78
|
+
--t-secondary-d1: #9cb0bd;
|
79
|
+
--t-secondary-l2: #c2cfd6;
|
80
|
+
--t-secondary-d2: #859ead;
|
81
|
+
--t-secondary-l3: #c9d5db;
|
82
|
+
--t-secondary-d3: #6e8c9e;
|
83
|
+
--t-secondary-l4: #d1dbe0;
|
84
|
+
--t-secondary-d4: #5c798a;
|
85
|
+
--t-secondary-l5: #d9e1e6;
|
86
|
+
--t-secondary-d5: #4d6473;
|
87
|
+
--t-tertiary: #e8f5fc;
|
88
|
+
--t-tertiary-l1: #ebf6fc;
|
89
|
+
--t-tertiary-d1: #bee1f6;
|
90
|
+
--t-tertiary-l2: #edf7fd;
|
91
|
+
--t-tertiary-d2: #93cef1;
|
92
|
+
--t-tertiary-l3: #eff8fd;
|
93
|
+
--t-tertiary-d3: #68baeb;
|
94
|
+
--t-tertiary-l4: #f1f9fd;
|
95
|
+
--t-tertiary-d4: #3da7e6;
|
96
|
+
--t-tertiary-l5: #f4fafe;
|
97
|
+
--t-tertiary-d5: #1c91d6;
|
98
|
+
--t-accent-1-l1: #e77474;
|
99
|
+
--t-accent-1: #e05252;
|
100
|
+
--t-accent-1-d1: #b62020;
|
101
|
+
--t-accent-2-l1: #e7ad74;
|
102
|
+
--t-accent-2: #e09952;
|
103
|
+
--t-accent-2-d1: #b66b20;
|
104
|
+
--t-accent-3-l1: #e7e774;
|
105
|
+
--t-accent-3: #e0e052;
|
106
|
+
--t-accent-3-d1: #b6b620;
|
107
|
+
--t-accent-4-l1: #ade774;
|
108
|
+
--t-accent-4: #99e052;
|
109
|
+
--t-accent-4-d1: #6bb620;
|
110
|
+
--t-accent-5-l1: #74e774;
|
111
|
+
--t-accent-5: #52e052;
|
112
|
+
--t-accent-5-d1: #20b620;
|
113
|
+
--t-accent-6-l1: #74e7ad;
|
114
|
+
--t-accent-6: #52e099;
|
115
|
+
--t-accent-6-d1: #20b66b;
|
116
|
+
--t-accent-7-l1: #74e7e7;
|
117
|
+
--t-accent-7: #52e0e0;
|
118
|
+
--t-accent-7-d1: #20b6b6;
|
119
|
+
--t-accent-8-l1: #74ade7;
|
120
|
+
--t-accent-8: #5299e0;
|
121
|
+
--t-accent-8-d1: #206bb6;
|
122
|
+
--t-accent-9-l1: #7474e7;
|
123
|
+
--t-accent-9: #5252e0;
|
124
|
+
--t-accent-9-d1: #2020b6;
|
125
|
+
--t-accent-10-l1: #ad74e7;
|
126
|
+
--t-accent-10: #9952e0;
|
127
|
+
--t-accent-10-d1: #6b20b6;
|
128
|
+
--t-accent-11-l1: #e774e7;
|
129
|
+
--t-accent-11: #e052e0;
|
130
|
+
--t-accent-11-d1: #b620b6;
|
131
|
+
--t-accent-12-l1: #e774ad;
|
132
|
+
--t-accent-12: #e05299;
|
133
|
+
--t-accent-12-d1: #b6206b;
|
134
|
+
}
|