@dsrc-cm/core 0.1.0
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/dist/dsrc.css +10743 -0
- package/dist/dsrc.min.css +1 -0
- package/package.json +44 -0
- package/src/base/print.css +404 -0
- package/src/base/reset.css +106 -0
- package/src/components/accordion/accordion.css +216 -0
- package/src/components/alert/alert.css +187 -0
- package/src/components/badge/badge.css +178 -0
- package/src/components/breadcrumb/breadcrumb.css +235 -0
- package/src/components/button/button.css +805 -0
- package/src/components/callout/callout.css +95 -0
- package/src/components/card/card.css +551 -0
- package/src/components/checkbox/checkbox.css +257 -0
- package/src/components/consent/consent.css +297 -0
- package/src/components/download/download.css +66 -0
- package/src/components/dropdown/dropdown.css +295 -0
- package/src/components/highlight/highlight.css +74 -0
- package/src/components/input/input.css +337 -0
- package/src/components/label/label.css +29 -0
- package/src/components/link/link.css +208 -0
- package/src/components/logo/logo.css +86 -0
- package/src/components/modal/modal.css +271 -0
- package/src/components/notice/notice.css +211 -0
- package/src/components/pagination/pagination.css +132 -0
- package/src/components/password/password.css +195 -0
- package/src/components/quote/quote.css +156 -0
- package/src/components/radio/radio.css +270 -0
- package/src/components/range/range.css +362 -0
- package/src/components/search/search.css +129 -0
- package/src/components/select/select.css +130 -0
- package/src/components/sidemenu/sidemenu.css +268 -0
- package/src/components/spinner/spinner.css +73 -0
- package/src/components/stepper/stepper.css +140 -0
- package/src/components/summary/summary.css +142 -0
- package/src/components/tab/tab.css +184 -0
- package/src/components/table/table.css +556 -0
- package/src/components/tag/tag.css +201 -0
- package/src/components/tile/tile.css +389 -0
- package/src/components/toggle/toggle.css +229 -0
- package/src/components/tooltip/tooltip.css +158 -0
- package/src/components/translate/translate.css +356 -0
- package/src/components/upload/upload.css +185 -0
- package/src/index.css +77 -0
- package/src/layout/bandeau/bandeau.css +44 -0
- package/src/layout/entete/entete.css +130 -0
- package/src/layout/footer/footer.css +107 -0
- package/src/layout/grid/grid.css +197 -0
- package/src/layout/hero/hero.css +86 -0
- package/src/layout/main/main.css +123 -0
- package/src/layout/navigation/navigation.css +206 -0
- package/src/utilities/utilities.css +430 -0
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DSRC Navigation Component
|
|
3
|
+
*
|
|
4
|
+
* Barre de navigation principale du site. Horizontale et defilante sur
|
|
5
|
+
* desktop, repliable via un bouton hamburger sur mobile.
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* <nav class="dsrc-nav" aria-label="Navigation principale">
|
|
9
|
+
* <div class="dsrc-nav__inner">
|
|
10
|
+
* <button class="dsrc-nav__toggle"
|
|
11
|
+
* aria-expanded="false"
|
|
12
|
+
* aria-controls="dsrc-nav-list">
|
|
13
|
+
* <span class="dsrc-nav__toggle-icon" aria-hidden="true"></span>
|
|
14
|
+
* Menu
|
|
15
|
+
* </button>
|
|
16
|
+
* <ul class="dsrc-nav__list" id="dsrc-nav-list" role="list">
|
|
17
|
+
* <li><a href="/" class="dsrc-nav__link dsrc-nav__link--actif" aria-current="page">Accueil</a></li>
|
|
18
|
+
* <li><a href="/page" class="dsrc-nav__link">Page</a></li>
|
|
19
|
+
* </ul>
|
|
20
|
+
* </div>
|
|
21
|
+
* </nav>
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/* ---------------------------------------------------------------------------
|
|
25
|
+
* Nav root
|
|
26
|
+
* ------------------------------------------------------------------------ */
|
|
27
|
+
|
|
28
|
+
.dsrc-nav {
|
|
29
|
+
border-bottom: var(--dsrc-border-width-thick) solid var(--dsrc-color-primaire);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* ---------------------------------------------------------------------------
|
|
33
|
+
* Inner container
|
|
34
|
+
* ------------------------------------------------------------------------ */
|
|
35
|
+
|
|
36
|
+
.dsrc-nav__inner {
|
|
37
|
+
max-width: var(--dsrc-layout-max-width);
|
|
38
|
+
margin: 0 auto;
|
|
39
|
+
padding: 0 var(--dsrc-spacing-5);
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* ---------------------------------------------------------------------------
|
|
45
|
+
* Toggle button (hidden on desktop, visible on mobile)
|
|
46
|
+
* ------------------------------------------------------------------------ */
|
|
47
|
+
|
|
48
|
+
.dsrc-nav__toggle {
|
|
49
|
+
display: none;
|
|
50
|
+
align-items: center;
|
|
51
|
+
gap: var(--dsrc-spacing-2);
|
|
52
|
+
padding: var(--dsrc-spacing-3) 0;
|
|
53
|
+
font-family: var(--dsrc-font-family-sans);
|
|
54
|
+
font-size: var(--dsrc-font-size-small);
|
|
55
|
+
font-weight: var(--dsrc-font-weight-semibold);
|
|
56
|
+
color: var(--dsrc-color-noir);
|
|
57
|
+
background: none;
|
|
58
|
+
border: none;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
-webkit-appearance: none;
|
|
61
|
+
appearance: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.dsrc-nav__toggle:focus-visible {
|
|
65
|
+
outline: var(--dsrc-outline-width) solid var(--dsrc-color-primaire-focus);
|
|
66
|
+
outline-offset: var(--dsrc-outline-offset);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Hamburger icon: three horizontal bars built with CSS */
|
|
70
|
+
.dsrc-nav__toggle-icon {
|
|
71
|
+
position: relative;
|
|
72
|
+
display: block;
|
|
73
|
+
width: 18px;
|
|
74
|
+
height: 2px;
|
|
75
|
+
background-color: currentColor;
|
|
76
|
+
transition: background-color var(--dsrc-transition-duration-fast) ease;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.dsrc-nav__toggle-icon::before,
|
|
80
|
+
.dsrc-nav__toggle-icon::after {
|
|
81
|
+
content: '';
|
|
82
|
+
position: absolute;
|
|
83
|
+
left: 0;
|
|
84
|
+
width: 100%;
|
|
85
|
+
height: 2px;
|
|
86
|
+
background-color: currentColor;
|
|
87
|
+
transition: transform var(--dsrc-transition-duration-normal) ease;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.dsrc-nav__toggle-icon::before {
|
|
91
|
+
top: -6px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.dsrc-nav__toggle-icon::after {
|
|
95
|
+
top: 6px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* When expanded, morph bars into a close "X" */
|
|
99
|
+
.dsrc-nav__toggle[aria-expanded="true"] .dsrc-nav__toggle-icon {
|
|
100
|
+
background-color: transparent;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.dsrc-nav__toggle[aria-expanded="true"] .dsrc-nav__toggle-icon::before {
|
|
104
|
+
top: 0;
|
|
105
|
+
transform: rotate(45deg);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.dsrc-nav__toggle[aria-expanded="true"] .dsrc-nav__toggle-icon::after {
|
|
109
|
+
top: 0;
|
|
110
|
+
transform: rotate(-45deg);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* ---------------------------------------------------------------------------
|
|
114
|
+
* Link list
|
|
115
|
+
* ------------------------------------------------------------------------ */
|
|
116
|
+
|
|
117
|
+
.dsrc-nav__list {
|
|
118
|
+
display: flex;
|
|
119
|
+
list-style: none;
|
|
120
|
+
margin: 0;
|
|
121
|
+
padding: 0;
|
|
122
|
+
overflow-x: auto;
|
|
123
|
+
-webkit-overflow-scrolling: touch;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* ---------------------------------------------------------------------------
|
|
127
|
+
* Individual nav link
|
|
128
|
+
* ------------------------------------------------------------------------ */
|
|
129
|
+
|
|
130
|
+
.dsrc-nav__link {
|
|
131
|
+
display: block;
|
|
132
|
+
font-family: var(--dsrc-font-family-sans);
|
|
133
|
+
font-size: var(--dsrc-font-size-small);
|
|
134
|
+
font-weight: var(--dsrc-font-weight-medium);
|
|
135
|
+
color: var(--dsrc-color-gris-700);
|
|
136
|
+
text-decoration: none;
|
|
137
|
+
padding: var(--dsrc-spacing-3) var(--dsrc-spacing-4);
|
|
138
|
+
border-bottom: var(--dsrc-border-width-thick) solid transparent;
|
|
139
|
+
margin-bottom: calc(-1 * var(--dsrc-border-width-thick));
|
|
140
|
+
white-space: nowrap;
|
|
141
|
+
transition: color var(--dsrc-transition-duration-fast) ease;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.dsrc-nav__link:hover {
|
|
145
|
+
color: var(--dsrc-color-primaire);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* Active state: selected link or aria-current */
|
|
149
|
+
.dsrc-nav__link--actif,
|
|
150
|
+
.dsrc-nav__link[aria-current="page"] {
|
|
151
|
+
color: var(--dsrc-color-primaire);
|
|
152
|
+
border-bottom-color: var(--dsrc-color-primaire);
|
|
153
|
+
font-weight: var(--dsrc-font-weight-semibold);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.dsrc-nav__link:focus-visible {
|
|
157
|
+
outline: var(--dsrc-outline-width) solid var(--dsrc-color-primaire-focus);
|
|
158
|
+
outline-offset: calc(-1 * var(--dsrc-outline-offset));
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* ---------------------------------------------------------------------------
|
|
162
|
+
* Mobile responsive (< 768px)
|
|
163
|
+
* ------------------------------------------------------------------------ */
|
|
164
|
+
|
|
165
|
+
@media (max-width: 768px) {
|
|
166
|
+
.dsrc-nav__inner {
|
|
167
|
+
flex-wrap: wrap;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* Show the hamburger toggle */
|
|
171
|
+
.dsrc-nav__toggle {
|
|
172
|
+
display: flex;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* Collapsed by default on mobile */
|
|
176
|
+
.dsrc-nav__list {
|
|
177
|
+
display: none;
|
|
178
|
+
flex-direction: column;
|
|
179
|
+
width: 100%;
|
|
180
|
+
overflow-x: visible;
|
|
181
|
+
border-top: var(--dsrc-border-width-thin) solid var(--dsrc-color-gris-200);
|
|
182
|
+
padding: var(--dsrc-spacing-2) 0;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/* Expanded state driven by aria-expanded on the toggle */
|
|
186
|
+
.dsrc-nav__toggle[aria-expanded="true"] + .dsrc-nav__list,
|
|
187
|
+
.dsrc-nav__toggle[aria-expanded="true"] ~ .dsrc-nav__list {
|
|
188
|
+
display: flex;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/* Links stack vertically with full-width tap targets */
|
|
192
|
+
.dsrc-nav__link {
|
|
193
|
+
border-bottom: none;
|
|
194
|
+
border-left: var(--dsrc-border-width-thick) solid transparent;
|
|
195
|
+
margin-bottom: 0;
|
|
196
|
+
padding: var(--dsrc-spacing-3) var(--dsrc-spacing-4);
|
|
197
|
+
white-space: normal;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.dsrc-nav__link--actif,
|
|
201
|
+
.dsrc-nav__link[aria-current="page"] {
|
|
202
|
+
border-bottom: none;
|
|
203
|
+
border-left-color: var(--dsrc-color-primaire);
|
|
204
|
+
background-color: var(--dsrc-color-primaire-clair);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DSRC - Utility Classes
|
|
3
|
+
*
|
|
4
|
+
* Classes utilitaires du Design Systeme de la Republique du Cameroun.
|
|
5
|
+
* Toutes les classes utilisent le prefixe `dsrc-` et appliquent `!important`
|
|
6
|
+
* conformement aux conventions des systemes de design gouvernementaux (DSFR).
|
|
7
|
+
*
|
|
8
|
+
* Sommaire :
|
|
9
|
+
* 1. Spacing (margin, padding)
|
|
10
|
+
* 2. Text (alignment, weight, size, transform)
|
|
11
|
+
* 3. Display
|
|
12
|
+
* 4. Flex
|
|
13
|
+
* 5. Color (background, text)
|
|
14
|
+
* 6. Border
|
|
15
|
+
* 7. Visibility / Accessibility
|
|
16
|
+
* 8. Responsive display (md, lg)
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
/* ==========================================================================
|
|
21
|
+
1. SPACING UTILITIES
|
|
22
|
+
Margin and padding using the 4px grid system (--dsrc-spacing-{1-8}).
|
|
23
|
+
Scale: 0=0, 1=4px, 2=8px, 3=12px, 4=16px, 5=24px, 6=32px, 7=48px, 8=64px
|
|
24
|
+
========================================================================== */
|
|
25
|
+
|
|
26
|
+
/* --------------------------------------------------------------------------
|
|
27
|
+
1.1 Margin - all sides
|
|
28
|
+
-------------------------------------------------------------------------- */
|
|
29
|
+
|
|
30
|
+
.dsrc-m-0 { margin: 0 !important; }
|
|
31
|
+
.dsrc-m-1 { margin: var(--dsrc-spacing-1) !important; }
|
|
32
|
+
.dsrc-m-2 { margin: var(--dsrc-spacing-2) !important; }
|
|
33
|
+
.dsrc-m-3 { margin: var(--dsrc-spacing-3) !important; }
|
|
34
|
+
.dsrc-m-4 { margin: var(--dsrc-spacing-4) !important; }
|
|
35
|
+
.dsrc-m-5 { margin: var(--dsrc-spacing-5) !important; }
|
|
36
|
+
.dsrc-m-6 { margin: var(--dsrc-spacing-6) !important; }
|
|
37
|
+
.dsrc-m-7 { margin: var(--dsrc-spacing-7) !important; }
|
|
38
|
+
.dsrc-m-8 { margin: var(--dsrc-spacing-8) !important; }
|
|
39
|
+
|
|
40
|
+
/* --------------------------------------------------------------------------
|
|
41
|
+
1.2 Margin - top
|
|
42
|
+
-------------------------------------------------------------------------- */
|
|
43
|
+
|
|
44
|
+
.dsrc-mt-0 { margin-top: 0 !important; }
|
|
45
|
+
.dsrc-mt-1 { margin-top: var(--dsrc-spacing-1) !important; }
|
|
46
|
+
.dsrc-mt-2 { margin-top: var(--dsrc-spacing-2) !important; }
|
|
47
|
+
.dsrc-mt-3 { margin-top: var(--dsrc-spacing-3) !important; }
|
|
48
|
+
.dsrc-mt-4 { margin-top: var(--dsrc-spacing-4) !important; }
|
|
49
|
+
.dsrc-mt-5 { margin-top: var(--dsrc-spacing-5) !important; }
|
|
50
|
+
.dsrc-mt-6 { margin-top: var(--dsrc-spacing-6) !important; }
|
|
51
|
+
.dsrc-mt-7 { margin-top: var(--dsrc-spacing-7) !important; }
|
|
52
|
+
.dsrc-mt-8 { margin-top: var(--dsrc-spacing-8) !important; }
|
|
53
|
+
|
|
54
|
+
/* --------------------------------------------------------------------------
|
|
55
|
+
1.3 Margin - right
|
|
56
|
+
-------------------------------------------------------------------------- */
|
|
57
|
+
|
|
58
|
+
.dsrc-mr-0 { margin-right: 0 !important; }
|
|
59
|
+
.dsrc-mr-1 { margin-right: var(--dsrc-spacing-1) !important; }
|
|
60
|
+
.dsrc-mr-2 { margin-right: var(--dsrc-spacing-2) !important; }
|
|
61
|
+
.dsrc-mr-3 { margin-right: var(--dsrc-spacing-3) !important; }
|
|
62
|
+
.dsrc-mr-4 { margin-right: var(--dsrc-spacing-4) !important; }
|
|
63
|
+
.dsrc-mr-5 { margin-right: var(--dsrc-spacing-5) !important; }
|
|
64
|
+
.dsrc-mr-6 { margin-right: var(--dsrc-spacing-6) !important; }
|
|
65
|
+
.dsrc-mr-7 { margin-right: var(--dsrc-spacing-7) !important; }
|
|
66
|
+
.dsrc-mr-8 { margin-right: var(--dsrc-spacing-8) !important; }
|
|
67
|
+
|
|
68
|
+
/* --------------------------------------------------------------------------
|
|
69
|
+
1.4 Margin - bottom
|
|
70
|
+
-------------------------------------------------------------------------- */
|
|
71
|
+
|
|
72
|
+
.dsrc-mb-0 { margin-bottom: 0 !important; }
|
|
73
|
+
.dsrc-mb-1 { margin-bottom: var(--dsrc-spacing-1) !important; }
|
|
74
|
+
.dsrc-mb-2 { margin-bottom: var(--dsrc-spacing-2) !important; }
|
|
75
|
+
.dsrc-mb-3 { margin-bottom: var(--dsrc-spacing-3) !important; }
|
|
76
|
+
.dsrc-mb-4 { margin-bottom: var(--dsrc-spacing-4) !important; }
|
|
77
|
+
.dsrc-mb-5 { margin-bottom: var(--dsrc-spacing-5) !important; }
|
|
78
|
+
.dsrc-mb-6 { margin-bottom: var(--dsrc-spacing-6) !important; }
|
|
79
|
+
.dsrc-mb-7 { margin-bottom: var(--dsrc-spacing-7) !important; }
|
|
80
|
+
.dsrc-mb-8 { margin-bottom: var(--dsrc-spacing-8) !important; }
|
|
81
|
+
|
|
82
|
+
/* --------------------------------------------------------------------------
|
|
83
|
+
1.5 Margin - left
|
|
84
|
+
-------------------------------------------------------------------------- */
|
|
85
|
+
|
|
86
|
+
.dsrc-ml-0 { margin-left: 0 !important; }
|
|
87
|
+
.dsrc-ml-1 { margin-left: var(--dsrc-spacing-1) !important; }
|
|
88
|
+
.dsrc-ml-2 { margin-left: var(--dsrc-spacing-2) !important; }
|
|
89
|
+
.dsrc-ml-3 { margin-left: var(--dsrc-spacing-3) !important; }
|
|
90
|
+
.dsrc-ml-4 { margin-left: var(--dsrc-spacing-4) !important; }
|
|
91
|
+
.dsrc-ml-5 { margin-left: var(--dsrc-spacing-5) !important; }
|
|
92
|
+
.dsrc-ml-6 { margin-left: var(--dsrc-spacing-6) !important; }
|
|
93
|
+
.dsrc-ml-7 { margin-left: var(--dsrc-spacing-7) !important; }
|
|
94
|
+
.dsrc-ml-8 { margin-left: var(--dsrc-spacing-8) !important; }
|
|
95
|
+
|
|
96
|
+
/* --------------------------------------------------------------------------
|
|
97
|
+
1.6 Margin - horizontal (left + right)
|
|
98
|
+
-------------------------------------------------------------------------- */
|
|
99
|
+
|
|
100
|
+
.dsrc-mx-0 { margin-right: 0 !important; margin-left: 0 !important; }
|
|
101
|
+
.dsrc-mx-1 { margin-right: var(--dsrc-spacing-1) !important; margin-left: var(--dsrc-spacing-1) !important; }
|
|
102
|
+
.dsrc-mx-2 { margin-right: var(--dsrc-spacing-2) !important; margin-left: var(--dsrc-spacing-2) !important; }
|
|
103
|
+
.dsrc-mx-3 { margin-right: var(--dsrc-spacing-3) !important; margin-left: var(--dsrc-spacing-3) !important; }
|
|
104
|
+
.dsrc-mx-4 { margin-right: var(--dsrc-spacing-4) !important; margin-left: var(--dsrc-spacing-4) !important; }
|
|
105
|
+
.dsrc-mx-5 { margin-right: var(--dsrc-spacing-5) !important; margin-left: var(--dsrc-spacing-5) !important; }
|
|
106
|
+
.dsrc-mx-6 { margin-right: var(--dsrc-spacing-6) !important; margin-left: var(--dsrc-spacing-6) !important; }
|
|
107
|
+
.dsrc-mx-7 { margin-right: var(--dsrc-spacing-7) !important; margin-left: var(--dsrc-spacing-7) !important; }
|
|
108
|
+
.dsrc-mx-8 { margin-right: var(--dsrc-spacing-8) !important; margin-left: var(--dsrc-spacing-8) !important; }
|
|
109
|
+
|
|
110
|
+
/* --------------------------------------------------------------------------
|
|
111
|
+
1.7 Margin - vertical (top + bottom)
|
|
112
|
+
-------------------------------------------------------------------------- */
|
|
113
|
+
|
|
114
|
+
.dsrc-my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
|
|
115
|
+
.dsrc-my-1 { margin-top: var(--dsrc-spacing-1) !important; margin-bottom: var(--dsrc-spacing-1) !important; }
|
|
116
|
+
.dsrc-my-2 { margin-top: var(--dsrc-spacing-2) !important; margin-bottom: var(--dsrc-spacing-2) !important; }
|
|
117
|
+
.dsrc-my-3 { margin-top: var(--dsrc-spacing-3) !important; margin-bottom: var(--dsrc-spacing-3) !important; }
|
|
118
|
+
.dsrc-my-4 { margin-top: var(--dsrc-spacing-4) !important; margin-bottom: var(--dsrc-spacing-4) !important; }
|
|
119
|
+
.dsrc-my-5 { margin-top: var(--dsrc-spacing-5) !important; margin-bottom: var(--dsrc-spacing-5) !important; }
|
|
120
|
+
.dsrc-my-6 { margin-top: var(--dsrc-spacing-6) !important; margin-bottom: var(--dsrc-spacing-6) !important; }
|
|
121
|
+
.dsrc-my-7 { margin-top: var(--dsrc-spacing-7) !important; margin-bottom: var(--dsrc-spacing-7) !important; }
|
|
122
|
+
.dsrc-my-8 { margin-top: var(--dsrc-spacing-8) !important; margin-bottom: var(--dsrc-spacing-8) !important; }
|
|
123
|
+
|
|
124
|
+
/* --------------------------------------------------------------------------
|
|
125
|
+
1.8 Padding - all sides
|
|
126
|
+
-------------------------------------------------------------------------- */
|
|
127
|
+
|
|
128
|
+
.dsrc-p-0 { padding: 0 !important; }
|
|
129
|
+
.dsrc-p-1 { padding: var(--dsrc-spacing-1) !important; }
|
|
130
|
+
.dsrc-p-2 { padding: var(--dsrc-spacing-2) !important; }
|
|
131
|
+
.dsrc-p-3 { padding: var(--dsrc-spacing-3) !important; }
|
|
132
|
+
.dsrc-p-4 { padding: var(--dsrc-spacing-4) !important; }
|
|
133
|
+
.dsrc-p-5 { padding: var(--dsrc-spacing-5) !important; }
|
|
134
|
+
.dsrc-p-6 { padding: var(--dsrc-spacing-6) !important; }
|
|
135
|
+
.dsrc-p-7 { padding: var(--dsrc-spacing-7) !important; }
|
|
136
|
+
.dsrc-p-8 { padding: var(--dsrc-spacing-8) !important; }
|
|
137
|
+
|
|
138
|
+
/* --------------------------------------------------------------------------
|
|
139
|
+
1.9 Padding - top
|
|
140
|
+
-------------------------------------------------------------------------- */
|
|
141
|
+
|
|
142
|
+
.dsrc-pt-0 { padding-top: 0 !important; }
|
|
143
|
+
.dsrc-pt-1 { padding-top: var(--dsrc-spacing-1) !important; }
|
|
144
|
+
.dsrc-pt-2 { padding-top: var(--dsrc-spacing-2) !important; }
|
|
145
|
+
.dsrc-pt-3 { padding-top: var(--dsrc-spacing-3) !important; }
|
|
146
|
+
.dsrc-pt-4 { padding-top: var(--dsrc-spacing-4) !important; }
|
|
147
|
+
.dsrc-pt-5 { padding-top: var(--dsrc-spacing-5) !important; }
|
|
148
|
+
.dsrc-pt-6 { padding-top: var(--dsrc-spacing-6) !important; }
|
|
149
|
+
.dsrc-pt-7 { padding-top: var(--dsrc-spacing-7) !important; }
|
|
150
|
+
.dsrc-pt-8 { padding-top: var(--dsrc-spacing-8) !important; }
|
|
151
|
+
|
|
152
|
+
/* --------------------------------------------------------------------------
|
|
153
|
+
1.10 Padding - right
|
|
154
|
+
-------------------------------------------------------------------------- */
|
|
155
|
+
|
|
156
|
+
.dsrc-pr-0 { padding-right: 0 !important; }
|
|
157
|
+
.dsrc-pr-1 { padding-right: var(--dsrc-spacing-1) !important; }
|
|
158
|
+
.dsrc-pr-2 { padding-right: var(--dsrc-spacing-2) !important; }
|
|
159
|
+
.dsrc-pr-3 { padding-right: var(--dsrc-spacing-3) !important; }
|
|
160
|
+
.dsrc-pr-4 { padding-right: var(--dsrc-spacing-4) !important; }
|
|
161
|
+
.dsrc-pr-5 { padding-right: var(--dsrc-spacing-5) !important; }
|
|
162
|
+
.dsrc-pr-6 { padding-right: var(--dsrc-spacing-6) !important; }
|
|
163
|
+
.dsrc-pr-7 { padding-right: var(--dsrc-spacing-7) !important; }
|
|
164
|
+
.dsrc-pr-8 { padding-right: var(--dsrc-spacing-8) !important; }
|
|
165
|
+
|
|
166
|
+
/* --------------------------------------------------------------------------
|
|
167
|
+
1.11 Padding - bottom
|
|
168
|
+
-------------------------------------------------------------------------- */
|
|
169
|
+
|
|
170
|
+
.dsrc-pb-0 { padding-bottom: 0 !important; }
|
|
171
|
+
.dsrc-pb-1 { padding-bottom: var(--dsrc-spacing-1) !important; }
|
|
172
|
+
.dsrc-pb-2 { padding-bottom: var(--dsrc-spacing-2) !important; }
|
|
173
|
+
.dsrc-pb-3 { padding-bottom: var(--dsrc-spacing-3) !important; }
|
|
174
|
+
.dsrc-pb-4 { padding-bottom: var(--dsrc-spacing-4) !important; }
|
|
175
|
+
.dsrc-pb-5 { padding-bottom: var(--dsrc-spacing-5) !important; }
|
|
176
|
+
.dsrc-pb-6 { padding-bottom: var(--dsrc-spacing-6) !important; }
|
|
177
|
+
.dsrc-pb-7 { padding-bottom: var(--dsrc-spacing-7) !important; }
|
|
178
|
+
.dsrc-pb-8 { padding-bottom: var(--dsrc-spacing-8) !important; }
|
|
179
|
+
|
|
180
|
+
/* --------------------------------------------------------------------------
|
|
181
|
+
1.12 Padding - left
|
|
182
|
+
-------------------------------------------------------------------------- */
|
|
183
|
+
|
|
184
|
+
.dsrc-pl-0 { padding-left: 0 !important; }
|
|
185
|
+
.dsrc-pl-1 { padding-left: var(--dsrc-spacing-1) !important; }
|
|
186
|
+
.dsrc-pl-2 { padding-left: var(--dsrc-spacing-2) !important; }
|
|
187
|
+
.dsrc-pl-3 { padding-left: var(--dsrc-spacing-3) !important; }
|
|
188
|
+
.dsrc-pl-4 { padding-left: var(--dsrc-spacing-4) !important; }
|
|
189
|
+
.dsrc-pl-5 { padding-left: var(--dsrc-spacing-5) !important; }
|
|
190
|
+
.dsrc-pl-6 { padding-left: var(--dsrc-spacing-6) !important; }
|
|
191
|
+
.dsrc-pl-7 { padding-left: var(--dsrc-spacing-7) !important; }
|
|
192
|
+
.dsrc-pl-8 { padding-left: var(--dsrc-spacing-8) !important; }
|
|
193
|
+
|
|
194
|
+
/* --------------------------------------------------------------------------
|
|
195
|
+
1.13 Padding - horizontal (left + right)
|
|
196
|
+
-------------------------------------------------------------------------- */
|
|
197
|
+
|
|
198
|
+
.dsrc-px-0 { padding-right: 0 !important; padding-left: 0 !important; }
|
|
199
|
+
.dsrc-px-1 { padding-right: var(--dsrc-spacing-1) !important; padding-left: var(--dsrc-spacing-1) !important; }
|
|
200
|
+
.dsrc-px-2 { padding-right: var(--dsrc-spacing-2) !important; padding-left: var(--dsrc-spacing-2) !important; }
|
|
201
|
+
.dsrc-px-3 { padding-right: var(--dsrc-spacing-3) !important; padding-left: var(--dsrc-spacing-3) !important; }
|
|
202
|
+
.dsrc-px-4 { padding-right: var(--dsrc-spacing-4) !important; padding-left: var(--dsrc-spacing-4) !important; }
|
|
203
|
+
.dsrc-px-5 { padding-right: var(--dsrc-spacing-5) !important; padding-left: var(--dsrc-spacing-5) !important; }
|
|
204
|
+
.dsrc-px-6 { padding-right: var(--dsrc-spacing-6) !important; padding-left: var(--dsrc-spacing-6) !important; }
|
|
205
|
+
.dsrc-px-7 { padding-right: var(--dsrc-spacing-7) !important; padding-left: var(--dsrc-spacing-7) !important; }
|
|
206
|
+
.dsrc-px-8 { padding-right: var(--dsrc-spacing-8) !important; padding-left: var(--dsrc-spacing-8) !important; }
|
|
207
|
+
|
|
208
|
+
/* --------------------------------------------------------------------------
|
|
209
|
+
1.14 Padding - vertical (top + bottom)
|
|
210
|
+
-------------------------------------------------------------------------- */
|
|
211
|
+
|
|
212
|
+
.dsrc-py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
|
|
213
|
+
.dsrc-py-1 { padding-top: var(--dsrc-spacing-1) !important; padding-bottom: var(--dsrc-spacing-1) !important; }
|
|
214
|
+
.dsrc-py-2 { padding-top: var(--dsrc-spacing-2) !important; padding-bottom: var(--dsrc-spacing-2) !important; }
|
|
215
|
+
.dsrc-py-3 { padding-top: var(--dsrc-spacing-3) !important; padding-bottom: var(--dsrc-spacing-3) !important; }
|
|
216
|
+
.dsrc-py-4 { padding-top: var(--dsrc-spacing-4) !important; padding-bottom: var(--dsrc-spacing-4) !important; }
|
|
217
|
+
.dsrc-py-5 { padding-top: var(--dsrc-spacing-5) !important; padding-bottom: var(--dsrc-spacing-5) !important; }
|
|
218
|
+
.dsrc-py-6 { padding-top: var(--dsrc-spacing-6) !important; padding-bottom: var(--dsrc-spacing-6) !important; }
|
|
219
|
+
.dsrc-py-7 { padding-top: var(--dsrc-spacing-7) !important; padding-bottom: var(--dsrc-spacing-7) !important; }
|
|
220
|
+
.dsrc-py-8 { padding-top: var(--dsrc-spacing-8) !important; padding-bottom: var(--dsrc-spacing-8) !important; }
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
/* ==========================================================================
|
|
224
|
+
2. TEXT UTILITIES
|
|
225
|
+
Alignment, weight, size, and transform.
|
|
226
|
+
========================================================================== */
|
|
227
|
+
|
|
228
|
+
/* --------------------------------------------------------------------------
|
|
229
|
+
2.1 Text alignment
|
|
230
|
+
-------------------------------------------------------------------------- */
|
|
231
|
+
|
|
232
|
+
.dsrc-text-left { text-align: left !important; }
|
|
233
|
+
.dsrc-text-center { text-align: center !important; }
|
|
234
|
+
.dsrc-text-right { text-align: right !important; }
|
|
235
|
+
|
|
236
|
+
/* --------------------------------------------------------------------------
|
|
237
|
+
2.2 Font weight
|
|
238
|
+
-------------------------------------------------------------------------- */
|
|
239
|
+
|
|
240
|
+
.dsrc-text-bold { font-weight: var(--dsrc-font-weight-bold) !important; }
|
|
241
|
+
.dsrc-text-semibold { font-weight: var(--dsrc-font-weight-semibold) !important; }
|
|
242
|
+
.dsrc-text-medium { font-weight: var(--dsrc-font-weight-medium) !important; }
|
|
243
|
+
.dsrc-text-regular { font-weight: var(--dsrc-font-weight-regular) !important; }
|
|
244
|
+
|
|
245
|
+
/* --------------------------------------------------------------------------
|
|
246
|
+
2.3 Font size
|
|
247
|
+
-------------------------------------------------------------------------- */
|
|
248
|
+
|
|
249
|
+
.dsrc-text-sm { font-size: var(--dsrc-font-size-small) !important; }
|
|
250
|
+
.dsrc-text-body { font-size: var(--dsrc-font-size-body) !important; }
|
|
251
|
+
.dsrc-text-lg { font-size: var(--dsrc-font-size-h4) !important; }
|
|
252
|
+
.dsrc-text-xl { font-size: var(--dsrc-font-size-h3) !important; }
|
|
253
|
+
|
|
254
|
+
/* --------------------------------------------------------------------------
|
|
255
|
+
2.4 Text transform and style
|
|
256
|
+
-------------------------------------------------------------------------- */
|
|
257
|
+
|
|
258
|
+
.dsrc-text-uppercase { text-transform: uppercase !important; letter-spacing: var(--dsrc-font-letter-spacing-caps) !important; }
|
|
259
|
+
.dsrc-text-italic { font-style: italic !important; }
|
|
260
|
+
|
|
261
|
+
.dsrc-text-truncate {
|
|
262
|
+
overflow: hidden !important;
|
|
263
|
+
text-overflow: ellipsis !important;
|
|
264
|
+
white-space: nowrap !important;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
/* ==========================================================================
|
|
269
|
+
3. DISPLAY UTILITIES
|
|
270
|
+
Base display classes and responsive variants.
|
|
271
|
+
========================================================================== */
|
|
272
|
+
|
|
273
|
+
/* --------------------------------------------------------------------------
|
|
274
|
+
3.1 Base display
|
|
275
|
+
-------------------------------------------------------------------------- */
|
|
276
|
+
|
|
277
|
+
.dsrc-d-none { display: none !important; }
|
|
278
|
+
.dsrc-d-block { display: block !important; }
|
|
279
|
+
.dsrc-d-inline { display: inline !important; }
|
|
280
|
+
.dsrc-d-inline-block { display: inline-block !important; }
|
|
281
|
+
.dsrc-d-flex { display: flex !important; }
|
|
282
|
+
.dsrc-d-grid { display: grid !important; }
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
/* ==========================================================================
|
|
286
|
+
4. FLEX UTILITIES
|
|
287
|
+
Direction, wrap, alignment, and gap.
|
|
288
|
+
========================================================================== */
|
|
289
|
+
|
|
290
|
+
/* --------------------------------------------------------------------------
|
|
291
|
+
4.1 Flex direction
|
|
292
|
+
-------------------------------------------------------------------------- */
|
|
293
|
+
|
|
294
|
+
.dsrc-flex-row { flex-direction: row !important; }
|
|
295
|
+
.dsrc-flex-col { flex-direction: column !important; }
|
|
296
|
+
|
|
297
|
+
/* --------------------------------------------------------------------------
|
|
298
|
+
4.2 Flex wrap
|
|
299
|
+
-------------------------------------------------------------------------- */
|
|
300
|
+
|
|
301
|
+
.dsrc-flex-wrap { flex-wrap: wrap !important; }
|
|
302
|
+
|
|
303
|
+
/* --------------------------------------------------------------------------
|
|
304
|
+
4.3 Justify content
|
|
305
|
+
-------------------------------------------------------------------------- */
|
|
306
|
+
|
|
307
|
+
.dsrc-justify-start { justify-content: flex-start !important; }
|
|
308
|
+
.dsrc-justify-center { justify-content: center !important; }
|
|
309
|
+
.dsrc-justify-end { justify-content: flex-end !important; }
|
|
310
|
+
.dsrc-justify-between { justify-content: space-between !important; }
|
|
311
|
+
|
|
312
|
+
/* --------------------------------------------------------------------------
|
|
313
|
+
4.4 Align items
|
|
314
|
+
-------------------------------------------------------------------------- */
|
|
315
|
+
|
|
316
|
+
.dsrc-items-start { align-items: flex-start !important; }
|
|
317
|
+
.dsrc-items-center { align-items: center !important; }
|
|
318
|
+
.dsrc-items-end { align-items: flex-end !important; }
|
|
319
|
+
.dsrc-items-stretch { align-items: stretch !important; }
|
|
320
|
+
|
|
321
|
+
/* --------------------------------------------------------------------------
|
|
322
|
+
4.5 Gap
|
|
323
|
+
-------------------------------------------------------------------------- */
|
|
324
|
+
|
|
325
|
+
.dsrc-gap-1 { gap: var(--dsrc-spacing-1) !important; }
|
|
326
|
+
.dsrc-gap-2 { gap: var(--dsrc-spacing-2) !important; }
|
|
327
|
+
.dsrc-gap-3 { gap: var(--dsrc-spacing-3) !important; }
|
|
328
|
+
.dsrc-gap-4 { gap: var(--dsrc-spacing-4) !important; }
|
|
329
|
+
.dsrc-gap-5 { gap: var(--dsrc-spacing-5) !important; }
|
|
330
|
+
.dsrc-gap-6 { gap: var(--dsrc-spacing-6) !important; }
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
/* ==========================================================================
|
|
334
|
+
5. COLOR UTILITIES
|
|
335
|
+
Background and text color using design tokens.
|
|
336
|
+
========================================================================== */
|
|
337
|
+
|
|
338
|
+
/* --------------------------------------------------------------------------
|
|
339
|
+
5.1 Background color
|
|
340
|
+
-------------------------------------------------------------------------- */
|
|
341
|
+
|
|
342
|
+
.dsrc-bg-primaire { background-color: var(--dsrc-color-primaire) !important; }
|
|
343
|
+
.dsrc-bg-blanc { background-color: var(--dsrc-color-blanc) !important; }
|
|
344
|
+
.dsrc-bg-gris-50 { background-color: var(--dsrc-color-gris-50) !important; }
|
|
345
|
+
.dsrc-bg-gris-100 { background-color: var(--dsrc-color-gris-100) !important; }
|
|
346
|
+
|
|
347
|
+
/* --------------------------------------------------------------------------
|
|
348
|
+
5.2 Text color
|
|
349
|
+
-------------------------------------------------------------------------- */
|
|
350
|
+
|
|
351
|
+
.dsrc-text-primaire { color: var(--dsrc-color-primaire) !important; }
|
|
352
|
+
.dsrc-text-noir { color: var(--dsrc-color-noir) !important; }
|
|
353
|
+
.dsrc-text-gris-600 { color: var(--dsrc-color-gris-600) !important; }
|
|
354
|
+
.dsrc-text-blanc { color: var(--dsrc-color-blanc) !important; }
|
|
355
|
+
.dsrc-text-erreur { color: var(--dsrc-color-erreur-texte) !important; }
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
/* ==========================================================================
|
|
359
|
+
6. BORDER UTILITIES
|
|
360
|
+
Borders, border removal, and border radius.
|
|
361
|
+
========================================================================== */
|
|
362
|
+
|
|
363
|
+
/* --------------------------------------------------------------------------
|
|
364
|
+
6.1 Borders
|
|
365
|
+
-------------------------------------------------------------------------- */
|
|
366
|
+
|
|
367
|
+
.dsrc-border { border: var(--dsrc-border-width-thin) solid var(--dsrc-color-gris-200) !important; }
|
|
368
|
+
.dsrc-border-top { border-top: var(--dsrc-border-width-thin) solid var(--dsrc-color-gris-200) !important; }
|
|
369
|
+
.dsrc-border-bottom { border-bottom: var(--dsrc-border-width-thin) solid var(--dsrc-color-gris-200) !important; }
|
|
370
|
+
.dsrc-border-none { border: 0 !important; }
|
|
371
|
+
|
|
372
|
+
/* --------------------------------------------------------------------------
|
|
373
|
+
6.2 Border radius
|
|
374
|
+
-------------------------------------------------------------------------- */
|
|
375
|
+
|
|
376
|
+
.dsrc-rounded { border-radius: var(--dsrc-radius-default) !important; }
|
|
377
|
+
.dsrc-rounded-lg { border-radius: var(--dsrc-radius-large) !important; }
|
|
378
|
+
.dsrc-rounded-none { border-radius: var(--dsrc-radius-none) !important; }
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
/* ==========================================================================
|
|
382
|
+
7. VISIBILITY / ACCESSIBILITY
|
|
383
|
+
Screen-reader-only content and visibility toggles.
|
|
384
|
+
========================================================================== */
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* .dsrc-sr-only
|
|
388
|
+
* Visually hides an element while keeping it accessible to screen readers.
|
|
389
|
+
* Follows the recommended WCAG / DSFR approach.
|
|
390
|
+
*/
|
|
391
|
+
.dsrc-sr-only {
|
|
392
|
+
position: absolute !important;
|
|
393
|
+
width: 1px !important;
|
|
394
|
+
height: 1px !important;
|
|
395
|
+
padding: 0 !important;
|
|
396
|
+
margin: -1px !important;
|
|
397
|
+
overflow: hidden !important;
|
|
398
|
+
clip: rect(0, 0, 0, 0) !important;
|
|
399
|
+
white-space: nowrap !important;
|
|
400
|
+
border: 0 !important;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.dsrc-visible { visibility: visible !important; }
|
|
404
|
+
.dsrc-invisible { visibility: hidden !important; }
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
/* ==========================================================================
|
|
408
|
+
8. RESPONSIVE DISPLAY UTILITIES
|
|
409
|
+
Breakpoints: md >= 768px, lg >= 1024px
|
|
410
|
+
========================================================================== */
|
|
411
|
+
|
|
412
|
+
/* --------------------------------------------------------------------------
|
|
413
|
+
8.1 md breakpoint (>= 768px)
|
|
414
|
+
-------------------------------------------------------------------------- */
|
|
415
|
+
|
|
416
|
+
@media (min-width: 768px) {
|
|
417
|
+
.dsrc-d-md-none { display: none !important; }
|
|
418
|
+
.dsrc-d-md-block { display: block !important; }
|
|
419
|
+
.dsrc-d-md-flex { display: flex !important; }
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/* --------------------------------------------------------------------------
|
|
423
|
+
8.2 lg breakpoint (>= 1024px)
|
|
424
|
+
-------------------------------------------------------------------------- */
|
|
425
|
+
|
|
426
|
+
@media (min-width: 1024px) {
|
|
427
|
+
.dsrc-d-lg-none { display: none !important; }
|
|
428
|
+
.dsrc-d-lg-block { display: block !important; }
|
|
429
|
+
.dsrc-d-lg-flex { display: flex !important; }
|
|
430
|
+
}
|