@cityway/basic-ui 1.0.1
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/README.md +75 -0
- package/cityway-basic-ui-1.0.1.tgz +0 -0
- package/fesm2022/cityway-basic-ui.mjs +2092 -0
- package/fesm2022/cityway-basic-ui.mjs.map +1 -0
- package/index.d.ts +766 -0
- package/lib/assets/fonts/bo/_variables.scss +43 -0
- package/lib/assets/fonts/bo/bo.scss +61 -0
- package/lib/assets/fonts/bo/bo.woff +0 -0
- package/lib/assets/fonts/bo/bo.woff2 +0 -0
- package/lib/assets/fonts/nunito/_nunito.scss +39 -0
- package/lib/assets/fonts/nunito/nunito-bold.woff +0 -0
- package/lib/assets/fonts/nunito/nunito-bold.woff2 +0 -0
- package/lib/assets/fonts/nunito/nunito-extrabold.woff +0 -0
- package/lib/assets/fonts/nunito/nunito-extrabold.woff2 +0 -0
- package/lib/assets/fonts/nunito/nunito-light.woff +0 -0
- package/lib/assets/fonts/nunito/nunito-light.woff2 +0 -0
- package/lib/assets/fonts/nunito/nunito-regular.woff +0 -0
- package/lib/assets/fonts/nunito/nunito-regular.woff2 +0 -0
- package/lib/assets/fonts/nunito/nunito-semi-bold.woff +0 -0
- package/lib/assets/fonts/nunito/nunito-semi-bold.woff2 +0 -0
- package/lib/assets/fonts/optyweb/_variables.scss +405 -0
- package/lib/assets/fonts/optyweb/optyweb.scss +1571 -0
- package/lib/assets/fonts/optyweb/optyweb.woff +0 -0
- package/lib/assets/fonts/optyweb/optyweb.woff2 +0 -0
- package/lib/assets/i18n/common.en.json +248 -0
- package/lib/assets/i18n/common.fr.json +242 -0
- package/lib/assets/i18n/label.en.json +29 -0
- package/lib/assets/i18n/label.fr.json +29 -0
- package/lib/assets/images/common/check-mark.svg +3 -0
- package/lib/assets/images/favicon/android-chrome-192x192.png +0 -0
- package/lib/assets/images/favicon/android-chrome-512x512.png +0 -0
- package/lib/assets/images/favicon/apple-touch-icon.png +0 -0
- package/lib/assets/images/favicon/favicon-16x16.png +0 -0
- package/lib/assets/images/favicon/favicon-32x32.png +0 -0
- package/lib/assets/images/favicon/favicon-96x96.png +0 -0
- package/lib/assets/images/favicon/favicon.ico +0 -0
- package/lib/assets/images/favicon/site.webmanifest +19 -0
- package/lib/assets/images/icon/referential-icon.svg +1 -0
- package/lib/assets/images/login/login-bg.jpg +0 -0
- package/lib/assets/images/login/logo-cityway-baseline.svg +16 -0
- package/lib/assets/images/toast/warning.svg +3 -0
- package/lib/assets/styles/scss/_components.scss +14 -0
- package/lib/assets/styles/scss/_custom-bootstrap.scss +22 -0
- package/lib/assets/styles/scss/bootstrap/_accordion.scss +1 -0
- package/lib/assets/styles/scss/bootstrap/_alert.scss +32 -0
- package/lib/assets/styles/scss/bootstrap/_badge.scss +36 -0
- package/lib/assets/styles/scss/bootstrap/_breadcrumb.scss +46 -0
- package/lib/assets/styles/scss/bootstrap/_button-group.scss +107 -0
- package/lib/assets/styles/scss/bootstrap/_buttons.scss +324 -0
- package/lib/assets/styles/scss/bootstrap/_card.scss +107 -0
- package/lib/assets/styles/scss/bootstrap/_close.scss +8 -0
- package/lib/assets/styles/scss/bootstrap/_dropdown.scss +53 -0
- package/lib/assets/styles/scss/bootstrap/_forms.scss +259 -0
- package/lib/assets/styles/scss/bootstrap/_input-group.scss +61 -0
- package/lib/assets/styles/scss/bootstrap/_lists.scss +30 -0
- package/lib/assets/styles/scss/bootstrap/_modal.scss +152 -0
- package/lib/assets/styles/scss/bootstrap/_pagination.scss +21 -0
- package/lib/assets/styles/scss/bootstrap/_popover.scss +5 -0
- package/lib/assets/styles/scss/bootstrap/_progress.scss +6 -0
- package/lib/assets/styles/scss/bootstrap/_reboot.scss +5 -0
- package/lib/assets/styles/scss/bootstrap/_tables.scss +155 -0
- package/lib/assets/styles/scss/bootstrap/_tabs.scss +71 -0
- package/lib/assets/styles/scss/bootstrap/_tooltip.scss +3 -0
- package/lib/assets/styles/scss/bootstrap/_type.scss +55 -0
- package/lib/assets/styles/scss/components/_forms-firefox.scss +17 -0
- package/lib/assets/styles/scss/components/_leaflet.scss +41 -0
- package/lib/assets/styles/scss/components/_legend.scss +36 -0
- package/lib/assets/styles/scss/components/_ng-select.scss +148 -0
- package/lib/assets/styles/scss/components/_ng2-dragula.scss +36 -0
- package/lib/assets/styles/scss/components/_ng2-validation.scss +39 -0
- package/lib/assets/styles/scss/components/_ng5-slider.scss +28 -0
- package/lib/assets/styles/scss/components/_ngb-datepicker.scss +165 -0
- package/lib/assets/styles/scss/components/_ngb-timepicker.scss +19 -0
- package/lib/assets/styles/scss/components/_ngx-chips.scss +102 -0
- package/lib/assets/styles/scss/components/_ngx-editor.scss +10 -0
- package/lib/assets/styles/scss/components/_ngx-file-drop.scss +15 -0
- package/lib/assets/styles/scss/components/_ngx-intl-tel-input.scss +21 -0
- package/lib/assets/styles/scss/components/_ngx-slider.scss +34 -0
- package/lib/assets/styles/scss/components/_ngx-toast.scss +74 -0
- package/lib/assets/styles/scss/components/_pwd-policy.scss +18 -0
- package/lib/assets/styles/scss/components/_table.scss +8 -0
- package/lib/assets/styles/scss/components/_vis.scss +50 -0
- package/lib/assets/styles/scss/components/_wizard-stepper.scss +82 -0
- package/lib/assets/styles/scss/components/table/_table-action.scss +77 -0
- package/lib/assets/styles/scss/components/table/_table-bg-cell.scss +6 -0
- package/lib/assets/styles/scss/components/table/_table-double-scroll.scss +38 -0
- package/lib/assets/styles/scss/components/table/_table-filter.scss +128 -0
- package/lib/assets/styles/scss/components/table/_table-pagination.scss +34 -0
- package/lib/assets/styles/scss/components/table/_table-popover.scss +39 -0
- package/lib/assets/styles/scss/components/table/_table-sorting.scss +64 -0
- package/lib/assets/styles/scss/cw-ds/_reboot.scss +551 -0
- package/lib/assets/styles/scss/cw-ds/_root-bo.scss +9 -0
- package/lib/assets/styles/scss/cw-ds/_root-fo.scss +9 -0
- package/lib/assets/styles/scss/cw-ds/components/_alert.scss +76 -0
- package/lib/assets/styles/scss/cw-ds/components/_badge.scss +107 -0
- package/lib/assets/styles/scss/cw-ds/components/_btn-collapse.scss +15 -0
- package/lib/assets/styles/scss/cw-ds/components/_card.scss +66 -0
- package/lib/assets/styles/scss/cw-ds/components/_close.scss +6 -0
- package/lib/assets/styles/scss/cw-ds/components/_file-to-download.scss +46 -0
- package/lib/assets/styles/scss/cw-ds/components/_icon-notification.scss +30 -0
- package/lib/assets/styles/scss/cw-ds/components/_icon.scss +112 -0
- package/lib/assets/styles/scss/cw-ds/components/_numerical-range.scss +60 -0
- package/lib/assets/styles/scss/cw-ds/components/_stepper.scss +78 -0
- package/lib/assets/styles/scss/cw-ds/components/_tab.scss +81 -0
- package/lib/assets/styles/scss/cw-ds/components/_toast.scss +27 -0
- package/lib/assets/styles/scss/cw-ds/components/button/_button-bo-variant.scss +46 -0
- package/lib/assets/styles/scss/cw-ds/components/button/_button-fo-variant.scss +112 -0
- package/lib/assets/styles/scss/cw-ds/components/button/_button.scss +95 -0
- package/lib/assets/styles/scss/cw-ds/helpers/_spinner.scss +30 -0
- package/lib/assets/styles/scss/cw-ds/helpers/_stretched-link.scss +9 -0
- package/lib/assets/styles/scss/cw-ds/helpers/_visually-hidden.scss +18 -0
- package/lib/assets/styles/scss/cw-ds/mixins/_color.scss +16 -0
- package/lib/assets/styles/scss/cw-ds/mixins/_flex.scss +11 -0
- package/lib/assets/styles/scss/cw-ds/mixins/_root.scss +26 -0
- package/lib/assets/styles/scss/cw-ds/mixins/_spacing.scss +84 -0
- package/lib/assets/styles/scss/cw-ds/mixins/_type.scss +27 -0
- package/lib/assets/styles/scss/cw-ds/utilities/_alignment.scss +23 -0
- package/lib/assets/styles/scss/cw-ds/utilities/_flex.scss +96 -0
- package/lib/assets/styles/scss/cw-ds/utilities/_spacing.scss +3 -0
- package/lib/assets/styles/scss/cw-ds/utilities/_type.scss +3 -0
- package/lib/assets/styles/scss/styles-bo.scss +115 -0
- package/lib/assets/styles/scss/styles-fo.scss +115 -0
- package/lib/assets/styles/scss/variables/_colors.scss +43 -0
- package/lib/assets/styles/scss/variables/_custom.scss +451 -0
- package/lib/assets/styles/scss/variables/_site.scss +68 -0
- package/package.json +33 -0
- package/styles-bo.min.css +5 -0
- package/styles-bo.min.css.map +1 -0
- package/styles-fo.min.css +5 -0
- package/styles-fo.min.css.map +1 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "@cityway/design-tokens/primitives" as p;
|
|
3
|
+
@use "@cityway/design-tokens/functions" as *;
|
|
4
|
+
@use "button" as mixin;
|
|
5
|
+
|
|
6
|
+
// Variables
|
|
7
|
+
// ---------------------------------
|
|
8
|
+
$buttons: (
|
|
9
|
+
primary: (
|
|
10
|
+
surface: var(--cw-primary),
|
|
11
|
+
text: var(--cw-primary-contrasted),
|
|
12
|
+
border: var(--cw-primary),
|
|
13
|
+
surface-hover: var(--cw-primary-hover),
|
|
14
|
+
text-hover: var(--cw-primary-contrasted),
|
|
15
|
+
border-hover: var(--cw-primary-hover),
|
|
16
|
+
surface-disabled: var(--cw-disabled),
|
|
17
|
+
text-disabled: var(--cw-disabled-contrasted),
|
|
18
|
+
border-disabled: var(--cw-disabled),
|
|
19
|
+
),
|
|
20
|
+
secondary: (
|
|
21
|
+
surface: var(--cw-primary-contrasted),
|
|
22
|
+
text: var(--cw-primary),
|
|
23
|
+
border: var(--cw-primary),
|
|
24
|
+
surface-hover: var(--cw-primary-contrasted),
|
|
25
|
+
text-hover: var(--cw-primary-hover),
|
|
26
|
+
border-hover: var(--cw-primary-hover),
|
|
27
|
+
surface-disabled: var(--cw-disabled-contrasted),
|
|
28
|
+
text-disabled: var(--cw-disabled),
|
|
29
|
+
border-disabled: var(--cw-disabled),
|
|
30
|
+
),
|
|
31
|
+
link: (
|
|
32
|
+
surface: transparent,
|
|
33
|
+
text: var(--cw-primary),
|
|
34
|
+
border: transparent,
|
|
35
|
+
surface-hover: transparent,
|
|
36
|
+
text-hover: var(--cw-primary-hover),
|
|
37
|
+
border-hover: transparent,
|
|
38
|
+
surface-disabled: transparent,
|
|
39
|
+
text-disabled: var(--cw-disabled),
|
|
40
|
+
border-disabled: transparent,
|
|
41
|
+
),
|
|
42
|
+
info: (
|
|
43
|
+
surface: var(--cw-info),
|
|
44
|
+
text: var(--cw-info-contrasted),
|
|
45
|
+
border: var(--cw-info),
|
|
46
|
+
surface-hover: var(--cw-info-hover),
|
|
47
|
+
text-hover: var(--cw-info-contrasted),
|
|
48
|
+
border-hover: var(--cw-info-hover),
|
|
49
|
+
surface-disabled: var(--cw-disabled),
|
|
50
|
+
text-disabled: var(--cw-disabled-contrasted),
|
|
51
|
+
border-disabled: var(--cw-disabled),
|
|
52
|
+
),
|
|
53
|
+
success: (
|
|
54
|
+
surface: var(--cw-success),
|
|
55
|
+
text: var(--cw-success-contrasted),
|
|
56
|
+
border: var(--cw-success),
|
|
57
|
+
surface-hover: var(--cw-success-hover),
|
|
58
|
+
text-hover: var(--cw-success-contrasted),
|
|
59
|
+
border-hover: var(--cw-success-hover),
|
|
60
|
+
surface-disabled: var(--cw-disabled),
|
|
61
|
+
text-disabled: var(--cw-disabled-contrasted),
|
|
62
|
+
border-disabled: var(--cw-disabled),
|
|
63
|
+
),
|
|
64
|
+
warning: (
|
|
65
|
+
surface: var(--cw-warning),
|
|
66
|
+
text: var(--cw-warning-contrasted),
|
|
67
|
+
border: var(--cw-warning),
|
|
68
|
+
surface-hover: var(--cw-warning-hover),
|
|
69
|
+
text-hover: var(--cw-warning-contrasted),
|
|
70
|
+
border-hover: var(--cw-warning-hover),
|
|
71
|
+
surface-disabled: var(--cw-disabled),
|
|
72
|
+
text-disabled: var(--cw-disabled-contrasted),
|
|
73
|
+
border-disabled: var(--cw-disabled),
|
|
74
|
+
),
|
|
75
|
+
danger: (
|
|
76
|
+
surface: var(--cw-danger),
|
|
77
|
+
text: var(--cw-danger-contrasted),
|
|
78
|
+
border: var(--cw-danger),
|
|
79
|
+
surface-hover: var(--cw-danger-hover),
|
|
80
|
+
text-hover: var(--cw-danger-contrasted),
|
|
81
|
+
border-hover: var(--cw-danger-hover),
|
|
82
|
+
surface-disabled: var(--cw-disabled),
|
|
83
|
+
text-disabled: var(--cw-disabled-contrasted),
|
|
84
|
+
border-disabled: var(--cw-disabled),
|
|
85
|
+
),
|
|
86
|
+
danger-outline: (
|
|
87
|
+
surface: var(--cw-danger-contrasted),
|
|
88
|
+
text: var(--cw-danger),
|
|
89
|
+
border: var(--cw-danger),
|
|
90
|
+
surface-hover: var(--cw-danger-contrasted),
|
|
91
|
+
text-hover: var(--cw-danger-hover),
|
|
92
|
+
border-hover: var(--cw-danger-hover),
|
|
93
|
+
surface-disabled: var(--cw-disabled-contrasted),
|
|
94
|
+
text-disabled: var(--cw-disabled),
|
|
95
|
+
border-disabled: var(--cw-disabled),
|
|
96
|
+
),
|
|
97
|
+
light: (
|
|
98
|
+
surface: var(--cw-light),
|
|
99
|
+
text: var(--cw-light-contrasted),
|
|
100
|
+
border: var(--cw-light),
|
|
101
|
+
surface-hover: var(--cw-light-hover),
|
|
102
|
+
text-hover: var(--cw-light-contrasted),
|
|
103
|
+
border-hover: var(--cw-light-hover),
|
|
104
|
+
surface-disabled: var(--cw-disabled),
|
|
105
|
+
text-disabled: var(--cw-disabled-contrasted),
|
|
106
|
+
border-disabled: var(--cw-disabled),
|
|
107
|
+
),
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
// Générer toutes les variantes
|
|
111
|
+
// ---------------------------------
|
|
112
|
+
@include mixin.button-variants($buttons);
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "@cityway/design-tokens/primitives" as p;
|
|
3
|
+
@use "@cityway/design-tokens/functions" as *;
|
|
4
|
+
|
|
5
|
+
.btn {
|
|
6
|
+
--#{p.$prefix}-btn-padding-x: #{size(2xl)};
|
|
7
|
+
--#{p.$prefix}-btn-padding-y: #{size(sm)};
|
|
8
|
+
--#{p.$prefix}-btn-color: #{color(base, "dark")};
|
|
9
|
+
--#{p.$prefix}-btn-bg: #{color(base, "white")};
|
|
10
|
+
--#{p.$prefix}-btn-fs: #{font(fs, md)};
|
|
11
|
+
--#{p.$prefix}-btn-lh: #{font(lh, md)};
|
|
12
|
+
--#{p.$prefix}-btn-fw: #{font(fw, semibold)};
|
|
13
|
+
--#{p.$prefix}-btn-border-color: #{color(base, "white")};
|
|
14
|
+
--#{p.$prefix}-btn-border-width: #{size(5xs)};
|
|
15
|
+
--#{p.$prefix}-btn-br: var(--#{p.$prefix}-border-radius-input);
|
|
16
|
+
--#{p.$prefix}-btn-hover-color: #{color(base, "dark")};
|
|
17
|
+
--#{p.$prefix}-btn-hover-bg: #{color(base, "white")};
|
|
18
|
+
--#{p.$prefix}-btn-hover-border-color: #{color(base, "white")};
|
|
19
|
+
--#{p.$prefix}-btn-disabled-color: #{color(base, "white")};
|
|
20
|
+
--#{p.$prefix}-btn-disabled-bg: #{color("grey", 700)};
|
|
21
|
+
--#{p.$prefix}-btn-disabled-border-color: #{color("grey", 700)};
|
|
22
|
+
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
gap: size(2xs);
|
|
27
|
+
padding: var(--#{p.$prefix}-btn-padding-y) var(--#{p.$prefix}-btn-padding-x);
|
|
28
|
+
|
|
29
|
+
font-size: var(--#{p.$prefix}-btn-fs);
|
|
30
|
+
font-weight: var(--#{p.$prefix}-btn-fw);
|
|
31
|
+
line-height: var(--#{p.$prefix}-btn-lh);
|
|
32
|
+
color: var(--#{p.$prefix}-btn-color);
|
|
33
|
+
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
user-select: none;
|
|
36
|
+
border: var(--#{p.$prefix}-btn-border-width) solid var(--#{p.$prefix}-btn-border-color);
|
|
37
|
+
border-radius: var(--#{p.$prefix}-btn-br);
|
|
38
|
+
background-color: var(--#{p.$prefix}-btn-bg);
|
|
39
|
+
transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
|
|
40
|
+
|
|
41
|
+
&:hover, &:active {
|
|
42
|
+
color: var(--#{p.$prefix}-btn-hover-color);
|
|
43
|
+
background-color: var(--#{p.$prefix}-btn-hover-bg);
|
|
44
|
+
border-color: var(--#{p.$prefix}-btn-hover-border-color);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.disabled, &[disabled], &:disabled {
|
|
48
|
+
color: var(--#{p.$prefix}-btn-disabled-color);
|
|
49
|
+
background-color: var(--#{p.$prefix}-btn-disabled-bg);
|
|
50
|
+
border-color: var(--#{p.$prefix}-btn-disabled-bg);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&-link {
|
|
54
|
+
text-decoration: underline;
|
|
55
|
+
&:hover, &:active {
|
|
56
|
+
text-decoration: none;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.btn-icon {
|
|
62
|
+
--#{p.$prefix}-btn-padding-x: 0;
|
|
63
|
+
--#{p.$prefix}-btn-padding-y: 0;
|
|
64
|
+
|
|
65
|
+
&-small {
|
|
66
|
+
width: size(2xl);
|
|
67
|
+
height: size(2xl);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&-default {
|
|
71
|
+
width: size(3xl);
|
|
72
|
+
height: size(3xl);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
// MIXIN - Variantes
|
|
78
|
+
// ---------------------------------
|
|
79
|
+
@mixin button-variants($variants) {
|
|
80
|
+
@each $variant, $colors in $variants {
|
|
81
|
+
.btn-#{$variant} {
|
|
82
|
+
--#{p.$prefix}-btn-color: #{map.get($colors, text)};
|
|
83
|
+
--#{p.$prefix}-btn-bg: #{map.get($colors, surface)};
|
|
84
|
+
--#{p.$prefix}-btn-border-color: #{map.get($colors, border)};
|
|
85
|
+
|
|
86
|
+
--#{p.$prefix}-btn-hover-color: #{map.get($colors, text-hover)};
|
|
87
|
+
--#{p.$prefix}-btn-hover-bg: #{map.get($colors, surface-hover)};
|
|
88
|
+
--#{p.$prefix}-btn-hover-border-color: #{map.get($colors, border-hover)};
|
|
89
|
+
|
|
90
|
+
--#{p.$prefix}-btn-disabled-color: #{map.get($colors, text-disabled)};
|
|
91
|
+
--#{p.$prefix}-btn-disabled-bg: #{map.get($colors, surface-disabled)};
|
|
92
|
+
--#{p.$prefix}-btn-disabled-border-color: #{map.get($colors, border-disabled)};
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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-border-width: #{size(4xs)};
|
|
9
|
+
|
|
10
|
+
display: inline-block;
|
|
11
|
+
flex-shrink: 0;
|
|
12
|
+
width: var(--#{p.$prefix}spinner-width);
|
|
13
|
+
height: var(--#{p.$prefix}spinner-height);
|
|
14
|
+
vertical-align: -0.125em;
|
|
15
|
+
|
|
16
|
+
border: var(--#{p.$prefix}spinner-border-width) solid currentcolor;
|
|
17
|
+
border-right-color: transparent;
|
|
18
|
+
border-radius: 50%;
|
|
19
|
+
animation: 0.75s linear infinite spinner-border;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@keyframes spinner-border {
|
|
23
|
+
to { transform: rotate(360deg) #{"/* rtl:ignore */"}; }
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.spinner-border-sm {
|
|
27
|
+
--#{p.$prefix}spinner-width: #{size(lg)};
|
|
28
|
+
--#{p.$prefix}spinner-height: #{size(lg)};
|
|
29
|
+
--#{p.$prefix}spinner-border-width: 0.188rem;
|
|
30
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
// }
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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);
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
@use "../mixins/flex" as *;
|
|
2
|
+
|
|
3
|
+
@include generate-flex-system();
|
|
4
|
+
|
|
5
|
+
.d-flex-h,
|
|
6
|
+
.d-flex-v {
|
|
7
|
+
display: flex;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.d-flex-v {
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.d-inline-flex {
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.flex-row {
|
|
19
|
+
flex-direction: row;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.flex-col {
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.flex-row-reverse {
|
|
27
|
+
flex-direction: row-reverse;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.flex-col-reverse {
|
|
31
|
+
flex-direction: column-reverse;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.flex-wrap {
|
|
35
|
+
flex-wrap: wrap;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.flex-nowrap {
|
|
39
|
+
flex-wrap: nowrap;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.justify-start {
|
|
43
|
+
justify-content: flex-start;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.justify-end {
|
|
47
|
+
justify-content: flex-end;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.justify-center {
|
|
51
|
+
justify-content: center;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.justify-between {
|
|
55
|
+
justify-content: space-between;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.justify-around {
|
|
59
|
+
justify-content: space-around;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.justify-evenly {
|
|
63
|
+
justify-content: space-evenly;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.items-start {
|
|
67
|
+
align-items: flex-start;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.items-end {
|
|
71
|
+
align-items: flex-end;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.items-center {
|
|
75
|
+
align-items: center;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.items-baseline {
|
|
79
|
+
align-items: baseline;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.items-stretch {
|
|
83
|
+
align-items: stretch;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.flex-1 {
|
|
87
|
+
flex: 1 1 0%;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.flex-auto {
|
|
91
|
+
flex: 1 1 auto;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.flex-none {
|
|
95
|
+
flex: none;
|
|
96
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
@use "cw-ds/reboot";
|
|
2
|
+
@use "cw-ds/root-bo";
|
|
3
|
+
|
|
4
|
+
// Utilities
|
|
5
|
+
@use "cw-ds/utilities/flex";
|
|
6
|
+
@use "cw-ds/utilities/spacing";
|
|
7
|
+
@use "cw-ds/utilities/type";
|
|
8
|
+
@use "cw-ds/utilities/alignment";
|
|
9
|
+
|
|
10
|
+
// Helpers
|
|
11
|
+
@use "cw-ds/helpers/visually-hidden";
|
|
12
|
+
@use "cw-ds/helpers/stretched-link";
|
|
13
|
+
@use "cw-ds/helpers/spinner";
|
|
14
|
+
|
|
15
|
+
// Components
|
|
16
|
+
@use "cw-ds/components/button/button";
|
|
17
|
+
@use "cw-ds/components/button/button-bo-variant";
|
|
18
|
+
@use "cw-ds/components/badge";
|
|
19
|
+
@use "cw-ds/components/icon";
|
|
20
|
+
@use "cw-ds/components/icon-notification";
|
|
21
|
+
@use "cw-ds/components/alert";
|
|
22
|
+
@use "cw-ds/components/toast";
|
|
23
|
+
@use "cw-ds/components/close";
|
|
24
|
+
@use "cw-ds/components/btn-collapse";
|
|
25
|
+
@use "cw-ds/components/card";
|
|
26
|
+
@use "cw-ds/components/tab";
|
|
27
|
+
@use "cw-ds/components/stepper";
|
|
28
|
+
@use "cw-ds/components/file-to-download";
|
|
29
|
+
@use "cw-ds/components/numerical-range";
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
//## Import des variables de couleurs
|
|
33
|
+
//--------------------------------------------------------
|
|
34
|
+
//@import "scss/variables-colors";
|
|
35
|
+
|
|
36
|
+
//## Import de bootstrap contrôlé
|
|
37
|
+
//--------------------------------------------------------
|
|
38
|
+
//@import "bootstrap";
|
|
39
|
+
@import "bootstrap/scss/mixins/banner";
|
|
40
|
+
@include bsBanner("");
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
// scss-docs-start import-stack
|
|
44
|
+
// Configuration
|
|
45
|
+
@import "bootstrap/scss/functions";
|
|
46
|
+
@import "variables/custom";
|
|
47
|
+
@import "bootstrap/scss/variables";
|
|
48
|
+
@import "bootstrap/scss/variables-dark";
|
|
49
|
+
@import "bootstrap/scss/maps";
|
|
50
|
+
@import "bootstrap/scss/mixins";
|
|
51
|
+
@import "bootstrap/scss/utilities";
|
|
52
|
+
|
|
53
|
+
// Layout & components
|
|
54
|
+
@import "bootstrap/scss/root";
|
|
55
|
+
//@import "bootstrap/scss/reboot";
|
|
56
|
+
@import "bootstrap/scss/type";
|
|
57
|
+
@import "bootstrap/scss/images";
|
|
58
|
+
@import "bootstrap/scss/containers";
|
|
59
|
+
@import "bootstrap/scss/grid";
|
|
60
|
+
@import "bootstrap/scss/tables";
|
|
61
|
+
@import "bootstrap/scss/forms";
|
|
62
|
+
//@import "bootstrap/scss/buttons";
|
|
63
|
+
//@import "bootstrap/scss/transitions";
|
|
64
|
+
@import "bootstrap/scss/dropdown";
|
|
65
|
+
@import "bootstrap/scss/button-group";
|
|
66
|
+
//@import "bootstrap/scss/nav";
|
|
67
|
+
//@import "bootstrap/scss/navbar";
|
|
68
|
+
//@import "bootstrap/scss/card";
|
|
69
|
+
@import "bootstrap/scss/accordion";
|
|
70
|
+
//@import "bootstrap/scss/breadcrumb";
|
|
71
|
+
//@import "bootstrap/scss/pagination";
|
|
72
|
+
//@import "bootstrap/scss/badge";
|
|
73
|
+
//@import "bootstrap/scss/alert";
|
|
74
|
+
@import "bootstrap/scss/progress";
|
|
75
|
+
@import "bootstrap/scss/list-group";
|
|
76
|
+
//@import "bootstrap/scss/close";
|
|
77
|
+
//@import "bootstrap/scss/toasts";
|
|
78
|
+
@import "bootstrap/scss/modal";
|
|
79
|
+
@import "bootstrap/scss/tooltip";
|
|
80
|
+
@import "bootstrap/scss/popover";
|
|
81
|
+
//@import "bootstrap/scss/carousel";
|
|
82
|
+
//@import "bootstrap/scss/offcanvas";
|
|
83
|
+
//@import "bootstrap/scss/placeholders";
|
|
84
|
+
|
|
85
|
+
// Helpers
|
|
86
|
+
//@import "bootstrap/scss/helpers";
|
|
87
|
+
|
|
88
|
+
// Utilities
|
|
89
|
+
@import "bootstrap/scss/utilities/api";
|
|
90
|
+
// scss-docs-end import-stack
|
|
91
|
+
|
|
92
|
+
//## Mixins
|
|
93
|
+
//--------------------------------------------------------
|
|
94
|
+
//@import "mixins/utilities";
|
|
95
|
+
|
|
96
|
+
//## Import des variables propres au site
|
|
97
|
+
//--------------------------------------------------------
|
|
98
|
+
@import "variables/site";
|
|
99
|
+
|
|
100
|
+
//## Import des fonts
|
|
101
|
+
//--------------------------------------------------------
|
|
102
|
+
@import "../../fonts/nunito/nunito";
|
|
103
|
+
@import "../../fonts/optyweb/optyweb";
|
|
104
|
+
@import "../../fonts/bo/bo";
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
//## Import styles
|
|
108
|
+
//--------------------------------------------------------
|
|
109
|
+
@import "custom-bootstrap";
|
|
110
|
+
@import "components";
|
|
111
|
+
|
|
112
|
+
// Tools
|
|
113
|
+
//--------------------------------------------------------
|
|
114
|
+
//@import "tools/loader";
|
|
115
|
+
//@import "tools/focus";
|