elixir-toolkit-theme 1.8.0 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0600601393c70698c12c1ebcd200052b0d3a6aa9e3f9552b76a3967c13f1cba3'
4
- data.tar.gz: 3ec4ec9a152dfff8aba2cbbc1e34b25ccaa4b04e328316701e01cd63462e7849
3
+ metadata.gz: 207a325fa96fa5023481284b6824ea600dcb234c26016b44bd330f30fc3e7f20
4
+ data.tar.gz: f8680ad1cac04568b0cb696885342e4fa241f4978e48f02ee2d17915bdf49f15
5
5
  SHA512:
6
- metadata.gz: c45a5c54607b33b33723a5064a54c1e442fe85c46802c1dd0bb787c580475443c9dbc0e7a306be1819a34e59d9cad2150f95b6935d151ea3da7ba6fdf569baa3
7
- data.tar.gz: d83075c9c021cb721353c6c13d600369b0a633e8448c80faab0a6af86ba73bcb46c2a3b40e9bf43da1227f4730f814ff71b53f52cd5c37fa4bfc02f525006931
6
+ metadata.gz: 3ad726b98582e9e2d16c0d287b9462a007b7af076fcc2f311b7cfa607366cae37c581e5d19b799886a2b8e6dfb36dd1395116b9a0ed01e8461d514eeace15b00
7
+ data.tar.gz: 89a708688970bdd2d99e91b1164496958f007ff968afa2600457108ce55383d679f269009ec3e15ca6ad379fcd33479f95562c365bcd88aa1f1b0859a67416fb
@@ -1,8 +1,9 @@
1
1
  <div class="events {{include.event_type}}s">
2
2
  {%- if include.title == "true" %}
3
- <h2 class="mt-5 text-dark">{{include.event_type | replace: "_", " " | capitalize}}s</h2>
3
+ <h2>{{include.event_type | replace: "_", " " | capitalize}}s</h2>
4
4
  {%- endif %}
5
5
  {%- assign events = site.data.events %}
6
+ {%- assign count = 0 %}
6
7
  <ul class="list-unstyled mt-3">
7
8
  {%- for event in events %}
8
9
  <li class='{{include.event_type}}' data-start='{{ event.startDate}}'>
@@ -14,9 +15,21 @@
14
15
  <div class="d-inline-block text-muted">{{ event.location | markdownify }}</div>
15
16
  {%- endif %}
16
17
  {%- if event.description %}
18
+ {%- assign word_count = event.description | split: " " | size %}
19
+ {%- if include.truncate == "true" and word_count > 40 %}
20
+ <p class="mb-0"><a data-bs-toggle="collapse" href="#collapse-{{count}}" role="button" aria-expanded="false" aria-controls="collapse-{{count}}">
21
+ View description
22
+ </a>
23
+ </p>
24
+ <div class="full-description collapse" id="collapse-{{count}}">
25
+ {{ event.description | markdownify }}
26
+ </div>
27
+ {%- else %}
17
28
  {{ event.description | markdownify }}
18
29
  {%- endif %}
30
+ {%- endif %}
19
31
  </li>
32
+ {%- assign count = count | plus: 1 %}
20
33
  {%- endfor %}
21
34
  </ul>
22
35
  {%- if include.caption == "true" %}
@@ -20,6 +20,10 @@
20
20
  {%- endfor %}
21
21
  </ul>
22
22
  </div>
23
+ {%- elsif column.type == "text" %}
24
+ <div class="col-lg-{{column.width}} col-sm-6 d-flex justify-content-center">
25
+ {{column.content | markdownify }}
26
+ </div>
23
27
  {%- endif %}
24
28
  {%- endfor %}
25
29
  </div>
data/_includes/news.html CHANGED
@@ -1,6 +1,6 @@
1
1
  <div class="news">
2
2
  {%- if include.title == "true" %}
3
- <h2 class="mt-5 text-dark">Whats new?</h2>
3
+ <h2>Whats new?</h2>
4
4
  {%- endif %}
5
5
  {%- assign news = site.data.news | sort: "date"%}
6
6
  {%- assign count = 0 %}
@@ -9,7 +9,20 @@
9
9
  <li>
10
10
  <span class="title mb-1">{{ new.name | escape }}</span>
11
11
  <p class="text-muted"><i class="far fa-calendar me-2"></i><time>{{ new.date | date_to_long_string }}</time>{% if new.linked_pr %}<b> - </b><i class="fas fa-code-branch"></i><a href="{{ site.github.repository_url | append: '/pull/' | append: new.linked_pr }}">{{new.linked_pr }}</a>{% endif %}</p>
12
+ {%- if new.description %}
13
+ {%- assign word_count = new.description | split: " " | size %}
14
+ {%- if include.truncate == "true" and word_count > 40 %}
15
+ <p class="mb-0"><a data-bs-toggle="collapse" href="#collapse-{{count}}" role="button" aria-expanded="false" aria-controls="collapse-{{count}}">
16
+ View description
17
+ </a>
18
+ </p>
19
+ <div class="full-description collapse" id="collapse-{{count}}">
20
+ {{ new.description | markdownify }}
21
+ </div>
22
+ {%- else %}
12
23
  {{ new.description | markdownify }}
24
+ {%- endif %}
25
+ {%- endif %}
13
26
  </li>
14
27
  {%- assign count = count | plus: 1 %}
15
28
  {%- if include.limit and count == include.limit %}
@@ -10,7 +10,6 @@ $btn-primary-color-hover: $white;
10
10
  $topnav-bg: $light;
11
11
  $topnav-title-color: $primary;
12
12
  $topnav-brand-height: 44px;
13
- $topnav-border: 0;
14
13
 
15
14
  /*-----Search-----*/
16
15
  $search-result-color: $primary;
@@ -27,7 +26,6 @@ $sidebar-color-active: $white;
27
26
 
28
27
  /*-----TOC-----*/
29
28
  $toc-bg: $light;
30
- $toc-border: 0;
31
29
 
32
30
  /*-----Section navigation tiles-----*/
33
31
  $nav-card-bg: $white;
@@ -54,6 +52,8 @@ $contr-crown-color: $white;
54
52
 
55
53
  /*-----Events & news-----*/
56
54
  $news-title-bg: $primary;
55
+ $news-border-color: $light;
56
+ $news-title-color: $white;
57
57
 
58
58
  /*-----Default badge-----*/
59
59
  $badge-color: $body-color;
@@ -67,5 +67,4 @@ $footer-color: $dark;
67
67
  $footer-link-color: $dark;
68
68
  $footer-link-color-hover: $primary;
69
69
  $footer-copyright-bg: $gray-200;
70
- $footer-border: 0;
71
70
 
data/assets/css/main.scss CHANGED
@@ -133,7 +133,6 @@ pre code {
133
133
 
134
134
  header .navbar {
135
135
  background-color: $topnav-bg;
136
- border-bottom: $topnav-border;
137
136
  .navbar-brand {
138
137
  color: $topnav-title-color;
139
138
  img {
@@ -344,7 +343,6 @@ header .navbar {
344
343
 
345
344
  #toc {
346
345
  background-color: $toc-bg;
347
- border: $toc-border;
348
346
  // Indent the lists and reset any other padding
349
347
 
350
348
  ul {
@@ -421,7 +419,6 @@ footer {
421
419
  font-size: 0.9em;
422
420
  line-height: 24px;
423
421
  background-color: $footer-bg;
424
- border-top: $footer-border;
425
422
  color: $footer-color;
426
423
 
427
424
  a {
@@ -531,7 +528,6 @@ footer {
531
528
  position: fixed;
532
529
  background-color: $footer-bg;
533
530
  color: $footer-color;
534
- border-top: $footer-border;
535
531
  bottom: 0;
536
532
  left: 0;
537
533
  width: 100%;
@@ -587,13 +583,11 @@ li.past_event,
587
583
  display: none;
588
584
  }
589
585
 
590
- .events,
591
- .news {
592
- li {
593
- border-left: $light 5px solid;
594
- border-radius: $border-radius;
595
- padding: 0px 11px;
596
- }
586
+ .events > ul > li,
587
+ .news > ul > li {
588
+ border-left: $news-border-color 5px solid;
589
+ border-radius: $border-radius;
590
+ padding: 0px 11px;
597
591
 
598
592
  i {
599
593
  width: 20px;
@@ -603,13 +597,19 @@ li.past_event,
603
597
  .title {
604
598
  background-color: $news-title-bg;
605
599
  font-weight: 600;
606
- color: $white;
600
+ color: $news-title-color;
607
601
  padding: 0px 11px;
608
602
  border-radius: 0px 4px 4px 0px;
609
603
  margin-left: -11px;
610
- border: 1px solid $news-title-bg;
611
604
  display: inline-block;
612
605
  }
606
+
607
+ .full-description > *:last-child {
608
+ margin-bottom: 0;
609
+ li {
610
+ margin-bottom: 0;
611
+ }
612
+ }
613
613
  }
614
614
  /*-----More information tiles-----*/
615
615
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elixir-toolkit-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bedroesb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-16 00:00:00.000000000 Z
11
+ date: 2022-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll