@trilogy-ds/styles 0.0.1-beta-1
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/framework/src/_all.scss +8 -0
- package/framework/src/base/_all.scss +9 -0
- package/framework/src/base/_color.scss +58 -0
- package/framework/src/base/_elements.scss +34 -0
- package/framework/src/base/_fonts.scss +2 -0
- package/framework/src/base/_generic.scss +68 -0
- package/framework/src/base/_helpers.scss +880 -0
- package/framework/src/base/_loading.scss +102 -0
- package/framework/src/base/_reset.scss +138 -0
- package/framework/src/components/_accordion.scss +178 -0
- package/framework/src/components/_all.scss +30 -0
- package/framework/src/components/_autolayout2.scss +38 -0
- package/framework/src/components/_breadcrumb.scss +45 -0
- package/framework/src/components/_card.scss +298 -0
- package/framework/src/components/_countdown.scss +55 -0
- package/framework/src/components/_disclaimer.scss +84 -0
- package/framework/src/components/_divider.scss +18 -0
- package/framework/src/components/_dropdown.scss +128 -0
- package/framework/src/components/_fab.scss +60 -0
- package/framework/src/components/_level.scss +120 -0
- package/framework/src/components/_media.scss +64 -0
- package/framework/src/components/_menu.scss +213 -0
- package/framework/src/components/_modal.scss +201 -0
- package/framework/src/components/_otp.scss +92 -0
- package/framework/src/components/_pagination.scss +182 -0
- package/framework/src/components/_plus-symbol.scss +32 -0
- package/framework/src/components/_popover.scss +340 -0
- package/framework/src/components/_price.scss +209 -0
- package/framework/src/components/_product-tour.scss +131 -0
- package/framework/src/components/_progress-radial.scss +23 -0
- package/framework/src/components/_range.scss +84 -0
- package/framework/src/components/_scroll-view.scss +19 -0
- package/framework/src/components/_search-modal.scss +197 -0
- package/framework/src/components/_segmented-control.scss +60 -0
- package/framework/src/components/_slices.scss +316 -0
- package/framework/src/components/_slider.scss +92 -0
- package/framework/src/components/_stepper.scss +397 -0
- package/framework/src/components/_switch.scss +209 -0
- package/framework/src/components/_tabs.scss +212 -0
- package/framework/src/components/_timeline.scss +367 -0
- package/framework/src/elements/_alert.scss +91 -0
- package/framework/src/elements/_all.scss +35 -0
- package/framework/src/elements/_badge.scss +81 -0
- package/framework/src/elements/_box.scss +267 -0
- package/framework/src/elements/_button.scss +192 -0
- package/framework/src/elements/_checkbox.scss +39 -0
- package/framework/src/elements/_checkradio.scss +173 -0
- package/framework/src/elements/_chips.scss +100 -0
- package/framework/src/elements/_container.scss +108 -0
- package/framework/src/elements/_dot.scss +6 -0
- package/framework/src/elements/_entry.scss +109 -0
- package/framework/src/elements/_form.scss +593 -0
- package/framework/src/elements/_icon.scss +384 -0
- package/framework/src/elements/_image.scss +59 -0
- package/framework/src/elements/_input-gauge.scss +37 -0
- package/framework/src/elements/_input-icons.scss +41 -0
- package/framework/src/elements/_link.scss +79 -0
- package/framework/src/elements/_list.scss +61 -0
- package/framework/src/elements/_loader.scss +126 -0
- package/framework/src/elements/_notification.scss +151 -0
- package/framework/src/elements/_options.scss +146 -0
- package/framework/src/elements/_other.scss +44 -0
- package/framework/src/elements/_paragraph.scss +101 -0
- package/framework/src/elements/_progress.scss +212 -0
- package/framework/src/elements/_radio.scss +67 -0
- package/framework/src/elements/_select.scss +315 -0
- package/framework/src/elements/_sticker.scss +151 -0
- package/framework/src/elements/_switch.scss +108 -0
- package/framework/src/elements/_table.scss +298 -0
- package/framework/src/elements/_tag.scss +131 -0
- package/framework/src/elements/_textarea.scss +125 -0
- package/framework/src/elements/_timeline.scss +283 -0
- package/framework/src/elements/_title.scss +139 -0
- package/framework/src/elements/_toaster.scss +128 -0
- package/framework/src/grid/_all.scss +3 -0
- package/framework/src/grid/_columns.scss +952 -0
- package/framework/src/grid/_rows.scss +47 -0
- package/framework/src/grid/_tiles.scss +78 -0
- package/framework/src/layout/_all.scss +6 -0
- package/framework/src/layout/_hero.scss +268 -0
- package/framework/src/layout/_main.scss +36 -0
- package/framework/src/layout/_section.scss +65 -0
- package/framework/src/layout/_toolbar.scss +100 -0
- package/framework/src/trilogy-core.scss +16 -0
- package/framework/src/trilogy-mangled.scss +14 -0
- package/framework/src/trilogy-namespaced.scss +14 -0
- package/framework/src/trilogy.scss +8 -0
- package/framework/src/utilities/_all.scss +9 -0
- package/framework/src/utilities/_animations.scss +71 -0
- package/framework/src/utilities/_controls.scss +67 -0
- package/framework/src/utilities/_derived-variables.scss +104 -0
- package/framework/src/utilities/_functions.scss +94 -0
- package/framework/src/utilities/_initial-variables.scss +150 -0
- package/framework/src/utilities/_mixins.scss +745 -0
- package/framework/src/utilities/_post.scss +6 -0
- package/framework/src/utilities/_pre.scss +5 -0
- package/framework/src/utilities/_spacing.scss +10 -0
- package/framework/src/utilities/_tools.scss +3 -0
- package/package.json +22 -0
- package/themes/default/src/_all.scss +1 -0
- package/themes/default/src/assets.scss +11 -0
- package/themes/default/src/utilities/_all.scss +0 -0
- package/themes/default/src/utilities/_post.scss +0 -0
- package/themes/default/src/utilities/_pre.scss +3 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
@function getColor( $name ) {
|
|
4
|
+
@return var(--color-#{nth(map-get($colors,$name),1)})
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@function getColorValue( $name ) {
|
|
8
|
+
@return #{nth(map-get($colors,$name),2)}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@function getColorBrandName( $name ) {
|
|
12
|
+
@return #{nth(map-get($colors,$name),1)}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@function getVariantColor($name, $n:1) {
|
|
16
|
+
@return #{nth(map-get($colors,$name),$n+3)}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
:root {
|
|
20
|
+
@each $name, $color in $colors {
|
|
21
|
+
--color-#{nth($color,1)}: #{nth($color,2)};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Colors
|
|
25
|
+
@each $name, $color in $colors {
|
|
26
|
+
$colorname: nth($color, 1);
|
|
27
|
+
$bgcolorval: nth($color, 2);
|
|
28
|
+
$colorval: nth($color, 3);
|
|
29
|
+
.has-background-#{$colorname} {
|
|
30
|
+
background-color: var(--color-#{$colorname}) !important;
|
|
31
|
+
color: var(--color-#{$colorval});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.is-hovered {
|
|
37
|
+
background-color: var(--color-hovered);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@function invertColor ($colorName, $context:'') {
|
|
41
|
+
$invertcolormap: ('tertiary': 'grey-dark', 'grey-dark': 'grey-light', 'grey-light': 'grey-dark');
|
|
42
|
+
$defaultInvert: white;
|
|
43
|
+
|
|
44
|
+
@if ($context == 'dark') {
|
|
45
|
+
$invertcolormap: ('tertiary':'var(--color-success)');
|
|
46
|
+
$defaultInvert: black;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@if ($context == 'accordion') {
|
|
50
|
+
$defaultInvert: 'grey-lighter'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
$result: map.get($invertcolormap, $colorName);
|
|
54
|
+
@if ($result) {
|
|
55
|
+
@return $result
|
|
56
|
+
}
|
|
57
|
+
@return $defaultInvert
|
|
58
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
html {
|
|
2
|
+
@extend .html-wrap;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
body {
|
|
6
|
+
@extend .main-wrap;
|
|
7
|
+
@extend .body-wrap;
|
|
8
|
+
@extend .reset-wrap;
|
|
9
|
+
font-family: $family-sans-serif;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
header {
|
|
13
|
+
@extend .header;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
To be used when standalone namespaced builds are used
|
|
18
|
+
*/
|
|
19
|
+
.trilogy-root {
|
|
20
|
+
text-size-adjust: 100%;
|
|
21
|
+
font-family: $body-family;
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
color: getColor('font');
|
|
24
|
+
font-size: 10px;
|
|
25
|
+
font-weight: $body-weight;
|
|
26
|
+
line-height: $body-line-height;
|
|
27
|
+
-moz-osx-font-smoothing: grayscale;
|
|
28
|
+
-webkit-font-smoothing: antialiased;
|
|
29
|
+
text-rendering: $body-rendering;
|
|
30
|
+
|
|
31
|
+
> * {
|
|
32
|
+
font-size: $text-16;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
$body-size: 10px;
|
|
2
|
+
$body-rendering: optimizeLegibility !default;
|
|
3
|
+
$body-family: $family-primary !default;
|
|
4
|
+
$body-weight: $weight-normal !default;
|
|
5
|
+
$body-line-height: 1.5 !default;
|
|
6
|
+
|
|
7
|
+
.html-wrap {
|
|
8
|
+
margin: 0;
|
|
9
|
+
padding: 0;
|
|
10
|
+
background-color: getColor('grey-lighter');
|
|
11
|
+
font-size: $body-size;
|
|
12
|
+
-moz-osx-font-smoothing: grayscale;
|
|
13
|
+
-webkit-font-smoothing: antialiased;
|
|
14
|
+
min-width: 300px;
|
|
15
|
+
text-rendering: $body-rendering;
|
|
16
|
+
text-size-adjust: 100%;
|
|
17
|
+
overflow-x: inherit;
|
|
18
|
+
overflow-y: inherit;
|
|
19
|
+
min-height: 100vh;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.main-wrap {
|
|
23
|
+
margin: 0;
|
|
24
|
+
padding: 0;
|
|
25
|
+
color: getColor('font');
|
|
26
|
+
font-weight: $body-weight;
|
|
27
|
+
line-height: $body-line-height;
|
|
28
|
+
font-size: 16px;
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
align-items: stretch;
|
|
32
|
+
font-family: $body-family;
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
|
|
35
|
+
* {
|
|
36
|
+
&,
|
|
37
|
+
&::before,
|
|
38
|
+
&::after {
|
|
39
|
+
box-sizing: inherit;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&::before {
|
|
44
|
+
content: ' ';
|
|
45
|
+
background-color: transparent;
|
|
46
|
+
transition: background-color 250ms ease-in-out;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.has-overlay {
|
|
50
|
+
&::before {
|
|
51
|
+
@include overlay;
|
|
52
|
+
|
|
53
|
+
position: fixed;
|
|
54
|
+
background-color: rgba(#000, 0.86);
|
|
55
|
+
z-index: zindex('small');
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.body-wrap {
|
|
61
|
+
overflow-x: hidden;
|
|
62
|
+
overflow-y: scroll;
|
|
63
|
+
min-height: 100vh;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.header {
|
|
67
|
+
z-index: zindex('large');
|
|
68
|
+
}
|