epfl-elements 4.5.1 → 4.6.1

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 (56) hide show
  1. package/dist/components/atoms/video/video.yml +2 -2
  2. package/dist/components/molecules/carousel/carousel.yml +1 -1
  3. package/dist/components/molecules/collapse-group/collapse-group-rich-content.twig +9 -9
  4. package/dist/components/molecules/filters/filters.yml +1 -1
  5. package/dist/components/organisms/fullwidth-teaser/fullwidth-teaser-horizontal.twig +9 -0
  6. package/dist/components/organisms/fullwidth-teaser/fullwidth-teaser-legend.twig +38 -0
  7. package/dist/components/organisms/fullwidth-teaser/fullwidth-teaser.yml +6 -0
  8. package/dist/components/organisms/headlines/headlines-legend.twig +44 -0
  9. package/dist/components/organisms/headlines/headlines.yml +3 -0
  10. package/dist/components/organisms/modal/modal.yml +1 -1
  11. package/dist/components/pages/layout-demo/layout-demo.twig +1 -1
  12. package/dist/css/elements.css +518 -426
  13. package/dist/css/elements.min.css +5 -7
  14. package/dist/css/elements.min.css.map +1 -1
  15. package/dist/css/reader.css +4 -4
  16. package/dist/css/reader.min.css +1 -1
  17. package/dist/css/reader.min.css.map +1 -1
  18. package/dist/docs/user documentation/create a page.md +3 -3
  19. package/dist/docs/user documentation/index.md +1 -1
  20. package/dist/images/styleguide/teaser/home-teaser-1-1440x810.jpg +0 -0
  21. package/dist/images/styleguide/teaser/home-teaser-1-1600x900.jpg +0 -0
  22. package/dist/images/styleguide/teaser/home-teaser-1-1920x1080.jpg +0 -0
  23. package/dist/images/styleguide/teaser/home-teaser-1-2240x1260.jpg +0 -0
  24. package/dist/images/styleguide/teaser/home-teaser-1-576x324.jpg +0 -0
  25. package/dist/images/styleguide/teaser/home-teaser-1-768x432.jpg +0 -0
  26. package/dist/images/styleguide/teaser/home-teaser-2-1440x810.jpg +0 -0
  27. package/dist/images/styleguide/teaser/home-teaser-2-1600x900.jpg +0 -0
  28. package/dist/images/styleguide/teaser/home-teaser-2-1920x1080.jpg +0 -0
  29. package/dist/images/styleguide/teaser/home-teaser-2-2240x1260.jpg +0 -0
  30. package/dist/images/styleguide/teaser/home-teaser-2-576x324.jpg +0 -0
  31. package/dist/images/styleguide/teaser/home-teaser-2-768x432.jpg +0 -0
  32. package/dist/images/styleguide/teaser/home-teaser-3-1294x728.jpg +0 -0
  33. package/dist/images/styleguide/teaser/home-teaser-3-1440x810.jpg +0 -0
  34. package/dist/images/styleguide/teaser/home-teaser-3-1600x900.jpg +0 -0
  35. package/dist/images/styleguide/teaser/home-teaser-3-1920x1080.jpg +0 -0
  36. package/dist/images/styleguide/teaser/home-teaser-3-2240x1260.jpg +0 -0
  37. package/dist/images/styleguide/teaser/home-teaser-3-576x324.jpg +0 -0
  38. package/dist/images/styleguide/teaser/home-teaser-3-768x432.jpg +0 -0
  39. package/dist/images/styleguide/teaser/home-teaser-4-1294x728.jpg +0 -0
  40. package/dist/images/styleguide/teaser/home-teaser-4-1440x810.jpg +0 -0
  41. package/dist/images/styleguide/teaser/home-teaser-4-1600x900.jpg +0 -0
  42. package/dist/images/styleguide/teaser/home-teaser-4-1920x1080.jpg +0 -0
  43. package/dist/images/styleguide/teaser/home-teaser-4-2240x1260.jpg +0 -0
  44. package/dist/images/styleguide/teaser/home-teaser-4-576x324.jpg +0 -0
  45. package/dist/images/styleguide/teaser/home-teaser-4-768x432.jpg +0 -0
  46. package/dist/images/styleguide/teaser/news-teaser-1920x1080.jpg +0 -0
  47. package/dist/images/styleguide/teaser/news-teaser-2240x1260.jpg +0 -0
  48. package/dist/index.html +1 -1
  49. package/dist/js/reader.js +39 -21
  50. package/dist/js/reader.min.js +1 -1
  51. package/dist/js/reader.min.js.map +1 -1
  52. package/dist/js/vendors.js +814 -888
  53. package/dist/js/vendors.min.js +1 -1
  54. package/dist/js/vendors.min.js.LICENSE.txt +2 -2
  55. package/dist/package.json +4 -4
  56. package/package.json +4 -4
@@ -1,8 +1,8 @@
1
1
  title: Video
2
2
  name: video
3
3
  notes : |
4
- This is an example of **YouTube** integration but basically, **you can use any king of `<iframe>` URLs** until you keep the wrapper and the classes applied.
5
- If you have another type of aspect ration, you can use the corresponding modifier classes:
4
+ This is an example of **YouTube** integration but basically, **you can use any kind of `<iframe>` URLs** until you keep the wrapper and the classes applied.
5
+ If you have another type of aspect ratio, you can use the corresponding modifier classes:
6
6
  - `.embed-responsive-21by9`
7
7
  - `.embed-responsive-16by9`
8
8
  - `.embed-responsive-4by3`
@@ -1,7 +1,7 @@
1
1
  name: carousel
2
2
  title: Carousel
3
3
  notes: |
4
- Basic carousel using Bootstrap functionality: https://getbootstrap.com/docs/4.0/components/carousel/.
4
+ Basic carousel using Bootstrap functionality: https://getbootstrap.com/docs/4.6/components/carousel/.
5
5
 
6
6
  Use the 'data-interval' attribute to change the automatic slide delay.
7
7
 
@@ -29,9 +29,9 @@
29
29
  </div>
30
30
  <div class="col-md-5">
31
31
  <a href="tel:+41 21 666 77 88" class="btn btn-sm btn-secondary mb-2">+41 21 666 77 88</a><br/>
32
- {% include "@atoms/icon/icon.twig" %} <a href="#">Website</a><br/>
33
- {% include "@atoms/icon/icon.twig" %} <a href="#">Directory</a><br/>
34
- {% include "@atoms/icon/icon.twig" %} <a href="#">CE 3 316</a>
32
+ {% include "@atoms/icon/icon.twig" with { icon: 'home', icon_classes:'feather' } %} <a href="#">Website</a><br/>
33
+ {% include "@atoms/icon/icon.twig" with { icon: 'book', icon_classes:'feather' } %} <a href="#">Directory</a><br/>
34
+ {% include "@atoms/icon/icon.twig" with { icon: 'map-pin', icon_classes:'feather' } %} <a href="#">CE 3 316</a>
35
35
  </div>
36
36
  </div>
37
37
 
@@ -62,9 +62,9 @@
62
62
  </div>
63
63
  <div class="col-md-5">
64
64
  <a href="tel:+41 21 666 77 88" class="btn btn-sm btn-secondary mb-2">+41 21 666 77 88</a><br/>
65
- {% include "@atoms/icon/icon.twig" %} <a href="#">Website</a><br/>
66
- {% include "@atoms/icon/icon.twig" %} <a href="#">Directory</a><br/>
67
- {% include "@atoms/icon/icon.twig" %} <a href="#">CE 3 316</a>
65
+ {% include "@atoms/icon/icon.twig" with { icon: 'home', icon_classes:'feather' } %} <a href="#">Website</a><br/>
66
+ {% include "@atoms/icon/icon.twig" with { icon: 'book', icon_classes:'feather' } %} <a href="#">Directory</a><br/>
67
+ {% include "@atoms/icon/icon.twig" with { icon: 'map-pin', icon_classes:'feather' } %} <a href="#">CE 3 316</a>
68
68
  </div>
69
69
  </div>
70
70
  </div>
@@ -94,9 +94,9 @@
94
94
  </div>
95
95
  <div class="col-md-5">
96
96
  <a href="tel:+41 21 666 77 88" class="btn btn-sm btn-secondary mb-2">+41 21 666 77 88</a><br/>
97
- {% include "@atoms/icon/icon.twig" %} <a href="#">Website</a><br/>
98
- {% include "@atoms/icon/icon.twig" %} <a href="#">Directory</a><br/>
99
- {% include "@atoms/icon/icon.twig" %} <a href="#">CE 3 316</a>
97
+ {% include "@atoms/icon/icon.twig" with { icon: 'home', icon_classes:'feather' } %} <a href="#">Website</a><br/>
98
+ {% include "@atoms/icon/icon.twig" with { icon: 'book', icon_classes:'feather' } %} <a href="#">Directory</a><br/>
99
+ {% include "@atoms/icon/icon.twig" with { icon: 'map-pin', icon_classes:'feather' } %} <a href="#">CE 3 316</a>
100
100
  </div>
101
101
  </div>
102
102
  </div>
@@ -2,7 +2,7 @@ name: filters
2
2
  title: Filters
3
3
  notes: |
4
4
  The filters are displayed (in a sidebar) on desktop but have to be collapsed in on mobile.
5
- variants:
5
+ variants:
6
6
  - name: blog
7
7
  title: Blog content filters
8
8
  notes: |
@@ -2,7 +2,16 @@
2
2
 
3
3
  <div class="fullwidth-teaser fullwidth-teaser-horizontal{% if thinner_teaser %} thinner-teaser{% endif %}">
4
4
 
5
+ {% if has_image_legend|default(false) %}
6
+ <figure class="cover">
7
+ {% include '@atoms/picture/picture-fullwidth-teaser.twig' %}
8
+ <figcaption>
9
+ {% include '@atoms/popover/popover.twig' %}
10
+ </figcaption>
11
+ </figure>
12
+ {% else %}
5
13
  {% include '@atoms/picture/picture-fullwidth-teaser.twig' %}
14
+ {% endif %}
6
15
 
7
16
  <div class="fullwidth-teaser-text">
8
17
 
@@ -0,0 +1,38 @@
1
+ <div class="fullwidth-teaser">
2
+
3
+ <figure class="cover">
4
+ {% include '@atoms/picture/picture-fullwidth-teaser.twig' %}
5
+ <figcaption>
6
+ {% include '@atoms/popover/popover.twig' %}
7
+ </figcaption>
8
+ </figure>
9
+
10
+ <div class="fullwidth-teaser-text">
11
+
12
+ <div class="fullwidth-teaser-header">
13
+ <div class="fullwidth-teaser-title">
14
+ <h3>
15
+ {% if not title %}{% set title %}Évaluer la durabilité dans le domaine spatial{% endset %}{% endif %}
16
+ {{title}}
17
+ </h3>
18
+ </div>
19
+ <a href="#" aria-label="En savoir plus sur {{title}}" class="btn btn-primary triangle-outer-bottom-right d-none d-xl-block">
20
+ En savoir plus
21
+ {% include '@atoms/icon/icon.twig' with {icon: 'icon-chevron-right'} %}
22
+ </a>
23
+ </div>
24
+
25
+ <div class="fullwidth-teaser-content">
26
+ <p>
27
+ {% if not content %}
28
+ {% set content %}Le nouveau Space Sustainability Rating accueilli par eSpace, le centre spatial de l’EPFL, encourage le secteur de l’espace à concevoir et à mettre en œuvre des missions spatiales durables et responsables — montrant ainsi la voie pour assurer à long terme une approche durable de l’environnement spatial.{% endset %}
29
+ {% endif %}
30
+ {{content}}
31
+ </p>
32
+ </div>
33
+
34
+ <div class="fullwidth-teaser-footer">
35
+ <a href="#" aria-label="En savoir plus sur Tech Transfer" class="btn btn-primary btn-block d-xl-none">En savoir plus</a>
36
+ </div>
37
+ </div>
38
+ </div>
@@ -1,6 +1,12 @@
1
1
  title: Fullwidth teaser
2
2
  name: fullwidth-teaser
3
3
  variants:
4
+ - name: legend
5
+ title: Fullwidth teaser with image legend
6
+ notes: |
7
+ The [popover](#/atoms/popover) component can be used on any Fullwidth teaser variant in order to add a legend to the image.
8
+
9
+ The markup structure is similar to the [cover](#/molecules/cover) component.
4
10
  - name: horizontal
5
11
  title: Horizontal
6
12
  - name: left
@@ -0,0 +1,44 @@
1
+ {% macro card_link(card) %}
2
+ <a href="#" class="card link-trapeze-horizontal">
3
+ <div class="card-body">
4
+ <h3 class="card-title">{{ card.title }}</h3>
5
+ <div class="card-info">
6
+ {% if card.date %}
7
+ <span class="card-info-date">
8
+ <time datetime="DATETIME HERE">{{ card.date }}</time>
9
+ </span>
10
+ {% endif %}
11
+ {% for item in card.info %}
12
+ <span>{{ item }}</span>
13
+ {% endfor %}
14
+ </div>
15
+ <p>{{ card.content }}</p>
16
+ </div>
17
+ </a>
18
+ {% endmacro %}
19
+ {% import _self as macros %}
20
+
21
+ {% set bottomlink = bottomlink|default(true) %}
22
+
23
+ {# The intro fullwidth teaser #}
24
+ {% include '@organisms/fullwidth-teaser/fullwidth-teaser-horizontal.twig' with { has_image_legend: true } %}
25
+
26
+ {# First teasers #}
27
+ <div class="container pb-5 offset-xl-top pt-5 pt-xl-0">
28
+ <div class="row">
29
+ <div class="col-lg-10 offset-lg-1">
30
+ <div class="row mb-4">
31
+ {% for card in homepage.section_one.cards %}
32
+ <div class="col-md-6 d-flex">
33
+ {{ macros.card_link(card) }}
34
+ </div>
35
+ {% endfor %}
36
+ </div>
37
+ {% if bottomlink %}
38
+ <p class="text-center">
39
+ <a href="#">{{ homepage.section_one.readmore }}</a>
40
+ </p>
41
+ {% endif %}
42
+ </div>
43
+ </div>
44
+ </div>
@@ -1,2 +1,5 @@
1
1
  title: Headlines
2
2
  name: headlines
3
+ variants:
4
+ - name: legend
5
+ title: Headlines with image legend
@@ -3,4 +3,4 @@ name: modal
3
3
  notes: |
4
4
  The **Bootstrap Modal component** is a dialog box/popup window that is displayed on top of the current page.
5
5
 
6
- For usage, [see Bootstrap documentation](https://getbootstrap.com/docs/4.0/components/modal/).
6
+ For usage, [see Bootstrap documentation](https://getbootstrap.com/docs/4.6/components/modal/).
@@ -18,7 +18,7 @@
18
18
  <div class="container">
19
19
  <div class="alert alert-success">
20
20
  <h4>container</h4>
21
- <p>This <strong>.container</strong> class is the bootstrap defaut one. When used, It will fallback to the default bootstrap behavior, that can be divided with rows, columns, etc... (see <a href="https://getbootstrap.com/docs/4.1/layout/grid/">the Bootstrap documentation)</a></p>
21
+ <p>This <strong>.container</strong> class is the bootstrap defaut one. When used, It will fallback to the default bootstrap behavior, that can be divided with rows, columns, etc... (see <a href="https://getbootstrap.com/docs/4.6/layout/grid/">the Bootstrap documentation)</a></p>
22
22
  </div>
23
23
  </div>
24
24
  {% endblock %}