jekyll-theme-centos 0.7.6 → 0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d70a90ef2b9106de150f31ebbf68c7542da80eb4618586527290e85d2827ba6f
4
- data.tar.gz: 65f6103b68a1872905978ade75afda8a40ba51e5b501f8d08b27d5290f5ea3c6
3
+ metadata.gz: a3e90b06842891c3035f561da0a5b2814da0d5850d9aa57e363aa7da8c9dfd53
4
+ data.tar.gz: 0ba40a1b6e95c5c0daa991973f2778da2d124caf82ea844f62cf23c6ba6c841f
5
5
  SHA512:
6
- metadata.gz: 3e28c5b812442e338498ab3f85651b9f7995fc1a90883dbebc45c0fb6ce2d2a20d3921b661461d211f8b4a6881894470fc5207922e0ace34a8d4a4e9dfb5f943
7
- data.tar.gz: cf0fabcb7348bac2bf95f1a1d6a14607f827ca4baacd932acce969ad01b07887a9e235b539d0e147a92ec7fd672b8b1d09b6e589c03a5637cd94e79e99ca5e02
6
+ metadata.gz: 1a51c9737c5ade892bd879d5253bb626a7f59f60586e578d5cb62faf38ffef409c67b01efdb1934a7c750151a0c1fbfa3ba768b3f1804b7e20cf4f55e9f31cf2
7
+ data.tar.gz: b0259e36f8f47241940d1c9ac06b15aa627e8f4793856ebd87a1c3af09bc82567dfdddd1c74b1b852eb05af6c92902492ff12a0aa68f93310fc2fab540633bc2
@@ -3,7 +3,7 @@
3
3
  <li class="breadcrumb-item"><a href="/">Home</a></li>
4
4
  {% for crumb in crumbs offset: 1 %}
5
5
  {% if forloop.last %}
6
- <li class="breadcrumb-item">{{ page.title }}</li>
6
+ <li class="breadcrumb-item active">{{ page.title }}</li>
7
7
  {% else %}
8
8
  <li class="breadcrumb-item"><a href="{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' | replace:'without-plugin/','without-plugins/' }}{% endfor %}">{{ crumb | replace:'-',' ' | remove:'.html' | capitalize }}</a></li>
9
9
  {% endif %}
@@ -1,5 +1,29 @@
1
+ {% include hr.html %}
2
+
1
3
  <footer class="footer">
2
4
  <div class="container">
5
+ <div class="row">
6
+ <section class="sponsor">
7
+ <div class="sponsor__message">
8
+ <h6><i class="fas fa-hand-holding-heart"></i> Sponsors</h6>
9
+ <p>CentOS would not be possible without the support of our sponsors. We would like to thank the following product/service for being a CentOS sponsor. If you value our work, please consider <a href="/sponsors">becoming a sponsor</a>!</p>
10
+ </div>
11
+
12
+ <div class="sponsor__logo">
13
+ <div class="carousel">
14
+ <div class="card">
15
+ <div class="carousel slide carousel-fade" data-ride="carousel" id="carousel-1">
16
+ <div class="carousel-inner" role="listbox">
17
+ {% for sponsor in site.sponsors %}
18
+ <div class="carousel-item {{ sponsor.status }}"><a href="{{ sponsor.address }}" rel="nofollow"><img class="img-fluid" src="{{ sponsor.logo }}"></a></div>
19
+ {% endfor %}
20
+ </div>
21
+ </div>
22
+ </div>
23
+ </div>
24
+ </div>
25
+ </section>
26
+ </div>
3
27
  <div class="row">
4
28
 
5
29
  {% if site.data.centos.footer.columns %}
@@ -35,6 +59,8 @@
35
59
  <p>Copyright &copy; {{ site.time | date: "%Y" }} {{ site.data.centos.footer.copyright.author }} {% for item in site.data.centos.footer.copyright.legals %} | <a href="{{ item.link }}">{{ item.text }}</a>{% endfor %}</p>
36
60
  </section>
37
61
  </div>
38
-
39
62
  </div>
63
+
64
+ {% include top.html %}
65
+
40
66
  </footer>
@@ -18,3 +18,5 @@
18
18
  {% endif %}
19
19
 
20
20
  </header>
21
+
22
+ {% include hr.html %}
@@ -1,4 +1,20 @@
1
1
  <header class="header header__home">
2
- <h1 class="header__home__title">{{ site.title }}</h1>
3
- <p class="header__home__description">{{ site.description }}</p>
2
+
3
+ <section class="header__home__presentation">
4
+ <h1 class="header__home__presentaiton_title">{{ site.title }}</h1>
5
+ <p class="header__home__presentation__description">{{ site.description }}</p>
6
+ {% if site.data.centos.distributions %}
7
+ <p class="header__home__presentation__description">We offer two Linux variants: (<a class="btn btn-sm" role="button" href="cs-vs-cl">What's the difference?</a>)</p>
8
+ <div class="header__home__presentation__distributions">
9
+ {% include home/distributions.html %}
10
+ </div>
11
+ {% endif %}
12
+ </section>
13
+
14
+ <section class="header__home__shortcuts">
15
+ {% include home/shortcuts.html %}
16
+ </section>
17
+
4
18
  </header>
19
+
20
+ {% include hr.html %}
@@ -2,3 +2,5 @@
2
2
  <h1 class="header__page__title">{{ page.title }}</h1>
3
3
  <p class="header__page__description">{{ page.title_lead }}</p>
4
4
  </header>
5
+
6
+ {% include hr.html %}
@@ -19,3 +19,5 @@
19
19
  {% endif %}
20
20
 
21
21
  </header>
22
+
23
+ {% include hr.html %}
@@ -1,12 +1,10 @@
1
- <section class="home__content__distributions">
2
- <h2>Distributions</h2>
3
- <p class="home__content__distributions_preamble">We offer the following distributions:</p>
4
-
5
- {% if site.data.centos.distributions %}
6
- <div class="home__content__distributions__buttons">
7
1
  {% for item in site.data.centos.distributions %}
8
- <a class="btn" role="button" href="{{ item.page }}">{{ item.name }}</a>
9
- {% endfor %}
2
+ <div class="card">
3
+ <a class="btn" role="button" href="{{ item.page }}">
4
+ <div class="card-body">
5
+ <h2 class="card-title">{{ item.name }}</h2>
6
+ <p class="card-text">{{ item.description }}</p>
7
+ </div>
8
+ </a>
10
9
  </div>
11
- {% endif %}
12
- </section>
10
+ {% endfor %}
@@ -1,13 +1,18 @@
1
- <section class="home__content__news-and-events">
1
+ <section id="news-and-events" class="home__news-and-events">
2
2
 
3
- <h2>News and events</h2>
3
+ <h2 class="home__news-and-events__title">News and events</h2>
4
4
 
5
- <ul>
6
- {% assign blog_posts = site.posts | where: "category", "news-and-events" %}
7
- {% for i in blog_posts limit:5 %}
8
- {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
9
- <li><a href="{{ i.url }}">{{ i.title }}</a><br>{{ i.date | date: date_format }} &mdash; {{ i.excerpt | strip_html }}</li>
10
- {% endfor %}
11
- </ul>
5
+ <div class="home__news-and-events__content">
6
+ {% assign blog_posts = site.posts | where: "category", "news-and-events" %}
7
+ {% for i in blog_posts limit:5 %}
8
+ {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
9
+ <a class="btn" role="button" href="{{ i.url }}">
10
+ <div class="card">
11
+ <h3 class="card-title">{{ i.title }}</h3>
12
+ <div class="card-body">{{ i.date | date: date_format }} &mdash; {{ i.excerpt | strip_html }}</div>
13
+ </div>
14
+ </a>
15
+ {% endfor %}
16
+ </div>
12
17
 
13
18
  </section>
@@ -1,13 +1,18 @@
1
- <section class="home__content__planet">
1
+ <section id="around-centos" class="home__planet">
2
2
 
3
- <h2>Around CentOS</h2>
3
+ <h2 class="home__planet__title">Around CentOS</h2>
4
4
 
5
- <ul>
5
+ <div class="home__planet__content">
6
6
  {% assign entries = site.data.centos.planet %}
7
7
  {% for i in entries limit:5 %}
8
8
  {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
9
- <li><a href="{{ i.link }}">{{ i.title }}</a><br>{{ i.published | date: date_format }} &mdash; {{ i.summary | strip_html | slice: 0,150 }}...</li>
10
- {% endfor %}
11
- </ul>
9
+ <a class="btn" role="button" href="{{ i.link }}">
10
+ <div class="card">
11
+ <h3 class="card-title">{{ i.title }}</h3>
12
+ <div class="card-body">{{ i.published | date: date_format }} &mdash; {{ i.summary | strip_html | slice: 0,150 }}...</div>
13
+ </div>
14
+ </a>
15
+ {% endfor %}
16
+ </div>
12
17
 
13
18
  </section>
@@ -0,0 +1,17 @@
1
+ <div class="header__home__shortcuts__community">
2
+
3
+ {% assign links = site.data.centos.navbar | where: "name", "Community" %}
4
+ {% for section in links %}
5
+ {% for item in section.menu %}
6
+ <a class="btn" role="button" href="{{ item.link }}">
7
+ <div class="card">
8
+ <div class="card-body">
9
+ <h2 class="card-title"><i class="{{ item.icon }}"></i></h2>
10
+ <p class="card-text">{{ item.name }}</p>
11
+ </div>
12
+ </div>
13
+ </a>
14
+ {% endfor %}
15
+ {% endfor %}
16
+
17
+ </div>
data/_includes/hr.html ADDED
@@ -0,0 +1,6 @@
1
+ <div class="hr">
2
+ <div class="hr__centos-color-0"></div>
3
+ <div class="hr__centos-color-1"></div>
4
+ <div class="hr__centos-color-2"></div>
5
+ <div class="hr__centos-color-3"></div>
6
+ </div>
@@ -1,4 +1,4 @@
1
- <nav class="navbar fixed-top navbar-expand-lg navbar-dark">
1
+ <nav class="navbar">
2
2
  <div class="container">
3
3
  <a class="navbar-brand" href="{{ site.data.centos.identity.logo.link }}"><img src="{{ site.data.centos.identity.logo.image }}" height="32" alt="{{ site.title }}"> <span class="manifestation">{{ site.data.centos.identity.logo.manifestation }}</span></a>
4
4
  <button data-toggle="collapse" class="navbar-toggler" data-target="#navcol-1"><span class="sr-only">Toggle navigation</span><span class="navbar-toggler-icon"></span></button>
@@ -4,20 +4,20 @@
4
4
  {% else %}
5
5
  <div class="post__nav__explorer__newer--disabled">
6
6
  {% endif %}
7
- <a href="{{ page.previous.url | remove:'index.html' }}"><button type="button" class="btn btn-primary" data-toggle="tooltip" data-placement="top" title="Previous Post - {{ page.previous.title }}"><i class="fas fa-arrow-left"></i></button></a>
7
+ <a href="{{ page.previous.url | remove:'index.html' }}"><button type="button" class="btn btn-light" data-toggle="tooltip" data-placement="top" title="Previous Post - {{ page.previous.title }}"><i class="fas fa-arrow-left"></i></button></a>
8
8
  </div>
9
- {% include top.html %}
9
+
10
10
  <div class="post__nav_explorer__feeds">
11
- <a href="{{ "/feed.xml" | relative_url }}"><button type="button" class="btn btn-primary" data-toggle="tooltip" data-placement="top" title="RSS"><i class="fas fa-rss"></i></button></a>
11
+ <a href="{{ "/feed.xml" | relative_url }}"><button type="button" class="btn btn-light" data-toggle="tooltip" data-placement="top" title="RSS"><i class="fas fa-rss"></i></button></a>
12
12
  </div>
13
13
  <div class="post__nav__explorer__index">
14
- <a href="/news-and-events/"><button type="button" class="btn btn-primary" data-toggle="tooltip" data-placement="top" title="Blog posts"><i class="fas fa-th"></i></button></a>
14
+ <a href="/news-and-events/"><button type="button" class="btn btn-light" data-toggle="tooltip" data-placement="top" title="Blog posts"><i class="fas fa-th"></i></button></a>
15
15
  </div>
16
16
  {% if page.next.url %}
17
17
  <div class="post__nav__explorer__older">
18
18
  {% else %}
19
19
  <div class="post__nav__explorer__older--disabled">
20
20
  {% endif %}
21
- <a href="{{ page.next.url | remove:'index.html' }}"><button type="button" class="btn btn-primary" data-toggle="tooltip" data-placement="top" title="Next Post - {{ page.next.title }}"><i class="fas fa-arrow-right"></i></button></a>
21
+ <a href="{{ page.next.url | remove:'index.html' }}"><button type="button" class="btn btn-light" data-toggle="tooltip" data-placement="top" title="Next Post - {{ page.next.title }}"><i class="fas fa-arrow-right"></i></button></a>
22
22
  </div>
23
23
  </nav>
data/_includes/toc.html CHANGED
@@ -94,11 +94,11 @@
94
94
  {{ my_toc | lstrip }}{% endcapture %}
95
95
  {% endif %}{% endcapture %}
96
96
 
97
- {% if my_toc != "" %}
98
97
  <div class="toc">
98
+ {% if my_toc != "" %}
99
99
  <header class="toc__header">On this page:</header>
100
100
  <section class="toc__section">
101
101
  {% assign tocWorkspace = '' %}{{ my_toc | markdownify | strip }}
102
102
  </section>
103
- </div>
104
103
  {% endif %}
104
+ </div>
data/_includes/top.html CHANGED
@@ -1,3 +1,3 @@
1
- <div class="top">
2
- <a href="#top"><button title="Page top" type="button" data-toggle="tooltip" class="btn btn-primary"><i class="fas fa-arrow-circle-up"></i></button></a>
1
+ <div id="topbtn">
2
+ <a href="#top"><button title="Page top" type="button" data-toggle="tooltip" class="btn btn-light"><i class="fas fa-arrow-up"></i></button></a>
3
3
  </div>
data/_layouts/aside.html CHANGED
@@ -13,20 +13,13 @@ layout: default
13
13
 
14
14
  <div class="aside__content__nav">
15
15
  <div class="aside__nav__explorer">
16
- {% include top.html %}
17
16
  </div>
18
17
  </div>
19
-
20
18
  </article>
21
19
 
22
20
  <aside class="aside__nav">
23
21
  {% include breadcrumbs.html %}
24
22
  {% include toc.html html=content %}
25
-
26
- <div class="aside__nav__explorer">
27
- {% include top.html %}
28
- </div>
29
-
30
23
  </aside>
31
24
 
32
25
  </main>
@@ -14,7 +14,7 @@
14
14
 
15
15
  <script src="/assets/js/jquery.min.js"></script>
16
16
  <script src="/assets/js/bootstrap.min.js"></script>
17
- <script src="/assets/js/copycode.js"></script>
17
+ <script src="/assets/js/customization.js"></script>
18
18
  </body>
19
19
 
20
20
  </html>
@@ -29,6 +29,7 @@
29
29
  } );
30
30
  </script>
31
31
  <script src="/assets/js/bootstrap.min.js"></script>
32
+ <script src="/assets/js/customization.js"></script>
32
33
  </body>
33
34
 
34
35
  </html>
data/_layouts/home.html CHANGED
@@ -9,24 +9,15 @@
9
9
  {% include header.html -%}
10
10
 
11
11
  <main class="home">
12
- <div class="home__content">
13
- <div class="row">
14
- <div class="col-sm-12 col-lg-8">
15
- {% include home/news-and-events.html %}
16
- {% include home/planet.html -%}
17
- </div>
18
- <div class="col-sm-12 col-lg-4">
19
- {% include home/distributions.html -%}
20
- {% include home/sponsors.html %}
21
- </div>
22
- </div>
23
- </div>
12
+ {% include home/news-and-events.html %}
13
+ {% include home/planet.html -%}
24
14
  </main>
25
15
 
26
16
  {% include footer.html -%}
27
17
 
28
18
  <script src="/assets/js/jquery.min.js"></script>
29
19
  <script src="/assets/js/bootstrap.min.js"></script>
20
+ <script src="/assets/js/customization.js"></script>
30
21
  </body>
31
22
 
32
23
  </html>
data/_layouts/page.html CHANGED
@@ -12,9 +12,6 @@ layout: default
12
12
 
13
13
  {{ content }}
14
14
 
15
- <nav class="page__content__nav">
16
- {% include top.html %}
17
- </nav>
18
15
  </article>
19
16
 
20
17
  </main>
data/_layouts/search.html CHANGED
@@ -34,6 +34,7 @@
34
34
 
35
35
  <script src="/assets/js/jquery.min.js"></script>
36
36
  <script src="/assets/js/bootstrap.min.js"></script>
37
+ <script src="/assets/js/customization.js"></script>
37
38
  </body>
38
39
 
39
40
  </html>
@@ -1,10 +1,12 @@
1
1
  .footer {
2
2
 
3
+ flex: 1;
4
+
3
5
  @include header-links;
4
6
 
5
7
  background-image: url($centos-img-motif);
6
8
  background-size: cover;
7
- background-position: top right;
9
+ background-position: top left;
8
10
 
9
11
  %-margin {
10
12
  margin-top: $line-height-base * 1.5rem;
@@ -25,7 +27,7 @@
25
27
  }
26
28
 
27
29
  .links {
28
- @extend .col-sm-3;
30
+ @extend .col-md-3;
29
31
  @extend %-margin;
30
32
  }
31
33
 
@@ -41,15 +43,19 @@
41
43
  }
42
44
 
43
45
  .sponsor {
44
- @extend .col;
45
46
  @extend %-margin;
46
47
  display: flex;
47
48
  justify-content: space-between;
48
49
  flex-direction: row;
50
+ flex-wrap: wrap;
49
51
  &__message {
52
+ @extend .col-md-6, .col-lg-8;
50
53
  }
51
54
  &__logo {
55
+ @extend .col-md-6, .col-lg-4;
56
+ text-align: center;
52
57
  img {
58
+ height: 90px;
53
59
  padding: 15px;
54
60
  background-color: $white;
55
61
  }
@@ -62,4 +68,11 @@
62
68
  font-size: small;
63
69
  }
64
70
 
71
+ #topbtn {
72
+ position: fixed;
73
+ bottom: 15px;
74
+ right: 15px;
75
+ }
76
+
77
+
65
78
  }
@@ -6,25 +6,70 @@
6
6
  background-image: url($centos-img-motif);
7
7
  background-color: $dark;
8
8
  background-size: cover;
9
- background-position: top right;
9
+ background-position: top left;
10
10
 
11
11
  text-shadow: 0 0 5px $dark;
12
12
 
13
13
  &__home {
14
14
  display: flex;
15
- justify-content: center;
16
- flex-direction: column;
15
+ flex-wrap: wrap;
17
16
 
18
17
  padding-top: calc(#{$navbar-brand-height} * 4);
19
- padding-bottom: calc(#{$navbar-brand-height} * 6);
20
18
  margin-top: $navbar-brand-height;
21
19
 
22
- &__title, &__description, &__preamble {
20
+ .card {
21
+ background-color: transparent;
22
+ border: none;
23
+ }
24
+
25
+ &__presentation {
26
+ display: flex;
27
+ flex-direction: column;
28
+ justify-content: center;
23
29
  @extend .container;
30
+
31
+ &__title, &__description, &__preamble, &__distributions {
32
+ }
33
+
34
+ &__description {
35
+ @extend .lead;
36
+ }
37
+
38
+ &__distributions {
39
+ display: flex;
40
+ flex-direction: row;
41
+ flex-wrap: wrap;
42
+ @include media-breakpoint-up(lg) { flex-wrap: nowrap; }
43
+
44
+ .card {
45
+ background: rgba(0, 0, 0, 0.3);
46
+ margin-bottom: 15px;
47
+ border-radius: 10px;
48
+ }
49
+ .card-body {
50
+ text-align: left;
51
+ }
52
+ .card:nth-child(1) {
53
+ @include media-breakpoint-up(lg) { margin-right: 15px; }
54
+ }
55
+ }
24
56
  }
25
57
 
26
- &__description {
27
- @extend .lead;
58
+ &__shortcuts {
59
+ background: rgba(0, 0, 0, 0.3);
60
+ width: 100%;
61
+ margin-top: calc(#{$navbar-brand-height} * 4);
62
+
63
+ .card {
64
+ font-size: small;
65
+ }
66
+
67
+ &__community {
68
+ display: flex;
69
+ justify-content: space-around;
70
+ flex-wrap: wrap;
71
+ @extend .container;
72
+ }
28
73
  }
29
74
  }
30
75
 
@@ -0,0 +1,27 @@
1
+ .hr {
2
+ display: flex;
3
+ flex-direction: row;
4
+ justify-content: space-around;
5
+
6
+ width: 100%;
7
+ height: 5px;
8
+
9
+ background-color: $centos-color-3;
10
+
11
+ &__centos-color-0 {
12
+ width: 25%;
13
+ background-color: $centos-color-0;
14
+ }
15
+ &__centos-color-1 {
16
+ width: 25%;
17
+ background-color: $centos-color-1;
18
+ }
19
+ &__centos-color-2 {
20
+ width: 25%;
21
+ background-color: $centos-color-2;
22
+ }
23
+ &__centos-color-3 {
24
+ width: 25%;
25
+ background-color: $centos-color-3;
26
+ }
27
+ }
@@ -1,54 +1,57 @@
1
- body {
1
+ .page, .blog, .aside, .download, .sponsors, .search, .post {
2
2
  display: flex;
3
- flex-direction: column;
4
- min-height: 100vh;
5
- }
6
-
7
- .home, .page, .blog, .aside, .download, .sponsors, .search, .post {
8
- display: flex;
9
- flex: 1;
10
3
  @extend .container;
11
4
  }
12
5
 
13
6
  .home {
14
- &__content {
15
- @extend .col-sm-12;
16
- @include content;
17
- &__distributions {
18
- .btn {
19
- @extend .btn-primary;
20
- width: 100%;
21
- margin-right: 15px;
22
- margin-bottom: $paragraph-margin-bottom;
7
+ flex-wrap: nowrap;
8
+ flex-direction: column;
9
+
10
+ &__planet, &__news-and-events {
11
+ &__title {
12
+ text-align: center;
13
+ &:nth-child(1){
14
+ margin-top: 2rem;
23
15
  }
24
16
  }
25
- &__sponsors {
26
- .card {
17
+ &__content {
18
+ @extend .container;
19
+ margin-top: 1em;
20
+ margin-bottom: 1em;
21
+ .btn {
22
+ text-align: left;
23
+ padding: 0;
27
24
  margin: 1em;
28
- margin-left: 0;
25
+ border-radius: 10px;
26
+ }
27
+ .card {
28
+ padding: 2em;
29
+ box-shadow: 0px 2px 3px 0px rgba(50, 50, 50, 0.25);
30
+ border-radius: 10px;
31
+ background: $white;
29
32
  border: none;
30
33
  }
31
- img {
32
- width: auto;
33
- height: 50px;
34
+ .card-body {
35
+ padding: 0;
34
36
  }
35
37
  }
36
- &__planet, &__news-and-events {
37
- a { font-weight: bold; }
38
- @include list-links;
38
+ }
39
+ &__news-and-events {
40
+ &__title {
41
+ }
42
+ }
43
+ &__planet {
44
+ &__title {
39
45
  }
40
46
  }
41
47
  }
42
48
 
43
49
  .aside {
44
- display: flex;
45
-
46
50
  &__nav {
47
51
  @include aside-nav;
48
52
  }
49
-
50
53
  &__content {
51
- @extend .col-sm-12, .col-md-12, .col-lg-8, .col-xl-8;
54
+ @extend .col-sm-12, .col-md-12, .col-lg-12, .col-xl-8;
52
55
  @include content;
53
56
  @include content-nav;
54
57
  }
@@ -56,7 +59,7 @@ body {
56
59
 
57
60
  .page {
58
61
  &__content {
59
- @extend .col-sm-12;
62
+ @extend .col-sm-12, .col-md-12, .col-lg-12, .col-xl-12;
60
63
  @include content;
61
64
  }
62
65
  }
@@ -64,7 +67,7 @@ body {
64
67
  .blog {
65
68
 
66
69
  &__content {
67
- @extend .col-sm-12;
70
+ @extend .col-sm-12, .col-md-12, .col-lg-12, .col-xl-12;
68
71
  @include content;
69
72
 
70
73
  &__breadcrumb {
@@ -113,7 +116,7 @@ body {
113
116
  }
114
117
 
115
118
  &__content {
116
- @extend .col-sm-12, .col-md-12, .col-lg-8, .col-xl-8;
119
+ @extend .col-sm-12, .col-md-12, .col-lg-12, .col-xl-8;
117
120
  @include content;
118
121
  @include content-nav;
119
122
  }
@@ -122,7 +125,7 @@ body {
122
125
 
123
126
  .search {
124
127
  &__content {
125
- @extend .col-sm-12;
128
+ @extend .col-sm-12, .col-md-12, .col-lg-12, .col-xl-12;
126
129
  @include content;
127
130
 
128
131
  .ais-search-box {
@@ -142,7 +145,6 @@ body {
142
145
  font-style: normal;
143
146
  }
144
147
  .post-breadcrumbs {
145
- display: block;
146
148
  font-size: small;
147
149
  }
148
150
  .post-snippet img {
@@ -1,8 +1,14 @@
1
1
  .navbar {
2
+ @extend .fixed-top;
3
+ @extend .navbar-expand-xl;
4
+ @extend .navbar-dark;
5
+
2
6
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
7
+
3
8
  &-dark {
4
9
  background: $dark;
5
10
  }
11
+
6
12
  &-brand {
7
13
  .manifestation {
8
14
  color: white;
@@ -1,6 +1,9 @@
1
1
  .toc {
2
2
  font-size: small;
3
- margin-bottom: calc(#{$paragraph-margin-bottom} * 1.25);
3
+
4
+ @include media-breakpoint-up(xm) {
5
+ margin-bottom: calc(#{$paragraph-margin-bottom} * 1.25);
6
+ }
4
7
 
5
8
  &__header {
6
9
  font-weight: $headings-font-weight;
@@ -6,14 +6,14 @@ $centos-color-0: #9ccd2a;
6
6
  $centos-color-1: #efa724;
7
7
  $centos-color-2: #a14f8c;
8
8
  $centos-color-3: #262577;
9
- $centos-img-logo: "/assets/img/logo.png";
10
- $centos-img-motif: "/assets/img/motif.png";
9
+ $centos-img-logo: "../img/logo.png";
10
+ $centos-img-motif: "../img/motif.png";
11
11
 
12
12
  // Color system - based in the artistic motif palette and the number of
13
13
  // occurrence each color has in the image.
14
14
  $white: #fff;
15
- $primary: #0f5dd5;
16
- $secondary: #0f1c4c;
15
+ $primary: $centos-color-2;
16
+ $secondary: $centos-color-3;
17
17
  $dark: #020008;
18
18
 
19
19
  // Header
@@ -19,12 +19,12 @@
19
19
  margin-bottom: 1rem;
20
20
  }
21
21
  .avatar {
22
- border-radius: 50px;
22
+ border-radius: $border-radius;
23
23
  margin-right: 1rem;
24
24
  margin-bottom: 1rem;
25
25
  }
26
26
  .comment-body {
27
- border-radius: 10px;
27
+ border-radius: $border-radius;
28
28
  background: #f8f8f8;
29
29
  padding: 1rem;
30
30
  }
@@ -11,8 +11,6 @@
11
11
  // sites (e.g., mirror.centos.org, people.centos.org and all the
12
12
  // user-specific pages under it.
13
13
  &__list {
14
- padding-bottom: $paragraph-margin-bottom;
15
- border-bottom: 1px solid lightgray;
16
14
  }
17
15
  img {
18
16
  width: auto;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jekyll-theme-centos v0.7.6 (https://gitlab.com/areguera/jekyll-theme-centos/)
2
+ * jekyll-theme-centos v0.8.0 (https://gitlab.com/areguera/jekyll-theme-centos/)
3
3
  * Copyright 2020-2021 Alain Reguera Delgado
4
4
  * Licensed under MIT (https://gitlab.com/areguera/jekyll-theme-centos/-/blob/master/LICENSE)
5
5
  */
@@ -15,6 +15,7 @@
15
15
  @import "centos/toc";
16
16
  @import "centos/breadcrumbs";
17
17
  @import "centos/nav";
18
+ @import "centos/hr";
18
19
  @import "centos/header";
19
20
  @import "centos/main";
20
21
  @import "centos/footer";
@@ -3,27 +3,20 @@
3
3
  width: 100%;
4
4
  margin-top: 15px;
5
5
  margin-left: 15px;
6
- margin-bottom: $paragraph-margin-bottom;
7
-
6
+ margin-bottom: 15px;
8
7
  align-self: start;
9
- position: sticky;
10
- top: calc(#{$navbar-brand-height + $paragraph-margin-bottom} + 10px);
11
8
 
12
9
  &__explorer {
13
10
  display: flex;
14
11
  justify-content: space-between;
15
12
  flex-direction: row;
16
- border-top: 1px solid $gray-300;
17
- margin-top: $paragraph-margin-bottom;
18
- margin-bottom: $paragraph-margin-bottom;
19
- padding-top: $paragraph-margin-bottom;
20
13
  }
21
14
 
22
15
  .toc {
23
16
  &__section {
24
17
  flex-direction: column;
25
- max-height: 65vh;
26
18
  overflow-y: auto;
19
+ max-height: 75vh;
27
20
  }
28
21
  }
29
22
 
@@ -31,8 +24,11 @@
31
24
  display: none;
32
25
  }
33
26
 
34
- @include media-breakpoint-up(lg) {
35
- display: block;
27
+ @include media-breakpoint-up(xl) {
28
+ display: flex;
29
+ flex-flow: column nowrap;
30
+ position: sticky;
31
+ top: calc(#{$navbar-brand-height + $paragraph-margin-bottom} + 10px);
36
32
  }
37
33
 
38
34
  }
@@ -3,8 +3,11 @@
3
3
  margin: 0;
4
4
  @include media-breakpoint-up(xm) {
5
5
  display: block;
6
+ .top {
7
+ margin-top: $paragraph-margin-bottom;
8
+ }
6
9
  }
7
- @include media-breakpoint-up(lg) {
10
+ @include media-breakpoint-up(xl) {
8
11
  display: none;
9
12
  }
10
13
  }
@@ -4,6 +4,7 @@
4
4
  padding: 2.75rem;
5
5
  margin-top: -120px;
6
6
  box-shadow: 0px -2px 3px 0px rgba(50, 50, 50, 0.25);
7
+ border-radius: 10px 10px 0 0;
7
8
 
8
9
  h1, h2, h3, h4, h5, h6 {
9
10
  scroll-margin-top: $scroll-margin-top + 2.5;
@@ -15,7 +16,6 @@
15
16
 
16
17
  h2 {
17
18
  margin-top: $scroll-margin-top;
18
- border-bottom: 3px solid $dark;
19
19
  }
20
20
 
21
21
  img {
@@ -74,4 +74,5 @@
74
74
  }
75
75
 
76
76
  @include code-header;
77
+
77
78
  }
data/assets/img/motif.png CHANGED
Binary file
@@ -1,3 +1,4 @@
1
+ // Copy code
1
2
  // Thanks Aleksandr
2
3
  // https://www.aleksandrhovhannisyan.com/blog/how-to-add-a-copy-to-clipboard-button-to-your-jekyll-blog/
3
4
  const codeBlocks = document.querySelectorAll(".code-header + .highlighter-rouge");
@@ -16,3 +17,13 @@ copyCodeButtons.forEach((copyCodeButton, index) => {
16
17
  }, 2000);
17
18
  });
18
19
  });
20
+
21
+ // Show top page button after scrolling down.
22
+ $("#topbtn").hide();
23
+ $(window).scroll(function() {
24
+ if ($(window).scrollTop() > 100) {
25
+ $("#topbtn").fadeIn("slow");
26
+ } else {
27
+ $("#topbtn").fadeOut("fast");
28
+ }
29
+ });
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-centos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alain Reguera Delgado
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-04 00:00:00.000000000 Z
11
+ date: 2021-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -82,7 +82,9 @@ files:
82
82
  - _includes/home/distributions.html
83
83
  - _includes/home/news-and-events.html
84
84
  - _includes/home/planet.html
85
+ - _includes/home/shortcuts.html
85
86
  - _includes/home/sponsors.html
87
+ - _includes/hr.html
86
88
  - _includes/navbar.html
87
89
  - _includes/page/alert-danger.html
88
90
  - _includes/page/alert-info.html
@@ -201,6 +203,7 @@ files:
201
203
  - _sass/centos/_footer.scss
202
204
  - _sass/centos/_header.scss
203
205
  - _sass/centos/_highlighter.scss
206
+ - _sass/centos/_hr.scss
204
207
  - _sass/centos/_main.scss
205
208
  - _sass/centos/_mixins.scss
206
209
  - _sass/centos/_nav.scss
@@ -350,7 +353,7 @@ files:
350
353
  - assets/img/post.png
351
354
  - assets/js/bootstrap.min.js
352
355
  - assets/js/bootstrap.min.js.map
353
- - assets/js/copycode.js
356
+ - assets/js/customization.js
354
357
  - assets/js/dataTables.bootstrap4.min.js
355
358
  - assets/js/instantsearch.min.js
356
359
  - assets/js/jquery.dataTables.min.js