@trilogy-ds/styles 0.0.1-beta.5 → 0.0.1-beta.50

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 (87) hide show
  1. package/README.md +47 -0
  2. package/dist/default/trilogy-mangled.css +1 -1
  3. package/dist/default/trilogy-partials.css +1 -1
  4. package/dist/default/trilogy.css +1 -1
  5. package/framework/src/base/_color.scss +14 -36
  6. package/framework/src/base/_generic.scss +4 -1
  7. package/framework/src/base/_helpers.scss +20 -37
  8. package/framework/src/base/_loading.scss +8 -1
  9. package/framework/src/base/_reset.scss +8 -3
  10. package/framework/src/components/_accordion.scss +40 -86
  11. package/framework/src/components/_all.scss +0 -6
  12. package/framework/src/components/_breadcrumb.scss +39 -34
  13. package/framework/src/components/_card.scss +7 -78
  14. package/framework/src/components/_countdown.scss +49 -47
  15. package/framework/src/components/_divider.scss +2 -2
  16. package/framework/src/components/_fab.scss +12 -26
  17. package/framework/src/components/_level.scss +1 -1
  18. package/framework/src/components/_media.scss +2 -2
  19. package/framework/src/components/_modal.scss +167 -166
  20. package/framework/src/components/_otp.scss +9 -28
  21. package/framework/src/components/_pagination.scss +104 -133
  22. package/framework/src/components/_plus-symbol.scss +1 -1
  23. package/framework/src/components/_popover.scss +255 -255
  24. package/framework/src/components/_price.scss +196 -166
  25. package/framework/src/components/_product-tour.scss +2 -4
  26. package/framework/src/components/_range.scss +73 -72
  27. package/framework/src/components/_segmented-control.scss +37 -51
  28. package/framework/src/components/_stepper.scss +18 -142
  29. package/framework/src/components/_tabs.scss +32 -59
  30. package/framework/src/components/_timeline.scss +52 -45
  31. package/framework/src/elements/_alert.scss +5 -8
  32. package/framework/src/elements/_all.scss +1 -3
  33. package/framework/src/elements/_autocomplete.scss +32 -0
  34. package/framework/src/elements/_badge.scss +54 -59
  35. package/framework/src/elements/_box.scss +8 -115
  36. package/framework/src/elements/_button.scss +15 -133
  37. package/framework/src/elements/_checkbox.scss +21 -27
  38. package/framework/src/elements/_chips.scss +74 -83
  39. package/framework/src/elements/_dot.scss +1 -1
  40. package/framework/src/elements/_entry.scss +76 -88
  41. package/framework/src/elements/_form.scss +17 -15
  42. package/framework/src/elements/_icon.scss +3 -3
  43. package/framework/src/elements/_input-gauge.scss +32 -33
  44. package/framework/src/elements/_input-icons.scss +33 -31
  45. package/framework/src/elements/_link.scss +38 -65
  46. package/framework/src/elements/_list.scss +38 -46
  47. package/framework/src/elements/_loader.scss +1 -1
  48. package/framework/src/elements/_other.scss +2 -2
  49. package/framework/src/elements/_paragraph.scss +4 -26
  50. package/framework/src/elements/_progress.scss +12 -21
  51. package/framework/src/elements/_radio.scss +2 -2
  52. package/framework/src/elements/_select.scss +84 -301
  53. package/framework/src/elements/_sticker.scss +12 -27
  54. package/framework/src/elements/_switch.scss +85 -88
  55. package/framework/src/elements/_table.scss +173 -226
  56. package/framework/src/elements/_tag.scss +104 -105
  57. package/framework/src/elements/_textarea.scss +95 -105
  58. package/framework/src/elements/_title.scss +89 -87
  59. package/framework/src/elements/_toaster.scss +3 -4
  60. package/framework/src/grid/_columns.scss +5 -5
  61. package/framework/src/layout/_all.scss +0 -1
  62. package/framework/src/layout/_hero.scss +109 -207
  63. package/framework/src/layout/_section.scss +7 -14
  64. package/framework/src/theming/_all.scss +3 -0
  65. package/framework/src/theming/buttons_partial.scss +30 -0
  66. package/framework/src/theming/common_partials.scss +9 -0
  67. package/framework/src/theming/links_partial.scss +20 -0
  68. package/framework/src/utilities/_all.scss +3 -0
  69. package/framework/src/utilities/_background.scss +15 -0
  70. package/framework/src/utilities/_controls.scss +37 -48
  71. package/framework/src/utilities/_derived-variables.scss +3 -14
  72. package/framework/src/utilities/_initial-variables.scss +22 -26
  73. package/framework/src/utilities/_mixins.scss +481 -593
  74. package/framework/src/utilities/_pre.scss +1 -0
  75. package/package.json +3 -2
  76. package/framework/src/components/_disclaimer.scss +0 -84
  77. package/framework/src/components/_dropdown.scss +0 -128
  78. package/framework/src/components/_menu.scss +0 -213
  79. package/framework/src/components/_search-modal.scss +0 -197
  80. package/framework/src/components/_slices.scss +0 -316
  81. package/framework/src/components/_slider.scss +0 -92
  82. package/framework/src/components/_switch.scss +0 -209
  83. package/framework/src/elements/_checkradio.scss +0 -173
  84. package/framework/src/elements/_notification.scss +0 -151
  85. package/framework/src/elements/_options.scss +0 -146
  86. package/framework/src/elements/_timeline.scss +0 -283
  87. package/framework/src/layout/_toolbar.scss +0 -100
@@ -2,4 +2,5 @@
2
2
  /* Variables can be redefined*/
3
3
 
4
4
  @import 'initial-variables';
5
+ @import '../theming/_all';
5
6
  @import 'derived-variables';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@trilogy-ds/styles",
3
- "version": "0.0.1-beta.5",
4
- "author": "bouygues-telecom",
3
+ "version": "0.0.1-beta.50",
4
+ "author": "Bouygues Telecom",
5
5
  "license": "UNLICENSED",
6
6
  "files": [
7
7
  "framework/src",
@@ -9,6 +9,7 @@
9
9
  "themes/common/src",
10
10
  "dist"
11
11
  ],
12
+ "main": "dist/default/trilogy.css",
12
13
  "scripts": {
13
14
  "build:autolayout": "esbuild --platform=node --bundle scripts/autolayout.ts --outfile=scripts/dist/autolayout.cjs --sourcemap",
14
15
  "build:spacing": "esbuild --platform=node --bundle scripts/spacing.ts --outfile=scripts/dist/spacing.cjs --sourcemap",
@@ -1,84 +0,0 @@
1
- .disclaimer.accordions {
2
- .accordion {
3
- .disclaimer-header {
4
- margin-left: 0;
5
- justify-content: flex-start;
6
-
7
- .toggle.button {
8
- max-height: 20px;
9
- max-width: 20px;
10
- min-height: 20px;
11
- min-width: 20px;
12
- height: 20px;
13
- width: 20px;
14
- margin: 0 10px 0 0;
15
- top: -1px;
16
-
17
- &.is-bordered {
18
- min-height: 32px;
19
- min-width: 32px;
20
- }
21
- }
22
-
23
- .title {
24
- margin: 0 0 0 15px;
25
- }
26
- }
27
-
28
- .disclaimer-content {
29
- padding-left: 20px;
30
- margin-left: $spacing-6;
31
- position: relative;
32
- color: getColor('font');
33
-
34
- .disclaimer-marker {
35
- margin-left: 30px;
36
- }
37
-
38
- .disclaimer-item {
39
- margin-left: 20px;
40
-
41
- .heading {
42
- font-weight: $weight-normal;
43
- }
44
-
45
- a {
46
- font-weight: $weight-semibold;
47
- text-decoration: underline;
48
- }
49
-
50
- p {
51
- &:not(.heading) {
52
- margin-bottom: 0;
53
- }
54
- }
55
- }
56
-
57
- &::before {
58
- content: "";
59
- position: absolute;
60
- top: 0;
61
- left: 0;
62
- background-color: getColor('font');
63
- display: block;
64
- width: 0.1em;
65
- height: 100%;
66
- }
67
- }
68
-
69
- &:hover:not(.is-disabled) {
70
- border-color: getColor('alternate');
71
- }
72
-
73
- &.is-active {
74
- color: getColor('alternate');
75
- }
76
- /* @todo : deprecated ? remove ? add doc ? */
77
- .heading {
78
- font-size: $text-13;
79
- color: getColor('grey');
80
- margin-bottom: 0.75em;
81
- text-transform: inherit;
82
- }
83
- }
84
- }
@@ -1,128 +0,0 @@
1
- .dropdown {
2
- display: inline-flex;
3
- position: relative;
4
- vertical-align: top;
5
- width: 100%;
6
- &.is-active,
7
- &.is-hoverable:hover {
8
- .dropdown-menu {
9
- display: block;
10
- }
11
- }
12
-
13
- select {
14
- width: 95% !important;
15
- border:none;
16
- height: 97% !important;
17
- margin-left: 16px;
18
- -moz-appearance:none; /* Firefox */
19
- -webkit-appearance:none; /* Safari and Chrome */
20
- appearance:none;
21
- }
22
-
23
- &.is-active {
24
- .dropdown-menu {
25
- z-index: zindex('dropdown');
26
-
27
- .dropdown-content {
28
- border: 1px solid getColor('alternate');;
29
- }
30
- }
31
- }
32
-
33
- &.is-right {
34
- .dropdown-menu {
35
- left: auto;
36
- right: 0;
37
- }
38
- }
39
-
40
- &.is-up {
41
- .dropdown-menu {
42
- bottom: 100%;
43
- padding-bottom: $spacing-1;
44
- padding-top: initial;
45
- top: auto;
46
- }
47
- }
48
-
49
- .react-autosuggest__container {
50
- width: 100%;
51
-
52
- .dropdown-menu .dropdown-content {
53
- overflow-y: auto;
54
- max-height: 25vh;
55
-
56
- .dropdown-item {
57
- cursor: pointer;
58
- }
59
- }
60
- }
61
-
62
- .dropdown-trigger {
63
- width: 100%;
64
-
65
- .select {
66
- cursor: pointer;
67
-
68
- select {
69
- pointer-events: none;
70
- }
71
- }
72
- }
73
-
74
- .dropdown-menu {
75
- display: none;
76
- left: 0;
77
- min-width: 120px;
78
- padding-top: $spacing-1;
79
- position: absolute;
80
- top: 100%;
81
- width: 100%;
82
- z-index: 20;
83
-
84
- .dropdown-content {
85
- border-radius: 8px;
86
- box-shadow: 0 2px 3px rgba(#000, 0.1),
87
- 0 0 0 1px rgba(#000, 0.1);
88
- font-size: inherit;
89
- padding: 5px 10px;
90
-
91
- .dropdown-item {
92
- display: block;
93
- font-size: inherit;
94
- line-height: 1.5;
95
- padding: 3.75px 10px;
96
- position: relative;
97
- }
98
- }
99
- }
100
-
101
- .control.has-dynamic-placeholder .select > select:active ~ label,
102
- .control.has-dynamic-placeholder .select > select:focus ~ label {
103
- display: flex;
104
- }
105
- }
106
-
107
- a.dropdown-item {
108
- padding-right: 30px;
109
- white-space: nowrap;
110
-
111
- &:hover {
112
- background-color: getColor('background');
113
- color: invertColor('background');;
114
- }
115
-
116
- &.is-active {
117
- background-color: getColor('alternate');
118
- color: invertColor('alternate');
119
- }
120
- }
121
-
122
- .dropdown-divider {
123
- background-color: rgba(getColor('grey'), 0.5);
124
- border: none;
125
- display: block;
126
- height: 1px;
127
- margin: 5px 0;
128
- }
@@ -1,213 +0,0 @@
1
- @use "sass:math";
2
-
3
- $menu-top: 60px;
4
- $menu-top-desktop: 80px;
5
-
6
- $menu-item-height: 3.125em;
7
- $menu-item-line-height: math.div($menu-item-height, 2);
8
- $menu-dropdown-item-height: 2em;
9
-
10
- .menu {
11
- font-size: $text-14;
12
-
13
- &.is-small {
14
- font-size: $size-small;
15
- }
16
-
17
- &.is-large {
18
- font-size: $size-large;
19
- }
20
-
21
- &.is-fixed {
22
- position: fixed;
23
- max-width: 374px;
24
- }
25
-
26
- li {
27
- border-bottom: 1px solid getColor('grey-lighter');
28
-
29
- &:last-child {
30
- border-bottom: none;
31
- }
32
- }
33
-
34
- .navbar.navbar-header .navbar-menu & {
35
- top: $menu-top;
36
-
37
- @include desktop {
38
- top: $menu-top-desktop;
39
- }
40
- }
41
-
42
- }
43
-
44
- .menu-title {
45
- padding-left: 10px;
46
- }
47
-
48
- .menu-list {
49
- line-height: 1.25;
50
- padding: 10px 0;
51
- border-bottom: 1px solid getColor('grey-light');
52
-
53
- a {
54
- @include unselectable;
55
-
56
- color: getColor('font');
57
- padding: 10px 0.75em;
58
- position: relative;
59
- display: flex;
60
- flex-direction: row;
61
- text-decoration: inherit;
62
-
63
- &:hover {
64
- background-color: transparent;
65
- color: getColor('alternate');
66
- }
67
-
68
- &.with-arrow::after {
69
- content: "";
70
- mask-image: url('./assets/icons/all/arrow-right.svg');
71
- background-color: getColor('font');
72
- right: 0.75em;
73
- position: absolute;
74
- width: 15px;
75
- height: 15px;
76
- align-self: center;
77
- }
78
-
79
- &.is-active {
80
- background-color: getColor('grey-light');
81
- color: getColor('alternate');
82
-
83
- &::before {
84
- content: '';
85
- position: absolute;
86
- left: 0;
87
- top: 0;
88
- width: 4px;
89
- height: 100%;
90
- background-color: getVariantColor('alternate',2);
91
- }
92
- }
93
-
94
- .badge {
95
- margin-top: 1px;
96
- }
97
-
98
- .icon {
99
- margin: -1px 10px 0 0;
100
- }
101
- }
102
-
103
- li {
104
- ul {
105
- margin: 0.75em;
106
- padding-left: 0.75em;
107
- }
108
- }
109
-
110
- &.dropdown-menu-list,
111
- &.aside-menu-list {
112
- color: getColor('font');
113
- border: 0;
114
- background-color: getColor('background');
115
- padding: 0;
116
-
117
- li {
118
- ul {
119
- padding: 0;
120
- margin: 0.4em 0 0.8em;
121
-
122
- li {
123
- padding: 0;
124
-
125
- a {
126
- min-height: $menu-dropdown-item-height;
127
- line-height: $menu-dropdown-item-height;
128
- padding: 0 2.4em;
129
- }
130
- }
131
- }
132
- }
133
-
134
- li.is-active a,
135
- a.is-active {
136
- box-shadow: inset 4px 0 0 0 currentColor;
137
- color: getVariantColor('alternate',2);
138
- background: inherit;
139
- }
140
-
141
- a {
142
- padding: 0 1.2em;
143
- color: getColor('font');
144
- min-height: $menu-dropdown-item-height;
145
- line-height: $menu-dropdown-item-height;
146
- white-space: nowrap;
147
- text-overflow: ellipsis;
148
- overflow: hidden;
149
-
150
- &:hover {
151
- color: getVariantColor('alternate',2);
152
- background-color: getColor('grey-lighter');
153
- }
154
-
155
- sub {
156
- display: inline-block;
157
- height: 20px;
158
- margin: 3px;
159
- }
160
-
161
- .tag {
162
- height: 20px;
163
- padding: 5px;
164
- margin-left: 5px;
165
- }
166
- }
167
- }
168
-
169
- &.aside-menu-list {
170
- border-right: 1px solid getColor('grey-light');
171
-
172
- a {
173
- padding-left: 1.2em;
174
- padding-top: 0.8em;
175
- min-height: $menu-item-height;
176
- line-height: $menu-item-line-height;
177
- color: getColor('font');
178
-
179
- &:hover {
180
- color: getVariantColor('alternate',2);
181
- background-color: getColor('grey-lighter');
182
- }
183
- }
184
- }
185
- }
186
-
187
- .menu-label {
188
- color: getVariantColor('alternate',2);
189
- font-size: 14px;
190
- letter-spacing: 0.1em;
191
- text-transform: uppercase;
192
- font-weight: $weight-semibold;
193
- padding-bottom: 1em;
194
- border-bottom: 2px solid currentColor;
195
-
196
- &:not(:first-child) {
197
- margin-top: 1em;
198
- }
199
-
200
- &:not(:last-child) {
201
- margin-bottom: 1em;
202
- }
203
- }
204
-
205
- aside.menu {
206
- > div {
207
- padding: 10px;
208
- }
209
- }
210
-
211
- .is-sidebar-menu ul.menu-list {
212
- height: 100%;
213
- }
@@ -1,197 +0,0 @@
1
- $searchbar-height: 60px;
2
- $searchbar-height-desktop: 80px;
3
-
4
- .search-modal {
5
- opacity: 0;
6
- pointer-events: none;
7
-
8
- &.is-active,
9
- &.is-expanded { // TODO: deprecate .is-expanded (replacement: is-active)
10
- opacity: 1;
11
- pointer-events: all;
12
- height: 100%;
13
- position: absolute;
14
- top: -$searchbar-height;
15
- right: 0;
16
- bottom: 0;
17
- left: 0;
18
-
19
- @include tablet {
20
- top: -$searchbar-height-desktop;
21
- }
22
-
23
- .search-bar {
24
- height: $searchbar-height;
25
- border-bottom: 1px solid getColor('grey-light');
26
- opacity: 1;
27
-
28
- @include desktop {
29
- height:$searchbar-height-desktop;
30
- }
31
- }
32
-
33
- .search-results {
34
- opacity: 1;
35
- }
36
-
37
- .modal-background {
38
- opacity: 1;
39
- }
40
- }
41
-
42
- .modal-background {
43
- opacity: 0;
44
- position: fixed;
45
- z-index: zindex('small');
46
-
47
- @include mobile {
48
- z-index: zindex('medium');
49
- }
50
- }
51
-
52
- .search-bar {
53
- position: absolute;
54
- z-index: zindex('large');
55
- display: flex;
56
- align-items: center;
57
- background-color: getColor('background');
58
- top: 0;
59
- left: 0;
60
- right: 0;
61
- height: 0;
62
- opacity: 0;
63
-
64
- @include mobile {
65
- padding: 0 20px;
66
- }
67
-
68
- @include tablet {
69
- left: $logo-width-desktop;
70
- padding-left: calc(25% - #{$logo-width-desktop});
71
- }
72
-
73
- .field {
74
- margin-top: 0;
75
- margin-bottom: 0;
76
- flex-grow: 1;
77
-
78
- > .control {
79
- > .input {
80
- border: 0;
81
- border-radius: 0;
82
- background-color: getColor('background');
83
-
84
- @include mobile {
85
- background-color: getColor('grey-lighter');
86
- }
87
-
88
- &:hover {
89
- border: 0;
90
- }
91
- }
92
- }
93
- }
94
- }
95
-
96
- .search-results {
97
- position: absolute;
98
- top: $searchbar-height-desktop;
99
- left: 25%;
100
- right: 25%;
101
- background-color: getColor('background');
102
- z-index: zindex('large');
103
- padding: 20px;
104
- opacity: 0;
105
- display: none;
106
-
107
- @include tablet {
108
- padding-left: 55px;
109
- }
110
-
111
- @include mobile {
112
- top: $searchbar-height;
113
- left: 0;
114
- right: 0;
115
- }
116
-
117
- &.is-active {
118
- display: block;
119
- }
120
-
121
- li {
122
- a {
123
- display: block;
124
- margin-left: -55px;
125
- margin-right: -20px;
126
- padding: 5px 20px 5px 55px;
127
-
128
- &:hover,
129
- &.is-active {
130
- color: getVariantColor('alternate',2);
131
- background-color: getColor('grey-lighter');
132
- }
133
-
134
- span {
135
- flex-grow: 1;
136
- }
137
- }
138
- }
139
-
140
- .search-autosuggest {
141
- a {
142
- span {
143
- display: inline-block;
144
- margin-left: 10px;
145
- font-size: $text-10;
146
- color: getColor('grey');
147
- }
148
- }
149
- }
150
-
151
- .search-autocomplete {
152
- a {
153
- span {
154
- color: getVariantColor('alternate',2);
155
- font-weight: bold;
156
- }
157
- }
158
- }
159
- }
160
- }
161
-
162
- .search-no-modal {
163
- .search-results {
164
- li {
165
- a {
166
- display: block;
167
- margin-left: -55px;
168
- margin-right: -20px;
169
- padding: 5px 20px 5px 55px;
170
-
171
- span {
172
- flex-grow: 1;
173
- }
174
- }
175
- }
176
-
177
- .search-autosuggest {
178
- a {
179
- span {
180
- display: inline-block;
181
- margin-left: 10px;
182
- font-size: $text-10;
183
- color: getColor('grey');
184
- }
185
- }
186
- }
187
-
188
- .search-autocomplete {
189
- a {
190
- span {
191
- color: getVariantColor('alternate',2);
192
- font-weight: bold;
193
- }
194
- }
195
- }
196
- }
197
- }