epfl-elements 4.3.0 → 4.4.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.
@@ -34,6 +34,15 @@ $opacities: map.merge((
34
34
  "100": 1,
35
35
  ), $opacities);
36
36
 
37
+ // Font-size
38
+
39
+ $small-font-size: 0.875rem;
40
+
41
+ $btn-font-size-sm: 0.875rem;
42
+ $btn-padding-y-sm: 0.375rem;
43
+ $btn-padding-x-sm: 0.75rem;
44
+ $btn-line-height-sm: 1.5;
45
+
37
46
  // Legacy font-size
38
47
  $legacy-font-size-xl: 1.25rem;
39
48
  $legacy-font-size-lg: 1.125rem;
@@ -1,8 +1,8 @@
1
1
  <nav class="nav-lang ml-auto dropdown" aria-label="Change language">
2
- <a href="#" class="dropdown-toggle btn btn-secondary" aria-haspopup="true" aria-expanded="false" data-toggle="dropdown">
2
+ <button class="dropdown-toggle btn btn-secondary" aria-haspopup="true" aria-expanded="false" data-toggle="dropdown">
3
3
  {% include '@atoms/icon/icon.twig' with {icon: 'icon-planet'} %}
4
4
  <span>FR</span>
5
- </a>
5
+ </button>
6
6
  <ul class="dropdown-menu">
7
7
  <li>
8
8
  <a aria-label="Français (Current language)" class="active dropdown-item" >
@@ -1,8 +1,8 @@
1
- <div class="btn btn-secondary nav-toggle-mobile d-xl-none">
1
+ <button class="btn btn-secondary nav-toggle-mobile d-xl-none">
2
2
  <span class="label">Menu</span>
3
3
  <div class="hamburger">
4
4
  <span></span>
5
5
  <span></span>
6
6
  <span></span>
7
7
  </div>
8
- </div>
8
+ </button>
@@ -0,0 +1,37 @@
1
+ <div class="list-group">
2
+
3
+ <div class="list-group-item list-group-item-borderless col-12 col-lg-8">
4
+ <p class="tag tag-sm bg-light border-light mb-2"><strong>Concepts</strong></p>
5
+ <h3 class="h5 my-1"><a href="#">Biology</a></h3>
6
+ <p class="text-small text-muted mb-1">https://graphsearch.epfl.ch/…</p>
7
+ <p><i>Biology</i> is the scientific study of life. It is a natural science with a broad scope but has several unifying themes that tie it together as a single, coherent …</p>
8
+ </div>
9
+
10
+ <div class="list-group-item list-group-item-borderless col-12 col-lg-8">
11
+ <p class="tag tag-sm bg-light border-light mb-2"><strong>Courses</strong></p>
12
+ <h3 class="h5 my-1"><a href="#">CH-313 - Chemical biology </a></h3>
13
+ <p class="text-small text-muted mb-1">https://graphsearch.epfl.ch/…</p>
14
+ <p>Closely interfacing with bioengineering and medicine, this course provides foundational concepts in applying small-molecule chemical toolsets to probe the functions …</p>
15
+ </div>
16
+
17
+ <div class="list-group-item list-group-item-borderless col-12 col-lg-8">
18
+ <p class="tag tag-sm bg-light border-light mb-2"><strong>Publications</strong></p>
19
+ <h3 class="h5 my-1"><a href="#">Chemical and Biological Gradients along the Damma Glacier Soil Chronosequence, Switzerland</a></h3>
20
+ <p class="text-small text-muted mb-1">https://graphsearch.epfl.ch/…</p>
21
+ <p class="text-sm mt-2 mb-1 d-flex align-items-center">
22
+ <svg class="icon feather align-middle mr-1" aria-hidden="true">
23
+ <use xlink:href="#calendar"></use>
24
+ </svg>
25
+ <span class="align-middle">Published in 2011</span>
26
+ </p>
27
+ <p class="text-sm mb-2 d-flex align-items-center">
28
+ <svg class="icon feather align-middle mr-1" aria-hidden="true">
29
+ <use xlink:href="#users"></use>
30
+ </svg>
31
+ <span class="sr-only">Authors: </span>
32
+ <span class="align-middle"><a href="#"><strong>Camille Sigi</strong></a>, <a href="#"><strong>Lou Pereira</strong></a>, <a href="#"><strong>Charlie Müller</strong></a></span>
33
+ </p>
34
+ <p>PhD at the Biocenter, University of Basel 1989-1992. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec vitae lacus vulputate, congue ligula id …</p>
35
+ </div>
36
+
37
+ </div>
@@ -0,0 +1,2 @@
1
+ title: Graph Search
2
+ name: graph-search
@@ -33,7 +33,7 @@
33
33
  <div class="d-flex flex-wrap justify-content-between align-items-baseline">
34
34
  <h1 class="mr-3">Prenom Nom</h1>
35
35
  <div>
36
- {% include '@atoms/icon/icon.twig' %}
36
+ {% include '@atoms/icon/icon.twig' with {'icon': 'edit', icon_classes: 'feather'} %}
37
37
  <a href="#">
38
38
  Edit profile <span class="sr-only">of Prenom Nom</span>
39
39
  </a>
@@ -444,7 +444,7 @@ hr {
444
444
 
445
445
  small,
446
446
  .small {
447
- font-size: 0.83rem;
447
+ font-size: 0.875rem;
448
448
  font-weight: 400;
449
449
  }
450
450
 
@@ -483,7 +483,7 @@ mark,
483
483
 
484
484
  .blockquote-footer {
485
485
  display: block;
486
- font-size: 0.83rem;
486
+ font-size: 0.875rem;
487
487
  color: #707070;
488
488
  }
489
489
  .blockquote-footer::before {
@@ -2256,7 +2256,7 @@ textarea.form-control, .selectize-control textarea.selectize-input {
2256
2256
  display: none;
2257
2257
  width: 100%;
2258
2258
  margin-top: 0.55rem;
2259
- font-size: 0.83rem;
2259
+ font-size: 0.875rem;
2260
2260
  color: #7ed321;
2261
2261
  }
2262
2262
 
@@ -2356,7 +2356,7 @@ textarea.form-control, .selectize-control textarea.selectize-input {
2356
2356
  display: none;
2357
2357
  width: 100%;
2358
2358
  margin-top: 0.55rem;
2359
- font-size: 0.83rem;
2359
+ font-size: 0.875rem;
2360
2360
  color: #ff0000;
2361
2361
  }
2362
2362
 
@@ -3087,9 +3087,9 @@ fieldset:disabled a.btn {
3087
3087
  }
3088
3088
 
3089
3089
  .btn-sm {
3090
- padding: 0.35rem 0.7rem;
3091
- font-size: 0.83rem;
3092
- line-height: 1.575;
3090
+ padding: 0.375rem 0.75rem;
3091
+ font-size: 0.875rem;
3092
+ line-height: 1.5;
3093
3093
  border-radius: 2px;
3094
3094
  }
3095
3095
 
@@ -10786,21 +10786,12 @@ h3 {
10786
10786
  }
10787
10787
  }
10788
10788
  body {
10789
- font-size: 1.125rem;
10789
+ font-size: 1rem;
10790
+ font-size: clamp(1rem, 0.9375rem + 0.25vw, 1.125rem);
10790
10791
  -webkit-font-smoothing: antialiased;
10791
10792
  -moz-osx-font-smoothing: grayscale;
10792
10793
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
10793
10794
  }
10794
- @media (max-width: 767.98px) {
10795
- body {
10796
- font-size: 1rem;
10797
- }
10798
- }
10799
- @media (max-width: 575.98px) {
10800
- body {
10801
- font-size: 0.875rem;
10802
- }
10803
- }
10804
10795
 
10805
10796
  .h1,
10806
10797
  .h2,
@@ -10858,17 +10849,8 @@ h6,
10858
10849
  }
10859
10850
 
10860
10851
  .lead {
10861
- font-size: 1.375rem;
10862
- }
10863
- @media (max-width: 991.98px) {
10864
- .lead {
10865
- font-size: 1.25rem;
10866
- }
10867
- }
10868
- @media (max-width: 575.98px) {
10869
- .lead {
10870
- font-size: 1rem;
10871
- }
10852
+ font-size: 1.125rem;
10853
+ font-size: clamp(1rem, 0.8125rem + 0.75vw, 1.375rem);
10872
10854
  }
10873
10855
 
10874
10856
  small {
@@ -14086,7 +14068,7 @@ figcaption {
14086
14068
  -webkit-box-align: center;
14087
14069
  -ms-flex-align: center;
14088
14070
  align-items: center;
14089
- padding: 0.35rem 0.7rem;
14071
+ padding: 0.375rem 0.75rem;
14090
14072
  border: 0;
14091
14073
  }
14092
14074
  .user-dropdown .btn .user-avatar {
@@ -14165,7 +14147,7 @@ figcaption {
14165
14147
  padding-left: 0 !important;
14166
14148
  }
14167
14149
  .header .nav-user .btn {
14168
- padding: 0.35rem;
14150
+ padding: 0.375rem;
14169
14151
  }
14170
14152
  .header .nav-user:not(.show) .btn {
14171
14153
  border-radius: 50%;