@lucca-front/scss 18.3.0-rc.1 → 18.3.0-rc.2

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 (232) hide show
  1. package/dist/lucca-front.min.css +1 -1
  2. package/package.json +2 -2
  3. package/src/commons/utils/container.scss +27 -67
  4. package/src/commons/utils/media.scss +35 -84
  5. package/src/commons/vars.scss +1 -1
  6. package/src/components/_sample/exports.scss +0 -1
  7. package/src/components/_sample/index.scss +1 -38
  8. package/src/components/actionIcon/exports.scss +0 -1
  9. package/src/components/avatar/exports.scss +0 -1
  10. package/src/components/box/exports.scss +0 -1
  11. package/src/components/breadcrumbs/exports.scss +0 -1
  12. package/src/components/button/exports.scss +0 -1
  13. package/src/components/buttonGroup/exports.scss +0 -1
  14. package/src/components/calendar/exports.scss +0 -1
  15. package/src/components/callout/exports.scss +0 -1
  16. package/src/components/calloutAccordion/exports.scss +0 -1
  17. package/src/components/calloutDisclosure/exports.scss +0 -1
  18. package/src/components/calloutFeedbackList/exports.scss +0 -1
  19. package/src/components/calloutPopover/exports.scss +0 -1
  20. package/src/components/card/exports.scss +0 -1
  21. package/src/components/checkbox/exports.scss +0 -1
  22. package/src/components/checkboxField/exports.scss +0 -1
  23. package/src/components/chip/exports.scss +0 -1
  24. package/src/components/clear/exports.scss +0 -1
  25. package/src/components/code/exports.scss +0 -1
  26. package/src/components/collapse/exports.scss +0 -1
  27. package/src/components/comment/component.scss +1 -0
  28. package/src/components/comment/exports.scss +0 -1
  29. package/src/components/comment/index.scss +4 -35
  30. package/src/components/comment/mods.scss +14 -0
  31. package/src/components/container/exports.scss +0 -1
  32. package/src/components/contentSection/exports.scss +0 -1
  33. package/src/components/dialog/component.scss +1 -1
  34. package/src/components/dialog/exports.scss +0 -1
  35. package/src/components/dialog/index.scss +4 -37
  36. package/src/components/divider/exports.scss +0 -1
  37. package/src/components/emptyState/component.scss +2 -0
  38. package/src/components/emptyState/exports.scss +0 -1
  39. package/src/components/emptyState/index.scss +0 -62
  40. package/src/components/emptyState/mods.scss +20 -6
  41. package/src/components/emptyState/vars.scss +9 -6
  42. package/src/components/emptyStateDeprecated/exports.scss +0 -1
  43. package/src/components/errorPage/component.scss +55 -35
  44. package/src/components/errorPage/exports.scss +0 -1
  45. package/src/components/errorPage/index.scss +2 -33
  46. package/src/components/field/exports.scss +0 -1
  47. package/src/components/fieldset/exports.scss +0 -1
  48. package/src/components/file/exports.scss +0 -1
  49. package/src/components/filterBar/component.scss +19 -5
  50. package/src/components/filterBar/exports.scss +0 -1
  51. package/src/components/filterBar/index.scss +0 -61
  52. package/src/components/filterBar/vars.scss +0 -5
  53. package/src/components/filters/exports.scss +0 -1
  54. package/src/components/filters/index.scss +0 -36
  55. package/src/components/filters/mods.scss +7 -0
  56. package/src/components/footer/component.scss +1 -1
  57. package/src/components/footer/exports.scss +0 -1
  58. package/src/components/footer/index.scss +0 -36
  59. package/src/components/footer/mods.scss +6 -0
  60. package/src/components/form/exports.scss +0 -1
  61. package/src/components/formLabel/exports.scss +0 -1
  62. package/src/components/gauge/exports.scss +0 -1
  63. package/src/components/grid/component.scss +5 -2
  64. package/src/components/grid/exports.scss +0 -1
  65. package/src/components/grid/index.scss +1 -1
  66. package/src/components/gridLegacy/exports.scss +0 -1
  67. package/src/components/header/exports.scss +0 -1
  68. package/src/components/header/index.scss +0 -37
  69. package/src/components/header/mods.scss +11 -0
  70. package/src/components/index.scss +93 -129
  71. package/src/components/indexTable/exports.scss +0 -1
  72. package/src/components/indexTable/index.scss +19 -38
  73. package/src/components/indexTable/mods.scss +149 -0
  74. package/src/components/inlineMessage/exports.scss +0 -1
  75. package/src/components/label/exports.scss +0 -1
  76. package/src/components/layout/exports.scss +0 -1
  77. package/src/components/link/exports.scss +0 -1
  78. package/src/components/list/exports.scss +0 -1
  79. package/src/components/loading/exports.scss +0 -1
  80. package/src/components/main/exports.scss +0 -1
  81. package/src/components/main/index.scss +6 -38
  82. package/src/components/main/mods.scss +6 -0
  83. package/src/components/main/states.scss +8 -0
  84. package/src/components/menu/exports.scss +0 -1
  85. package/src/components/mobileHeader/exports.scss +0 -1
  86. package/src/components/mobileNavigation/exports.scss +0 -1
  87. package/src/components/multiSelect/exports.scss +0 -1
  88. package/src/components/navside/component.scss +2 -2
  89. package/src/components/navside/exports.scss +0 -1
  90. package/src/components/navside/index.scss +50 -105
  91. package/src/components/navside/mods.scss +44 -0
  92. package/src/components/navside/states.scss +13 -0
  93. package/src/components/newBadge/exports.scss +0 -1
  94. package/src/components/notchBox/exports.scss +0 -1
  95. package/src/components/numericBadge/exports.scss +0 -1
  96. package/src/components/pageHeader/component.scss +11 -1
  97. package/src/components/pageHeader/exports.scss +0 -1
  98. package/src/components/pageHeader/index.scss +0 -61
  99. package/src/components/pageHeader/mods.scss +7 -0
  100. package/src/components/pagination/exports.scss +0 -1
  101. package/src/components/popover/exports.scss +0 -1
  102. package/src/components/progress/exports.scss +0 -1
  103. package/src/components/radio/exports.scss +0 -1
  104. package/src/components/radioButtons/exports.scss +0 -1
  105. package/src/components/radioField/exports.scss +0 -1
  106. package/src/components/scrollBox/exports.scss +0 -1
  107. package/src/components/section/component.scss +2 -2
  108. package/src/components/section/exports.scss +0 -1
  109. package/src/components/section/index.scss +5 -61
  110. package/src/components/section/mods.scss +11 -1
  111. package/src/components/section/vars.scss +0 -2
  112. package/src/components/segmentedControl/exports.scss +0 -1
  113. package/src/components/segmentedControl/index.scss +5 -36
  114. package/src/components/segmentedControl/mods.scss +5 -0
  115. package/src/components/simpleSelect/exports.scss +0 -1
  116. package/src/components/skeleton/exports.scss +0 -1
  117. package/src/components/sortableList/exports.scss +0 -1
  118. package/src/components/statusBadge/exports.scss +0 -1
  119. package/src/components/switch/exports.scss +0 -1
  120. package/src/components/switchField/exports.scss +0 -1
  121. package/src/components/table/exports.scss +0 -1
  122. package/src/components/tableFixed/exports.scss +0 -1
  123. package/src/components/tableFixedDeprecated/exports.scss +0 -1
  124. package/src/components/tableOfContent/exports.scss +0 -1
  125. package/src/components/tableSortable/exports.scss +0 -1
  126. package/src/components/tableSticked/exports.scss +0 -1
  127. package/src/components/tableStickedDeprecated/exports.scss +0 -1
  128. package/src/components/tag/exports.scss +0 -1
  129. package/src/components/textField/exports.scss +0 -1
  130. package/src/components/textfields/exports.scss +0 -1
  131. package/src/components/timeline/exports.scss +0 -1
  132. package/src/components/timepicker/exports.scss +0 -1
  133. package/src/components/title/exports.scss +0 -1
  134. package/src/components/titleSection/exports.scss +0 -1
  135. package/src/components/toast/exports.scss +0 -1
  136. package/src/components/tooltip/exports.scss +0 -1
  137. package/src/components/userPopover/exports.scss +0 -1
  138. package/src/components/verticalNavigation/exports.scss +0 -1
  139. package/src/components/_sample/responsive.scss +0 -7
  140. package/src/components/actionIcon/responsive.scss +0 -0
  141. package/src/components/avatar/responsive.scss +0 -0
  142. package/src/components/box/responsive.scss +0 -0
  143. package/src/components/breadcrumbs/responsive.scss +0 -0
  144. package/src/components/button/responsive.scss +0 -0
  145. package/src/components/buttonGroup/responsive.scss +0 -0
  146. package/src/components/calendar/responsive.scss +0 -0
  147. package/src/components/callout/responsive.scss +0 -0
  148. package/src/components/calloutAccordion/responsive.scss +0 -0
  149. package/src/components/calloutDisclosure/responsive.scss +0 -0
  150. package/src/components/calloutFeedbackList/responsive.scss +0 -0
  151. package/src/components/calloutPopover/responsive.scss +0 -0
  152. package/src/components/card/responsive.scss +0 -0
  153. package/src/components/checkbox/responsive.scss +0 -0
  154. package/src/components/checkboxField/responsive.scss +0 -0
  155. package/src/components/chip/responsive.scss +0 -0
  156. package/src/components/clear/responsive.scss +0 -0
  157. package/src/components/code/responsive.scss +0 -0
  158. package/src/components/collapse/responsive.scss +0 -0
  159. package/src/components/comment/responsive.scss +0 -5
  160. package/src/components/container/responsive.scss +0 -0
  161. package/src/components/contentSection/responsive.scss +0 -0
  162. package/src/components/dialog/responsive.scss +0 -0
  163. package/src/components/divider/responsive.scss +0 -0
  164. package/src/components/emptyState/responsive.scss +0 -27
  165. package/src/components/emptyStateDeprecated/responsive.scss +0 -0
  166. package/src/components/errorPage/responsive.scss +0 -20
  167. package/src/components/field/responsive.scss +0 -0
  168. package/src/components/fieldset/responsive.scss +0 -0
  169. package/src/components/file/responsive.scss +0 -0
  170. package/src/components/filterBar/responsive.scss +0 -10
  171. package/src/components/filters/responsive.scss +0 -6
  172. package/src/components/footer/responsive.scss +0 -5
  173. package/src/components/form/responsive.scss +0 -0
  174. package/src/components/formField/responsive.scss +0 -0
  175. package/src/components/formFieldset/responsive.scss +0 -0
  176. package/src/components/formLabel/responsive.scss +0 -0
  177. package/src/components/formSection/responsive.scss +0 -0
  178. package/src/components/gauge/responsive.scss +0 -0
  179. package/src/components/grid/responsive.scss +0 -0
  180. package/src/components/gridLegacy/responsive.scss +0 -0
  181. package/src/components/header/responsive.scss +0 -14
  182. package/src/components/indexTable/responsive.scss +0 -175
  183. package/src/components/indexTableSorted/responsive.scss +0 -0
  184. package/src/components/inlineMessage/responsive.scss +0 -0
  185. package/src/components/label/responsive.scss +0 -0
  186. package/src/components/layout/responsive.scss +0 -0
  187. package/src/components/link/responsive.scss +0 -0
  188. package/src/components/list/responsive.scss +0 -0
  189. package/src/components/loading/responsive.scss +0 -0
  190. package/src/components/main/responsive.scss +0 -21
  191. package/src/components/menu/responsive.scss +0 -0
  192. package/src/components/mobileHeader/responsive.scss +0 -0
  193. package/src/components/mobileNavigation/responsive.scss +0 -0
  194. package/src/components/multiSelect/responsive.scss +0 -0
  195. package/src/components/navside/responsive.scss +0 -56
  196. package/src/components/newBadge/responsive.scss +0 -0
  197. package/src/components/notchBox/responsive.scss +0 -0
  198. package/src/components/numericBadge/responsive.scss +0 -0
  199. package/src/components/pageHeader/responsive.scss +0 -17
  200. package/src/components/pagination/responsive.scss +0 -0
  201. package/src/components/popover/responsive.scss +0 -0
  202. package/src/components/progress/responsive.scss +0 -0
  203. package/src/components/radio/responsive.scss +0 -0
  204. package/src/components/radioButtons/responsive.scss +0 -0
  205. package/src/components/radioField/responsive.scss +0 -0
  206. package/src/components/scrollBox/responsive.scss +0 -0
  207. package/src/components/section/responsive.scss +0 -7
  208. package/src/components/segmentedControl/responsive.scss +0 -4
  209. package/src/components/simpleSelect/responsive.scss +0 -0
  210. package/src/components/skeleton/responsive.scss +0 -0
  211. package/src/components/sortableList/responsive.scss +0 -0
  212. package/src/components/statusBadge/responsive.scss +0 -0
  213. package/src/components/switch/responsive.scss +0 -0
  214. package/src/components/switchField/responsive.scss +0 -0
  215. package/src/components/table/responsive.scss +0 -0
  216. package/src/components/tableFixed/responsive.scss +0 -0
  217. package/src/components/tableFixedDeprecated/responsive.scss +0 -0
  218. package/src/components/tableOfContent/responsive.scss +0 -0
  219. package/src/components/tableSortable/responsive.scss +0 -0
  220. package/src/components/tableSticked/responsive.scss +0 -0
  221. package/src/components/tableStickedDeprecated/responsive.scss +0 -0
  222. package/src/components/tag/responsive.scss +0 -0
  223. package/src/components/textField/responsive.scss +0 -0
  224. package/src/components/textfields/responsive.scss +0 -0
  225. package/src/components/timeline/responsive.scss +0 -0
  226. package/src/components/timepicker/responsive.scss +0 -0
  227. package/src/components/title/responsive.scss +0 -0
  228. package/src/components/titleSection/responsive.scss +0 -0
  229. package/src/components/toast/responsive.scss +0 -0
  230. package/src/components/tooltip/responsive.scss +0 -0
  231. package/src/components/userPopover/responsive.scss +0 -0
  232. package/src/components/verticalNavigation/responsive.scss +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucca-front/scss",
3
- "version": "18.3.0-rc.1",
3
+ "version": "18.3.0-rc.2",
4
4
  "description": "A Sass framework for Lucca products.",
5
5
  "main": "src/main.scss",
6
6
  "scripts": {},
@@ -23,6 +23,6 @@
23
23
  "normalize.css": "^8.0.0"
24
24
  },
25
25
  "peerDependencies": {
26
- "@lucca-front/icons": "18.3.0-rc.1"
26
+ "@lucca-front/icons": "18.3.0-rc.2"
27
27
  }
28
28
  }
@@ -1,117 +1,77 @@
1
- @use 'sass:string';
2
1
  @use '@lucca-front/scss/src/commons/utils/media';
3
2
 
4
- @mixin auto($containerName) {
5
- *:has(> .#{$containerName}:not(.rwd-disableAutoContainer)) {
6
- container-type: inline-size;
7
- container-name: string.unquote($containerName);
8
- }
9
- }
10
-
11
- // dans ce qui suit tous les mixins sont des raccourcis vers media.query et media.queries
3
+ // dans cette page tous les mixins sont des raccourcis vers media.query et media.queries
12
4
 
13
5
  // les raccourcis des requêtes simples et multiples
14
6
 
15
- @mixin query($breakpoint, $breakpoint2, $axis: 'width', $inverted: false, $containerName: '') {
16
- // si on breakpoint supplémentaire est passé, c’est queries qu’il faut appeler
17
- @if $breakpoint2 != null {
18
- @include queries(
19
- $breakpoint1: $breakpoint,
20
- $breakpoint2: $breakpoint2,
21
- $axis: $axis,
22
- $at: 'container',
23
- $containerName: $containerName,
24
- $inverted: $inverted
25
- ) {
26
- @content;
27
- }
28
- } @else {
29
- @include media.query($breakpoint: $breakpoint, $axis: $axis, $inverted: $inverted, $at: 'container', $containerName: $containerName) {
30
- @content;
31
- }
32
- }
33
- }
34
-
35
- @mixin queries($breakpoint1, $breakpoint2, $inverted: false, $axis: 'width', $containerName: '') {
36
- @include media.queries($breakpoint1, $breakpoint2, $inverted: $inverted, $axis: $axis, $at: 'container', $containerName: $containerName) {
7
+ @mixin query($breakpoint, $property: 'width', $max: false, $name: '') {
8
+ @include media.query($breakpoint: $breakpoint, $property: $property, $max: $max, $at: 'container', $name: $name) {
37
9
  @content;
38
10
  }
39
11
  }
40
12
 
41
- // les raccourcis pour min/max/inside/outside
42
-
43
- @mixin min($breakpoint, $axis: 'width', $containerName: '') {
44
- @include media.query($breakpoint: $breakpoint, $axis: $axis, $at: 'container', $containerName: $containerName) {
13
+ @mixin queries($breakpoint1, $breakpoint2, $property: 'width', $name: '') {
14
+ @include media.queries($breakpoint1, $breakpoint2, $property: $property, $at: 'container', $name: $name) {
45
15
  @content;
46
16
  }
47
17
  }
48
18
 
49
- @mixin max($breakpoint, $axis: 'width', $containerName: '') {
50
- @include media.query($breakpoint, $axis: $axis, $inverted: true, $at: 'container', $containerName: $containerName) {
51
- @content;
52
- }
53
- }
19
+ // les raccourcis pour min/max/between
54
20
 
55
- @mixin inside($breakpoint1, $breakpoint2, $axis: 'width', $containerName: '') {
56
- @include media.queries($breakpoint1, $breakpoint2, $axis: $axis, $at: 'container', $containerName: $containerName) {
21
+ @mixin min($breakpoint, $property: 'width', $name: '') {
22
+ @include media.query($breakpoint: $breakpoint, $property: $property, $at: 'container', $name: $name) {
57
23
  @content;
58
24
  }
59
25
  }
60
26
 
61
- @mixin outside($breakpoint1, $breakpoint2, $axis: 'width', $containerName: '') {
62
- @include media.queries($breakpoint1, $breakpoint2, $axis: $axis, $at: 'container', $containerName: $containerName, $inverted: true) {
27
+ @mixin max($breakpoint, $property: 'width', $name: '') {
28
+ @include media.query($breakpoint, $property: $property, $max: true, $at: 'container', $name: $name) {
63
29
  @content;
64
30
  }
65
31
  }
66
32
 
67
- // les raccourcis pour minWidth/maxWidth/insideWidths/outsideWidths
68
-
69
- @mixin minWidth($breakpoint, $containerName: '') {
70
- @include media.query($breakpoint, $at: 'container', $containerName: $containerName) {
33
+ @mixin between($breakpoint1, $breakpoint2, $property: 'width', $name: '') {
34
+ @include media.queries($breakpoint1, $breakpoint2, $property: $property, $at: 'container', $name: $name) {
71
35
  @content;
72
36
  }
73
37
  }
74
38
 
75
- @mixin maxWidth($breakpoint, $containerName: '') {
76
- @include media.query($breakpoint, $inverted: true, $at: 'container', $containerName: $containerName) {
77
- @content;
78
- }
79
- }
39
+ // les raccourcis pour minWidth/maxWidth/betweenWidths
80
40
 
81
- @mixin insideWidths($breakpoint1, $breakpoint2, $containerName: '') {
82
- @include media.queries($breakpoint1, $breakpoint2, $at: 'container', $containerName: $containerName) {
41
+ @mixin minWidth($breakpoint, $name: '') {
42
+ @include media.query($breakpoint, $at: 'container', $name: $name) {
83
43
  @content;
84
44
  }
85
45
  }
86
46
 
87
- @mixin outsideWidths($breakpoint1, $breakpoint2, $containerName: '') {
88
- @include media.queries($breakpoint1, $breakpoint2, $at: 'container', $containerName: $containerName, $inverted: true) {
47
+ @mixin maxWidth($breakpoint, $name: '') {
48
+ @include media.query($breakpoint, $max: true, $at: 'container', $name: $name) {
89
49
  @content;
90
50
  }
91
51
  }
92
52
 
93
- // les raccourcis pour minHeight/maxHeight/insideHeights/outsideHeights
94
-
95
- @mixin minHeight($breakpoint, $containerName: '') {
96
- @include media.query($breakpoint, $axis: 'height', $at: 'container', $containerName: $containerName) {
53
+ @mixin betweenWidths($breakpoint1, $breakpoint2, $name: '') {
54
+ @include media.queries($breakpoint1, $breakpoint2, $at: 'container', $name: $name) {
97
55
  @content;
98
56
  }
99
57
  }
100
58
 
101
- @mixin maxHeight($breakpoint, $containerName: '') {
102
- @include media.query($breakpoint, $inverted: true, $axis: 'height', $at: 'container', $containerName: $containerName) {
59
+ // les raccourcis pour minHeight/maxHeight/betweenHeights
60
+
61
+ @mixin minHeight($breakpoint, $name: '') {
62
+ @include media.query($breakpoint, $property: 'height', $at: 'container', $name: $name) {
103
63
  @content;
104
64
  }
105
65
  }
106
66
 
107
- @mixin insideHeights($breakpoint1, $breakpoint2, $containerName: '') {
108
- @include media.queries($breakpoint1, $breakpoint2, $axis: 'height', $at: 'container', $containerName: $containerName) {
67
+ @mixin maxHeight($breakpoint, $name: '') {
68
+ @include media.query($breakpoint, $max: true, $property: 'height', $at: 'container', $name: $name) {
109
69
  @content;
110
70
  }
111
71
  }
112
72
 
113
- @mixin outsideHeights($breakpoint1, $breakpoint2, $containerName: '') {
114
- @include media.queries($breakpoint1, $breakpoint2, $axis: 'height', $at: 'container', $containerName: $containerName, $inverted: true) {
73
+ @mixin betweenHeights($breakpoint1, $breakpoint2, $name: '') {
74
+ @include media.queries($breakpoint1, $breakpoint2, $property: 'height', $at: 'container', $name: $name) {
115
75
  @content;
116
76
  }
117
77
  }
@@ -13,55 +13,33 @@
13
13
 
14
14
  // les requêtes simples et multiples
15
15
 
16
- @mixin query($breakpoint, $breakpoint2: null, $axis: 'width', $inverted: false, $at: 'media', $containerName: '') {
17
- // si on breakpoint supplémentaire est passé, c’est queries qu’il faut appeler
18
- @if $breakpoint2 != null {
19
- @include queries(
20
- $breakpoint1: $breakpoint,
21
- $breakpoint2: $breakpoint2,
22
- $axis: $axis,
23
- $at: $at,
24
- $containerName: $containerName,
25
- $inverted: $inverted
26
- ) {
27
- @content;
28
- }
29
- } @else {
30
- $reversed: '';
16
+ @mixin query($breakpoint, $property: 'width', $max: false, $at: 'media', $name: '') {
17
+ $reversed: '';
31
18
 
32
- @if $inverted {
33
- $reversed: 'not all and';
34
-
35
- @if $at == 'container' {
36
- $reversed: 'not';
37
- }
38
- }
19
+ @if $max {
20
+ $reversed: 'not all and';
39
21
 
40
- @if $at == 'media' {
41
- $containerName: '';
22
+ @if $at == 'container' {
23
+ $reversed: 'not';
42
24
  }
25
+ }
43
26
 
44
- @if map.get(config.$breakpoints, $breakpoint) {
45
- $breakpoint: pxToEm(map.get(config.$breakpoints, $breakpoint));
46
- }
27
+ @if map.get(config.$breakpoints, $breakpoint) {
28
+ $breakpoint: pxToEm(map.get(config.$breakpoints, $breakpoint));
29
+ }
47
30
 
48
- @#{$at} #{$containerName} #{$reversed} (min-#{$axis}: #{$breakpoint}) {
49
- @content;
50
- }
31
+ @#{$at} #{$name} #{$reversed} (min-#{$property}: #{$breakpoint}) {
32
+ @content;
51
33
  }
52
34
  }
53
35
 
54
- @mixin queries($breakpoint1, $breakpoint2, $axis: 'width', $at: 'media', $containerName: '', $inverted: false) {
36
+ @mixin queries($breakpoint1, $breakpoint2, $property: 'width', $at: 'media', $name: '') {
55
37
  $reversed: 'not all and';
56
38
 
57
39
  @if $at == 'container' {
58
40
  $reversed: 'not';
59
41
  }
60
42
 
61
- @if $at == 'media' {
62
- $containerName: '';
63
- }
64
-
65
43
  @if map.get(config.$breakpoints, $breakpoint1) {
66
44
  $breakpoint1: pxToEm(map.get(config.$breakpoints, $breakpoint1));
67
45
  }
@@ -77,49 +55,34 @@
77
55
  $breakpoint1: $breakpointTmp;
78
56
  }
79
57
 
80
- // si on souhaite inverser, ce sont deux queries combinées (or)
81
- @if $inverted == true {
82
- @#{$at} #{$containerName} #{$reversed} (min-#{$axis}: #{$breakpoint1}), (min-#{$axis}: #{$breakpoint2}) {
58
+ @#{$at} #{$name} (min-#{$property}: #{$breakpoint1}) {
59
+ @#{$at} #{$name} #{$reversed} (min-#{$property}: #{$breakpoint2}) {
83
60
  @content;
84
61
  }
85
62
  }
86
- // sinon, ce sont deux queries imbriquées (and)
87
- @else {
88
- @#{$at} #{$containerName} (min-#{$axis}: #{$breakpoint1}) {
89
- @#{$at} #{$containerName} #{$reversed} (min-#{$axis}: #{$breakpoint2}) {
90
- @content;
91
- }
92
- }
93
- }
94
63
  }
95
64
 
96
- // les raccourcis vers les requêtes pour min/max/inside/outside
65
+ // les raccourcis vers les requêtes pour min/max/between
97
66
 
98
- @mixin min($breakpoint, $axis: 'width', $at: 'media') {
99
- @include query($breakpoint, $axis: $axis, $at: $at) {
67
+ @mixin min($breakpoint, $property: 'width', $at: 'media') {
68
+ @include query($breakpoint, $property: $property, $at: $at) {
100
69
  @content;
101
70
  }
102
71
  }
103
72
 
104
- @mixin max($breakpoint, $axis: 'width', $at: 'media') {
105
- @include query($breakpoint, $axis: $axis, $inverted: true, $at: $at) {
73
+ @mixin max($breakpoint, $property: 'width', $at: 'media') {
74
+ @include query($breakpoint, $property: $property, $max: true, $at: $at) {
106
75
  @content;
107
76
  }
108
77
  }
109
78
 
110
- @mixin inside($breakpoint1, $breakpoint2, $axis: 'width', $at: 'media') {
111
- @include queries($breakpoint1, $breakpoint2, $axis: $axis, $at: $at) {
79
+ @mixin between($breakpoint1, $breakpoint2, $property: 'width', $at: 'media') {
80
+ @include queries($breakpoint1, $breakpoint2, $property: $property, $at: $at) {
112
81
  @content;
113
82
  }
114
83
  }
115
84
 
116
- @mixin outside($breakpoint1, $breakpoint2, $axis: 'width', $at: 'media', $inverted: true) {
117
- @include queries($breakpoint1, $breakpoint2, $axis: $axis, $at: $at) {
118
- @content;
119
- }
120
- }
121
-
122
- // les raccourcis vers les requêtes pour minWidth/maxWidth/insideWidths/outsideWidths
85
+ // les raccourcis vers les requêtes pour minWidth/maxWidth/betweenWidths
123
86
 
124
87
  @mixin minWidth($breakpoint, $at: 'media') {
125
88
  @include query($breakpoint, $at: $at) {
@@ -128,24 +91,18 @@
128
91
  }
129
92
 
130
93
  @mixin maxWidth($breakpoint, $at: 'media') {
131
- @include query($breakpoint, $inverted: true, $at: $at) {
132
- @content;
133
- }
134
- }
135
-
136
- @mixin insideWidths($breakpoint1, $breakpoint2, $at: 'media') {
137
- @include queries($breakpoint1, $breakpoint2, $at: $at) {
94
+ @include query($breakpoint, $max: true, $at: $at) {
138
95
  @content;
139
96
  }
140
97
  }
141
98
 
142
- @mixin outsideWidths($breakpoint1, $breakpoint2, $at: 'media') {
143
- @include queries($breakpoint1, $breakpoint2, $at: $at, $inverted: true) {
144
- @content;
145
- }
99
+ @mixin betweenWidths($breakpoint1, $breakpoint2, $at: 'media') {
100
+ @include queries($breakpoint1, $breakpoint2, $at: $at) {
101
+ @content;
102
+ }
146
103
  }
147
104
 
148
- // les raccourcis vers les requêtes pour minHeight/maxHeight/insideHeights/outsideHeights
105
+ // les raccourcis vers les requêtes pour minHeight/maxHeight/betweenHeights
149
106
 
150
107
  @mixin minHeight($breakpoint, $at: 'media') {
151
108
  @include query($breakpoint, 'height', $at: $at) {
@@ -154,21 +111,15 @@
154
111
  }
155
112
 
156
113
  @mixin maxHeight($breakpoint, $at: 'media') {
157
- @include query($breakpoint, $inverted: true, $axis: 'height', $at: $at) {
114
+ @include query($breakpoint, $max: true, $property: 'height', $at: $at) {
158
115
  @content;
159
116
  }
160
117
  }
161
118
 
162
- @mixin insideHeights($breakpoint1, $breakpoint2, $at: 'media') {
163
- @include queries($breakpoint1, $breakpoint2, $axis: 'height', $at: $at) {
164
- @content;
165
- }
166
- }
167
-
168
- @mixin outsideHeights($breakpoint1, $breakpoint2, $at: 'media') {
169
- @include queries($breakpoint1, $breakpoint2, $axis: 'height', $at: $at, $inverted: true) {
170
- @content;
171
- }
119
+ @mixin betweenHeights($breakpoint1, $breakpoint2, $at: 'media') {
120
+ @include queries($breakpoint1, $breakpoint2, $property: 'height', $at: $at) {
121
+ @content;
122
+ }
172
123
  }
173
124
 
174
125
  // Touch detection
@@ -182,4 +133,4 @@
182
133
  @media not (any-pointer: coarse) {
183
134
  @content;
184
135
  }
185
- }
136
+ }
@@ -63,6 +63,6 @@
63
63
  --commons-container-padding: 3.5rem;
64
64
 
65
65
  --commons-navSide-width: 0rem; // unit is required for calc
66
- --commons-navSide-compact-width: 7.5rem; // deprecated
66
+ --commons-navSide-compact-width: 7.5rem;
67
67
  --commons-navSide-mobile-toggle-height: 3.5rem;
68
68
  }
@@ -5,5 +5,4 @@
5
5
  @forward 'vars';
6
6
  @forward 'mods';
7
7
  @forward 'states';
8
- @forward 'responsive';
9
8
  @forward 'component';
@@ -1,12 +1,9 @@
1
1
  // This file contains all the connections required to make the component functional.
2
2
  // The component’s mixins are requested, then assigned to classes.
3
3
  // To add the component to the list of all existing components, call it from `components/index` with `@forward 'sample';`.
4
- // Modifiers and states are optional and must be prefixed by `.mod-`, `.rwd-` and `.is-`.
5
- // A responsive mixin and varible define the default behaviour but can be overridden. All this settings must be preserved.
4
+ // Modifiers and states are optional and must be prefixed by `.mod-` and `.is-`.
6
5
 
7
6
  @use 'exports' as *;
8
- @use '@lucca-front/scss/src/commons/utils/media';
9
- @use '@lucca-front/scss/src/commons/utils/container';
10
7
 
11
8
  .sample {
12
9
  @include vars;
@@ -20,37 +17,3 @@
20
17
  @include sampleStateA;
21
18
  }
22
19
  }
23
-
24
- @mixin responsive(
25
- $breakpoint: 'M',
26
- $breakpoint2: null,
27
- $inverted: false,
28
- $at: 'container',
29
- $containerName: 'sample',
30
- $responsiveSelector: null,
31
- $axis: 'width',
32
- $selector: '.sample'
33
- ) {
34
- @if ($at == 'container') {
35
- @include container.auto($containerName);
36
- }
37
-
38
- #{if($responsiveSelector, $selector + '.rwd-' + $responsiveSelector, $selector)} {
39
- @include media.query(
40
- $breakpoint: $breakpoint,
41
- $breakpoint2: $breakpoint2,
42
- $inverted: $inverted,
43
- $at: $at,
44
- $containerName: $containerName,
45
- $axis: $axis
46
- ) {
47
- @include sampleBehaviour;
48
- }
49
- }
50
- }
51
-
52
- $defaultResponsive: true !default;
53
-
54
- @if $defaultResponsive {
55
- @include responsive;
56
- }
@@ -1,5 +1,4 @@
1
1
  @forward 'vars';
2
2
  @forward 'mods';
3
3
  @forward 'states';
4
- @forward 'responsive';
5
4
  @forward 'component';
@@ -1,5 +1,4 @@
1
1
  @forward 'vars';
2
2
  @forward 'mods';
3
3
  @forward 'states';
4
- @forward 'responsive';
5
4
  @forward 'component';
@@ -1,5 +1,4 @@
1
1
  @forward 'vars';
2
2
  @forward 'mods';
3
3
  @forward 'states';
4
- @forward 'responsive';
5
4
  @forward 'component';
@@ -1,5 +1,4 @@
1
1
  @forward 'vars';
2
2
  @forward 'mods';
3
3
  @forward 'states';
4
- @forward 'responsive';
5
4
  @forward 'component';
@@ -1,5 +1,4 @@
1
1
  @forward 'vars';
2
2
  @forward 'mods';
3
3
  @forward 'states';
4
- @forward 'responsive';
5
4
  @forward 'component';
@@ -1,5 +1,4 @@
1
1
  @forward 'vars';
2
2
  @forward 'mods';
3
3
  @forward 'states';
4
- @forward 'responsive';
5
4
  @forward 'component';
@@ -1,5 +1,4 @@
1
1
  @forward 'vars';
2
2
  @forward 'mods';
3
3
  @forward 'states';
4
- @forward 'responsive';
5
4
  @forward 'component';
@@ -1,5 +1,4 @@
1
1
  @forward 'vars';
2
2
  @forward 'mods';
3
3
  @forward 'states';
4
- @forward 'responsive';
5
4
  @forward 'component';
@@ -1,5 +1,4 @@
1
1
  @forward 'vars';
2
2
  @forward 'mods';
3
3
  @forward 'states';
4
- @forward 'responsive';
5
4
  @forward 'component';
@@ -1,5 +1,4 @@
1
1
  @forward 'vars';
2
2
  @forward 'mods';
3
3
  @forward 'states';
4
- @forward 'responsive';
5
4
  @forward 'component';
@@ -1,5 +1,4 @@
1
1
  @forward 'vars';
2
2
  @forward 'mods';
3
3
  @forward 'states';
4
- @forward 'responsive';
5
4
  @forward 'component';
@@ -1,5 +1,4 @@
1
1
  @forward 'vars';
2
2
  @forward 'mods';
3
3
  @forward 'states';
4
- @forward 'responsive';
5
4
  @forward 'component';
@@ -1,5 +1,4 @@
1
1
  @forward 'vars';
2
2
  @forward 'mods';
3
3
  @forward 'states';
4
- @forward 'responsive';
5
4
  @forward 'component';
@@ -1,5 +1,4 @@
1
1
  @forward 'vars';
2
2
  @forward 'mods';
3
3
  @forward 'states';
4
- @forward 'responsive';
5
4
  @forward 'component';
@@ -1,5 +1,4 @@
1
1
  @forward 'vars';
2
2
  @forward 'mods';
3
3
  @forward 'states';
4
- @forward 'responsive';
5
4
  @forward 'component';
@@ -1,5 +1,4 @@
1
1
  @forward 'vars';
2
2
  @forward 'mods';
3
3
  @forward 'states';
4
- @forward 'responsive';
5
4
  @forward 'component';
@@ -1,5 +1,4 @@
1
1
  @forward 'vars';
2
2
  @forward 'mods';
3
3
  @forward 'states';
4
- @forward 'responsive';
5
4
  @forward 'component';
@@ -1,5 +1,4 @@
1
1
  @forward 'vars';
2
2
  @forward 'mods';
3
3
  @forward 'states';
4
- @forward 'responsive';
5
4
  @forward 'component';
@@ -1,5 +1,4 @@
1
1
  @forward 'vars';
2
2
  @forward 'mods';
3
3
  @forward 'states';
4
- @forward 'responsive';
5
4
  @forward 'component';
@@ -3,6 +3,7 @@
3
3
  @use '@lucca-front/scss/src/commons/utils/reset';
4
4
 
5
5
  @mixin component($atRoot: namespace.$defaultAtRoot) {
6
+ container: comment / inline-size;
6
7
  display: flex;
7
8
  flex-direction: column;
8
9
  gap: var(--pr-t-spacings-50);
@@ -1,5 +1,4 @@
1
1
  @forward 'vars';
2
2
  @forward 'mods';
3
3
  @forward 'states';
4
- @forward 'responsive';
5
4
  @forward 'component';
@@ -1,4 +1,3 @@
1
- @use '@lucca-front/scss/src/commons/utils/media';
2
1
  @use '@lucca-front/scss/src/commons/utils/container';
3
2
 
4
3
  @use 'exports' as *;
@@ -14,6 +13,10 @@
14
13
  &.mod-noAvatar {
15
14
  @include noAvatar;
16
15
  }
16
+
17
+ @include container.max(25rem, $name: 'comment') {
18
+ @include narrow;
19
+ }
17
20
  }
18
21
 
19
22
  .commentWrapper {
@@ -35,37 +38,3 @@
35
38
  .commentWrapperChat {
36
39
  @include chat;
37
40
  }
38
-
39
- @mixin responsive(
40
- $breakpoint: 25rem,
41
- $breakpoint2: null,
42
- $inverted: true,
43
- $at: 'container',
44
- $containerName: 'comment',
45
- $responsiveSelector: null,
46
- $axis: 'width',
47
- $selector: '.comment'
48
- ) {
49
- @if ($at == 'container') {
50
- @include container.auto($containerName);
51
- }
52
-
53
- #{if($responsiveSelector, $selector + '.rwd-' + $responsiveSelector, $selector)} {
54
- @include media.query(
55
- $breakpoint: $breakpoint,
56
- $breakpoint2: $breakpoint2,
57
- $inverted: $inverted,
58
- $at: $at,
59
- $containerName: $containerName,
60
- $axis: $axis
61
- ) {
62
- @include narrow;
63
- }
64
- }
65
- }
66
-
67
- $defaultResponsive: true !default;
68
-
69
- @if $defaultResponsive {
70
- @include responsive;
71
- }
@@ -16,6 +16,20 @@
16
16
  --components-comment-content-margin: 0;
17
17
  }
18
18
 
19
+ @mixin narrow {
20
+ @at-root (namespace.$defaultAtRoot) {
21
+ .comment-infos-content {
22
+ --components-comment-info-content-display: flex;
23
+ }
24
+
25
+ .comment-infos-name + .comment-infos-date {
26
+ &::before {
27
+ --components-comment-info-separator: none;
28
+ }
29
+ }
30
+ }
31
+ }
32
+
19
33
  @mixin wrapperCompact {
20
34
  .commentWrapper-item {
21
35
  &:not(:first-child) {
@@ -1,5 +1,4 @@
1
1
  @forward 'vars';
2
2
  @forward 'mods';
3
3
  @forward 'states';
4
- @forward 'responsive';
5
4
  @forward 'component';
@@ -1,5 +1,4 @@
1
1
  @forward 'vars';
2
2
  @forward 'mods';
3
3
  @forward 'states';
4
- @forward 'responsive';
5
4
  @forward 'component';