epfl-elements 5.4.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>
@@ -1,6 +1,6 @@
1
1
  <div class="form-group">
2
2
  <label>Pick a restaurant</label>
3
- <select class="select-multiple" multiple="multiple" data-placeholder="Restaurant list">
3
+ <select class="select-multiple" multiple="multiple" data-placeholder="Restaurant list" data-filter="true">
4
4
  <option value="1">Chuck Testa's tavern</option>
5
5
  <option value="2">The Sage Cattabriga-Alosa hideout</option>
6
6
  <option value="3">Nikola Tesla Drive-in</option>
@@ -9,5 +9,10 @@
9
9
  <option value="5">The Hydron Collider</option>
10
10
  <option value="6">There's no place like 127.0.0.1</option>
11
11
  <option value="7">The Shake Shack Space bar</option>
12
+ <optgroup label="EPFL">
13
+ <option value="8">Holy Cow</option>
14
+ <option value="9">Panares Gourmet</option>
15
+ <option value="10">Satellite</option>
16
+ </optgroup>
12
17
  </select>
13
18
  </div>
@@ -17,7 +17,7 @@
17
17
 
18
18
  {% block fullintro %}
19
19
  <div class="tlbx-single-full-intro d-flex justify-content-between">
20
- <h1 class="h3 my-0">Laboratory page (<a href="#/doc/create%20a%20page.md" target="_blank" onclick="window.open('#/doc/create%20a%20page.md')">doc</a>)</h1>
20
+ <h1 class="h3 my-0">Laboratory page (<a href="#/doc/user%20documentation--create%20a%20page.md" target="_blank" onclick="window.open('#/doc/user%20documentation--create%20a%20page.md')">doc</a>)</h1>
21
21
  <button class="btn btn-sm btn-primary" id="tour-start">Start the tour !</button>
22
22
  </div>
23
23
  {% endblock %}
@@ -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 {
@@ -10193,6 +10193,10 @@ table {
10193
10193
  background: #ff0000 !important;
10194
10194
  }
10195
10195
 
10196
+ .introjs-bullets ul li:before {
10197
+ content: none;
10198
+ }
10199
+
10196
10200
  .focused, .btn {
10197
10201
  position: relative;
10198
10202
  }
@@ -11117,7 +11121,12 @@ button.tag.tag-plain:focus .remove {
11117
11121
  border-top-color: #e60000;
11118
11122
  }
11119
11123
  .alert-primary .alert-link {
11120
- 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;
11121
11130
  }
11122
11131
 
11123
11132
  .alert-secondary {
@@ -11127,7 +11136,12 @@ button.tag.tag-plain:focus .remove {
11127
11136
  border-top-color: #f2f2f2;
11128
11137
  }
11129
11138
  .alert-secondary .alert-link {
11130
- 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;
11131
11145
  }
11132
11146
 
11133
11147
  .alert-success {
@@ -11137,7 +11151,12 @@ button.tag.tag-plain:focus .remove {
11137
11151
  border-top-color: #71bd1e;
11138
11152
  }
11139
11153
  .alert-success .alert-link {
11140
- 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;
11141
11160
  }
11142
11161
 
11143
11162
  .alert-info {
@@ -11147,7 +11166,12 @@ button.tag.tag-plain:focus .remove {
11147
11166
  border-top-color: #3483de;
11148
11167
  }
11149
11168
  .alert-info .alert-link {
11150
- 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;
11151
11175
  }
11152
11176
 
11153
11177
  .alert-warning {
@@ -11157,7 +11181,12 @@ button.tag.tag-plain:focus .remove {
11157
11181
  border-top-color: #f39c0b;
11158
11182
  }
11159
11183
  .alert-warning .alert-link {
11160
- 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;
11161
11190
  }
11162
11191
 
11163
11192
  .alert-danger {
@@ -11167,7 +11196,12 @@ button.tag.tag-plain:focus .remove {
11167
11196
  border-top-color: #e60000;
11168
11197
  }
11169
11198
  .alert-danger .alert-link {
11170
- 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;
11171
11205
  }
11172
11206
 
11173
11207
  .alert-light {
@@ -11177,7 +11211,12 @@ button.tag.tag-plain:focus .remove {
11177
11211
  border-top-color: #d9d9d9;
11178
11212
  }
11179
11213
  .alert-light .alert-link {
11180
- 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;
11181
11220
  }
11182
11221
 
11183
11222
  .alert-dark {
@@ -11187,7 +11226,12 @@ button.tag.tag-plain:focus .remove {
11187
11226
  border-top-color: #141414;
11188
11227
  }
11189
11228
  .alert-dark .alert-link {
11190
- 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;
11191
11235
  }
11192
11236
 
11193
11237
  .alert-tertiary {
@@ -11197,7 +11241,12 @@ button.tag.tag-plain:focus .remove {
11197
11241
  border-top-color: #005d67;
11198
11242
  }
11199
11243
  .alert-tertiary .alert-link {
11200
- 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;
11201
11250
  }
11202
11251
 
11203
11252
  .alert-success:before {
@@ -11898,9 +11947,6 @@ header.collapse-title + .collapse-item:before {
11898
11947
  height: 2.5rem;
11899
11948
  padding: 0.5rem 1.5rem 0.5rem 0.625rem;
11900
11949
  }
11901
- .nav-lang .icon {
11902
- display: none;
11903
- }
11904
11950
  }
11905
11951
  .nav-toggle-mobile {
11906
11952
  display: flex;
@@ -12490,6 +12536,35 @@ a.research-icon:hover, a.research-icon:focus {
12490
12536
  height: 25px;
12491
12537
  }
12492
12538
 
12539
+ .ms-search {
12540
+ display: inline-block;
12541
+ position: relative;
12542
+ width: 100%;
12543
+ margin: 0;
12544
+ min-height: 30px;
12545
+ padding: 0.5em 1em;
12546
+ white-space: nowrap;
12547
+ z-index: 10000;
12548
+ box-sizing: border-box;
12549
+ }
12550
+ .ms-search input {
12551
+ width: 100%;
12552
+ height: auto !important;
12553
+ margin: 0;
12554
+ min-height: 28px;
12555
+ padding: 0 5px;
12556
+ outline: 0;
12557
+ border: 1px solid #8e8e8e;
12558
+ border-radius: 2px;
12559
+ box-shadow: none;
12560
+ }
12561
+ .ms-search input:focus, .ms-search input.focus, .ms-search input:focus-visible {
12562
+ border-color: #212121 !important;
12563
+ box-shadow: none !important;
12564
+ outline: 2px solid #707070;
12565
+ outline-offset: 2px;
12566
+ }
12567
+
12493
12568
  .ms-drop {
12494
12569
  display: none;
12495
12570
  position: absolute;
@@ -12537,6 +12612,9 @@ a.research-icon:hover, a.research-icon:focus {
12537
12612
  .ms-drop ul > li.group {
12538
12613
  clear: both;
12539
12614
  }
12615
+ .ms-drop ul > li.group ~ li.option-level-1:not(.hide-radio) > label {
12616
+ padding-left: 3em;
12617
+ }
12540
12618
  .ms-drop ul > li.option-divider {
12541
12619
  padding: 0;
12542
12620
  border-top: 1px solid #c1c1c1;
@@ -12556,13 +12634,17 @@ a.research-icon:hover, a.research-icon:focus {
12556
12634
  .ms-drop label.optgroup {
12557
12635
  font-weight: 700;
12558
12636
  }
12637
+ .ms-drop label.optgroup input[type=checkbox] {
12638
+ margin-right: 0.6em;
12639
+ }
12559
12640
  .ms-drop input[type=checkbox] {
12560
12641
  vertical-align: middle;
12561
- margin-right: 0.5em;
12642
+ margin-right: 0.3em;
12562
12643
  margin-bottom: 0.25em;
12563
12644
  }
12564
12645
  .ms-drop .ms-no-results {
12565
12646
  display: none;
12647
+ padding: 0 1em;
12566
12648
  }
12567
12649
 
12568
12650
  hr {