jekyll-theme-centos 0.7.7 → 0.8.1

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: 6a2b951477c5432c04ba1f0d582c3c7ed34e73e05e759deb2a0a90e855f192a2
4
- data.tar.gz: 17ad9416ce67a974a1a0c276cff20816e1b7fe356e614ae8140f138d00c53318
3
+ metadata.gz: ff10403bfccef61d8236575cd0ffe8685263e514abbb2872e84b260777d8aab9
4
+ data.tar.gz: fafbe9de0f7b5f2e2de346350f385538d08a40c00da599369f2b89cc19a57af3
5
5
  SHA512:
6
- metadata.gz: 5d52557d08c09f3a55a5015ff66854907afa87ac2d9c019c185ba9511cb5480cd8cbe3e5da543c71c4b68c14f8816338a4c20a5d8a1131cd0a20a049f36ec254
7
- data.tar.gz: ac2e651550a6c1656e26cd0433af9cf104285575627538d9b3c5aec3a636b327cd2abd3b3120f7732e9c97c7a95b29df9528d17b5a08d64ba62a88de1e1a083e
6
+ metadata.gz: f267820f1d425f00c2016234b511969649b5ab1b261fd99f737c684a15826b1032b75ecb10cf70a0a040ded92e1962b2a2b4c5bfb6202b706eab7349f8b47492
7
+ data.tar.gz: a55b31b24149e4b50ceb64ef5e5fe1199521eae57f49a564d3507a9eb8cbd855fb5a99009f109c486353fc63d3b19ae34889c0ae098383a30d6d083397db9747
@@ -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
+ }
@@ -4,51 +4,60 @@ body {
4
4
  min-height: 100vh;
5
5
  }
6
6
 
7
- .home, .page, .blog, .aside, .download, .sponsors, .search, .post {
7
+ .page, .blog, .aside, .download, .sponsors, .search, .post {
8
8
  display: flex;
9
- flex: 1;
10
9
  @extend .container;
11
10
  }
12
11
 
13
12
  .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;
13
+ flex-wrap: nowrap;
14
+ flex-direction: column;
15
+
16
+ &__planet, &__news-and-events {
17
+ &__title {
18
+ text-align: center;
19
+ &:nth-child(1){
20
+ margin-top: 2rem;
23
21
  }
24
22
  }
25
- &__sponsors {
26
- .card {
23
+ &__content {
24
+ @extend .container;
25
+ margin-top: 1em;
26
+ margin-bottom: 1em;
27
+ .btn {
28
+ text-align: left;
29
+ padding: 0;
27
30
  margin: 1em;
28
- margin-left: 0;
31
+ border-radius: 10px;
32
+ }
33
+ .card {
34
+ padding: 2em;
35
+ box-shadow: 0px 2px 3px 0px rgba(50, 50, 50, 0.25);
36
+ border-radius: 10px;
37
+ background: $white;
29
38
  border: none;
30
39
  }
31
- img {
32
- width: auto;
33
- height: 50px;
40
+ .card-body {
41
+ padding: 0;
34
42
  }
35
43
  }
36
- &__planet, &__news-and-events {
37
- a { font-weight: bold; }
38
- @include list-links;
44
+ }
45
+ &__news-and-events {
46
+ &__title {
47
+ }
48
+ }
49
+ &__planet {
50
+ &__title {
39
51
  }
40
52
  }
41
53
  }
42
54
 
43
55
  .aside {
44
- display: flex;
45
-
46
56
  &__nav {
47
57
  @include aside-nav;
48
58
  }
49
-
50
59
  &__content {
51
- @extend .col-sm-12, .col-md-12, .col-lg-8, .col-xl-8;
60
+ @extend .col-sm-12, .col-md-12, .col-lg-12, .col-xl-8;
52
61
  @include content;
53
62
  @include content-nav;
54
63
  }
@@ -56,7 +65,7 @@ body {
56
65
 
57
66
  .page {
58
67
  &__content {
59
- @extend .col-sm-12;
68
+ @extend .col-sm-12, .col-md-12, .col-lg-12, .col-xl-12;
60
69
  @include content;
61
70
  }
62
71
  }
@@ -64,7 +73,7 @@ body {
64
73
  .blog {
65
74
 
66
75
  &__content {
67
- @extend .col-sm-12;
76
+ @extend .col-sm-12, .col-md-12, .col-lg-12, .col-xl-12;
68
77
  @include content;
69
78
 
70
79
  &__breadcrumb {
@@ -113,7 +122,7 @@ body {
113
122
  }
114
123
 
115
124
  &__content {
116
- @extend .col-sm-12, .col-md-12, .col-lg-8, .col-xl-8;
125
+ @extend .col-sm-12, .col-md-12, .col-lg-12, .col-xl-8;
117
126
  @include content;
118
127
  @include content-nav;
119
128
  }
@@ -122,7 +131,7 @@ body {
122
131
 
123
132
  .search {
124
133
  &__content {
125
- @extend .col-sm-12;
134
+ @extend .col-sm-12, .col-md-12, .col-lg-12, .col-xl-12;
126
135
  @include content;
127
136
 
128
137
  .ais-search-box {
@@ -142,7 +151,6 @@ body {
142
151
  font-style: normal;
143
152
  }
144
153
  .post-breadcrumbs {
145
- display: block;
146
154
  font-size: small;
147
155
  }
148
156
  .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;
@@ -12,8 +12,8 @@ $centos-img-motif: "../img/motif.png";
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.7 (https://gitlab.com/areguera/jekyll-theme-centos/)
2
+ * jekyll-theme-centos v0.8.1 (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.7
4
+ version: 0.8.1
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