@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,173 @@
1
+ .is-checkradio[type='radio'],
2
+ .is-checkradio[type='checkbox'] {
3
+ @include checkradio;
4
+
5
+ + label {
6
+ &.is-descriptive {
7
+ flex-wrap: wrap;
8
+
9
+ span {
10
+ flex-basis: 100%;
11
+ display: inline-block;
12
+ padding-left: 25px;
13
+ margin-top: 5px;
14
+ font-size: $text-13;
15
+ color: getColor('grey');
16
+ }
17
+
18
+ &:after {
19
+ top: 2px;
20
+ left: 1px;
21
+ line-height: 18px;
22
+ }
23
+ }
24
+ }
25
+
26
+ &:focus-visible {
27
+ + label {
28
+ &::before {
29
+ outline: 1px auto getColor('font');
30
+ }
31
+ }
32
+ }
33
+
34
+ &:hover:not([disabled]) {
35
+ + label {
36
+ &::before {
37
+ border-color: getColor('grey-dark');
38
+ }
39
+ }
40
+ }
41
+
42
+ &:checked {
43
+ + label {
44
+ &::before {
45
+ animation-name: none;
46
+ border-color: getColor('grey');
47
+ color: getColor('alternate');
48
+ }
49
+
50
+ &::after {
51
+ display: block;
52
+ }
53
+ }
54
+
55
+ &[disabled] {
56
+ cursor: not-allowed;
57
+
58
+ + label {
59
+ opacity: 0.5;
60
+ }
61
+ }
62
+ }
63
+
64
+ &[disabled] {
65
+ cursor: not-allowed;
66
+
67
+ + label {
68
+ opacity: 0.5;
69
+ cursor: not-allowed;
70
+
71
+ &:hover,
72
+ &::before,
73
+ &::after {
74
+ cursor: not-allowed;
75
+ }
76
+ }
77
+
78
+ &:hover {
79
+ cursor: not-allowed;
80
+
81
+ &::before {
82
+ animation-name: none;
83
+ }
84
+ }
85
+
86
+ &::before,
87
+ &::after {
88
+ cursor: not-allowed;
89
+ }
90
+ }
91
+
92
+ &.is-inverted {
93
+ + label::before,
94
+ &:hover:not([disabled]) + label::before,
95
+ &:checked + label::before {
96
+ border-color: getColor('background');
97
+ }
98
+
99
+ + label,
100
+ &:checked + label::before {
101
+ color: getColor('background');
102
+ }
103
+ }
104
+ }
105
+
106
+ .is-checkradio[type='checkbox'] {
107
+ + label {
108
+ &::before {
109
+ margin-right: 16px;
110
+ border-radius: $radius-small;
111
+ }
112
+
113
+ &::after {
114
+ content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
115
+ display: none;
116
+ line-height: 0;
117
+ margin: 0;
118
+ width: 14px;
119
+ height: 14px;
120
+ background-color: getColor('alternate');
121
+ overflow: hidden;
122
+ border-radius: 3px;
123
+ left: 1px;
124
+ }
125
+ }
126
+
127
+ &.is-inverted {
128
+ + label::after {
129
+ color: getColor('background');
130
+ }
131
+ }
132
+ }
133
+
134
+ .is-checkradio[type='radio'] {
135
+ + label {
136
+ line-height: 1;
137
+
138
+ &::before,
139
+ &::after {
140
+ margin-right: 16px; // put size instead
141
+ border-radius: 100%;
142
+ }
143
+
144
+ &::after {
145
+ top: 50%;
146
+ transform: translateY(-50%);
147
+ left: 2px;
148
+ width: 12px;
149
+ height: 12px;
150
+ }
151
+
152
+ &.is-descriptive {
153
+ &::after {
154
+ top: 8px;
155
+ left: 2px;
156
+ }
157
+ }
158
+ }
159
+
160
+ &:checked {
161
+ + label {
162
+ &::after {
163
+ background-color: getColor('alternate');
164
+ }
165
+ }
166
+ }
167
+
168
+ &.is-inverted {
169
+ &:checked + label::after {
170
+ background-color: getColor('background');
171
+ }
172
+ }
173
+ }
@@ -0,0 +1,100 @@
1
+ $chip-radius: 30px !default;
2
+
3
+ .chips-list {
4
+ align-items: center;
5
+ display: inline-flex;
6
+ justify-content: flex-start;
7
+ margin-bottom: 16px;
8
+ flex-wrap: wrap;
9
+
10
+ // multi-chips : ajout d'une marge bottom, supprimable par facette
11
+ &:not(.is-gapless) {
12
+ &:not(:last-child) {
13
+ margin-right: 8px;
14
+ }
15
+
16
+ .chips {
17
+ margin-bottom: 10px;
18
+ }
19
+ }
20
+
21
+ // multi-chips : ajout d'une marge à droite de chaque chip
22
+ .chips:not(:last-child) {
23
+ margin-right: 8px;
24
+ }
25
+
26
+ // centrage des chips
27
+ &.is-centered {
28
+ justify-content: center;
29
+ }
30
+
31
+ &.is-multiple {
32
+ .chips.is-active:before {
33
+ content: "";
34
+ mask-image: url('./assets/icons/all/check.svg');
35
+ background-color: getColor('background');
36
+ margin-right: 4px;
37
+ margin-left: -8px;
38
+ width: 20px;
39
+ height: 20px;
40
+ mask-size: 20px;
41
+ }
42
+ }
43
+
44
+ .chips {
45
+ align-items: center;
46
+ background-color: getColor('grey-lighter');
47
+ border-radius: $chip-radius;
48
+ color: getColor('font');
49
+ display: inline-flex;
50
+ font-weight: 400;
51
+ font-size: $size-normal;
52
+ height: 32px;
53
+ justify-content: center;
54
+ line-height: 2;
55
+ padding: 6px $spacing-4;
56
+ white-space: nowrap;
57
+ cursor: pointer;
58
+ border: 1px solid getColor('grey-light');
59
+
60
+ &:not(.is-disabled) {
61
+ &:hover {
62
+ background-color: getColor('grey-light');
63
+ border: 2px solid currentColor;
64
+ color: getColor('alternate');
65
+ padding: 5px 15px;
66
+ }
67
+
68
+ &:focus,
69
+ &:focus-visible,
70
+ &.is-active {
71
+ background-color: getColor('alternate');
72
+ color: white;
73
+ font-weight: 600;
74
+ border: 2px solid getColor('alternate');
75
+ padding: 5px 15px;
76
+ }
77
+ }
78
+
79
+ &.is-disabled {
80
+ background-color: getColor('grey-disabled');
81
+ color: getColor('grey-darker');
82
+ cursor: no-drop;
83
+ border: 1px solid getColor('grey-disabled');
84
+ }
85
+
86
+ &.is-inverted {
87
+ background-color: white;
88
+ color: getColor('alternate');
89
+
90
+ &:active,
91
+ &:hover,
92
+ &:focus,
93
+ &:focus-visible,
94
+ &.is-active {
95
+ background-color: getColor('alternate') !important;
96
+ color: getColor('background') !important;
97
+ }
98
+ }
99
+ }
100
+ }
@@ -0,0 +1,108 @@
1
+ .container {
2
+ margin: 0 auto;
3
+ position: relative;
4
+
5
+ &.is-fullhd {
6
+ width: auto;
7
+ }
8
+
9
+ &.is-sticky-top,
10
+ &.is-sticky-bottom {
11
+ background-color: getColor('background');
12
+ }
13
+
14
+ &.is-sticky-top {
15
+ z-index: 1000;
16
+ }
17
+
18
+ &.is-sticky-bottom {
19
+ z-index: 999;
20
+ }
21
+
22
+ @include desktop {
23
+ max-width: $desktop - 2 * $gap;
24
+ width: $desktop - 2 * $gap;
25
+
26
+ &.is-fluid {
27
+ margin-left: $gap;
28
+ margin-right: $gap;
29
+ max-width: none;
30
+ width: auto;
31
+ }
32
+ }
33
+
34
+ @include until-widescreen {
35
+ &.is-widescreen {
36
+ max-width: $widescreen - 2 * $gap;
37
+ width: auto;
38
+ }
39
+ }
40
+
41
+ @include until-fullhd {
42
+ &.is-fullhd {
43
+ max-width: $fullhd - 2 * $gap;
44
+ width: auto;
45
+ }
46
+ }
47
+
48
+ @include widescreen {
49
+ max-width: $widescreen - 2 * $gap;
50
+ width: $widescreen - 2 * $gap;
51
+ }
52
+
53
+ @include fullhd {
54
+ max-width: $fullhd - 2 * $gap;
55
+ width: $fullhd - 2 * $gap;
56
+ }
57
+
58
+ &:not(.is-fluid) {
59
+ @include desktop {
60
+ width: 904px;
61
+ max-width: 904px;
62
+ }
63
+
64
+ @include widescreen {
65
+ width: 1160px;
66
+ max-width: 1160px;
67
+ }
68
+
69
+ @include fullhd {
70
+ width: 1308px;
71
+ max-width: 1308px;
72
+ }
73
+ }
74
+
75
+ &.is-fluid {
76
+ @include fullhd {
77
+ margin: 0 auto;
78
+ max-width: $fullhd - 2 * $gap;
79
+ }
80
+ }
81
+
82
+ &.is-medium {
83
+ max-width: 960px;
84
+ margin: auto;
85
+ }
86
+
87
+ &.is-fullwidth {
88
+ max-width: 100%;
89
+ width: 100%;
90
+ }
91
+ }
92
+
93
+ main,
94
+ header .navbar,
95
+ header,
96
+ footer {
97
+ > .container {
98
+ &.is-fluid {
99
+ @include desktop {
100
+ margin: 0 auto;
101
+ }
102
+
103
+ @include fullhd {
104
+ max-width: 100%;
105
+ }
106
+ }
107
+ }
108
+ }
@@ -0,0 +1,6 @@
1
+ .dot {
2
+ display: inline-block;
3
+ width: 10px;
4
+ height: 10px;
5
+ border-radius: 100%;
6
+ }
@@ -0,0 +1,109 @@
1
+ .input,
2
+ .textarea {
3
+ @include input;
4
+
5
+ padding-left: $spacing-4;
6
+ padding-right: $spacing-4;
7
+ font-family: $body-family;
8
+ font-size: $size-medium;
9
+ max-width: 100%;
10
+ width: 100%;
11
+
12
+ &:focus-visible,
13
+ :focus {
14
+ outline: 1px auto getColor('alternate');
15
+ }
16
+
17
+ // Colors
18
+ @each $name in $colors-brand-funcionnal {
19
+ $color: getColor($name);
20
+ $color-invert: invertColor($name);
21
+ $brandName: getColorBrandName($name);
22
+
23
+ &.is-#{$brandName} {
24
+ border: 2px solid $color;
25
+ &:focus-visible,
26
+ &:hover,
27
+ &.is-hovered,
28
+ &:focus,
29
+ &.is-focused {
30
+ outline: 1px auto $color !important;
31
+ }
32
+ }
33
+ }
34
+
35
+ // Sizes
36
+ &.is-small {
37
+ @include control-small;
38
+ }
39
+
40
+ &.is-large {
41
+ @include control-large;
42
+ }
43
+
44
+ &.is-fullwidth {
45
+ display: block;
46
+ width: 100%;
47
+ }
48
+
49
+ &.is-inline {
50
+ display: inline;
51
+ }
52
+
53
+ .icon-status {
54
+ color: aqua !important;
55
+ }
56
+
57
+ & label {
58
+ margin-top: 10px;
59
+ }
60
+ }
61
+
62
+ .input {
63
+ &::-ms-clear {
64
+ display: none;
65
+ }
66
+
67
+ &.is-small {
68
+ height: 24px;
69
+ }
70
+
71
+ &.is-rounded {
72
+ border-radius: $radius-rounded;
73
+ padding-left: 1em;
74
+ padding-right: 1em;
75
+ }
76
+
77
+ &.is-static {
78
+ background-color: transparent;
79
+ border-color: transparent;
80
+ padding-left: 0;
81
+ padding-right: 0;
82
+ }
83
+ }
84
+
85
+ .textarea {
86
+ display: block;
87
+ max-width: 100%;
88
+ min-width: 100%;
89
+ resize: vertical;
90
+ padding-top: 15px;
91
+
92
+
93
+ &:not([rows]) {
94
+ max-height: 600px;
95
+ min-height: 120px;
96
+ }
97
+
98
+ &[rows] {
99
+ height: initial;
100
+ }
101
+
102
+ &.has-fixed-size {
103
+ resize: none;
104
+ }
105
+ }
106
+
107
+ .textarea[disabled]:hover {
108
+ outline: 1px auto getColor('grey-disabled') !important;
109
+ }