epfl-elements 5.0.0 → 5.0.2

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.
Files changed (36) hide show
  1. package/dist/components/atoms/select/select-multiple.twig +2 -2
  2. package/dist/components/atoms/select/select.twig +1 -1
  3. package/dist/components/atoms/select/select.yml +1 -1
  4. package/dist/components/content-types/press-review/press-review.twig +1 -1
  5. package/dist/components/molecules/card/card-inside-links.twig +3 -3
  6. package/dist/components/molecules/card-deck/card-deck.yml +1 -1
  7. package/dist/components/molecules/filters/filters-blog.twig +5 -25
  8. package/dist/components/molecules/form-group/form-group-checkboxes.twig +1 -1
  9. package/dist/components/molecules/form-group/form-group-error.twig +1 -1
  10. package/dist/components/molecules/form-group/form-group-radio.twig +1 -1
  11. package/dist/components/molecules/form-group/form-group-search.twig +2 -2
  12. package/dist/components/molecules/form-group/form-group-textarea.twig +1 -1
  13. package/dist/components/molecules/form-group/form-group-upload.twig +1 -1
  14. package/dist/components/molecules/form-group/form-group.twig +1 -1
  15. package/dist/components/molecules/social/social-follow.twig +8 -10
  16. package/dist/components/pages/press-review/press-review.twig +73 -0
  17. package/dist/components/pages/press-review/press-review.yml +2 -0
  18. package/dist/css/elements.css +12 -8
  19. package/dist/css/elements.min.css +1 -1
  20. package/dist/css/elements.min.css.map +1 -1
  21. package/dist/css/reader.min.css +1 -1
  22. package/dist/css/reader.min.css.map +1 -1
  23. package/dist/css/vendors.min.css +2 -2
  24. package/dist/docs/design/typography.html +1 -1
  25. package/dist/index.html +0 -1
  26. package/dist/js/elements.js +252 -3340
  27. package/dist/js/elements.min.js +1 -1
  28. package/dist/js/elements.min.js.map +1 -1
  29. package/dist/js/reader.js +2884 -7512
  30. package/dist/js/reader.min.js +54 -1
  31. package/dist/js/reader.min.js.map +1 -1
  32. package/dist/js/spritemap.js +3 -3
  33. package/dist/js/vendors.js +2901 -2434
  34. package/dist/js/vendors.min.js +1 -1
  35. package/dist/package.json +4 -3
  36. package/package.json +4 -3
@@ -5,8 +5,8 @@
5
5
  <option value="2">The Sage Cattabriga-Alosa hideout</option>
6
6
  <option value="3">Nikola Tesla Drive-in</option>
7
7
  <option value="4">A Love for Pizza 🍕</option>
8
- <option value="5">The Hydron Collider
9
- </option>
8
+ <option data-divider="true"></option>
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
12
  </select>
@@ -1,5 +1,5 @@
1
1
  <div class="form-group">
2
- <label>Choose wisely</label>
2
+ <label>{% if label %} {{~ label}} {% else %}Choose wisely{% endif %}</label>
3
3
  <select id="select-input" class="custom-select">
4
4
  <option selected>Make a choice...</option>
5
5
  <option value="1">Legolas</option>
@@ -6,6 +6,6 @@ variants:
6
6
  notes: |
7
7
  This variation of the select component enables **multiple choices**. Again, keep your list to the smallest. Think of having a “select all/none” item when the list is long.
8
8
  notes: |
9
- The select component is mainly used in **forms**. Use it when people have to **choose options from a list**. The select component doesn't trigger actions: it stores a choice before submission. Don't use it when the number of options is low (2 to 3). Use the [checkboxes](#/atoms/checkbox) or [radio buttons](#/atoms/radio) instead. Pay attention to **long lists**: beyond 7 or 8 options, people struggle to make a educated choice. In any case, keep your list below 15-ish items.
9
+ The select component is mainly used in **forms**. Use it when people have to **choose options from a list**. The select component doesn't trigger actions: it stores a choice before submission. Don't use it when the number of options is low (2 to 3). Use the [checkboxes](#/atoms/checkbox) or [radio buttons](#/atoms/radio) instead. Pay attention to **long lists**: beyond 7 or 8 options, people struggle to make an educated choice. In any case, keep your list below 15-ish items.
10
10
 
11
11
  ### Standard select
@@ -1,4 +1,4 @@
1
- <div class="press-teaser">
1
+ <div class="press-teaser{{ press_classes ? ' ' ~ press_classes }}">
2
2
  <h4 class="mb-4"><time datetime="2018-01-19">19.01.2018</time></h4>
3
3
  {% for i in [1,2,3] %}
4
4
  <button
@@ -10,9 +10,9 @@
10
10
  {% block card_body %}
11
11
  <div class="card-body">
12
12
  {% block content %}
13
- <div class="card-title">
14
- <a href="#" class="h3">{% block title %}Startup Acceleration Workshops{% endblock %}</a>
15
- </div>
13
+ <h3 class="card-title">
14
+ <a href="#">{% block title %}Startup Acceleration Workshops{% endblock %}</a>
15
+ </h3>
16
16
  {% endblock %}
17
17
  </div>
18
18
  {% endblock -%}
@@ -31,6 +31,6 @@ variants:
31
31
  notes: |
32
32
  This component allows you to display multiple cards side by side, in a set of equal width and height. You just have to wrap cards inside of a `.card-deck` component.
33
33
 
34
- Add the `.card-deck-line` class to the container, when you want to display 1 ou 2 cards only, to add a visual touch on desktop helping readability
34
+ Add the `.card-deck-line` class to the container, when you want to display 1 or 2 cards only, to add a visual touch on desktop helping readability
35
35
 
36
36
  Add the `.mini-cards` class to the container to display a row of 6 mini cards.
@@ -14,34 +14,14 @@
14
14
  </button>
15
15
  </div>
16
16
  <div class="collapse collapse-lg-show collapse-drop" id="form-filters">
17
+
17
18
  <form class="p-3 p-lg-0 mt-md-3">
18
19
 
19
- <div class="form-group">
20
- <div class="form-group">
21
- <label>Catégories</label>
22
- <select id="select-input" class="custom-select">
23
- <option selected>Toutes les catégories</option>
24
- <option value="1">Catégorie 1</option>
25
- <option value="2">Catégorie 2</option>
26
- <option value="3">Catégorie 3</option>
27
- <option value="4">The fourth choice</option>
28
- <option value="5">42</option>
29
- </select>
30
- </div>
31
- </div>
20
+ {% include "@molecules/form-group/form-group-search.twig" %}
21
+
22
+ {% include "@molecules/form-group/form-group-select.twig" with {'label': 'Catégories'} %}
32
23
 
33
- <div class="form-group">
34
- <div class="form-group">
35
- <label>Archives</label>
36
- <select id="select-input" class="custom-select">
37
- <option selected>Toutes les années</option>
38
- <option value="2020">2020</option>
39
- <option value="2019">2019</option>
40
- <option value="2018">2018</option>
41
- <option value="2017">2017</option>
42
- </select>
43
- </div>
44
- </div>
24
+ {% include "@molecules/form-group/form-group-select.twig" with {'label': 'Archives'} %}
45
25
 
46
26
  </form>
47
27
  </div>
@@ -1,5 +1,5 @@
1
1
  <div class="form-group">
2
- <label for="custom-check1">Checkboxes (multiple choice)</label>
2
+ <label for="custom-check1">{% if label %} {{~ label}} {% else %}Checkboxes (multiple choice){% endif %}</label>
3
3
 
4
4
  {% for i in [1,2,3] %}
5
5
  {% include "@atoms/checkbox/checkbox.twig" with {
@@ -1,5 +1,5 @@
1
1
  <div class="form-group">
2
- <label for="error-input" class="invalid-label">Input's label</label>
2
+ <label for="error-input" class="invalid-label">{% if label %} {{~ label}} {% else %}Input's label{% endif %}</label>
3
3
  <input
4
4
  type="text"
5
5
  id="error-input"
@@ -1,5 +1,5 @@
1
1
  <div class="form-group">
2
- <label for="custom-radio1">Radio button (single choice)</label>
2
+ <label for="custom-radio1">{% if label %} {{~ label}} {% else %}Radio button (single choice){% endif %}</label>
3
3
 
4
4
  {% for i in [1,2,3] %}
5
5
  {% include "@atoms/radio/radio.twig" with {
@@ -1,5 +1,5 @@
1
1
  <div class="form-group form-group-search">
2
- <label for="search-field" class="sr-only">Search</label>
2
+ <label for="search-field" class="sr-only">{% if label %} {{~ label}} {% else %}Search{% endif %}</label>
3
3
  <p class="search-container icon-right">
4
4
  <input
5
5
  type="search"
@@ -8,6 +8,6 @@
8
8
  placeholder="Keywords..."
9
9
  aria-describedby="search-field-help"
10
10
  >
11
- {% include '@atoms/icon/icon.twig' with { icon: 'icon-search' } %}
11
+ {% include '@atoms/icon/icon.twig' with { icon: 'icon-search' } %}
12
12
  </p>
13
13
  </div>
@@ -1,4 +1,4 @@
1
1
  <div class="form-group">
2
- <label for="awesome-textarea">Text area</label>
2
+ <label for="awesome-textarea">{% if label %} {{~ label}} {% else %}Text area{% endif %}</label>
3
3
  <textarea class="form-control" id="awesome-textarea" rows="3">Multiple lines can be typed here…</textarea>
4
4
  </div>
@@ -1,4 +1,4 @@
1
1
  <div class="form-group">
2
- <label for="upload-input">File upload</label>
2
+ <label for="upload-input">{% if label %} {{~ label}} {% else %}File upload{% endif %}</label>
3
3
  {% include "@atoms/upload/upload.twig" %}
4
4
  </div>
@@ -1,5 +1,5 @@
1
1
  <div class="form-group">
2
- <label for="awesome-input">Input's label</label>
2
+ <label for="awesome-input">{% if label %} {{~ label}} {% else %}Input's label{% endif %}</label>
3
3
  <input
4
4
  type="text"
5
5
  id="awesome-input"
@@ -1,14 +1,12 @@
1
- <div class="bg-gray-100 py-5">
2
- <div class="container">
3
- <div class="social-share-container social-share-light">
4
-
5
- <div class="social-share ">
6
- <p class="social-share-text">
7
- Suivez nous sur <span class="sr-only">les réseaux sociaux</span>
8
- </p>
9
- {% include '@atoms/social-icon/social-icon-link-group.twig' with { discrete: true, social_mastodon: true, social_tiktok: true } %}
10
- </div>
1
+ <div class="row">
2
+ <div class="social-share-container social-share-light">
11
3
 
4
+ <div class="social-share ">
5
+ <p class="social-share-text">
6
+ Suivez nous sur <span class="sr-only">les réseaux sociaux</span>
7
+ </p>
8
+ {% include '@atoms/social-icon/social-icon-link-group.twig' with { discrete: true, social_mastodon: true, social_tiktok: true } %}
12
9
  </div>
10
+
13
11
  </div>
14
12
  </div>
@@ -0,0 +1,73 @@
1
+ {% set isSpecial = true %}
2
+
3
+ {% extends "@templates/base/base.twig" %}
4
+
5
+ {% block header %}
6
+ <header role="banner" class="header header-light">
7
+ <div class="header-light-content">
8
+ <a class="logo" href="#">
9
+ <img src="svg/epfl-logo.svg" alt="Logo EPFL, École polytechnique fédérale de Lausanne" class="img-fluid">
10
+ </a>
11
+ <h1>Revue de presse</h1>
12
+ <ul aria-hidden="true" class="nav-header d-none d-xl-flex">
13
+ <li id="menu-item-{{ loop.index }}" {% if loop.index == 2 %} class="current-menu-item"{% endif %}>
14
+ <a class="nav-item" href="#">S'abonner</a>
15
+ </li>
16
+ </ul>
17
+ {% include '@molecules/search/search-mobile.twig' %}
18
+ {% include '@molecules/search/search.twig' %}
19
+ {% include '@atoms/nav-lang/nav-lang-short.twig' %}
20
+ {% include '@atoms/nav-toggle-mobile/nav-toggle-mobile.twig' %}
21
+ </div>
22
+ </header>
23
+ {% endblock %}
24
+ {% block content %}
25
+
26
+ <div class="container">
27
+ <h1 class="h2 mb-5">Revues de presse</h1>
28
+ </div>
29
+
30
+ <div class="container">
31
+ <div class="row">
32
+ <div class="col-md-5 col-lg-4">
33
+ <aside>
34
+ <div class="mb-5">
35
+ <form method="get">
36
+ <h2 class="h6 mb-2">Rechercher</h2>
37
+ <div class="form-group">
38
+ <input type="text" name="keywords" class="form-control" value="">
39
+ </div>
40
+ <button class="btn btn-primary" type="submit" name="search">Rechercher</button>
41
+ </form>
42
+ </div>
43
+ </aside>
44
+ <div class="mb-5">
45
+ <h2 class="h6">Abonnement</h2>
46
+ <a href="#">
47
+ Recevez la revue de presse par e-mail
48
+ </a>
49
+ </div>
50
+ </div>
51
+ <div class="col-md-7 col-lg-8">
52
+ {% for i in 1..3 %}
53
+ {% include '@content-types/press-review/press-review.twig' with { press_classes: ' mb-5' } %}
54
+ {% endfor %}
55
+ <div class="mt-3">
56
+ {% include '@molecules/pagination/pagination.twig' %}
57
+ </div>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ {% endblock %}
62
+
63
+ {% block footer_container %}
64
+ <div class="bg-gray-100 pt-5">
65
+ <div class="container">
66
+ {% block footer %}
67
+ {% include '@organisms/footer/footer-light.twig' %}
68
+ {% endblock %}
69
+ </div>
70
+ </div>
71
+ {% endblock %}
72
+ </div>
73
+ </div>
@@ -0,0 +1,2 @@
1
+ title: Press review
2
+ name: press-review
@@ -12241,6 +12241,10 @@ picture .img-fluid {
12241
12241
  .ms-drop ul > li.group {
12242
12242
  clear: both;
12243
12243
  }
12244
+ .ms-drop ul > li.option-divider {
12245
+ padding: 0;
12246
+ border-top: 1px solid #c1c1c1;
12247
+ }
12244
12248
  .ms-drop label {
12245
12249
  display: block;
12246
12250
  margin-bottom: 0;
@@ -12821,6 +12825,10 @@ figcaption {
12821
12825
  flex-basis: var(--avatar-size);
12822
12826
  width: 2.5rem;
12823
12827
  width: var(--avatar-size);
12828
+ -o-object-fit: cover;
12829
+ object-fit: cover;
12830
+ height: 2.5rem;
12831
+ height: var(--avatar-size);
12824
12832
  }
12825
12833
  @media (min-width: 576px) {
12826
12834
  .user-dropdown .btn .user-avatar {
@@ -17685,6 +17693,7 @@ a.cc-link {
17685
17693
  padding-bottom: 0.6rem !important;
17686
17694
  }
17687
17695
  .table-like .line .cours .cours-name i {
17696
+ display: block;
17688
17697
  font-weight: normal;
17689
17698
  }
17690
17699
  .table-like .line .cours .cours-code {
@@ -17710,7 +17719,6 @@ a.cc-link {
17710
17719
  color: #707070;
17711
17720
  }
17712
17721
  .table-like .specialisation p {
17713
- display: inline-block;
17714
17722
  font-size: 0.875rem;
17715
17723
  margin-right: 0.6rem;
17716
17724
  }
@@ -17721,22 +17729,18 @@ a.cc-link {
17721
17729
  text-align: left;
17722
17730
  }
17723
17731
  .table-like .specialisation ul.spec li {
17724
- display: inline;
17725
17732
  font-size: 0.875rem;
17726
17733
  margin-bottom: 0;
17727
17734
  }
17728
17735
  .table-like .specialisation ul.spec li:after {
17729
17736
  content: ";";
17730
17737
  }
17738
+ .table-like .specialisation ul.spec li:before {
17739
+ top: 0.38em;
17740
+ }
17731
17741
  .table-like .specialisation ul.spec.list-bullet {
17732
17742
  margin-left: 0;
17733
17743
  }
17734
- .table-like .specialisation ul.spec.list-bullet li {
17735
- display: inline-block;
17736
- }
17737
- .table-like .specialisation ul.spec.list-bullet li:before {
17738
- top: 0.38em;
17739
- }
17740
17744
  .table-like .specialisation ul.spec.list-bullet li:after {
17741
17745
  display: none;
17742
17746
  }