@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,102 @@
1
+ @use "sass:math";
2
+
3
+ @keyframes loading-pulse {
4
+ 100% {
5
+ opacity: .1;
6
+ }
7
+ }
8
+
9
+ @mixin text-blocks() {
10
+ p.suptitle {
11
+ @content;
12
+ }
13
+ }
14
+
15
+ @mixin loading {
16
+ &.is-loading,
17
+ .is-loading & {
18
+ @content;
19
+ }
20
+ }
21
+
22
+ p.is-loading,
23
+ .is-loading p {
24
+ @include text-tags {
25
+ visibility: hidden;
26
+ }
27
+ }
28
+
29
+ .is-loading {
30
+ @include unselectable;
31
+
32
+ &.is-checkradio[type="checkbox"] + label::before,
33
+ .is-checkradio[type="checkbox"] + label::before,
34
+ &.is-checkradio[type="checkbox"] + label::after,
35
+ .is-checkradio[type="checkbox"] + label::after {
36
+ visibility: hidden;
37
+ }
38
+
39
+ &.field,
40
+ .field {
41
+ .icon {
42
+ display: none;
43
+ }
44
+
45
+ .input {
46
+ border: 0;
47
+ pointer-events: none;
48
+
49
+ &::placeholder {
50
+ color: transparent;
51
+ }
52
+ }
53
+ }
54
+
55
+ filter: grayscale(1);
56
+ cursor: default !important;
57
+
58
+ // make the text elements like subtle animated lines
59
+ @include text-tags {
60
+ display: inline;
61
+ border-radius: 99em;
62
+ background: currentColor !important;
63
+ box-decoration-break: clone;
64
+ font-size: 70%;
65
+ letter-spacing: 2px;
66
+ -webkit-animation: loading-pulse 1.5s ease-out infinite alternate;
67
+ -moz-animation: none;
68
+ opacity: .2;
69
+ }
70
+
71
+ @include text-blocks {
72
+ display: block;
73
+ }
74
+
75
+ // we need the headings to have margins AND be inline
76
+ @include heading-tags {
77
+ display: table; // FIXME: well... `@include clearfix;` didn't do the trick
78
+ }
79
+
80
+ & & {
81
+ @include disable-animation;
82
+ }
83
+ }
84
+
85
+ // skeleton transitions
86
+ //
87
+ .is-loaded {
88
+ /**
89
+ The shape of the animation are designed so that the final state appears
90
+ as quick as possible. This should enhance the speed index
91
+ */
92
+ @include text-tags {
93
+ transition-duration: math.div($animation-duration, 2);
94
+ transition-timing-function: $animation-timing-function;
95
+ transition-property: font-size, letter-spacing;
96
+
97
+ /**
98
+ Animations are too slow on FF. We choose to disable it until they fix the problem
99
+ */
100
+ -moz-transition: none;
101
+ }
102
+ }
@@ -0,0 +1,138 @@
1
+ /*! minireset.css v0.0.6 | MIT License | github.com/jgthms/minireset.css */
2
+ // Blocks
3
+ .reset-wrap {
4
+ p,
5
+ ol,
6
+ ul,
7
+ li,
8
+ dl,
9
+ dt,
10
+ dd,
11
+ blockquote,
12
+ figure,
13
+ fieldset,
14
+ legend,
15
+ textarea,
16
+ pre,
17
+ iframe,
18
+ hr,
19
+ h1,
20
+ h2,
21
+ h3,
22
+ h4,
23
+ h5,
24
+ h6 {
25
+ margin: 0;
26
+ padding: 0;
27
+ }
28
+
29
+ // Headings
30
+ h1,
31
+ h2,
32
+ h3,
33
+ h4,
34
+ h5,
35
+ h6 {
36
+ font-size: 100%;
37
+ font-weight: normal;
38
+ }
39
+
40
+ p:not(:last-child) {
41
+ margin-bottom: 10px;
42
+ }
43
+
44
+ a {
45
+ cursor: pointer;
46
+ text-decoration: none;
47
+ }
48
+
49
+ // List
50
+ ul {
51
+ list-style: none;
52
+ }
53
+
54
+ // Form
55
+ button,
56
+ input,
57
+ select,
58
+ textarea {
59
+ margin: 0;
60
+ }
61
+
62
+ // Media
63
+ img,
64
+ audio,
65
+ video {
66
+ height: auto;
67
+ max-width: 100%;
68
+ }
69
+
70
+ // Iframe
71
+ iframe {
72
+ border: 0;
73
+ }
74
+
75
+ // Table
76
+ table {
77
+ border-collapse: collapse;
78
+ border-spacing: 0;
79
+ }
80
+
81
+ td,
82
+ th {
83
+ padding: 0;
84
+ text-align: left;
85
+
86
+ &:not([align]) {
87
+ text-align: left;
88
+ }
89
+ }
90
+
91
+ span {
92
+ font-style: inherit;
93
+ font-weight: inherit;
94
+ }
95
+
96
+ strong {
97
+ color: inherit;
98
+ font-weight: $weight-bold;
99
+ }
100
+
101
+ sup {
102
+ line-height: 0;
103
+ position: relative;
104
+ vertical-align: baseline;
105
+ top: -.4em;
106
+ font-size: .7em;
107
+ }
108
+
109
+ small {
110
+ font-size: 0.875em;
111
+ }
112
+
113
+ code {
114
+ font-size: $size-7;
115
+ padding: 4px 8px;
116
+ }
117
+
118
+ code,
119
+ pre {
120
+ -moz-osx-font-smoothing: auto;
121
+ -webkit-font-smoothing: auto;
122
+ font-family: $family-code;
123
+ }
124
+
125
+ pre {
126
+ @include overflow-touch;
127
+ font-size: 0.875em;
128
+ overflow-x: auto;
129
+ padding: 12.5px 15px;
130
+ white-space: pre;
131
+ word-wrap: normal;
132
+
133
+ code {
134
+ font-size: 1em;
135
+ padding: 0;
136
+ }
137
+ }
138
+ }
@@ -0,0 +1,178 @@
1
+ .accordions#{$suffix} {
2
+ padding-left: 0;
3
+ padding-right: 0;
4
+ margin: $spacing-4 0;
5
+
6
+ .accordion {
7
+ box-sizing: border-box;
8
+ display: flex;
9
+ flex-direction: column;
10
+ background-color: invertColor(currentColor, 'accordion');
11
+ font-size: $size-normal;
12
+ border: 1px solid getColor('grey-disabled');
13
+ border-radius: 8px;
14
+ margin: 8px 0;
15
+ min-height: 56px;
16
+ max-height: max-content;
17
+
18
+ .accordion-body {
19
+ display: none;
20
+ padding: $spacing-4;
21
+ padding-top: 0 !important;
22
+ }
23
+
24
+ &.is-active > .accordion-header:first-child, [data-accordion-toggle]:checked ~ .accordion-header {
25
+ font-weight: bold;
26
+ & .toggle {
27
+ &::before {
28
+ @include arrow(getColor('font'), 'up');
29
+ }
30
+ }
31
+ }
32
+
33
+ &.is-active > .accordion-header:first-child ~ .accordion-body, [data-accordion-toggle]:checked ~ .accordion-body {
34
+ display: block;
35
+ }
36
+
37
+ &:hover:not(.is-disabled) {
38
+ border: 2px solid getColor('alternate');
39
+
40
+ .accordion-header {
41
+ color: getColor('alternate');
42
+ padding: 15px;
43
+ }
44
+
45
+ .accordion-body {
46
+ padding: 15px;
47
+ padding-top: 1px !important;
48
+ }
49
+ }
50
+
51
+ &:not(:first-child) {
52
+ .accordion-header {
53
+ border-radius: 0;
54
+ }
55
+ }
56
+
57
+ &:not(:last-child) {
58
+ .accordion-content {
59
+ border-radius: 0;
60
+ }
61
+ }
62
+
63
+ &:first-child {
64
+ margin-top: 0;
65
+ }
66
+
67
+ &:last-child {
68
+ margin-bottom: 0;
69
+ }
70
+
71
+ &.is-disabled {
72
+ background-color: getColor('bg-disabled');
73
+ cursor: no-drop;
74
+ .accordion-header,
75
+ .accordion-header .toggle::before {
76
+ color: getColor('disabled');
77
+ cursor: no-drop;
78
+ }
79
+
80
+ &.is-active {
81
+ .accordion-header:not(input) + .accordion-body {
82
+ color: getColor('grey');
83
+ }
84
+ }
85
+ }
86
+
87
+ .accordion-header {
88
+ align-items: center;
89
+ display: flex;
90
+ position: relative;
91
+ height: auto;
92
+ cursor: pointer;
93
+ padding: $spacing-4;
94
+
95
+ &.is-grouped {
96
+ > *:first-child {
97
+ flex-grow: 0;
98
+ }
99
+ }
100
+
101
+ .field:not(:last-child) {
102
+ margin-bottom: 0;
103
+ }
104
+
105
+ .accordion-title {
106
+ .title {
107
+ margin: 0;
108
+ }
109
+
110
+ @include mobile() {
111
+ flex-grow: 1;
112
+ }
113
+ }
114
+
115
+ .toggle {
116
+ -moz-appearance: none;
117
+ -webkit-appearance: none;
118
+ user-select: none;
119
+ border: none;
120
+ background-color: transparent;
121
+ cursor: pointer;
122
+ display: inline-block;
123
+ flex-grow: 0;
124
+ flex-shrink: 0;
125
+ height: 20px;
126
+ width: 20px;
127
+ max-height: 20px;
128
+ max-width: 20px;
129
+ min-height: 20px;
130
+ min-width: 20px;
131
+ outline-offset: 8px;
132
+ position: relative;
133
+ vertical-align: top;
134
+ margin-left: auto;
135
+ padding: 0 0 0 10px;
136
+
137
+ &::after {
138
+ display: none;
139
+ }
140
+
141
+ &::before {
142
+ @include arrow(getColor('grey-dark'));
143
+ top: -0.25em;
144
+ left: 0;
145
+ right: 0;
146
+ bottom: 0;
147
+ width: 15px;
148
+ height: 5px;
149
+ margin: auto;
150
+ }
151
+ }
152
+
153
+ p {
154
+ margin-bottom: 0;
155
+ }
156
+
157
+ & + .accordion-body {
158
+ overflow-y: hidden;
159
+ .accordion-content {
160
+ border-radius: $radius;
161
+ margin-bottom: 10px;
162
+
163
+ @include mobile() {
164
+ padding: 15px;
165
+ }
166
+ }
167
+ }
168
+ }
169
+
170
+ .accordion-body {
171
+ .accordion-content,
172
+ p:last-child {
173
+ margin-bottom: 0 !important;
174
+ padding: 0 !important;
175
+ }
176
+ }
177
+ }
178
+ }
@@ -0,0 +1,30 @@
1
+ @charset "utf-8";
2
+ @import '../utilities/spacing';
3
+
4
+ @import 'disclaimer';
5
+ @import 'divider';
6
+ @import 'breadcrumb';
7
+ @import 'switch';
8
+ @import 'card';
9
+ @import 'dropdown';
10
+ @import 'level';
11
+ @import 'menu';
12
+ @import 'modal';
13
+ @import 'pagination';
14
+ @import 'popover';
15
+ @import 'product-tour';
16
+ @import 'price';
17
+ @import 'tabs';
18
+ @import 'accordion';
19
+ @import 'countdown';
20
+ @import 'timeline';
21
+ @import 'slices';
22
+ @import 'stepper';
23
+ @import 'slider';
24
+ @import 'plus-symbol';
25
+ @import 'otp';
26
+ @import 'segmented-control';
27
+ @import 'progress-radial';
28
+ @import 'range';
29
+ @import 'scroll-view';
30
+ @import 'fab';
@@ -0,0 +1,38 @@
1
+ body:not(.is-tight) {
2
+ .box {
3
+ margin-top: 16px;
4
+ }
5
+ .box:not(:first-child) + * {
6
+ margin-top: 16px;
7
+ }
8
+ * + .box {
9
+ margin-top: 8px;
10
+ }
11
+ .text {
12
+ margin-top: 8px;
13
+ }
14
+ .card {
15
+ margin-top: 16px;
16
+ }
17
+ .button {
18
+ margin-top: 16px;
19
+ }
20
+ .accordions {
21
+ margin-top: 16px;
22
+ }
23
+ .alert {
24
+ margin-top: 16px;
25
+ }
26
+ .field {
27
+ margin-top: 8px;
28
+ }
29
+ .chips-list {
30
+ margin-top: 16px;
31
+ }
32
+ .tags {
33
+ margin-top: 16px;
34
+ }
35
+ .chips-list {
36
+ margin-top: 16px;
37
+ }
38
+ }
@@ -0,0 +1,45 @@
1
+ .breadcrumb {
2
+ @include block;
3
+ @include unselectable;
4
+
5
+ ul,
6
+ ol {
7
+ @include desktop {
8
+ display: flex;
9
+ flex-wrap: wrap;
10
+ }
11
+ }
12
+
13
+ li {
14
+ display: inline;
15
+ position: relative;
16
+
17
+ @include desktop {
18
+ display: flex;
19
+ align-items: center;
20
+ }
21
+
22
+ &:first-child a {
23
+ margin-left: 0;
24
+ }
25
+
26
+ &.is-active {
27
+ a {
28
+ color: getColor('font');
29
+ cursor: default;
30
+ pointer-events: none;
31
+ }
32
+ }
33
+
34
+ + li a::before {
35
+ content: ">";
36
+ text-align: center;
37
+ padding-right: 0.5em;
38
+ }
39
+ }
40
+
41
+ a {
42
+ color: getColor('alternate');
43
+ margin: 0 0.5em;
44
+ }
45
+ }