@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.
Files changed (104) hide show
  1. package/framework/src/_all.scss +8 -0
  2. package/framework/src/base/_all.scss +9 -0
  3. package/framework/src/base/_color.scss +58 -0
  4. package/framework/src/base/_elements.scss +34 -0
  5. package/framework/src/base/_fonts.scss +2 -0
  6. package/framework/src/base/_generic.scss +68 -0
  7. package/framework/src/base/_helpers.scss +880 -0
  8. package/framework/src/base/_loading.scss +102 -0
  9. package/framework/src/base/_reset.scss +138 -0
  10. package/framework/src/components/_accordion.scss +178 -0
  11. package/framework/src/components/_all.scss +30 -0
  12. package/framework/src/components/_autolayout2.scss +38 -0
  13. package/framework/src/components/_breadcrumb.scss +45 -0
  14. package/framework/src/components/_card.scss +298 -0
  15. package/framework/src/components/_countdown.scss +55 -0
  16. package/framework/src/components/_disclaimer.scss +84 -0
  17. package/framework/src/components/_divider.scss +18 -0
  18. package/framework/src/components/_dropdown.scss +128 -0
  19. package/framework/src/components/_fab.scss +60 -0
  20. package/framework/src/components/_level.scss +120 -0
  21. package/framework/src/components/_media.scss +64 -0
  22. package/framework/src/components/_menu.scss +213 -0
  23. package/framework/src/components/_modal.scss +201 -0
  24. package/framework/src/components/_otp.scss +92 -0
  25. package/framework/src/components/_pagination.scss +182 -0
  26. package/framework/src/components/_plus-symbol.scss +32 -0
  27. package/framework/src/components/_popover.scss +340 -0
  28. package/framework/src/components/_price.scss +209 -0
  29. package/framework/src/components/_product-tour.scss +131 -0
  30. package/framework/src/components/_progress-radial.scss +23 -0
  31. package/framework/src/components/_range.scss +84 -0
  32. package/framework/src/components/_scroll-view.scss +19 -0
  33. package/framework/src/components/_search-modal.scss +197 -0
  34. package/framework/src/components/_segmented-control.scss +60 -0
  35. package/framework/src/components/_slices.scss +316 -0
  36. package/framework/src/components/_slider.scss +92 -0
  37. package/framework/src/components/_stepper.scss +397 -0
  38. package/framework/src/components/_switch.scss +209 -0
  39. package/framework/src/components/_tabs.scss +212 -0
  40. package/framework/src/components/_timeline.scss +367 -0
  41. package/framework/src/elements/_alert.scss +91 -0
  42. package/framework/src/elements/_all.scss +35 -0
  43. package/framework/src/elements/_badge.scss +81 -0
  44. package/framework/src/elements/_box.scss +267 -0
  45. package/framework/src/elements/_button.scss +192 -0
  46. package/framework/src/elements/_checkbox.scss +39 -0
  47. package/framework/src/elements/_checkradio.scss +173 -0
  48. package/framework/src/elements/_chips.scss +100 -0
  49. package/framework/src/elements/_container.scss +108 -0
  50. package/framework/src/elements/_dot.scss +6 -0
  51. package/framework/src/elements/_entry.scss +109 -0
  52. package/framework/src/elements/_form.scss +593 -0
  53. package/framework/src/elements/_icon.scss +384 -0
  54. package/framework/src/elements/_image.scss +59 -0
  55. package/framework/src/elements/_input-gauge.scss +37 -0
  56. package/framework/src/elements/_input-icons.scss +41 -0
  57. package/framework/src/elements/_link.scss +79 -0
  58. package/framework/src/elements/_list.scss +61 -0
  59. package/framework/src/elements/_loader.scss +126 -0
  60. package/framework/src/elements/_notification.scss +151 -0
  61. package/framework/src/elements/_options.scss +146 -0
  62. package/framework/src/elements/_other.scss +44 -0
  63. package/framework/src/elements/_paragraph.scss +101 -0
  64. package/framework/src/elements/_progress.scss +212 -0
  65. package/framework/src/elements/_radio.scss +67 -0
  66. package/framework/src/elements/_select.scss +315 -0
  67. package/framework/src/elements/_sticker.scss +151 -0
  68. package/framework/src/elements/_switch.scss +108 -0
  69. package/framework/src/elements/_table.scss +298 -0
  70. package/framework/src/elements/_tag.scss +131 -0
  71. package/framework/src/elements/_textarea.scss +125 -0
  72. package/framework/src/elements/_timeline.scss +283 -0
  73. package/framework/src/elements/_title.scss +139 -0
  74. package/framework/src/elements/_toaster.scss +128 -0
  75. package/framework/src/grid/_all.scss +3 -0
  76. package/framework/src/grid/_columns.scss +952 -0
  77. package/framework/src/grid/_rows.scss +47 -0
  78. package/framework/src/grid/_tiles.scss +78 -0
  79. package/framework/src/layout/_all.scss +6 -0
  80. package/framework/src/layout/_hero.scss +268 -0
  81. package/framework/src/layout/_main.scss +36 -0
  82. package/framework/src/layout/_section.scss +65 -0
  83. package/framework/src/layout/_toolbar.scss +100 -0
  84. package/framework/src/trilogy-core.scss +16 -0
  85. package/framework/src/trilogy-mangled.scss +14 -0
  86. package/framework/src/trilogy-namespaced.scss +14 -0
  87. package/framework/src/trilogy.scss +8 -0
  88. package/framework/src/utilities/_all.scss +9 -0
  89. package/framework/src/utilities/_animations.scss +71 -0
  90. package/framework/src/utilities/_controls.scss +67 -0
  91. package/framework/src/utilities/_derived-variables.scss +104 -0
  92. package/framework/src/utilities/_functions.scss +94 -0
  93. package/framework/src/utilities/_initial-variables.scss +150 -0
  94. package/framework/src/utilities/_mixins.scss +745 -0
  95. package/framework/src/utilities/_post.scss +6 -0
  96. package/framework/src/utilities/_pre.scss +5 -0
  97. package/framework/src/utilities/_spacing.scss +10 -0
  98. package/framework/src/utilities/_tools.scss +3 -0
  99. package/package.json +22 -0
  100. package/themes/default/src/_all.scss +1 -0
  101. package/themes/default/src/assets.scss +11 -0
  102. package/themes/default/src/utilities/_all.scss +0 -0
  103. package/themes/default/src/utilities/_post.scss +0 -0
  104. package/themes/default/src/utilities/_pre.scss +3 -0
@@ -0,0 +1,8 @@
1
+ @charset "utf-8";
2
+
3
+ @import "utilities/all";
4
+ @import "base/all";
5
+ @import "elements/all";
6
+ @import "components/all";
7
+ @import "grid/all";
8
+ @import "layout/all";
@@ -0,0 +1,9 @@
1
+ @charset "utf-8";
2
+
3
+ @import "reset";
4
+ @import "color";
5
+ @import "generic";
6
+ @import "fonts";
7
+ @import "helpers";
8
+ @import "loading";
9
+ @import "elements";
@@ -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,2 @@
1
+ $weight-bold:600;
2
+
@@ -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
+ }