@cityway/basic-ui 1.0.2-beta007 → 1.0.2-beta009
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-beta009.tgz +0 -0
- package/fesm2022/cityway-basic-ui.mjs +81 -7
- package/fesm2022/cityway-basic-ui.mjs.map +1 -1
- package/index.d.ts +51 -4
- package/lib/assets/i18n/common.fr.json +1 -1
- package/lib/assets/icons/sprite.preview.html +1 -1
- package/lib/assets/styles/scss/cw-ds/_reboot.scss +1 -54
- package/lib/assets/styles/scss/cw-ds/_root-fo.scss +4 -0
- package/lib/assets/styles/scss/cw-ds/components/_alert.scss +2 -0
- package/lib/assets/styles/scss/cw-ds/components/_dropdown.scss +21 -0
- package/lib/assets/styles/scss/cw-ds/components/_tooltip.scss +35 -0
- package/lib/assets/styles/scss/cw-ds/components/button/_button.scss +5 -0
- package/lib/assets/styles/scss/cw-ds/components/form-field/_field-check.scss +130 -0
- package/lib/assets/styles/scss/cw-ds/components/form-field/_form-field.scss +146 -0
- package/lib/assets/styles/scss/cw-ds/components/form-field/_ng-select.scss +84 -0
- package/lib/assets/styles/scss/cw-ds/components/form-field/_slider-range.scss +68 -0
- package/lib/assets/styles/scss/cw-ds/mixins/_popover-tooltip.scss +144 -0
- package/lib/assets/styles/scss/cw-ds/utilities/_flex.scss +20 -0
- package/lib/assets/styles/scss/cw-ds/utilities/_grid.scss +6 -3
- package/lib/assets/styles/scss/cw-ds/utilities/_position.scss +24 -0
- package/lib/assets/styles/scss/cw-ds/utilities/type/_type-bo.scss +28 -20
- package/lib/assets/styles/scss/cw-ds/utilities/type/_type-fo.scss +131 -0
- package/lib/assets/styles/scss/cw-ds/utilities/type/_type.scss +9 -7
- package/lib/assets/styles/scss/styles-bo.scss +8 -83
- package/lib/assets/styles/scss/styles-fo.scss +8 -83
- package/package.json +1 -1
- package/styles/styles-bo.min.css +1 -1
- package/styles/styles-bo.min.css.map +1 -1
- package/styles/styles-fo.min.css +1 -1
- package/styles/styles-fo.min.css.map +1 -1
- package/cityway-basic-ui-1.0.2-beta007.tgz +0 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "@cityway/design-tokens/primitives" as p;
|
|
3
|
+
@use "@cityway/design-tokens/functions" as *;
|
|
4
|
+
|
|
5
|
+
.slider {
|
|
6
|
+
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
gap: size(md);
|
|
10
|
+
width: 100%;
|
|
11
|
+
|
|
12
|
+
&-input {
|
|
13
|
+
position: relative;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-grow: 1;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&-custom-bar {
|
|
20
|
+
// position: absolute;
|
|
21
|
+
// bottom: 0;
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 0.625rem;
|
|
24
|
+
border-radius: 10rem;
|
|
25
|
+
background-color: grey;
|
|
26
|
+
|
|
27
|
+
&-selection {
|
|
28
|
+
height: 0.625rem;
|
|
29
|
+
border-radius: 10rem;
|
|
30
|
+
background-color: red;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&-tooltip {
|
|
35
|
+
position: absolute;
|
|
36
|
+
top: -100%;
|
|
37
|
+
padding: 2rem;
|
|
38
|
+
white-space: nowrap;
|
|
39
|
+
border-radius:10rem;
|
|
40
|
+
background-color: white;
|
|
41
|
+
//box-shadow: $ngx-slider-bubble-box-shadow;
|
|
42
|
+
transform: translate(-50%, -130%);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.field-control-range {
|
|
47
|
+
-webkit-appearance: none;
|
|
48
|
+
position: relative;
|
|
49
|
+
z-index: 1;
|
|
50
|
+
height: 0;
|
|
51
|
+
border: 0 solid transparent;
|
|
52
|
+
background-color: transparent;
|
|
53
|
+
transform: translateY(calc(0.625rem / 2 * -1));
|
|
54
|
+
&:focus {
|
|
55
|
+
outline: none;
|
|
56
|
+
box-shadow: none;
|
|
57
|
+
}
|
|
58
|
+
&::-webkit-slider-thumb {
|
|
59
|
+
width: 1rem;
|
|
60
|
+
height: 1rem;
|
|
61
|
+
border: 0.125rem solid red;
|
|
62
|
+
border-radius: 10rem;
|
|
63
|
+
background-color: white;
|
|
64
|
+
//box-shadow: $ngx-slider-pointer-box-shadow;
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
-webkit-appearance: none;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
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
|
+
}
|
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
@include generate-flex-system();
|
|
4
4
|
|
|
5
|
+
.d-block {
|
|
6
|
+
display: block;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.d-none {
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.d-inline-block {
|
|
14
|
+
display: inline-block;
|
|
15
|
+
}
|
|
16
|
+
|
|
5
17
|
.d-flex-h,
|
|
6
18
|
.d-flex-v {
|
|
7
19
|
display: flex;
|
|
@@ -98,3 +110,11 @@
|
|
|
98
110
|
.flex-none {
|
|
99
111
|
flex: none;
|
|
100
112
|
}
|
|
113
|
+
|
|
114
|
+
.flex-grow-1 {
|
|
115
|
+
flex-grow: 1;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.flex-shrink-0 {
|
|
119
|
+
flex-shrink: 0;
|
|
120
|
+
}
|
|
@@ -7,15 +7,18 @@
|
|
|
7
7
|
.container-fluid {
|
|
8
8
|
width: 100%;
|
|
9
9
|
margin-inline: auto;
|
|
10
|
-
padding-inline: var(--#{p.$prefix}-columns-gutter);
|
|
10
|
+
padding-inline: calc(var(--#{p.$prefix}-columns-gutter) / 2);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
// container max à 1200 - gutter meme en breakpoint xxl
|
|
13
14
|
.container {
|
|
14
15
|
@each $bp, $value in map.get(p.$grid, "breakpoints") {
|
|
15
16
|
@if $value > 0 {
|
|
16
17
|
@include m.media-breakpoint-up($bp) {
|
|
17
|
-
|
|
18
|
-
|
|
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));
|
|
19
22
|
}
|
|
20
23
|
}
|
|
21
24
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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);
|
|
@@ -6,32 +6,40 @@
|
|
|
6
6
|
// ---------------------------------
|
|
7
7
|
$heading: (
|
|
8
8
|
h1: (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
standard: (
|
|
10
|
+
ff: var(--#{p.$prefix}-body-ff-heading),
|
|
11
|
+
fw: font(fw, normal),
|
|
12
|
+
fs: font(fs, xl),
|
|
13
|
+
lh: font(lh, xl),
|
|
14
|
+
color: var(--#{p.$prefix}-body-color)
|
|
15
|
+
),
|
|
14
16
|
),
|
|
15
17
|
h2: (
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
standard: (
|
|
19
|
+
ff: var(--#{p.$prefix}-body-ff-heading),
|
|
20
|
+
fw: font(fw, normal),
|
|
21
|
+
fs: font(fs, xl),
|
|
22
|
+
lh: font(lh, xl),
|
|
23
|
+
color: var(--#{p.$prefix}-body-color)
|
|
24
|
+
),
|
|
21
25
|
),
|
|
22
26
|
h3: (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
standard: (
|
|
28
|
+
ff: var(--#{p.$prefix}-body-ff-heading),
|
|
29
|
+
fw: font(fw, normal),
|
|
30
|
+
fs: font(fs, lg),
|
|
31
|
+
lh: font(lh, lg),
|
|
32
|
+
color: var(--#{p.$prefix}-base-disabled)
|
|
33
|
+
),
|
|
28
34
|
),
|
|
29
35
|
h4: (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
standard: (
|
|
37
|
+
ff: var(--#{p.$prefix}-body-ff-heading),
|
|
38
|
+
fw: font(fw, bold),
|
|
39
|
+
fs: font(fs, md),
|
|
40
|
+
lh: font(lh, md),
|
|
41
|
+
color: var(--#{p.$prefix}-body-color)
|
|
42
|
+
)
|
|
35
43
|
)
|
|
36
44
|
);
|
|
37
45
|
|
|
@@ -1 +1,132 @@
|
|
|
1
|
+
@use "@cityway/design-tokens/primitives" as p;
|
|
2
|
+
@use "@cityway/design-tokens/functions" as *;
|
|
3
|
+
@use "type" as mixin;
|
|
1
4
|
|
|
5
|
+
// Variables
|
|
6
|
+
// ---------------------------------
|
|
7
|
+
$heading: (
|
|
8
|
+
h1: (
|
|
9
|
+
editorial: (
|
|
10
|
+
ff: var(--#{p.$prefix}-body-ff-heading),
|
|
11
|
+
fw: font(fw, bold),
|
|
12
|
+
fs: font(fs, 4xl),
|
|
13
|
+
lh: font(lh, 4xl),
|
|
14
|
+
color: var(--#{p.$prefix}-body-color)
|
|
15
|
+
),
|
|
16
|
+
home: (
|
|
17
|
+
ff: var(--#{p.$prefix}-body-ff-heading),
|
|
18
|
+
fw: font(fw, bold),
|
|
19
|
+
fs: font(fs, 4xl),
|
|
20
|
+
lh: font(lh, 4xl),
|
|
21
|
+
color: var(--#{p.$prefix}-body-color)
|
|
22
|
+
),
|
|
23
|
+
mobility: (
|
|
24
|
+
ff: var(--#{p.$prefix}-body-ff-heading),
|
|
25
|
+
fw: font(fw, bold),
|
|
26
|
+
fs: font(fs, xl),
|
|
27
|
+
lh: font(lh, xl),
|
|
28
|
+
color: var(--#{p.$prefix}-body-color)
|
|
29
|
+
),
|
|
30
|
+
standard: (
|
|
31
|
+
ff: var(--#{p.$prefix}-body-ff-heading),
|
|
32
|
+
fw: font(fw, bold),
|
|
33
|
+
fs: font(fs, 4xl),
|
|
34
|
+
lh: font(lh, 4xl),
|
|
35
|
+
color: var(--#{p.$prefix}-body-color)
|
|
36
|
+
),
|
|
37
|
+
),
|
|
38
|
+
h2: (
|
|
39
|
+
editorial: (
|
|
40
|
+
ff: var(--#{p.$prefix}-body-ff-heading),
|
|
41
|
+
fw: font(fw, bold),
|
|
42
|
+
fs: font(fs, xl),
|
|
43
|
+
lh: font(lh, xl),
|
|
44
|
+
color: var(--#{p.$prefix}-body-color)
|
|
45
|
+
),
|
|
46
|
+
home: (
|
|
47
|
+
ff: var(--#{p.$prefix}-body-ff-heading),
|
|
48
|
+
fw: font(fw, bold),
|
|
49
|
+
fs: font(fs, 4xl),
|
|
50
|
+
lh: font(lh, 4xl),
|
|
51
|
+
color: var(--#{p.$prefix}-body-color)
|
|
52
|
+
),
|
|
53
|
+
mobility: (
|
|
54
|
+
ff: var(--#{p.$prefix}-body-ff-heading),
|
|
55
|
+
fw: font(fw, bold),
|
|
56
|
+
fs: font(fs, md),
|
|
57
|
+
lh: font(lh, md),
|
|
58
|
+
color: var(--#{p.$prefix}-body-color)
|
|
59
|
+
),
|
|
60
|
+
standard: (
|
|
61
|
+
ff: var(--#{p.$prefix}-body-ff-heading),
|
|
62
|
+
fw: font(fw, bold),
|
|
63
|
+
fs: font(fs, xl),
|
|
64
|
+
lh: font(lh, xl),
|
|
65
|
+
color: var(--#{p.$prefix}-body-color)
|
|
66
|
+
),
|
|
67
|
+
),
|
|
68
|
+
h3: (
|
|
69
|
+
editorial: (
|
|
70
|
+
ff: var(--#{p.$prefix}-body-ff-heading),
|
|
71
|
+
fw: font(fw, bold),
|
|
72
|
+
fs: font(fs, lg),
|
|
73
|
+
lh: font(lh, lg),
|
|
74
|
+
color: var(--#{p.$prefix}-base-disabled)
|
|
75
|
+
),
|
|
76
|
+
home: (
|
|
77
|
+
ff: var(--#{p.$prefix}-body-ff-heading),
|
|
78
|
+
fw: font(fw, bold),
|
|
79
|
+
fs: font(fs, lg),
|
|
80
|
+
lh: font(lh, lg),
|
|
81
|
+
color: var(--#{p.$prefix}-base-disabled)
|
|
82
|
+
),
|
|
83
|
+
mobility: (
|
|
84
|
+
ff: var(--#{p.$prefix}-body-ff-heading),
|
|
85
|
+
fw: font(fw, bold),
|
|
86
|
+
fs: font(fs, sm),
|
|
87
|
+
lh: font(lh, sm),
|
|
88
|
+
color: var(--#{p.$prefix}-base-disabled)
|
|
89
|
+
),
|
|
90
|
+
standard: (
|
|
91
|
+
ff: var(--#{p.$prefix}-body-ff-heading),
|
|
92
|
+
fw: font(fw, bold),
|
|
93
|
+
fs: font(fs, md),
|
|
94
|
+
lh: font(lh, md),
|
|
95
|
+
color: var(--#{p.$prefix}-base-disabled)
|
|
96
|
+
),
|
|
97
|
+
),
|
|
98
|
+
h4: (
|
|
99
|
+
editorial: (
|
|
100
|
+
ff: var(--#{p.$prefix}-body-ff-heading),
|
|
101
|
+
fw: font(fw, bold),
|
|
102
|
+
fs: font(fs, md),
|
|
103
|
+
lh: font(lh, md),
|
|
104
|
+
color: var(--#{p.$prefix}-body-color)
|
|
105
|
+
),
|
|
106
|
+
home: (
|
|
107
|
+
ff: var(--#{p.$prefix}-body-ff-heading),
|
|
108
|
+
fw: font(fw, bold),
|
|
109
|
+
fs: font(fs, md),
|
|
110
|
+
lh: font(lh, md),
|
|
111
|
+
color: var(--#{p.$prefix}-body-color)
|
|
112
|
+
),
|
|
113
|
+
mobility: (
|
|
114
|
+
ff: var(--#{p.$prefix}-body-ff-heading),
|
|
115
|
+
fw: font(fw, bold),
|
|
116
|
+
fs: font(fs, sm),
|
|
117
|
+
lh: font(lh, sm),
|
|
118
|
+
color: var(--#{p.$prefix}-base-disabled)
|
|
119
|
+
),
|
|
120
|
+
standard: (
|
|
121
|
+
ff: var(--#{p.$prefix}-body-ff-heading),
|
|
122
|
+
fw: font(fw, bold),
|
|
123
|
+
fs: font(fs, sm),
|
|
124
|
+
lh: font(lh, sm),
|
|
125
|
+
color: var(--#{p.$prefix}-base-disabled)
|
|
126
|
+
)
|
|
127
|
+
)
|
|
128
|
+
);
|
|
129
|
+
|
|
130
|
+
// Générer toutes les variantes
|
|
131
|
+
// ---------------------------------
|
|
132
|
+
@include mixin.heading-variants($heading);
|
|
@@ -6,13 +6,15 @@
|
|
|
6
6
|
// MIXIN - Variantes
|
|
7
7
|
// ---------------------------------
|
|
8
8
|
@mixin heading-variants($variants) {
|
|
9
|
-
@each $tag, $
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
@each $tag, $contexts in $variants {
|
|
10
|
+
@each $context, $props in $contexts {
|
|
11
|
+
.#{$context}-#{$tag} {
|
|
12
|
+
font-family: #{map.get($props, ff)};
|
|
13
|
+
font-weight: #{map.get($props, fw)};
|
|
14
|
+
font-size: #{map.get($props, fs)};
|
|
15
|
+
line-height: #{map.get($props, lh)};
|
|
16
|
+
color: #{map.get($props, color)};
|
|
17
|
+
}
|
|
16
18
|
}
|
|
17
19
|
}
|
|
18
20
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
@use "cw-ds/reboot";
|
|
2
2
|
@use "cw-ds/root-bo";
|
|
3
3
|
|
|
4
|
+
// Lib externes
|
|
5
|
+
@use "@ng-select/ng-select/themes/default.theme.css";
|
|
6
|
+
|
|
4
7
|
// Helpers
|
|
5
8
|
@use "cw-ds/helpers/visually-hidden";
|
|
6
9
|
@use "cw-ds/helpers/stretched-link";
|
|
@@ -23,6 +26,9 @@
|
|
|
23
26
|
@use "cw-ds/components/file-to-download";
|
|
24
27
|
@use "cw-ds/components/numerical-range";
|
|
25
28
|
@use "cw-ds/components/modal";
|
|
29
|
+
@use "cw-ds/components/form-field/form-field";
|
|
30
|
+
@use "cw-ds/components/tooltip";
|
|
31
|
+
@use "cw-ds/components/dropdown";
|
|
26
32
|
|
|
27
33
|
// Utilities
|
|
28
34
|
@use "cw-ds/utilities/breakpoints";
|
|
@@ -32,92 +38,11 @@
|
|
|
32
38
|
@use "cw-ds/utilities/type/type";
|
|
33
39
|
@use "cw-ds/utilities/type/type-bo";
|
|
34
40
|
@use "cw-ds/utilities/alignment";
|
|
41
|
+
@use "cw-ds/utilities/position";
|
|
35
42
|
|
|
36
43
|
// En surcharge
|
|
37
44
|
@use "cw-ds/helpers/skeleton";
|
|
38
45
|
|
|
39
|
-
|
|
40
|
-
//## Import des variables de couleurs
|
|
41
|
-
//--------------------------------------------------------
|
|
42
|
-
//@import "scss/variables-colors";
|
|
43
|
-
|
|
44
|
-
//## Import de bootstrap contrôlé
|
|
45
|
-
//--------------------------------------------------------
|
|
46
|
-
//@import "bootstrap";
|
|
47
|
-
// @import "bootstrap/scss/mixins/banner";
|
|
48
|
-
// @include bsBanner("");
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
// // scss-docs-start import-stack
|
|
52
|
-
// // Configuration
|
|
53
|
-
//
|
|
54
|
-
// @import "variables/custom";
|
|
55
|
-
// @import "bootstrap/scss/variables";
|
|
56
|
-
// @import "bootstrap/scss/variables-dark";
|
|
57
|
-
// @import "bootstrap/scss/maps";
|
|
58
|
-
// @import "bootstrap/scss/mixins";
|
|
59
|
-
// @import "bootstrap/scss/utilities";
|
|
60
|
-
|
|
61
|
-
// // Layout & components
|
|
62
|
-
// @import "bootstrap/scss/root";
|
|
63
|
-
// //@import "bootstrap/scss/reboot";
|
|
64
|
-
// //@import "bootstrap/scss/type";
|
|
65
|
-
// //@import "bootstrap/scss/images";
|
|
66
|
-
// //@import "bootstrap/scss/containers";
|
|
67
|
-
// //@import "bootstrap/scss/grid";
|
|
68
|
-
// @import "bootstrap/scss/tables";
|
|
69
|
-
// @import "bootstrap/scss/forms";
|
|
70
|
-
// //@import "bootstrap/scss/buttons";
|
|
71
|
-
// //@import "bootstrap/scss/transitions";
|
|
72
|
-
// @import "bootstrap/scss/dropdown";
|
|
73
|
-
// @import "bootstrap/scss/button-group";
|
|
74
|
-
// //@import "bootstrap/scss/nav";
|
|
75
|
-
// //@import "bootstrap/scss/navbar";
|
|
76
|
-
// //@import "bootstrap/scss/card";
|
|
77
|
-
// //@import "bootstrap/scss/accordion";
|
|
78
|
-
// //@import "bootstrap/scss/breadcrumb";
|
|
79
|
-
// //@import "bootstrap/scss/pagination";
|
|
80
|
-
// //@import "bootstrap/scss/badge";
|
|
81
|
-
// //@import "bootstrap/scss/alert";
|
|
82
|
-
// @import "bootstrap/scss/progress";
|
|
83
|
-
// @import "bootstrap/scss/list-group";
|
|
84
|
-
// //@import "bootstrap/scss/close";
|
|
85
|
-
// //@import "bootstrap/scss/toasts";
|
|
86
|
-
// //@import "bootstrap/scss/modal";
|
|
87
|
-
// @import "bootstrap/scss/tooltip";
|
|
88
|
-
// @import "bootstrap/scss/popover";
|
|
89
|
-
// //@import "bootstrap/scss/carousel";
|
|
90
|
-
// //@import "bootstrap/scss/offcanvas";
|
|
91
|
-
// //@import "bootstrap/scss/placeholders";
|
|
92
|
-
|
|
93
|
-
// // Helpers
|
|
94
|
-
// //@import "bootstrap/scss/helpers";
|
|
95
|
-
|
|
96
|
-
// // Utilities
|
|
97
|
-
// @import "bootstrap/scss/utilities/api";
|
|
98
|
-
// scss-docs-end import-stack
|
|
99
|
-
|
|
100
|
-
//## Mixins
|
|
101
|
-
//--------------------------------------------------------
|
|
102
|
-
//@import "mixins/utilities";
|
|
103
|
-
|
|
104
|
-
//## Import des variables propres au site
|
|
105
|
-
//--------------------------------------------------------
|
|
106
|
-
@import "variables/site";
|
|
107
|
-
|
|
108
46
|
//## Import des fonts
|
|
109
47
|
//--------------------------------------------------------
|
|
110
|
-
@
|
|
111
|
-
// @import "../../fonts/optyweb/optyweb";
|
|
112
|
-
// @import "../../fonts/bo/bo";
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
//## Import styles
|
|
116
|
-
//--------------------------------------------------------
|
|
117
|
-
//@import "custom-bootstrap";
|
|
118
|
-
//@import "components";
|
|
119
|
-
|
|
120
|
-
// Tools
|
|
121
|
-
//--------------------------------------------------------
|
|
122
|
-
//@import "tools/loader";
|
|
123
|
-
//@import "tools/focus";
|
|
48
|
+
@use "../../fonts/nunito/nunito";
|