@trilogy-ds/styles 0.0.1-beta.8 → 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,67 +1,56 @@
1
- $control-radius: $radius !default;
2
- $control-radius-small: $radius-small !default;
3
-
4
1
  $control-border-width: 1px !default;
5
2
 
6
3
  $control-padding-vertical: calc(0.375em - #{$control-border-width}) !default;
7
- $control-padding-horizontal: 20px;
8
-
9
- %control {
10
- -moz-appearance: none;
11
- -webkit-appearance: none;
12
- align-items: center;
13
- border: $control-border-width solid transparent;
14
- border-radius: $control-radius-small;
15
- display: inline-flex;
16
- font-size: $size-normal;
17
- height: 2.25em;
18
- justify-content: flex-start;
19
- line-height: 1.5;
20
- padding-bottom: $control-padding-vertical;
21
- padding-left: $control-padding-horizontal;
22
- padding-right: $control-padding-horizontal;
23
- padding-top: $control-padding-vertical;
24
- position: relative;
25
- vertical-align: top;
4
+ $control-padding-horizontal: 16px;
26
5
 
27
- // bug fix pour iOS qui zoom sur le champ si la police ne fait pas 16px
6
+ @mixin control {
7
+ -moz-appearance: none;
8
+ -webkit-appearance: none;
9
+ align-items: center;
10
+ border: $control-border-width solid transparent;
11
+ border-radius: var(--radius-small);
12
+ display: inline-flex;
13
+ font-size: $size-normal;
14
+ height: 46px;
15
+ justify-content: flex-start;
16
+ line-height: 1.4;
17
+ padding-bottom: $control-padding-vertical;
18
+ padding-left: $control-padding-horizontal;
19
+ padding-right: $control-padding-horizontal;
20
+ padding-top: $control-padding-vertical;
21
+ position: relative;
22
+ vertical-align: top;
23
+
24
+ // bug fix pour iOS qui zoom sur le champ si la police ne fait pas 16px
25
+ @supports (-webkit-overflow-scrolling: touch) {
26
+ font-size: $text-16;
27
+ }
28
+
29
+ &:focus,
30
+ &:active {
31
+ outline: none;
32
+
33
+ // répétition nécessaire : bug fix pour iOS qui zoom sur le champ si la police ne fait pas 16px
28
34
  @supports (-webkit-overflow-scrolling: touch) {
29
- font-size: $text-16;
30
- }
31
-
32
- &:focus,
33
- &.is-focused,
34
- &:active,
35
- &.is-active {
36
- outline: none;
37
-
38
- // répétition nécessaire : bug fix pour iOS qui zoom sur le champ si la police ne fait pas 16px
39
- @supports (-webkit-overflow-scrolling: touch) {
40
- font-size: $text-16;
41
- }
35
+ font-size: $text-16;
42
36
  }
37
+ }
43
38
 
44
- &[disabled] {
45
- cursor: not-allowed;
46
- }
47
- }
48
-
49
- @mixin control {
50
- @extend %control;
39
+ &[disabled] {
40
+ cursor: not-allowed;
41
+ }
51
42
 
52
- height: 46px;
53
- line-height: 1.4;
54
43
  }
55
44
 
56
45
  @mixin control-small {
57
- border-radius: $control-radius-small;
58
- font-size: $size-small;
46
+ border-radius: var(--radius-small);
47
+ font-size: $size-small;
59
48
  }
60
49
 
61
50
  @mixin control-medium {
62
- font-size: $size-medium;
51
+ font-size: $size-medium;
63
52
  }
64
53
 
65
54
  @mixin control-large {
66
- font-size: $size-large;
55
+ font-size: $size-large;
67
56
  }
@@ -14,27 +14,16 @@ $size-large: $text-24 !default;
14
14
 
15
15
  // Brand Color
16
16
  $colors-brand: (
17
- 'background', 'main', 'font'
17
+ 'background', 'main', 'accent'
18
18
  );
19
19
 
20
20
  // Brand Color Functionnal
21
- $colors-brand-funcionnal: (
22
- 'background', 'main', 'alternate', 'font', 'info', 'success', 'error', 'warning'
21
+ $colors-brand-functionnal: (
22
+ 'background', 'main', 'accent', 'info', 'success', 'error', 'warning', 'neutral'
23
23
  );
24
24
 
25
25
  $colors-feedback: (
26
- 'success': (
27
- 'bg-success',
28
- ),
29
- 'error': (
30
- 'bg-error',
31
- ),
32
- 'warning': (
33
- 'bg-warning',
34
- ),
35
- 'info': (
36
- 'bg-info',
37
- ),
26
+ 'success', 'error', 'warning', 'info'
38
27
  );
39
28
 
40
29
  // Gestion des z-index
@@ -1,37 +1,7 @@
1
1
  @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
2
- $suffix: '';
3
-
4
- /*
5
- All color have a
6
- @string slug name used in classname (You can use your brand name)
7
- @color A valid css color value
8
- @invert The slug name of the best inverted color
9
- @hover A valid css color value (a variant color for the hover case) -- optional
10
- @visited A valid css color value (a variant color for the pressed case) -- optional
11
- @background A valid css color value (a variant color for background) -- optional
12
- */
13
-
14
- $colors: (
15
- 'background': ['white', #fff, 'tertiary', #E9E9E9, #F4F4F4],
16
- 'main':['primary', #1A688A, 'white', #134960, #0c7b91],
17
- 'alternate':['secondary', #D44A4A, 'white', #b64508, #ec5353, #e3bcbc, #912b2b, #601212],
18
- 'font':['tertiary', #333, 'white', #222, #646464],
19
- 'aside':['hue42', hsl(42,100%,50%), 'tertiary'],
20
- 'success':['success', #007B52, 'white'],
21
- 'info':['info', #1A688A, 'white'],
22
- 'warning':['warning', #FFBB33, 'tertiary'],
23
- 'error':['error', #D42D02, 'white'],
24
- 'grey':['grey', #707070, 'white' ],
25
- 'grey-dark':['grey-dark', #646464, 'white' ],
26
- 'grey-light':['grey-light', #E9E9E9, 'white' ],
27
- 'grey-lighter':['grey-lighter', #F4F4F4, 'white' ],
28
- 'grey-disabled':['grey-disabled', #D1D1D1, 'white' ],
29
- 'bg-disabled': ['bg-disabled', hsl(0, 0%, 80%), 'disabled'],
30
- 'bg-success': ['bg-success', #cae8ca, 'success'],
31
- 'bg-info': ['bg-info', #c8dbec, 'info'],
32
- 'bg-warning': ['bg-warning', #ecdbc6, 'warning'],
33
- 'bg-error': ['bg-error', #eecccc, 'error'],
34
- ) !default ;
2
+ @import "colors";
3
+
4
+ $hoverSelector: "&:hover:not([disabled]):not([aria-disabled=true])";
35
5
 
36
6
  // Typography OS-regular
37
7
  $family-sans-serif: 'Poppins Read', BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif !default;
@@ -81,7 +51,7 @@ $text-64: 64px !default;
81
51
  $text-80: 80px !default;
82
52
 
83
53
 
84
- $size-1: $text-32;
54
+ $size-1: 32px;
85
55
  $size-2: $text-28;
86
56
  $size-3: $text-24;
87
57
  $size-4: $text-20;
@@ -135,8 +105,6 @@ $speed: 86ms !default;
135
105
  // Radius
136
106
  $radius-small: 4px !default;
137
107
  $radius: 8px !default;
138
- $radius-large: 9px !default;
139
- $radius-rounded: 6685px !default;
140
108
 
141
109
  // Flags
142
110
  $variable-columns: true !default;