epfl-elements 5.5.0 → 5.6.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.
@@ -776,7 +776,8 @@ $alert-padding-y: 0.4rem !default;
776
776
  $alert-padding-x: 0.6rem !default;
777
777
  $alert-margin-bottom: 1rem !default;
778
778
  $alert-border-radius: 0 !default;
779
- $alert-link-font-weight: $font-weight-bold !default;
779
+ $alert-link-text-decoration: underline;
780
+ $alert-link-font-weight: $font-weight-normal !default;
780
781
  $alert-border-width: $border-width !default;
781
782
 
782
783
  $alert-bg-level: -10 !default;
@@ -2,15 +2,15 @@
2
2
 
3
3
  {% include "@atoms/alert/alert.twig" with {
4
4
  type: "info",
5
- content: "<strong>Information.</strong> Événement non critique, du type « le site sera en maintenance cette nuit de 02:00 à 03:00 »."
5
+ content: "<strong>Information.</strong> Événement non critique, du type «le site sera en maintenance cette nuit de 02:00 à 03:00»."
6
6
  } %}
7
7
 
8
8
  {% include "@atoms/alert/alert.twig" with {
9
9
  type: "warning",
10
- content: "<strong>Warning...</strong> Merci de bien tenir compte de cette information : fermeture des portes à 19:30."
10
+ content: "<strong>Warning...</strong> Merci de bien tenir compte de cette information: <a class='alert-link' href='#'>fermeture des portes à 19:30</a>."
11
11
  } %}
12
12
 
13
13
  {% include "@atoms/alert/alert.twig" with {
14
14
  type: "danger",
15
- content: "<strong>Danger !</strong> On nous signale une indisponibilité de café sur tout le campus. Les autorités compétentes sont sur le coup."
15
+ content: "<strong>Danger!</strong> On nous signale une indisponibilité de café sur <a class='alert-link' href='#'>tout le campus</a>. Les autorités compétentes sont sur le coup."
16
16
  } %}
@@ -0,0 +1,3 @@
1
+ <div class="alert alert-{{ type ?: 'success' }} " role="alert">
2
+ {{ content|default('<strong>Yay!</strong> Cette barre vous confirme un succès dans l’accomplissement d’une tâche, comme l’envoi d’un formulaire par exemple.') }}
3
+ </div>
@@ -11,3 +11,10 @@ variants:
11
11
  * `alert-info` — used to display an interesting yet non-critical information.
12
12
  * `alert-warning` — used for unexpected events, that people must pay attention.
13
13
  * `alert-danger` — used for critical information: an error or the unavailability of a service.
14
+
15
+ - name: unclosable
16
+ title: Unclosable Alert
17
+ notes: |
18
+ This variant cannot be closed by the user.
19
+
20
+ It can be combined with the variants of the alert component `alert-success`, `alert-info`, `alert-warning` and `alert-danger`.
@@ -17,7 +17,7 @@
17
17
  </li>
18
18
  <li>
19
19
  <a href="#" aria-label="русский" class="dropdown-item">
20
- <span>RU</span>
20
+ <span>RU</span> {% include '@atoms/icon/icon.twig' with {icon: 'icon-translate'} %}
21
21
  </a>
22
22
  </li>
23
23
  <li>
@@ -4074,7 +4074,7 @@ a.badge-tertiary:focus, a.badge-tertiary.focus {
4074
4074
  }
4075
4075
 
4076
4076
  .alert-link {
4077
- font-weight: 700;
4077
+ font-weight: 400;
4078
4078
  }
4079
4079
 
4080
4080
  .alert-dismissible {
@@ -11121,7 +11121,12 @@ button.tag.tag-plain:focus .remove {
11121
11121
  border-top-color: #e60000;
11122
11122
  }
11123
11123
  .alert-primary .alert-link {
11124
- color: #cc0000;
11124
+ color: #212121;
11125
+ text-decoration-color: #ff0000;
11126
+ }
11127
+ .alert-primary .alert-link:hover, .alert-primary .alert-link:focus, .alert-primary .alert-link:active, .alert-primary .alert-link:visited {
11128
+ color: #ff0000;
11129
+ text-decoration-color: #212121;
11125
11130
  }
11126
11131
 
11127
11132
  .alert-secondary {
@@ -11131,7 +11136,12 @@ button.tag.tag-plain:focus .remove {
11131
11136
  border-top-color: #f2f2f2;
11132
11137
  }
11133
11138
  .alert-secondary .alert-link {
11134
- color: #e6e6e6;
11139
+ color: #212121;
11140
+ text-decoration-color: #fff;
11141
+ }
11142
+ .alert-secondary .alert-link:hover, .alert-secondary .alert-link:focus, .alert-secondary .alert-link:active, .alert-secondary .alert-link:visited {
11143
+ color: #fff;
11144
+ text-decoration-color: #212121;
11135
11145
  }
11136
11146
 
11137
11147
  .alert-success {
@@ -11141,7 +11151,12 @@ button.tag.tag-plain:focus .remove {
11141
11151
  border-top-color: #71bd1e;
11142
11152
  }
11143
11153
  .alert-success .alert-link {
11144
- color: #64a71a;
11154
+ color: #212121;
11155
+ text-decoration-color: #7ed321;
11156
+ }
11157
+ .alert-success .alert-link:hover, .alert-success .alert-link:focus, .alert-success .alert-link:active, .alert-success .alert-link:visited {
11158
+ color: #7ed321;
11159
+ text-decoration-color: #212121;
11145
11160
  }
11146
11161
 
11147
11162
  .alert-info {
@@ -11151,7 +11166,12 @@ button.tag.tag-plain:focus .remove {
11151
11166
  border-top-color: #3483de;
11152
11167
  }
11153
11168
  .alert-info .alert-link {
11154
- color: #2275d7;
11169
+ color: #212121;
11170
+ text-decoration-color: #4a90e2;
11171
+ }
11172
+ .alert-info .alert-link:hover, .alert-info .alert-link:focus, .alert-info .alert-link:active, .alert-info .alert-link:visited {
11173
+ color: #4a90e2;
11174
+ text-decoration-color: #212121;
11155
11175
  }
11156
11176
 
11157
11177
  .alert-warning {
@@ -11161,7 +11181,12 @@ button.tag.tag-plain:focus .remove {
11161
11181
  border-top-color: #f39c0b;
11162
11182
  }
11163
11183
  .alert-warning .alert-link {
11164
- color: #db8c0a;
11184
+ color: #212121;
11185
+ text-decoration-color: #f5a623;
11186
+ }
11187
+ .alert-warning .alert-link:hover, .alert-warning .alert-link:focus, .alert-warning .alert-link:active, .alert-warning .alert-link:visited {
11188
+ color: #f5a623;
11189
+ text-decoration-color: #212121;
11165
11190
  }
11166
11191
 
11167
11192
  .alert-danger {
@@ -11171,7 +11196,12 @@ button.tag.tag-plain:focus .remove {
11171
11196
  border-top-color: #e60000;
11172
11197
  }
11173
11198
  .alert-danger .alert-link {
11174
- color: #cc0000;
11199
+ color: #212121;
11200
+ text-decoration-color: #ff0000;
11201
+ }
11202
+ .alert-danger .alert-link:hover, .alert-danger .alert-link:focus, .alert-danger .alert-link:active, .alert-danger .alert-link:visited {
11203
+ color: #ff0000;
11204
+ text-decoration-color: #212121;
11175
11205
  }
11176
11206
 
11177
11207
  .alert-light {
@@ -11181,7 +11211,12 @@ button.tag.tag-plain:focus .remove {
11181
11211
  border-top-color: #d9d9d9;
11182
11212
  }
11183
11213
  .alert-light .alert-link {
11184
- color: #cdcdcd;
11214
+ color: #212121;
11215
+ text-decoration-color: #e6e6e6;
11216
+ }
11217
+ .alert-light .alert-link:hover, .alert-light .alert-link:focus, .alert-light .alert-link:active, .alert-light .alert-link:visited {
11218
+ color: #e6e6e6;
11219
+ text-decoration-color: #212121;
11185
11220
  }
11186
11221
 
11187
11222
  .alert-dark {
@@ -11191,7 +11226,12 @@ button.tag.tag-plain:focus .remove {
11191
11226
  border-top-color: #141414;
11192
11227
  }
11193
11228
  .alert-dark .alert-link {
11194
- color: #080808;
11229
+ color: #212121;
11230
+ text-decoration-color: #212121;
11231
+ }
11232
+ .alert-dark .alert-link:hover, .alert-dark .alert-link:focus, .alert-dark .alert-link:active, .alert-dark .alert-link:visited {
11233
+ color: #212121;
11234
+ text-decoration-color: #212121;
11195
11235
  }
11196
11236
 
11197
11237
  .alert-tertiary {
@@ -11201,7 +11241,12 @@ button.tag.tag-plain:focus .remove {
11201
11241
  border-top-color: #005d67;
11202
11242
  }
11203
11243
  .alert-tertiary .alert-link {
11204
- color: #00464d;
11244
+ color: #212121;
11245
+ text-decoration-color: #007480;
11246
+ }
11247
+ .alert-tertiary .alert-link:hover, .alert-tertiary .alert-link:focus, .alert-tertiary .alert-link:active, .alert-tertiary .alert-link:visited {
11248
+ color: #007480;
11249
+ text-decoration-color: #212121;
11205
11250
  }
11206
11251
 
11207
11252
  .alert-success:before {
@@ -11902,9 +11947,6 @@ header.collapse-title + .collapse-item:before {
11902
11947
  height: 2.5rem;
11903
11948
  padding: 0.5rem 1.5rem 0.5rem 0.625rem;
11904
11949
  }
11905
- .nav-lang .icon {
11906
- display: none;
11907
- }
11908
11950
  }
11909
11951
  .nav-toggle-mobile {
11910
11952
  display: flex;