@trilogy-ds/styles 0.0.1-beta.9 → 0.0.3-beta-v4

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 (94) hide show
  1. package/dist/default/trilogy-mangled.css +1 -1
  2. package/dist/default/trilogy-partials.css +1 -1
  3. package/dist/default/trilogy.css +1 -1
  4. package/framework/src/base/_color.scss +9 -39
  5. package/framework/src/base/_generic.scss +4 -1
  6. package/framework/src/base/_helpers.scss +13 -38
  7. package/framework/src/base/_loading.scss +8 -1
  8. package/framework/src/base/_reset.scss +8 -3
  9. package/framework/src/components/_accordion.scss +53 -88
  10. package/framework/src/components/_all.scss +1 -7
  11. package/framework/src/components/_autolayout.scss +302 -0
  12. package/framework/src/components/_breadcrumb.scss +39 -34
  13. package/framework/src/components/_card.scss +8 -79
  14. package/framework/src/components/_countdown.scss +49 -47
  15. package/framework/src/components/_divider.scss +10 -15
  16. package/framework/src/components/_fab.scss +25 -38
  17. package/framework/src/components/_modal.scss +161 -158
  18. package/framework/src/components/_otp.scss +10 -29
  19. package/framework/src/components/_pagination.scss +59 -161
  20. package/framework/src/components/_plus-symbol.scss +1 -1
  21. package/framework/src/components/_popover.scss +260 -260
  22. package/framework/src/components/_price.scss +119 -170
  23. package/framework/src/components/_product-tour.scss +2 -4
  24. package/framework/src/components/_progress-radial.scss +24 -19
  25. package/framework/src/components/_range.scss +73 -72
  26. package/framework/src/components/_segmented-control.scss +51 -53
  27. package/framework/src/components/_stepper.scss +42 -222
  28. package/framework/src/components/_tabs.scss +46 -81
  29. package/framework/src/components/_timeline.scss +27 -112
  30. package/framework/src/elements/_alert.scss +13 -10
  31. package/framework/src/elements/_all.scss +1 -4
  32. package/framework/src/elements/_autocomplete.scss +32 -0
  33. package/framework/src/elements/_badge.scss +67 -61
  34. package/framework/src/elements/_box.scss +64 -161
  35. package/framework/src/elements/_button.scss +15 -141
  36. package/framework/src/elements/_checkbox.scss +29 -26
  37. package/framework/src/elements/_chips.scss +69 -85
  38. package/framework/src/elements/_container.scss +7 -39
  39. package/framework/src/elements/_entry.scss +76 -88
  40. package/framework/src/elements/_form.scss +26 -23
  41. package/framework/src/elements/_icon.scss +4 -4
  42. package/framework/src/elements/_image.scss +50 -40
  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 +45 -44
  47. package/framework/src/elements/_loader.scss +2 -2
  48. package/framework/src/elements/_other.scss +0 -37
  49. package/framework/src/elements/_paragraph.scss +35 -69
  50. package/framework/src/elements/_progress.scss +33 -22
  51. package/framework/src/elements/_radio.scss +45 -31
  52. package/framework/src/elements/_select.scss +85 -304
  53. package/framework/src/elements/_sticker.scss +12 -27
  54. package/framework/src/elements/_switch.scss +101 -99
  55. package/framework/src/elements/_table.scss +175 -228
  56. package/framework/src/elements/_tag.scss +104 -105
  57. package/framework/src/elements/_textarea.scss +113 -105
  58. package/framework/src/elements/_title.scss +89 -87
  59. package/framework/src/elements/_toaster.scss +4 -5
  60. package/framework/src/grid/_columns.scss +257 -764
  61. package/framework/src/grid/_rows.scss +45 -38
  62. package/framework/src/layout/_all.scss +0 -1
  63. package/framework/src/layout/_hero.scss +89 -215
  64. package/framework/src/layout/_section.scss +5 -29
  65. package/framework/src/theming/_all.scss +3 -0
  66. package/framework/src/theming/buttons_partial.scss +32 -0
  67. package/framework/src/theming/common_partials.scss +10 -0
  68. package/framework/src/theming/links_partial.scss +20 -0
  69. package/framework/src/utilities/_a11y.scss +13 -0
  70. package/framework/src/utilities/_all.scss +4 -0
  71. package/framework/src/utilities/_background.scss +19 -0
  72. package/framework/src/utilities/_colors.scss +40 -0
  73. package/framework/src/utilities/_controls.scss +38 -49
  74. package/framework/src/utilities/_derived-variables.scss +4 -15
  75. package/framework/src/utilities/_initial-variables.scss +4 -36
  76. package/framework/src/utilities/_mixins.scss +483 -592
  77. package/framework/src/utilities/_pre.scss +1 -0
  78. package/package.json +3 -3
  79. package/framework/src/components/_autolayout2.scss +0 -38
  80. package/framework/src/components/_disclaimer.scss +0 -84
  81. package/framework/src/components/_dropdown.scss +0 -128
  82. package/framework/src/components/_level.scss +0 -120
  83. package/framework/src/components/_media.scss +0 -64
  84. package/framework/src/components/_menu.scss +0 -213
  85. package/framework/src/components/_search-modal.scss +0 -197
  86. package/framework/src/components/_slices.scss +0 -316
  87. package/framework/src/components/_slider.scss +0 -92
  88. package/framework/src/components/_switch.scss +0 -209
  89. package/framework/src/elements/_checkradio.scss +0 -173
  90. package/framework/src/elements/_dot.scss +0 -6
  91. package/framework/src/elements/_notification.scss +0 -151
  92. package/framework/src/elements/_options.scss +0 -146
  93. package/framework/src/elements/_timeline.scss +0 -283
  94. package/framework/src/layout/_toolbar.scss +0 -100
@@ -1,59 +1,69 @@
1
1
  .image {
2
+ display: block;
3
+ position: relative;
4
+
5
+ &.is-justified-start,
6
+ &.is-justified-center,
7
+ &.is-justified-end {
8
+ display: flex;
9
+ }
10
+
11
+ img {
2
12
  display: block;
3
- position: relative;
13
+ max-width: 100%;
4
14
 
5
- img {
6
- display: block;
7
- max-width: 100%;
15
+ &.b-loaded {
16
+ height: auto;
17
+ }
8
18
 
9
- &.b-loaded {
10
- height: auto;
11
- }
19
+ &.is-circled {
20
+ border-radius: 50%;
12
21
  }
22
+ }
13
23
  }
14
24
 
15
25
  .b-lazy {
16
- transition: opacity 250ms ease-in-out;
17
- opacity: 0;
26
+ transition: opacity 250ms ease-in-out;
27
+ opacity: 0;
18
28
 
19
- &.b-loaded {
20
- opacity: 1;
29
+ &.b-loaded {
30
+ opacity: 1;
21
31
 
22
- &.has-bg-image {
23
- &.has-bg-gradient {
24
- &::before {
25
- opacity: 0;
26
- }
27
- }
32
+ &.has-bg-image {
33
+ &.has-bg-gradient {
34
+ &::before {
35
+ opacity: 0;
28
36
  }
37
+ }
29
38
  }
39
+ }
30
40
 
31
- &.has-bg-image {
32
- background-repeat: no-repeat;
33
- background-position: center center;
34
- background-size: cover;
41
+ &.has-bg-image {
42
+ background-repeat: no-repeat;
43
+ background-position: center center;
44
+ background-size: cover;
45
+ position: absolute;
46
+ top: 0;
47
+ bottom: 0;
48
+ left: 0;
49
+ right: 0;
50
+ height: 100%;
51
+
52
+ &.has-bg-gradient {
53
+ z-index: zindex('void');
54
+ opacity: 1;
55
+
56
+ &::before {
57
+ content: '';
58
+ opacity: 1;
35
59
  position: absolute;
36
60
  top: 0;
37
- bottom: 0;
38
61
  left: 0;
39
62
  right: 0;
40
- height: 100%;
41
-
42
- &.has-bg-gradient {
43
- z-index: zindex('void');
44
- opacity: 1;
45
-
46
- &::before {
47
- content: '';
48
- opacity: 1;
49
- position: absolute;
50
- top: 0;
51
- left: 0;
52
- right: 0;
53
- bottom: 0;
54
- z-index: zindex('tiny');
55
- transition: opacity 750ms ease-in-out;
56
- }
57
- }
63
+ bottom: 0;
64
+ z-index: zindex('tiny');
65
+ transition: opacity 750ms ease-in-out;
66
+ }
58
67
  }
68
+ }
59
69
  }
@@ -1,37 +1,36 @@
1
1
 
2
- .field .security-gauge-container {
3
- width: 100%;
4
- .security-gauge {
5
- height: 4px;
6
- background: getColor('grey-disabled');
7
- border-radius: 4px;
8
- margin: 8px 0;
9
- .gauge {
10
- height: 100%;
11
- border-radius: 4px;
12
- }
13
- }
2
+ .field .security-gauge-container {
3
+ width: 100%;
14
4
 
15
- .security-gauge-verifies {
16
- display: flex;
17
- justify-content: space-between;
18
- align-items: center;
19
- .security {
20
- display: flex;
21
- align-items: center;
22
- margin-bottom: 4px;
23
- .icon {
24
- position: relative;
25
- color: getColor('grey');
26
- width: 16px;
27
- margin-right: 8px;
28
- font-size: 16px;
29
- margin-bottom: -1px;
5
+ .security-gauge {
6
+ height: 4px;
7
+ background: getColor('disabled');
8
+ border-radius: var(--radius-small);
9
+ margin: 8px 0;
30
10
 
31
- .is-success {
32
- background-color: getColor('success')
33
- }
34
- }
35
- }
36
- }
11
+ .gauge {
12
+ height: 100%;
13
+ border-radius: var(--radius-small);
37
14
  }
15
+ }
16
+
17
+ .security-gauge-verifies {
18
+ display: flex;
19
+ justify-content: space-between;
20
+ align-items: center;
21
+
22
+ .security {
23
+ display: flex;
24
+ align-items: center;
25
+ margin-bottom: 4px;
26
+
27
+ .icon {
28
+ position: relative;
29
+ width: 16px;
30
+ margin-right: 8px;
31
+ font-size: 16px;
32
+ margin-bottom: -1px;
33
+ }
34
+ }
35
+ }
36
+ }
@@ -1,41 +1,43 @@
1
1
  .field {
2
2
 
3
- .has-icons-left {
4
- input {
5
- padding-left: 45px;
6
- }
7
- label {
8
- left: 45px;
9
- }
10
- .icon-left
11
- {
12
- position: absolute;
13
- height: 100%;
14
- width: 45px;
15
- left: 0;
3
+ .has-icons-left {
4
+ input {
5
+ padding-left: 45px;
6
+
7
+ &:active,
8
+ &:focus,
9
+ &:focus-visible:not(.has-icons-left):not(disabled) {
10
+ padding-left: 44px !important;
11
+ }
16
12
 
17
- i {
18
- font-size: 20px;
19
- }
13
+ label {
14
+ left: 45px;
15
+ }
16
+ .icon-left {
17
+ position: absolute;
18
+ height: 100%;
19
+ width: 45px;
20
+ left: 0;
21
+ i {
22
+ font-size: 20px;
20
23
  }
24
+ }
21
25
 
22
26
 
23
27
  }
28
+ }
29
+ .has-icons-right {
30
+ .icon-right {
31
+ position: absolute;
32
+ height: 100%;
33
+ width: 45px;
34
+ z-index: 10;
35
+ right: 0;
36
+ left: auto;
24
37
 
25
- .has-icons-right {
26
- .icon-right
27
- {
28
- position: absolute;
29
- height: 100%;
30
- width: 45px;
31
- z-index: 10;
32
- right: 0;
33
- left: auto;
34
- i {
35
- font-size: 20px;
36
- }
37
- }
38
+ i {
39
+ font-size: 20px;
40
+ }
38
41
  }
39
-
40
-
42
+ }
41
43
  }
@@ -1,79 +1,52 @@
1
- .link:not([disabled]) {
2
- position: relative;
3
- font-size: 14px;
4
- font-weight: $weight-medium;
5
- color: getColor('alternate');
6
- box-decoration-break: clone;
7
- padding: $spacing-2;
8
- margin: -8px;
9
- text-decoration: underline;
10
- cursor: pointer;
1
+ .link {
2
+ [disabled] {
3
+ @include disabledRulesWithoutBG;
4
+ }
5
+ }
11
6
 
12
- &:not(p .link) {
13
- text-decoration-line: underline;
14
- text-decoration-style: solid;
15
- text-decoration-thickness: 2px;
16
- text-underline-offset: 4px;
17
- }
7
+ .link:not([disabled]) {
8
+ @extend %link-states;
18
9
 
19
- &:hover {
20
- filter: brightness(70%);
21
- }
10
+ position: relative;
11
+ font-weight: $weight-normal;
12
+ color: getColor($link-colors);
13
+ box-decoration-break: clone;
14
+ text-decoration: underline 2px solid;
15
+ text-underline-offset: 4px;
16
+ cursor: pointer;
22
17
 
23
- &:focus,
24
- &:focus-visible,
25
- &.is-focused,
26
- &:active,
27
- &.is-active {
28
- filter: brightness(50%);
29
- }
18
+ &.has-icon {
19
+ display: inline-flex;
20
+ align-items: center;
30
21
 
31
- @include desktop {
32
- &:not(.is-static) {
33
- display: inline-flex;
34
- border-bottom-width: 0;
35
- }
22
+ &::after {
23
+ width: calc(100% - 48px);
24
+ bottom: 5.5px;
36
25
  }
26
+ }
37
27
 
38
- &.has-icon {
39
- display: inline-flex;
40
- align-items: center;
41
-
42
- &::after {
43
- width: calc(100% - 48px);
44
- bottom: 5.5px;
45
- }
46
- }
28
+ &.is-inverted {
29
+ color: getColor('background');
47
30
 
48
- &.is-static::after {
49
- margin-bottom: 4px;
50
- }
51
-
52
- &.is-inverted {
31
+ &.has-icon {
32
+ > .icon {
53
33
  color: getColor('background');
54
-
55
- &.has-icon {
56
- > .icon {
57
- color: getColor('background');
58
- }
59
34
  }
60
35
  }
36
+ }
61
37
 
62
- @include touch {
63
- white-space: normal !important;
64
- box-decoration-break: clone;
65
- display: inline;
66
- }
38
+ @include touch {
39
+ white-space: normal !important;
40
+ box-decoration-break: clone;
41
+ display: inline;
42
+ }
67
43
  }
68
44
 
69
- @keyframes sliding-link {
70
- 50% {
71
- left: 100%;
72
- right: 0;
73
- }
74
-
75
- 50.01% {
76
- left: 0;
77
- right: 100%;
78
- }
45
+ .text .link:not([disabled]) {
46
+ text-underline-offset: 2px;
47
+ text-decoration: underline 1px solid;
48
+ &:hover {
49
+ font-weight: $weight-normal;
50
+ filter: brightness(0.8);
51
+ }
79
52
  }
@@ -1,61 +1,62 @@
1
1
  // Bullet list classiques
2
- ul.list , ol.list{
3
- margin-left: 30px;
4
- li {
5
- margin-bottom: 5px;
2
+ ul.list,
3
+ ol.list {
4
+ list-style: disc inside;
5
+ display: grid;
6
+ row-gap: $spacing-3;
7
+
8
+ li.list-item {
9
+ &:has(.icon) {
10
+ list-style: none;
11
+ display: flex;
6
12
  }
7
- }
8
-
9
- ul.list {
10
- list-style: disc;
11
13
 
12
- ul.list {
13
- list-style: circle;
14
- }
15
- }
16
-
17
- // Listes avec icônes
18
- ul.icon-list > li {
19
- display: flex;
20
- align-items: center;
21
-
22
- span[disabled] {
23
- opacity: 0.5;
14
+ .icon {
15
+ margin-right: $spacing-2;
16
+ justify-content: flex-start;
17
+ align-items: flex-start;
24
18
  }
25
19
 
26
- .icon {
27
- flex: none;
20
+ .list-item-content {
21
+ display: inline-grid;
22
+
23
+ &_puce {
24
+ margin-right: $spacing-4;
25
+ }
28
26
  }
29
- }
30
27
 
31
- dl.dl {
32
- dt {
33
- font-weight: $weight-semibold;
34
- margin-bottom: 5px;
28
+ &.has-action {
29
+ display: flex;
30
+ justify-content: space-between;
31
+ align-items: center;
35
32
 
36
- &:not(:first-child) {
37
- margin-top: 20px;
33
+ .list-item_action {
34
+ & > :first-child {
35
+ margin: 0 !important;
36
+ cursor: pointer;
38
37
  }
39
- }
40
38
 
41
- dd {
42
- color: getColor('font');
43
- font-size: $size-7;
39
+ .radio label.radio-label:empty,
40
+ .checkbox label.checkbox-label:empty {
41
+ padding: $spacing-1 $spacing-1 $spacing-1 calc($spacing-1 + 10px);
42
+ }
43
+ }
44
44
  }
45
45
 
46
- &:not(:first-child) {
47
- margin-top: 20px;
46
+ div b {
47
+ margin-bottom: $spacing-2;
48
48
  }
49
+ }
49
50
 
50
- &.is-alternate {
51
- dt {
52
- color: getColor('font');
53
- font-size: $size-7;
54
- }
51
+ &.has-divider {
52
+ li {
53
+ border-bottom: var(--border);
54
+ padding-bottom: $spacing-3;
55
55
 
56
- dd {
57
- color: getColor('font');
58
- font-size: $size-6;
59
- }
56
+ &:last-child {
57
+ border-bottom: none;
58
+ padding-bottom: 0;
59
+ }
60
60
  }
61
+ }
61
62
  }
@@ -16,12 +16,12 @@ $loader-items-bottom-offset: -40px;
16
16
  display: block;
17
17
  width: $loader-item-width;
18
18
  height: $loader-item-height;
19
- border-radius: 50%;
19
+ border-radius: 9999px;
20
20
  }
21
21
 
22
22
  .loader-body {
23
23
  visibility: hidden;
24
- background-color: getColor('alternate');
24
+ background-color: getColor('accent');
25
25
  animation: 2.5s linear 0s forwards infinite top_item;
26
26
  }
27
27
 
@@ -5,40 +5,3 @@
5
5
  .delete {
6
6
  @include delete;
7
7
  }
8
-
9
- .heading {
10
- display: block;
11
- font-size: 11px;
12
- letter-spacing: 1px;
13
- margin-bottom: 5px;
14
- text-transform: uppercase;
15
- }
16
-
17
- .highlight {
18
- @include block;
19
-
20
- font-weight: $weight-normal;
21
- max-width: 100%;
22
- overflow: hidden;
23
- padding: 0;
24
-
25
- pre {
26
- overflow: auto;
27
- max-width: 100%;
28
- }
29
- }
30
-
31
- .number {
32
- align-items: center;
33
- background-color: getColor('grey-light');
34
- border-radius: $radius-rounded;
35
- display: inline-flex;
36
- font-size: $size-medium;
37
- height: 2em;
38
- justify-content: center;
39
- margin-right: 15px;
40
- min-width: 2.5em;
41
- padding: 2.5px 5px;
42
- text-align: center;
43
- vertical-align: top;
44
- }
@@ -12,90 +12,56 @@ $text-levels-mobile: (
12
12
  );
13
13
 
14
14
 
15
- .paragraph {
16
- &.text {
17
- @each $text-level in $text-levels {
18
- $i: index($text-levels, $text-level);
19
- $font-size: nth($text-level, 1);
20
- $line-height: nth($text-level, 2);
21
- $margin-bottom: nth($text-level, 3);
22
-
23
- &.is-level-#{$i} {
24
- font-size: $font-size;
25
- line-height: $line-height;
26
- font-family: $family-primary;
27
- margin-bottom: $margin-bottom;
28
- }
29
-
30
- &.is-inverted {
31
- color: getColor('background');
32
- }
33
- }
34
-
35
- @include mobile {
36
- @each $text-level-mobile in $text-levels-mobile {
37
- $i: index($text-levels-mobile, $text-level-mobile);
38
- $margin-bottom: nth($text-level-mobile, 3);
39
-
40
- &.is-level-#{$i} {
41
- margin-bottom: $margin-bottom;
42
- }
43
- }
44
- }
45
-
46
- &.is-wrapped {
47
- word-break: break-word;
48
- }
49
-
50
- &.bold {
51
- font-weight: $weight-bold;
52
- }
53
- }
54
- }
55
-
56
-
57
- .paragraph,
58
15
  .text {
59
- & a.link:not([disabled]),
60
- a {
61
- padding: $spacing-1;
62
- margin: -4px;
63
- text-decoration: underline;
64
- font-size: unset;
65
- font-weight: $weight-medium;
16
+ @each $text-level in $text-levels {
17
+ $i: index($text-levels, $text-level);
18
+ $font-size: nth($text-level, 1);
19
+ $line-height: nth($text-level, 2);
20
+
21
+ &.is-level-#{$i} {
22
+ font-size: $font-size;
23
+ line-height: $line-height;
24
+ font-family: $family-primary;
25
+ }
26
+ }
66
27
 
67
- &::after {
68
- content: none;
69
- }
28
+ &.is-inverted {
29
+ color: getColor('background');
30
+ }
70
31
 
71
- &.is-static::after {
72
- margin-bottom: 0;
73
- }
32
+ @include mobile {
33
+ @each $text-level-mobile in $text-levels-mobile {
34
+ $i: index($text-levels-mobile, $text-level-mobile);
74
35
  }
75
- }
36
+ }
76
37
 
77
- .paragraph:not(:last-child) {
78
- margin-bottom: 10px;
38
+ &.is-wrapped {
39
+ word-break: break-word;
40
+ }
41
+
42
+ &.bold {
43
+ font-weight: $weight-bold;
44
+ }
79
45
  }
80
46
 
81
47
  .span {
82
- font-style: inherit;
83
- font-weight: inherit;
48
+ font-style: inherit;
49
+ font-weight: inherit;
84
50
  }
85
51
 
86
52
  .strong {
87
- color: inherit;
88
- font-weight: $weight-bold;
53
+ color: inherit;
54
+ font-weight: $weight-bold;
89
55
  }
90
56
 
91
57
  .sup {
92
- line-height: 0;
93
- position: relative;
94
- vertical-align: baseline;
95
- top: -0.4em;
96
- font-size: 0.7em;
58
+ line-height: 0;
59
+ position: relative;
60
+ vertical-align: baseline;
61
+ top: -0.4em;
62
+ font-size: 0.7em;
97
63
  }
98
64
 
99
65
  .small {
100
- font-size: 0.875em;
66
+ font-size: 0.875em;
101
67
  }