@cityway/basic-ui 1.0.2-beta021 → 1.0.2-beta023
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.
- package/cityway-basic-ui-1.0.2-beta023.tgz +0 -0
- package/fesm2022/cityway-basic-ui.mjs +1068 -76
- package/fesm2022/cityway-basic-ui.mjs.map +1 -1
- package/img/flags.png +0 -0
- package/img/flags.webp +0 -0
- package/img/flags@2x.png +0 -0
- package/img/flags@2x.webp +0 -0
- package/index.d.ts +390 -14
- package/lib/assets/i18n/common.en.json +7 -1
- package/lib/assets/i18n/common.fr.json +7 -1
- package/lib/assets/icons/sprite.svg +3 -1
- package/package.json +6 -2
- package/styles/basic-ui.styles.bo.min.css +1 -1
- package/styles/basic-ui.styles.bo.min.css.map +1 -1
- package/styles/basic-ui.styles.fo.min.css +1 -1
- package/styles/basic-ui.styles.fo.min.css.map +1 -1
- package/cityway-basic-ui-1.0.2-beta021.tgz +0 -0
- package/lib/assets/styles/scss/_reboot.scss +0 -494
- package/lib/assets/styles/scss/_root-bo.scss +0 -22
- package/lib/assets/styles/scss/_root-fo.scss +0 -14
- package/lib/assets/styles/scss/basic-ui.styles.bo.scss +0 -49
- package/lib/assets/styles/scss/basic-ui.styles.fo.scss +0 -49
- package/lib/assets/styles/scss/components/_accordion.scss +0 -35
- package/lib/assets/styles/scss/components/_alert.scss +0 -78
- package/lib/assets/styles/scss/components/_badge.scss +0 -111
- package/lib/assets/styles/scss/components/_breadcrumb.scss +0 -51
- package/lib/assets/styles/scss/components/_btn-collapse.scss +0 -23
- package/lib/assets/styles/scss/components/_card.scss +0 -98
- package/lib/assets/styles/scss/components/_close.scss +0 -11
- package/lib/assets/styles/scss/components/_dropdown.scss +0 -91
- package/lib/assets/styles/scss/components/_file-to-download.scss +0 -46
- package/lib/assets/styles/scss/components/_icon-notification.scss +0 -30
- package/lib/assets/styles/scss/components/_icon.scss +0 -138
- package/lib/assets/styles/scss/components/_modal.scss +0 -165
- package/lib/assets/styles/scss/components/_numerical-range.scss +0 -60
- package/lib/assets/styles/scss/components/_stepper.scss +0 -78
- package/lib/assets/styles/scss/components/_toast.scss +0 -27
- package/lib/assets/styles/scss/components/_tooltip.scss +0 -35
- package/lib/assets/styles/scss/components/button/_button-bo-variant.scss +0 -112
- package/lib/assets/styles/scss/components/button/_button-fo-variant.scss +0 -57
- package/lib/assets/styles/scss/components/button/_button.scss +0 -152
- package/lib/assets/styles/scss/components/form-field/_field-check.scss +0 -137
- package/lib/assets/styles/scss/components/form-field/_form-field.scss +0 -153
- package/lib/assets/styles/scss/components/form-field/_ng-select.scss +0 -93
- package/lib/assets/styles/scss/components/form-field/_slider-range.scss +0 -68
- package/lib/assets/styles/scss/components/tab/_tab-bo.scss +0 -95
- package/lib/assets/styles/scss/components/tab/_tab-fo.scss +0 -83
- package/lib/assets/styles/scss/helpers/_skeleton.scss +0 -67
- package/lib/assets/styles/scss/helpers/_spinner.scss +0 -37
- package/lib/assets/styles/scss/helpers/_stretched-link.scss +0 -9
- package/lib/assets/styles/scss/helpers/_visually-hidden.scss +0 -18
- package/lib/assets/styles/scss/mixins/_color.scss +0 -16
- package/lib/assets/styles/scss/mixins/_flex.scss +0 -11
- package/lib/assets/styles/scss/mixins/_popover-tooltip.scss +0 -144
- package/lib/assets/styles/scss/mixins/_root.scss +0 -26
- package/lib/assets/styles/scss/mixins/_spacing.scss +0 -84
- package/lib/assets/styles/scss/mixins/_type.scss +0 -44
- package/lib/assets/styles/scss/utilities/_alignment.scss +0 -23
- package/lib/assets/styles/scss/utilities/_breakpoints.scss +0 -30
- package/lib/assets/styles/scss/utilities/_flex.scss +0 -142
- package/lib/assets/styles/scss/utilities/_grid.scss +0 -64
- package/lib/assets/styles/scss/utilities/_position.scss +0 -24
- package/lib/assets/styles/scss/utilities/_spacing.scss +0 -3
- package/lib/assets/styles/scss/utilities/type/_type-bo.scss +0 -40
- package/lib/assets/styles/scss/utilities/type/_type-fo.scss +0 -132
- package/lib/assets/styles/scss/utilities/type/_type.scss +0 -34
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "@cityway/design-tokens/primitives" as p;
|
|
3
|
-
@use "@cityway/design-tokens/functions" as *;
|
|
4
|
-
|
|
5
|
-
.spinner-border {
|
|
6
|
-
--#{p.$prefix}-spinner-width: #{size(3xl)};
|
|
7
|
-
--#{p.$prefix}-spinner-height: #{size(3xl)};
|
|
8
|
-
--#{p.$prefix}-spinner-bw: #{size(4xs)};
|
|
9
|
-
--#{p.$prefix}-spinner-bc: var(--#{p.$prefix}-primary-base);
|
|
10
|
-
|
|
11
|
-
display: inline-block;
|
|
12
|
-
flex-shrink: 0;
|
|
13
|
-
width: var(--#{p.$prefix}-spinner-width);
|
|
14
|
-
height: var(--#{p.$prefix}-spinner-height);
|
|
15
|
-
vertical-align: -0.125em;
|
|
16
|
-
|
|
17
|
-
border: var(--#{p.$prefix}-spinner-bw) solid var(--#{p.$prefix}-spinner-bc);
|
|
18
|
-
border-right-color: transparent;
|
|
19
|
-
border-radius: 50%;
|
|
20
|
-
animation: 0.75s linear infinite spinner-border;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@keyframes spinner-border {
|
|
24
|
-
to { transform: rotate(360deg) #{"/* rtl:ignore */"}; }
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.spinner-border-sm {
|
|
28
|
-
--#{p.$prefix}-spinner-width: #{size(lg)};
|
|
29
|
-
--#{p.$prefix}-spinner-height: #{size(lg)};
|
|
30
|
-
--#{p.$prefix}-spinner-bw: 0.188rem;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.spinner-border-lg {
|
|
34
|
-
--#{p.$prefix}-spinner-width: #{size(7xl)};
|
|
35
|
-
--#{p.$prefix}-spinner-height: #{size(7xl)};
|
|
36
|
-
--#{p.$prefix}-spinner-bw: 0.5rem;
|
|
37
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
.visually-hidden {
|
|
2
|
-
width: 1px !important;
|
|
3
|
-
height: 1px !important;
|
|
4
|
-
padding: 0 !important;
|
|
5
|
-
margin: -1px !important;
|
|
6
|
-
overflow: hidden !important;
|
|
7
|
-
clip: rect(0, 0, 0, 0) !important;
|
|
8
|
-
white-space: nowrap !important;
|
|
9
|
-
border: 0 !important;
|
|
10
|
-
|
|
11
|
-
&:not(caption) {
|
|
12
|
-
position: absolute !important;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
* {
|
|
16
|
-
overflow: hidden !important;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
@use "@cityway/design-tokens/functions" as f;
|
|
2
|
-
@use "@cityway/design-tokens/primitives" as p;
|
|
3
|
-
|
|
4
|
-
@mixin color-with-rgb($name, $hex) {
|
|
5
|
-
--#{$name}: #{$hex};
|
|
6
|
-
--#{$name}-rgb: #{f.hex-to-rgb($hex)};
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@mixin generate-color-vars($category-name, $shades-map) {
|
|
10
|
-
@each $shade, $value in $shades-map {
|
|
11
|
-
@if type-of($value) == 'color' {
|
|
12
|
-
$var-name: #{p.$prefix}-#{$category-name}-#{$shade};
|
|
13
|
-
@include color-with-rgb($var-name, $value);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "@cityway/design-tokens/primitives" as p;
|
|
3
|
-
@use "@cityway/design-tokens/functions" as *;
|
|
4
|
-
|
|
5
|
-
// MIXIN arrow
|
|
6
|
-
// ---------------------------------
|
|
7
|
-
@mixin arrow($direction, $bg-color, $arrow-size, $arrow-offset, $arrow-border-size) {
|
|
8
|
-
$is-right: $direction ==right;
|
|
9
|
-
|
|
10
|
-
// position horizontale
|
|
11
|
-
@if $is-right {
|
|
12
|
-
left: -$arrow-size;
|
|
13
|
-
|
|
14
|
-
&::before {
|
|
15
|
-
left: -1px;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@else {
|
|
20
|
-
right: -$arrow-size;
|
|
21
|
-
|
|
22
|
-
&::before {
|
|
23
|
-
right: -1px;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// bordure (before)
|
|
28
|
-
&::before {
|
|
29
|
-
border-top: $arrow-border-size solid transparent;
|
|
30
|
-
border-bottom: $arrow-border-size solid transparent;
|
|
31
|
-
|
|
32
|
-
@if $is-right {
|
|
33
|
-
border-right: $arrow-border-size solid $bg-color;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@else {
|
|
37
|
-
border-left: $arrow-border-size solid $bg-color;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// fond (after)
|
|
42
|
-
&::after {
|
|
43
|
-
border-top: $arrow-size solid transparent;
|
|
44
|
-
border-bottom: $arrow-size solid transparent;
|
|
45
|
-
|
|
46
|
-
@if $is-right {
|
|
47
|
-
border-right: $arrow-size solid $bg-color;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@else {
|
|
51
|
-
border-left: $arrow-size solid $bg-color;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// MIXIN BASE POPOVER/TOOLTIP
|
|
57
|
-
// ---------------------------------
|
|
58
|
-
@mixin popover-base($name,
|
|
59
|
-
$width,
|
|
60
|
-
$br,
|
|
61
|
-
$bg,
|
|
62
|
-
$header-bg,
|
|
63
|
-
$fs,
|
|
64
|
-
$lh,
|
|
65
|
-
$shadow,
|
|
66
|
-
$arrow-size,
|
|
67
|
-
$arrow-offset,
|
|
68
|
-
$arrow-border-size
|
|
69
|
-
) {
|
|
70
|
-
.#{$name} {
|
|
71
|
-
--#{p.$prefix}-#{$name}-br: #{$br};
|
|
72
|
-
--#{p.$prefix}-#{$name}-bg: #{$bg};
|
|
73
|
-
--#{p.$prefix}-#{$name}-header-bg: #{$header-bg};
|
|
74
|
-
|
|
75
|
-
position: absolute;
|
|
76
|
-
top: 50%;
|
|
77
|
-
transform: translateY(-50%);
|
|
78
|
-
min-width: $width;
|
|
79
|
-
max-width: $width;
|
|
80
|
-
border-radius: var(--#{p.$prefix}-#{$name}-br);
|
|
81
|
-
background-color: var(--#{p.$prefix}-#{$name}-bg);
|
|
82
|
-
box-shadow: #{$shadow};
|
|
83
|
-
|
|
84
|
-
// slot pour les overrides spécifiques
|
|
85
|
-
@content;
|
|
86
|
-
|
|
87
|
-
.arrow {
|
|
88
|
-
position: absolute;
|
|
89
|
-
top: 50%;
|
|
90
|
-
transform: translateY(-50%);
|
|
91
|
-
width: 0;
|
|
92
|
-
height: 0;
|
|
93
|
-
|
|
94
|
-
&::before,
|
|
95
|
-
&::after {
|
|
96
|
-
content: "";
|
|
97
|
-
position: absolute;
|
|
98
|
-
top: 50%;
|
|
99
|
-
transform: translateY(-50%);
|
|
100
|
-
width: 0;
|
|
101
|
-
height: 0;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
&::after {
|
|
105
|
-
filter: drop-shadow(var(--#{p.$prefix}-shadow-filter));
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&-right {
|
|
110
|
-
left: 100%;
|
|
111
|
-
margin-left: 1.5rem;
|
|
112
|
-
|
|
113
|
-
.arrow {
|
|
114
|
-
@include arrow(right, var(--#{p.$prefix}-#{$name}-bg), $arrow-size, $arrow-offset, $arrow-border-size);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
&-left {
|
|
119
|
-
right: 100%;
|
|
120
|
-
margin-right: 1.5rem;
|
|
121
|
-
|
|
122
|
-
.arrow {
|
|
123
|
-
@include arrow(left, var(--#{p.$prefix}-#{$name}-bg), $arrow-size, $arrow-offset, $arrow-border-size);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
&-header,
|
|
128
|
-
&-body {
|
|
129
|
-
padding: size(2xs) size(sm);
|
|
130
|
-
font-size: $fs;
|
|
131
|
-
line-height: $lh;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
&-body {
|
|
135
|
-
border-radius: var(--#{p.$prefix}-#{$name}-br);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&-header {
|
|
139
|
-
font-weight: font(fw, bold);
|
|
140
|
-
border-radius: var(--#{p.$prefix}-#{$name}-br) var(--#{p.$prefix}-#{$name}-br) 0 0;
|
|
141
|
-
background-color: var(--#{p.$prefix}-#{$name}-header-bg);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// @use "sass:map";
|
|
2
|
-
// @use '../variables/primitives' as p;
|
|
3
|
-
// @use '../variables/tokens' as *;
|
|
4
|
-
|
|
5
|
-
// @mixin generate-variables($desktop-map, $mobile-map, $variable, $rwd: false) {
|
|
6
|
-
// :root {
|
|
7
|
-
// @if ($rwd) {
|
|
8
|
-
// @each $key, $value in map.get($mobile-map, $variable) {
|
|
9
|
-
// --#{p.$prefix}-#{$variable}-#{$key}: #{$value};
|
|
10
|
-
// }
|
|
11
|
-
|
|
12
|
-
// // Desktop override
|
|
13
|
-
// @media (min-width: 992px) {
|
|
14
|
-
// @each $key, $value in map.get($desktop-map, $variable) {
|
|
15
|
-
// --#{p.$prefix}-#{$variable}-#{$key}: #{$value};
|
|
16
|
-
// }
|
|
17
|
-
// }
|
|
18
|
-
// }
|
|
19
|
-
|
|
20
|
-
// @else {
|
|
21
|
-
// @each $key, $value in map.get($desktop-map, $variable) {
|
|
22
|
-
// --#{p.$prefix}-#{$variable}-#{$key}: #{$value};
|
|
23
|
-
// }
|
|
24
|
-
// }
|
|
25
|
-
// }
|
|
26
|
-
// }
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "@cityway/design-tokens/primitives" as p;
|
|
3
|
-
@use "@cityway/design-tokens/functions" as *;
|
|
4
|
-
|
|
5
|
-
// Sapcing
|
|
6
|
-
@mixin generate-spacing-utilities() {
|
|
7
|
-
@each $key, $value in p.$sizing {
|
|
8
|
-
.p-#{$key} {
|
|
9
|
-
padding: size($key);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.pt-#{$key} {
|
|
13
|
-
padding-top: size($key);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.pe-#{$key} {
|
|
17
|
-
padding-right: size($key);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.pb-#{$key} {
|
|
21
|
-
padding-bottom: size($key);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.ps-#{$key} {
|
|
25
|
-
padding-left: size($key);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.px-#{$key} {
|
|
29
|
-
padding-left: size($key);
|
|
30
|
-
padding-right: size($key);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.py-#{$key} {
|
|
34
|
-
padding-top: size($key);
|
|
35
|
-
padding-bottom: size($key);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// Margin
|
|
39
|
-
.m-#{$key} {
|
|
40
|
-
margin: size($key);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.mt-#{$key} {
|
|
44
|
-
margin-top: size($key);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.me-#{$key} {
|
|
48
|
-
margin-right: size($key);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.mb-#{$key} {
|
|
52
|
-
margin-bottom: size($key);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.ms-#{$key} {
|
|
56
|
-
margin-left:size($key);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.mx-#{$key} {
|
|
60
|
-
margin-left: size($key);
|
|
61
|
-
margin-right: size($key);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.my-#{$key} {
|
|
65
|
-
margin-top: size($key);
|
|
66
|
-
margin-bottom: size($key);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// Margin auto
|
|
71
|
-
.m-auto {
|
|
72
|
-
margin: auto;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.mx-auto {
|
|
76
|
-
margin-left: auto;
|
|
77
|
-
margin-right: auto;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.my-auto {
|
|
81
|
-
margin-top: auto;
|
|
82
|
-
margin-bottom: auto;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "@cityway/design-tokens/primitives" as p;
|
|
3
|
-
@use "@cityway/design-tokens/functions" as *;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
@mixin generate-type-utilities() {
|
|
8
|
-
|
|
9
|
-
// Font Size (fs) avec Line Height associé
|
|
10
|
-
@each $key, $value in map.get(p.$font, fs) {
|
|
11
|
-
.fs-#{$key} {
|
|
12
|
-
font-size: font(fs, $key);
|
|
13
|
-
|
|
14
|
-
// Ajouter line-height si elle existe pour cette taille
|
|
15
|
-
@if map.has-key(map.get(p.$font, lh), $key) {
|
|
16
|
-
line-height: font(lh, $key);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// Font Weight (fw)
|
|
22
|
-
@each $key, $value in map.get(p.$font, fw) {
|
|
23
|
-
.fw-#{$key} {
|
|
24
|
-
font-weight: font(fw, $key);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// Font color (text)
|
|
29
|
-
$text-colors: (
|
|
30
|
-
info: info-base,
|
|
31
|
-
success: success-base,
|
|
32
|
-
warning: warning-base,
|
|
33
|
-
danger: danger-base,
|
|
34
|
-
primary: primary-base,
|
|
35
|
-
secondary: secondary-base,
|
|
36
|
-
light: base-disabled
|
|
37
|
-
);
|
|
38
|
-
|
|
39
|
-
@each $key, $value in $text-colors {
|
|
40
|
-
.text-#{$key} {
|
|
41
|
-
color: var(--#{p.$prefix}-#{$value});
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
|
|
3
|
-
// MIXIN - Variantes
|
|
4
|
-
// ---------------------------------
|
|
5
|
-
@mixin alignent-variants($variants) {
|
|
6
|
-
@each $variant, $alignent in $variants {
|
|
7
|
-
.text-#{$variant} {
|
|
8
|
-
text-align: $alignent;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// Variables
|
|
14
|
-
// ---------------------------------
|
|
15
|
-
$align: (
|
|
16
|
-
start: left,
|
|
17
|
-
end: right,
|
|
18
|
-
center: center
|
|
19
|
-
);
|
|
20
|
-
|
|
21
|
-
// Générer toutes les variantes
|
|
22
|
-
// ---------------------------------
|
|
23
|
-
@include alignent-variants($align);
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
@use "sass:map";
|
|
3
|
-
@use "@cityway/design-tokens/primitives" as p;
|
|
4
|
-
|
|
5
|
-
@mixin media-breakpoint-up($name) {
|
|
6
|
-
$min: map.get(p.$grid, "breakpoints", $name);
|
|
7
|
-
|
|
8
|
-
@if $min and $min != 0 {
|
|
9
|
-
@media (min-width: $min) {
|
|
10
|
-
@content;
|
|
11
|
-
}
|
|
12
|
-
} @else if $min == 0 {
|
|
13
|
-
// Pour 'xs', on n'enveloppe pas dans une media query (Mobile First)
|
|
14
|
-
@content;
|
|
15
|
-
} @else {
|
|
16
|
-
@warn "Le breakpoint '#{$name}' n'existe pas dans p.$grid.";
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@mixin media-breakpoint-down($name) {
|
|
21
|
-
$breakpoint-value: map.get(p.$grid, "breakpoints", $name);
|
|
22
|
-
@if $breakpoint-value and $breakpoint-value != 0 {
|
|
23
|
-
// On retire 0.02px pour éviter les conflits de précision sur les écrans Retina
|
|
24
|
-
@media (max-width: ($breakpoint-value - 0.02px)) {
|
|
25
|
-
@content;
|
|
26
|
-
}
|
|
27
|
-
} @else {
|
|
28
|
-
@warn "Le breakpoint '#{$name}' n'est pas valide pour un down (ou est à 0).";
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
@use "../mixins/flex" as *;
|
|
2
|
-
@use "@cityway/design-tokens/primitives" as p;
|
|
3
|
-
|
|
4
|
-
@include generate-flex-system();
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
.w-100 {
|
|
8
|
-
width: 100%;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.h-100 {
|
|
12
|
-
height: 100%;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.w-auto {
|
|
16
|
-
width: auto;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.h-auto {
|
|
20
|
-
height: auto;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.gap-gutter {
|
|
24
|
-
gap: var(--#{p.$prefix}-columns-gutter);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.d-block {
|
|
28
|
-
display: block;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.d-none {
|
|
32
|
-
display: none;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.d-inline-block {
|
|
36
|
-
display: inline-block;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.d-flex-h,
|
|
40
|
-
.d-flex-v {
|
|
41
|
-
display: flex;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.d-flex-h {
|
|
45
|
-
align-items: center;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.d-flex-v {
|
|
49
|
-
flex-direction: column;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.d-inline-flex {
|
|
53
|
-
display: inline-flex;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.flex-row {
|
|
57
|
-
flex-direction: row;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.flex-col {
|
|
61
|
-
flex-direction: column;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.flex-row-reverse {
|
|
65
|
-
flex-direction: row-reverse;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.flex-col-reverse {
|
|
69
|
-
flex-direction: column-reverse;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.flex-wrap {
|
|
73
|
-
flex-wrap: wrap;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.flex-nowrap {
|
|
77
|
-
flex-wrap: nowrap;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.justify-start {
|
|
81
|
-
justify-content: flex-start;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.justify-end {
|
|
85
|
-
justify-content: flex-end;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.justify-center {
|
|
89
|
-
justify-content: center;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.justify-between {
|
|
93
|
-
justify-content: space-between;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.justify-around {
|
|
97
|
-
justify-content: space-around;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.justify-evenly {
|
|
101
|
-
justify-content: space-evenly;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.items-start {
|
|
105
|
-
align-items: flex-start;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.items-end {
|
|
109
|
-
align-items: flex-end;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.items-center {
|
|
113
|
-
align-items: center;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.items-baseline {
|
|
117
|
-
align-items: baseline;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.items-stretch {
|
|
121
|
-
align-items: stretch;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.flex-1 {
|
|
125
|
-
flex: 1 1 0%;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.flex-auto {
|
|
129
|
-
flex: 1 1 auto;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.flex-none {
|
|
133
|
-
flex: none;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.flex-grow-1 {
|
|
137
|
-
flex-grow: 1;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.flex-shrink-0 {
|
|
141
|
-
flex-shrink: 0;
|
|
142
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "@cityway/design-tokens/primitives" as p;
|
|
3
|
-
@use "@cityway/design-tokens/functions" as f;
|
|
4
|
-
@use "breakpoints" as m;
|
|
5
|
-
|
|
6
|
-
.container,
|
|
7
|
-
.container-fluid {
|
|
8
|
-
width: 100%;
|
|
9
|
-
margin-inline: auto;
|
|
10
|
-
padding-inline: var(--#{p.$prefix}-columns-gutter);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// container max à 1200 - gutter meme en breakpoint xxl
|
|
14
|
-
.container {
|
|
15
|
-
@each $bp, $value in map.get(p.$grid, "breakpoints") {
|
|
16
|
-
@if $value > 0 {
|
|
17
|
-
@include m.media-breakpoint-up($bp) {
|
|
18
|
-
// On cap à la valeur xl, récupérée depuis la map
|
|
19
|
-
$xl-value: map.get(p.$grid, "breakpoints", "xl");
|
|
20
|
-
$max: if($value > $xl-value, $xl-value, $value);
|
|
21
|
-
max-width: calc(#{$max} - var(--#{p.$prefix}-columns-gutter));
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.row {
|
|
28
|
-
display: grid;
|
|
29
|
-
grid-template-columns: repeat(var(--#{p.$prefix}-columns-number), 1fr);
|
|
30
|
-
gap: var(--#{p.$prefix}-columns-gutter);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
[class^="col-"],
|
|
34
|
-
[class*=" col-"] {
|
|
35
|
-
// --_col-span sert de mémoire locale : offset peut le lire sans conflit
|
|
36
|
-
--_col-span: var(--#{p.$prefix}-columns-number);
|
|
37
|
-
grid-column: var(--_col-offset-start, auto) / span var(--_col-span);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// Colonnes sans breakpoint
|
|
41
|
-
@for $i from 1 through map.get(p.$grid, "columns", "number") {
|
|
42
|
-
.col-#{$i} {
|
|
43
|
-
--_col-span: #{$i};
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// Colonnes et offsets par breakpoint
|
|
48
|
-
@each $name, $width in map.get(p.$grid, "breakpoints") {
|
|
49
|
-
@include m.media-breakpoint-up($name) {
|
|
50
|
-
@for $i from 1 through map.get(p.$grid, "columns", "number") {
|
|
51
|
-
.col-#{$name}-#{$i} {
|
|
52
|
-
--_col-span: #{$i};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.offset-#{$name}-#{$i} {
|
|
56
|
-
--_col-offset-start: #{$i + 1};
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.offset-#{$name}-0 {
|
|
61
|
-
--_col-offset-start: auto;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// MIXIN - Variantes
|
|
3
|
-
// ---------------------------------
|
|
4
|
-
@mixin generate-position-utilities($map, $prefix: 'p') {
|
|
5
|
-
@each $name, $value in $map {
|
|
6
|
-
.#{$prefix}-#{$name} {
|
|
7
|
-
position: $value;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
// Variables
|
|
13
|
-
// ---------------------------------
|
|
14
|
-
$positions: (
|
|
15
|
-
relative: relative,
|
|
16
|
-
absolute: absolute,
|
|
17
|
-
fixed: fixed,
|
|
18
|
-
sticky: sticky
|
|
19
|
-
);
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
// Générer toutes les variantes
|
|
23
|
-
// ---------------------------------
|
|
24
|
-
@include generate-position-utilities($positions);
|