Skip to content

Commit

Permalink
Upgrade clean blog theme to v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
chadly committed Sep 15, 2018
1 parent 8dace19 commit 7fcb8c0
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 8 deletions.
11 changes: 11 additions & 0 deletions content/themes/clean-blog/assets/bs-alerts.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.alert .fa {
display: table-cell;
padding: 0 0.5em 0 0.2em;
opacity: 0.2;
font-size: 1.5em;
vertical-align: middle;
}

.alert p {
display: table-cell;
}
1 change: 1 addition & 0 deletions content/themes/clean-blog/assets/content.less
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
img {
display: block;
max-width: 100%;
margin: 10px auto;
}

.kg-image-card img {
Expand Down
1 change: 1 addition & 0 deletions content/themes/clean-blog/assets/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

@import "layout.less";
@import "content.less";
@import "bs-alerts.less";

//I don't know why this isn't the default
.alert a {
Expand Down
22 changes: 18 additions & 4 deletions content/themes/clean-blog/assets/layout.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ header.site {
background-attachment: scroll;
.background-cover; //NOTE: Background images are set within the HTML using inline CSS!

&.no-cover {
background-color: black;
}

section {
padding: 150px 0;

Expand All @@ -35,6 +31,17 @@ header.site {
}
}

&.no-cover {
// https://uigradients.com/#Royal
background: #141E30; /* fallback for old browsers */
background: -webkit-linear-gradient(to bottom, #243B55, #141E30); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to bottom, #243B55, #141E30); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

section {
padding: 25px 0;
}
}

h1, h2, time, .author-meta, .post-meta {
color: #f8f8f9;

Expand Down Expand Up @@ -127,6 +134,13 @@ header.site {
max-height: 30px;
margin: 10px;
}

color: #f8f8f9;

a {
color: #f8f8f9;
text-decoration: none;
}
}

main.site {
Expand Down
32 changes: 29 additions & 3 deletions content/themes/clean-blog/assets/site-debug.css
Original file line number Diff line number Diff line change
Expand Up @@ -6906,9 +6906,6 @@ header.site {
-o-background-size: cover;
margin-bottom: 50px;
}
header.site.no-cover {
background-color: black;
}
header.site section {
padding: 150px 0;
}
Expand All @@ -6917,6 +6914,17 @@ header.site section {
padding: 75px 0;
}
}
header.site.no-cover {
background: #141E30;
/* fallback for old browsers */
background: -webkit-linear-gradient(to bottom, #243B55, #141E30);
/* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to bottom, #243B55, #141E30);
/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
header.site.no-cover section {
padding: 25px 0;
}
header.site h1,
header.site h2,
header.site time,
Expand Down Expand Up @@ -6993,6 +7001,9 @@ header.site .author-profile-image {
.home-template .navbar-brand {
display: none;
}
.error-template header.site {
color: #f8f8f9;
}
.error-template header.site .container,
.error-template header.site main.site,
.error-template header.site footer.site section {
Expand All @@ -7002,6 +7013,10 @@ header.site .author-profile-image {
max-height: 30px;
margin: 10px;
}
.error-template header.site a {
color: #f8f8f9;
text-decoration: none;
}
.error-template main.site {
text-align: center;
}
Expand Down Expand Up @@ -7120,6 +7135,7 @@ footer.site a {
.page-template main article img {
display: block;
max-width: 100%;
margin: 10px auto;
}
.post-template main article .kg-image-card img,
.page-template main article .kg-image-card img {
Expand Down Expand Up @@ -7178,3 +7194,13 @@ figcaption {
border-radius: 100%;
object-fit: cover;
}
.alert .fa {
display: table-cell;
padding: 0 0.5em 0 0.2em;
opacity: 0.2;
font-size: 1.5em;
vertical-align: middle;
}
.alert p {
display: table-cell;
}
2 changes: 1 addition & 1 deletion content/themes/clean-blog/assets/site.css

Large diffs are not rendered by default.

0 comments on commit 7fcb8c0

Please sign in to comment.