Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bootstrap 4 update for plugins site
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Apr 22, 2018
1 parent d38c08a commit 84776e3
Show file tree
Hide file tree
Showing 6 changed files with 8,657 additions and 6,081 deletions.
69 changes: 66 additions & 3 deletions site/files/assets/css/custom.css
@@ -1,3 +1,7 @@
body {
color: #212529;
}

ul.bricks {
text-align: justify;
}
Expand All @@ -19,8 +23,8 @@ blockquote p, blockquote, p {

.previous a,.next a{border-radius:4px}

.navbar-inverse .navbar-nav > li > a {
color: #cccfd5;
.navbar-brand {
padding: 0;
}

.navbar-brand #logo {
Expand Down Expand Up @@ -74,13 +78,16 @@ a.feature-link:hover {

pre.gs-console {
background: #272822;
color: #f8f8f2
color: #f8f8f2;
font-size: 12px;
}

code.gs-code {
background: #272822;
color: #f8f8f2;
white-space: nowrap;
padding: 2px 4px;
border-radius: 4px;
}

.gs-command, code.gs-command {
Expand All @@ -95,6 +102,32 @@ code.gs-code {
color: #a6e22e;
}

.gs-right-col .gs-console {
-webkit-position: sticky;
position: sticky;
top: 10px;
}

@media (max-width: 767px) {
.gs-left-col {
padding-left: 0;
padding-right: 0;
}
.gs-right-col {
padding-left: 0;
padding-right: 0;
}
}

@media (min-width: 768px) {
.gs-left-col {
padding-left: 0;
}
.gs-right-col {
padding-right: 0;
}
}

/* from bootstrap docs.css*/
@media (min-width: 992px) {
/* Widen the fixed sidebar */
Expand Down Expand Up @@ -125,3 +158,33 @@ code.gs-code {
max-height: 80vh;
width: auto;
}

/* Header permalinks */
h1:hover .headerlink, h2:hover .headerlink,
h3:hover .headerlink, h4:hover .headerlink,
h5:hover .headerlink, h6:hover .headerlink {
display: inline;
}

.headerlink {
display: none;
color: #ddd;
margin-left: 0.2em;
padding: 0 0.2em;
}

.headerlink:hover {
opacity: 1;
background: #ddd;
color: #000;
text-decoration: none;
}

.forkme {
position: absolute;
top: 66px;
right: 0;
border: 0;
z-index: 9999;
}

103 changes: 0 additions & 103 deletions site/templates/base.tmpl

This file was deleted.

3 changes: 2 additions & 1 deletion site/templates/plugin.tmpl
Expand Up @@ -30,7 +30,8 @@
</div>
</header>
<div class="e-content entry-content" itemprop="articleBody text">
<div class="well well-sm">To install, run <code>nikola plugin -i ${post.meta('slug')}</code>
<div class="card bg-light border-primary mb-2">
<div class="card-body">To install, run <kbd>nikola plugin -i ${post.meta('slug')}</kbd></div>
</div>
${post.text()}
% if post.meta('confpy'):
Expand Down

0 comments on commit 84776e3

Please sign in to comment.