epfl-elements 4.6.1 → 4.8.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.
Files changed (57) hide show
  1. package/assets/config/bootstrap-variables.scss +2 -1
  2. package/assets/config/colors.json +1 -0
  3. package/dist/components/atoms/link/link-button.twig +2 -0
  4. package/dist/components/atoms/link/link.yml +6 -0
  5. package/dist/components/atoms/picture/picture-news-thumb.twig +11 -0
  6. package/dist/components/content-types/news/news-horizontal-listing-gray.twig +36 -0
  7. package/dist/components/content-types/news/news-horizontal-listing.twig +36 -0
  8. package/dist/components/content-types/news/news.yml +7 -0
  9. package/dist/components/molecules/breadcrumb/breadcrumb-dropdown.twig +69 -0
  10. package/dist/components/molecules/breadcrumb/breadcrumb-tagged.twig +59 -4
  11. package/dist/components/molecules/breadcrumb/breadcrumb.twig +8 -2
  12. package/dist/components/molecules/breadcrumb/breadcrumb.yml +4 -0
  13. package/dist/components/molecules/key-number/key-number-hn-link.twig +23 -0
  14. package/dist/components/molecules/key-number/key-number-hn.twig +23 -0
  15. package/dist/components/molecules/key-number/key-number.yml +4 -0
  16. package/dist/components/molecules/list-group/list-group-teasers.twig +35 -1
  17. package/dist/components/organisms/footer/footer-legal.twig +12 -3
  18. package/dist/components/organisms/key-number-group/key-number-group-hn.twig +7 -0
  19. package/dist/components/organisms/key-number-group/key-number-group.yml +3 -0
  20. package/dist/components/organisms/nav-aside/nav-aside.twig +12 -2
  21. package/dist/components/organisms/nav-aside/nav-aside.yml +4 -0
  22. package/dist/components/organisms/nav-mobile/nav-mobile.twig +24 -0
  23. package/dist/components/organisms/nav-mobile/nav-mobile.yml +5 -0
  24. package/dist/components/pages/about/about.twig +2 -0
  25. package/dist/components/pages/association-list/association-list.twig +2 -0
  26. package/dist/components/pages/blog-single/blog-single.twig +22 -5
  27. package/dist/components/pages/lab-homepage/lab-homepage.twig +6 -2
  28. package/dist/components/pages/news-detail/news-detail.twig +19 -27
  29. package/dist/components/pages/news-homepage/news-homepage.twig +1 -0
  30. package/dist/components/pages/study-plan/study-plan.twig +25 -3
  31. package/dist/components/pages/study-plan-course/study-plan-course.twig +27 -5
  32. package/dist/components/templates/base/base.twig +7 -12
  33. package/dist/css/elements.css +287 -135
  34. package/dist/css/elements.min.css +1 -1
  35. package/dist/css/elements.min.css.map +1 -1
  36. package/dist/css/reader.css +4 -2
  37. package/dist/css/reader.min.css +1 -1
  38. package/dist/css/reader.min.css.map +1 -1
  39. package/dist/icons/icons.svg +1 -1
  40. package/dist/images/icons/icon-teaser-video.svg +1 -0
  41. package/dist/images/styleguide/news-thumbs/news_thumb_02-1080x608.jpg +0 -0
  42. package/dist/images/styleguide/news-thumbs/news_thumb_02-120x68.jpg +0 -0
  43. package/dist/images/styleguide/news-thumbs/news_thumb_02-160x90.jpg +0 -0
  44. package/dist/images/styleguide/news-thumbs/news_thumb_02-190x107.jpg +0 -0
  45. package/dist/images/styleguide/news-thumbs/news_thumb_02-240x135.jpg +0 -0
  46. package/dist/images/styleguide/news-thumbs/news_thumb_02-540x304.jpg +0 -0
  47. package/dist/images/styleguide/news-thumbs/news_thumb_02-80x45.jpg +0 -0
  48. package/dist/images/styleguide/news-thumbs/news_thumb_02-95x53.jpg +0 -0
  49. package/dist/js/elements.js +22 -49
  50. package/dist/js/elements.min.js +1 -1
  51. package/dist/js/elements.min.js.map +1 -1
  52. package/dist/js/reader.js +131 -50
  53. package/dist/js/reader.min.js +1 -1
  54. package/dist/js/reader.min.js.map +1 -1
  55. package/dist/package.json +1 -1
  56. package/package.json +1 -1
  57. /package/dist/images/styleguide/news-thumbs/{news_thumb-120x58.jpg → news_thumb-120x68.jpg} +0 -0
@@ -14,6 +14,7 @@ $white: #fff !default;
14
14
  $gray-100: #e6e6e6 !default;
15
15
  $gray-200: #d5d5d5 !default;
16
16
  $gray-300: #c1c1c1 !default;
17
+ $gray-500: #8e8e8e !default;
17
18
  $gray-600: #707070 !default;
18
19
  $black: #212121 !default;
19
20
 
@@ -383,7 +384,7 @@ $input-bg: $white !default;
383
384
  $input-disabled-bg: $gray-100 !default;
384
385
 
385
386
  $input-color: $black !default;
386
- $input-border-color: $gray-200 !default;
387
+ $input-border-color: $gray-500 !default;
387
388
  $input-border-width: $input-btn-border-width !default;
388
389
  $input-box-shadow: inset 0 1px 1px rgba($black, .075) !default;
389
390
 
@@ -5,6 +5,7 @@
5
5
  "$gray-100": "#e6e6e6",
6
6
  "$gray-200": "#d5d5d5",
7
7
  "$gray-300": "#c1c1c1",
8
+ "$gray-500": "#8e8e8e",
8
9
  "$gray-600": "#707070",
9
10
  "$black": "#212121",
10
11
  "$leman": "#00A79F",
@@ -0,0 +1,2 @@
1
+ <a class="btn btn-primary" href="#">Primary button link</a>
2
+ <a class="btn btn-secondary" href="#">Secondary button link</a>
@@ -25,3 +25,9 @@ variants:
25
25
  - name: login
26
26
  title: Login link
27
27
  notes:
28
+ - name: button
29
+ title: Button link
30
+ notes: |
31
+ Use the classes `btn`, `btn-primary` or `btn-secondary` to create a link with the look of a button.
32
+
33
+ ⚠️ Button links should be used to target a page or section of a page – like a regular link. To trigger an action, use an [HTML button](#/atoms/button).
@@ -1,3 +1,13 @@
1
+ {% if light_image %}
2
+ <picture>
3
+ <source media="(min-width: 1140px)" srcset="./images/styleguide/news-thumbs/news_thumb_02-95x53.jpg 1x, ./images/styleguide/news-thumbs/news_thumb_02-190x107.jpg 2x">
4
+ <source media="(min-width: 960px)" srcset="./images/styleguide/news-thumbs/news_thumb_02-95x53.jpg 1x, ./images/styleguide/news-thumbs/news_thumb_02-190x107.jpg 2x">
5
+ <source media="(min-width: 720px)" srcset="./images/styleguide/news-thumbs/news_thumb_02-80x45.jpg 1x, ./images/styleguide/news-thumbs/news_thumb_02-160x90.jpg 2x">
6
+ <source media="(min-width: 541px)" srcset="./images/styleguide/news-thumbs/news_thumb_02-120x68.jpg 1x, ./images/styleguide/news-thumbs/news_thumb_02-240x135.jpg 2x">
7
+ <source media="(max-width: 540px)" srcset="./images/styleguide/news-thumbs/news_thumb_02-540x304.jpg 1x, ./images/styleguide/news-thumbs/news_thumb_02-1080x608.jpg 2x">
8
+ <img src="./images/styleguide/news-thumbs/news_thumb_02-95x53.jpg" class="img-fluid" alt="ALT">
9
+ </picture>
10
+ {% else %}
1
11
  <picture>
2
12
  <source media="(min-width: 1140px)" srcset="./images/styleguide/news-thumbs/news_thumb-95x53.jpg 1x, ./images/styleguide/news-thumbs/news_thumb-190x107.jpg 2x">
3
13
  <source media="(min-width: 960px)" srcset="./images/styleguide/news-thumbs/news_thumb-95x53.jpg 1x, ./images/styleguide/news-thumbs/news_thumb-190x107.jpg 2x">
@@ -6,3 +16,4 @@
6
16
  <source media="(max-width: 540px)" srcset="./images/styleguide/news-thumbs/news_thumb-540x304.jpg 1x, ./images/styleguide/news-thumbs/news_thumb-1080x608.jpg 2x">
7
17
  <img src="./images/styleguide/news-thumbs/news_thumb-95x53.jpg" class="img-fluid" alt="ALT">
8
18
  </picture>
19
+ {% endif %}
@@ -0,0 +1,36 @@
1
+ <div class="card-slider-wrapper">
2
+ <div class="card-slider">
3
+ {% for i in 1..10 %}
4
+ <div class="card-slider-cell">
5
+ <a href="#" class="card link-trapeze-horizontal">
6
+ <div class="card-body">
7
+ {% include '@atoms/picture/picture.twig' with {'variant':'news-thumb'} %}
8
+ <div itemscope itemtype="http://schema.org/Article">
9
+ <h3 class="card-title h5 mt-3" itemprop="name">Physics: new e-books for the AIAA Education Series</h3>
10
+ <p>
11
+ <time datetime="2018-03-26" itemprop="datePublished"><span class="sr-only">Published:</span>26.03.2018</time>
12
+ <span class="text-muted" itemprop="description">— Lorem ipsum dolor sit amet, consectetur adipiscing elit. Si enim ad populum me vocas, eum. Quid enim me prohiberet
13
+ Epicureum esse, si probarem, quae ille diceret?</span>
14
+ </p>
15
+ </div>
16
+ </div>
17
+ </a>
18
+ </div>
19
+ {% endfor %}
20
+ </div>
21
+
22
+ <div class="card-slider-footer">
23
+ <div>
24
+ <button role="button" id="card-slider-prev" class="card-slider-btn link-trapeze-horizontal disabled">
25
+ <svg class="icon" aria-hidden="true">
26
+ <use xlink:href="#icon-chevron-left"></use>
27
+ </svg>
28
+ </button>
29
+ <button role="button" id="card-slider-next" class="card-slider-btn link-trapeze-horizontal">
30
+ <svg class="icon" aria-hidden="true">
31
+ <use xlink:href="#icon-chevron-right"></use>
32
+ </svg>
33
+ </button>
34
+ </div>
35
+ </div>
36
+ </div>
@@ -0,0 +1,36 @@
1
+ <div class="card-slider-wrapper">
2
+ <div class="card-slider">
3
+ {% for i in 1..10 %}
4
+ <div class="card-slider-cell">
5
+ <a href="#" class="card card-gray link-trapeze-horizontal">
6
+ <div class="card-body">
7
+ {% include '@atoms/picture/picture.twig' with {'variant':'news-thumb'} %}
8
+ <div itemscope itemtype="http://schema.org/Article">
9
+ <h3 class="card-title h5 mt-3" itemprop="name">Physics: new e-books for the AIAA Education Series</h3>
10
+ <p>
11
+ <time datetime="2018-03-26" itemprop="datePublished"><span class="sr-only">Published:</span>26.03.2018</time>
12
+ <span class="text-muted" itemprop="description">— Lorem ipsum dolor sit amet, consectetur adipiscing elit. Si enim ad populum me vocas, eum. Quid enim me prohiberet
13
+ Epicureum esse, si probarem, quae ille diceret?</span>
14
+ </p>
15
+ </div>
16
+ </div>
17
+ </a>
18
+ </div>
19
+ {% endfor %}
20
+ </div>
21
+
22
+ <div class="card-slider-footer">
23
+ <div>
24
+ <button role="button" id="card-slider-prev" class="card-slider-btn link-trapeze-horizontal disabled">
25
+ <svg class="icon" aria-hidden="true">
26
+ <use xlink:href="#icon-chevron-left"></use>
27
+ </svg>
28
+ </button>
29
+ <button role="button" id="card-slider-next" class="card-slider-btn link-trapeze-horizontal">
30
+ <svg class="icon" aria-hidden="true">
31
+ <use xlink:href="#icon-chevron-right"></use>
32
+ </svg>
33
+ </button>
34
+ </div>
35
+ </div>
36
+ </div>
@@ -1,6 +1,13 @@
1
1
  title: News
2
2
  name: news
3
3
  variants:
4
+ - name: horizontal-listing
5
+ title: Horizontal Listing
6
+ notes: Don't forget to wrap your card slider with a wrapper that will hide the overflow (`.overflow-hidden` helper class will achieve just that).
7
+ - name: horizontal-listing-gray
8
+ title: Horizontal Listing with gray background
9
+ notes: Don't forget to wrap your card slider with a wrapper that will hide the overflow (`.overflow-hidden` helper class will achieve just that).
10
+ wrapper: bg-gray-100 py-4 my-4
4
11
  - name: highlighted
5
12
  title: Highlighted
6
13
  - name: highlighted-carousel
@@ -0,0 +1,69 @@
1
+ <nav aria-label="breadcrumb" class="breadcrumb-wrapper">
2
+ <ol class="breadcrumb">
3
+ <li class="breadcrumb-item">
4
+ <a class="bread-link bread-home" href="#">
5
+ {% include '@atoms/icon/icon.twig' with { icon: 'icon-home' } %}
6
+ </a>
7
+ </li>
8
+ <li class="breadcrumb-item expand-links">
9
+ <button class="btn btn-expand-links" aria-expanded="false" title="Display the complete path">
10
+ <span class="dots" aria-hidden="true">…</span>
11
+ <span class="sr-only">Display the complete path</span>
12
+ </button>
13
+ </li>
14
+ <li class="breadcrumb-item">
15
+ <a class="bread-link" href="#">Schools</a>
16
+ <div class="dropdown">
17
+ <button class="btn btn-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-controls="dropdown-menu-1">
18
+ {% include '@atoms/icon/icon.twig' with { icon: 'arrow-down-circle', icon_classes:'feather' } %}
19
+ <span class="sr-only">Display same level pages – Schools</span>
20
+ </button>
21
+ <ul class="dropdown-menu" id="dropdown-menu-1">
22
+ <li class="dropdown-item"><a href="#">About</a></li>
23
+ <li class="dropdown-item"><a href="#">Education</a></li>
24
+ <li class="dropdown-item"><a href="#">Research</a></li>
25
+ <li class="dropdown-item"><a href="#">Innovation</a></li>
26
+ <li class="dropdown-item current-menu-item-parent"><a href="#">Schools</a></li>
27
+ <li class="dropdown-item"><a href="#">Campus</a></li>
28
+ </ul>
29
+ </div>
30
+ </li>
31
+ <li class="breadcrumb-item">
32
+ <a class="bread-link" href="#">School of Architecture, Civil and Environmental Engineering</a>
33
+ <div class="dropdown">
34
+ <button class="btn btn-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-controls="dropdown-menu-2">
35
+ {% include '@atoms/icon/icon.twig' with { icon: 'arrow-down-circle', icon_classes:'feather' } %}
36
+ <span class="sr-only">Display same level pages – School of Architecture, Civil and Environmental Engineering</span>
37
+ </button>
38
+ <ul class="dropdown-menu" id="dropdown-menu-2">
39
+ <li class="dropdown-item current-menu-item-parent"><a href="#">School of Architecture, Civil and Environmental Engineering</a></li>
40
+ <li class="dropdown-item"><a href="#">School of Computer and Communication Sciences</a></li>
41
+ <li class="dropdown-item"><a href="#">School of Basic Sciences</a></li>
42
+ <li class="dropdown-item"><a href="#">School of Engineering</a></li>
43
+ <li class="dropdown-item"><a href="#">School of Life Sciences</a></li>
44
+ <li class="dropdown-item"><a href="#">College of Management of Technology</a></li>
45
+ <li class="dropdown-item"><a href="#">College of Humanities</a></li>
46
+ <li class="dropdown-item"><a href="#">Sections</a></li>
47
+ </ul>
48
+ </div>
49
+ </li>
50
+ <li class="breadcrumb-item">
51
+ <a class="bread-link" href="#">Sustainability challenges</a>
52
+ </li>
53
+ <li class="breadcrumb-item active" aria-current="page">
54
+ <span class="bread-item">FUSTIC association</span>
55
+ <div class="dropdown">
56
+ <button class="btn btn-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-controls="dropdown-menu-3">
57
+ {% include '@atoms/icon/icon.twig' with { icon: 'arrow-down-circle', icon_classes:'feather' } %}
58
+ <span class="sr-only">Display same level pages – FUSTIC association</span>
59
+ </button>
60
+ <ul class="dropdown-menu" id="dropdown-menu-3">
61
+ <li class="dropdown-item"><a href="#">ENAC Clusters</a></li>
62
+ <li class="dropdown-item"><a href="#">Interdisciplinary Centers</a></li>
63
+ <li class="dropdown-item current-menu-item-parent"><a href="#">FUSTIC association</a></li>
64
+ <li class="dropdown-item"><a href="#">Sustainability grants</a></li>
65
+ </ul>
66
+ </div>
67
+ </li>
68
+ </ol>
69
+ </nav>
@@ -10,9 +10,64 @@
10
10
  <a href="#" class="tag tag-primary">Innovation</a>
11
11
  <a href="#" class="tag tag-primary">W3C</a>
12
12
  </li>
13
- <li class="breadcrumb-item"><a href="#">Schools</a></li>
14
- <li class="breadcrumb-item"><a href="#">ENAC</a></li>
15
- <li class="breadcrumb-item"><a href="#">Formations</a></li>
16
- <li class="breadcrumb-item active" aria-current="page">Projets</li>
13
+ <li class="breadcrumb-item expand-links">
14
+ <button class="btn btn-expand-links" aria-expanded="false" title="Display the complete path">
15
+ <span class="dots" aria-hidden="true">…</span>
16
+ <span class="sr-only">Display the complete path</span>
17
+ </button>
18
+ </li>
19
+ <li class="breadcrumb-item">
20
+ <a class="bread-link" href="#">Schools</a>
21
+ <div class="dropdown">
22
+ <button class="btn btn-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-controls="dropdown-menu-1">
23
+ {% include '@atoms/icon/icon.twig' with { icon: 'arrow-down-circle', icon_classes:'feather' } %}
24
+ <span class="sr-only">Display same level pages – Schools</span>
25
+ </button>
26
+ <ul class="dropdown-menu" id="dropdown-menu-1">
27
+ <li class="dropdown-item"><a href="#">About</a></li>
28
+ <li class="dropdown-item"><a href="#">Education</a></li>
29
+ <li class="dropdown-item"><a href="#">Research</a></li>
30
+ <li class="dropdown-item"><a href="#">Innovation</a></li>
31
+ <li class="dropdown-item current-menu-item-parent"><a href="#">Schools</a></li>
32
+ <li class="dropdown-item"><a href="#">Campus</a></li>
33
+ </ul>
34
+ </div>
35
+ </li>
36
+ <li class="breadcrumb-item">
37
+ <a class="bread-link" href="#">School of Architecture, Civil and Environmental Engineering</a>
38
+ <div class="dropdown">
39
+ <button class="btn btn-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-controls="dropdown-menu-2">
40
+ {% include '@atoms/icon/icon.twig' with { icon: 'arrow-down-circle', icon_classes:'feather' } %}
41
+ <span class="sr-only">Display same level pages – School of Architecture, Civil and Environmental Engineering</span>
42
+ </button>
43
+ <ul class="dropdown-menu" id="dropdown-menu-2">
44
+ <li class="dropdown-item current-menu-item-parent"><a href="#">School of Architecture, Civil and Environmental Engineering</a></li>
45
+ <li class="dropdown-item"><a href="#">School of Computer and Communication Sciences</a></li>
46
+ <li class="dropdown-item"><a href="#">School of Basic Sciences</a></li>
47
+ <li class="dropdown-item"><a href="#">School of Engineering</a></li>
48
+ <li class="dropdown-item"><a href="#">School of Life Sciences</a></li>
49
+ <li class="dropdown-item"><a href="#">College of Management of Technology</a></li>
50
+ <li class="dropdown-item"><a href="#">College of Humanities</a></li>
51
+ <li class="dropdown-item"><a href="#">Sections</a></li>
52
+ </ul>
53
+ </div>
54
+ </li>
55
+ <li class="breadcrumb-item active" aria-current="page">
56
+ <span class="bread-item">ENAC Faculty</span>
57
+ <div class="dropdown">
58
+ <button class="btn btn-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-controls="dropdown-menu-3">
59
+ {% include '@atoms/icon/icon.twig' with { icon: 'arrow-down-circle', icon_classes:'feather' } %}
60
+ <span class="sr-only">Display same level pages – ENAC Faculty</span>
61
+ </button>
62
+ <ul class="dropdown-menu" id="dropdown-menu-3">
63
+ <li class="dropdown-item"><a href="#">News</a></li>
64
+ <li class="dropdown-item current-menu-item-parent"><a href="#">ENAC Faculty</a></li>
65
+ <li class="dropdown-item"><a href="#">Education</a></li>
66
+ <li class="dropdown-item"><a href="#">Research</a></li>
67
+ <li class="dropdown-item"><a href="#">Sustainability challenges</a></li>
68
+ <li class="dropdown-item"><a href="#">Intranet ENAC</a></li>
69
+ </ul>
70
+ </div>
71
+ </li>
17
72
  </ol>
18
73
  </nav>
@@ -1,11 +1,17 @@
1
1
  <nav aria-label="breadcrumb" class="breadcrumb-wrapper">
2
2
  <ol class="breadcrumb">
3
3
  <li class="breadcrumb-item">
4
- <a href="#">
4
+ <a class="bread-link bread-home" href="#">
5
5
  {% include '@atoms/icon/icon.twig' with { icon: 'icon-home' } %}
6
6
  </a>
7
7
  </li>
8
- <li class="breadcrumb-item"><a href="#">Schools</a></li>
8
+ <li class="breadcrumb-item expand-links">
9
+ <button class="btn btn-expand-links" aria-expanded="false" title="Display the complete path">
10
+ <span class="dots" aria-hidden="true">…</span>
11
+ <span class="sr-only">Display the complete path</span>
12
+ </button>
13
+ </li>
14
+ <li class="breadcrumb-item"><a class="bread-link" href="#">Schools</a></li>
9
15
  <li class="breadcrumb-item active" aria-current="page">ENAC</li>
10
16
  </ol>
11
17
  </nav>
@@ -3,5 +3,9 @@ name: breadcrumb
3
3
  notes: |
4
4
  The breadcrumb is your compass, on every page. It helps you to understand where you are, so you can decide where to go next.
5
5
  variants:
6
+ - name: dropdown
7
+ title: Dropdown
8
+ notes: |
9
+ Breadcrumb dropdowns are used to display same level pages.
6
10
  - name: tagged
7
11
  title: Tagged
@@ -0,0 +1,23 @@
1
+ {% set icon = icon|default("https://via.placeholder.com/") %}
2
+ <a class="card link-trapeze-horizontal" href="#">
3
+ <div class="card border-0 bg-white m-0 h-100">
4
+ <div class="card-header border-0">
5
+ <div class="row">
6
+ <div class="col-md-6">
7
+ <p class="h4">près de 18'000</p>
8
+ </div>
9
+ <div class="col-md-6 text-right">
10
+ <img src="images/styleguide/key-numbers/students.png" class="d-block m-auto" alt="Pictogramme avec deux personnages" />
11
+ </div>
12
+ </div>
13
+ </div>
14
+ <div class="card-body pt-0">
15
+ <div class="row">
16
+ <div class="col-md-12">
17
+ <hr />
18
+ <p>étudiant·es, collaborateurs et collaboratrices font de l'EPFL une petite ville trépidante et dynamique</p>
19
+ </div>
20
+ </div>
21
+ </div>
22
+ </div>
23
+ </a>
@@ -0,0 +1,23 @@
1
+ {% set icon = icon|default("https://via.placeholder.com/") %}
2
+ <div class="card">
3
+ <div class="card border-0 bg-white m-0 h-100">
4
+ <div class="card-header border-0">
5
+ <div class="row">
6
+ <div class="col-md-6">
7
+ <p class="h4">près de 18'000</p>
8
+ </div>
9
+ <div class="col-md-6 text-right">
10
+ <img src="images/styleguide/key-numbers/students.png" class="d-block m-auto" alt="Pictogramme avec deux personnages" />
11
+ </div>
12
+ </div>
13
+ </div>
14
+ <div class="card-body pt-0">
15
+ <div class="row">
16
+ <div class="col-md-12">
17
+ <hr />
18
+ <p>étudiant·es, collaborateurs et collaboratrices font de l'EPFL une petite ville trépidante et dynamique</p>
19
+ </div>
20
+ </div>
21
+ </div>
22
+ </div>
23
+ </div>
@@ -5,3 +5,7 @@ variants:
5
5
  - name: large
6
6
  title: Large
7
7
  wrapper: 'bg-gray-100'
8
+ - name: hn
9
+ title: Highlighted number
10
+ - name: hn-link
11
+ title: Highlighted number with link
@@ -1,5 +1,5 @@
1
1
  <div class="list-group">
2
- {% for i in 1..4 %}
2
+ {% for i in 1..2 %}
3
3
 
4
4
  <div class="list-group-teaser list-group-item list-group-teaser-container">
5
5
  <div class="list-group-teaser-thumbnail">
@@ -18,6 +18,40 @@
18
18
  </div>
19
19
  {% endfor %}
20
20
 
21
+ <div class="list-group-teaser list-group-item list-group-teaser-container">
22
+ <div class="list-group-teaser-thumbnail">
23
+ <a href="#" class="link-trapeze-horizontal">
24
+ {% include '@atoms/picture/picture-news-thumb.twig' %}
25
+ <div class="news-video-overlay"></div>
26
+ </a>
27
+ </div>
28
+ <div class="list-group-teaser-content">
29
+ <h3 class="h5"><a href="#">Physics: new e-books for the AIAA Education Series</a></h3>
30
+ <p>
31
+ <time datetime="2018-03-26"><span class="sr-only">Published:</span>26.03.2018</time>
32
+ <span class="text-muted">— Lorem ipsum dolor sit amet, consectetur adipiscing elit. Si enim ad populum me vocas, eum. Quid enim me prohiberet
33
+ Epicureum esse, si probarem, quae ille diceret?</span>
34
+ </p>
35
+ </div>
36
+ </div>
37
+
38
+ <div class="list-group-teaser list-group-item list-group-teaser-container">
39
+ <div class="list-group-teaser-thumbnail">
40
+ <a href="#" class="link-trapeze-horizontal">
41
+ {% include '@atoms/picture/picture-news-thumb.twig' with { light_image: true } %}
42
+ <div class="news-video-overlay"></div>
43
+ </a>
44
+ </div>
45
+ <div class="list-group-teaser-content">
46
+ <h3 class="h5"><a href="#">Physics: new e-books for the AIAA Education Series</a></h3>
47
+ <p>
48
+ <time datetime="2018-03-26"><span class="sr-only">Published:</span>26.03.2018</time>
49
+ <span class="text-muted">— Lorem ipsum dolor sit amet, consectetur adipiscing elit. Si enim ad populum me vocas, eum. Quid enim me prohiberet
50
+ Epicureum esse, si probarem, quae ille diceret?</span>
51
+ </p>
52
+ </div>
53
+ </div>
54
+
21
55
  <div class="list-group-teaser list-group-item list-group-teaser-container teaser-img-right">
22
56
  <div class="list-group-teaser-thumbnail">
23
57
  <a href="#" class="link-trapeze-horizontal">
@@ -6,9 +6,12 @@
6
6
  <a href="https://www.epfl.ch/about/overview/fr/reglements-et-directives/mentions-legales/">Accessibilité</a>
7
7
  <a href="https://www.epfl.ch/about/overview/fr/reglements-et-directives/mentions-legales/">Mentions légales</a>
8
8
  <a href="https://go.epfl.ch/protection-des-donnees/">Protection des données</a>
9
+ {% if isNews %}
10
+ <a href="https://go.epfl.ch/charte">Charte</a>
11
+ {% endif %}
9
12
  </div>
10
13
  <div>
11
- <p>&copy; 2023 EPFL, tous droits réservés</p>
14
+ <p>&copy; 2024 EPFL, tous droits réservés</p>
12
15
  </div>
13
16
  </div>
14
17
  {% endif %}
@@ -18,9 +21,12 @@
18
21
  <a href="https://www.epfl.ch/about/overview/regulations-and-guidelines/disclaimer/">Accessibility</a>
19
22
  <a href="https://www.epfl.ch/about/overview/regulations-and-guidelines/disclaimer/">Disclaimer</a>
20
23
  <a href="https://go.epfl.ch/privacy-policy/">Privacy policy</a>
24
+ {% if isNews %}
25
+ <a href="https://go.epfl.ch/guidelines">Charter</a>
26
+ {% endif %}
21
27
  </div>
22
28
  <div>
23
- <p>&copy; 2023 EPFL, all rights reserved</p>
29
+ <p>&copy; 2024 EPFL, all rights reserved</p>
24
30
  </div>
25
31
  </div>
26
32
  {% endif %}
@@ -30,9 +36,12 @@
30
36
  <a href="https://www.epfl.ch/about/overview/regulations-and-guidelines/disclaimer/">Zugänglichkeit</a>
31
37
  <a href="https://www.epfl.ch/about/overview/regulations-and-guidelines/disclaimer/">Impressum</a>
32
38
  <a href="https://go.epfl.ch/privacy-policy/">Datenschutzerklärung</a>
39
+ {% if isNews %}
40
+ <a href="https://go.epfl.ch/guidelines">Richtlinien</a>
41
+ {% endif %}
33
42
  </div>
34
43
  <div>
35
- <p>&copy; 2023 EPFL, alle Rechte vorbehalten</p>
44
+ <p>&copy; 2024 EPFL, alle Rechte vorbehalten</p>
36
45
  </div>
37
46
  </div>
38
47
  {% endif %}
@@ -0,0 +1,7 @@
1
+ <div class="container">
2
+ <div class="card-deck">
3
+ {% include '@molecules/key-number/key-number-hn-link.twig' %}
4
+ {% include '@molecules/key-number/key-number-hn-link.twig' %}
5
+ {% include '@molecules/key-number/key-number-hn.twig' %}
6
+ </div>
7
+ </div>
@@ -1,3 +1,6 @@
1
1
  title: Key number group
2
2
  name: key-number-group
3
3
  wrapper: bg-gray-100
4
+ variants:
5
+ - name: hn
6
+ title: Highlighted number
@@ -4,10 +4,15 @@
4
4
  role="navigation"
5
5
  aria-describedby="nav-aside-title"
6
6
  >
7
- <h2 class="h5 sr-only-xl">Dans la même section</h2>
8
- <ul>
7
+ <h2 class="h5 sr-only-xl" id="nav-aside-title">Dans la même section</h2>
8
+ <ul class="nav-menu">
9
9
  {% if nav_aside_items %}
10
10
  {% for item in nav_aside_items %}
11
+ {% if item.siblings_before and loop.index0 == nav_aside_active %}
12
+ {% for child in item.siblings_before %}
13
+ <li><a href="#">{{child}}</a></li>
14
+ {% endfor %}
15
+ {% endif %}
11
16
  <li{% if loop.index0 == nav_aside_active %} class="active"{% endif %}>
12
17
  <a href="#">
13
18
  {{item.label}}
@@ -23,6 +28,11 @@
23
28
  </ul>
24
29
  {% endif %}
25
30
  </li>
31
+ {% if item.siblings_after and loop.index0 == nav_aside_active %}
32
+ {% for child in item.siblings_after %}
33
+ <li><a href="#">{{child}}</a></li>
34
+ {% endfor %}
35
+ {% endif %}
26
36
  {% endfor %}
27
37
  {% else %}
28
38
  <li><a href="#">S'inscrire au Master</a></li>
@@ -1,2 +1,6 @@
1
1
  title: Nav aside
2
2
  name: nav-aside
3
+ notes: |
4
+ **Mobile version**
5
+
6
+ On small devices, the side navigation can be displayed inside the mobile navigation, below the main menu. See [Nav Mobile](/#/organisms/nav-mobile)
@@ -0,0 +1,24 @@
1
+ <div class="nav-container">
2
+ <nav class="nav-main nav-main-mobile" id="main-navigation" role="navigation">
3
+ <div class="nav-wrapper">
4
+ <div class="nav-container current-menu-parent">
5
+ <ul id="menu-main" class="nav-menu">
6
+ <li class=""><a href="#">About</a></li>
7
+ <li><a href="#">Education</a></li>
8
+ <li><a href="#">Research</a></li>
9
+ <li><a href="#">Innovation</a></li>
10
+ <li class="current-menu-item"><a href="#">Schools</a></li>
11
+ <li><a href="#">Campus</a></li>
12
+ </ul>
13
+ </div>
14
+ </div>
15
+ </nav>
16
+ <!-- Add side navigation here in order to display it in the mobile menu -->
17
+ {% if not isSpecial %}
18
+ <aside class="nav-aside-wrapper">
19
+ {% block sideNav %}
20
+ {% include '@organisms/nav-aside/nav-aside.twig' %}
21
+ {% endblock %}
22
+ </aside>
23
+ {% endif %}
24
+ </div>
@@ -0,0 +1,5 @@
1
+ title: Nav mobile
2
+ name: nav-mobile
3
+ wrapper: nav-toggle-layout
4
+ notes: |
5
+ The mobile navigation is opened by clicking the [Nav Toggle Button](/#/atoms/nav-toggle-mobile).
@@ -1,3 +1,5 @@
1
+ {% set isSpecial = true %}
2
+
1
3
  {% extends "@templates/base/base.twig" %}
2
4
 
3
5
  {% block content %}
@@ -1,3 +1,5 @@
1
+ {% set isSpecial = true %}
2
+
1
3
  {% extends "@templates/base/base.twig" %}
2
4
 
3
5
  {% block content %}