Skip to content

Commit

Permalink
Merge pull request #158 from simonsmh/patch-1
Browse files Browse the repository at this point in the history
fix(layout): fix elevation for posts
  • Loading branch information
pidupuis committed Jan 22, 2017
2 parents 7f08939 + 4a6c517 commit 339831f
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 14 deletions.
9 changes: 8 additions & 1 deletion _config.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,14 @@ sidebar:
#icon: person



# Card Elevation Level
card_elevation: 2

# Pages Menu
pages:
#About:
#link: "/about"
#icon: person

# Qrcode for redirect at other device
qrcode: false
Expand Down
4 changes: 2 additions & 2 deletions layout/_partial/Isolation-post_entry.ejs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="post_entry-module mdl-card mdl-cell mdl-cell--12-col fade out">
<div class="post_entry-module mdl-card <% if(theme.card_elevation) { %><%= 'mdl-shadow--' + theme.card_elevation + 'dp' %><% } %> mdl-cell mdl-cell--12-col fade out">
<!-- Post_entry Header -->
<% if(post.thumbnail == undefined) { %>
<% if(!post.thumbnail) { %>
<!-- Post Header Info -->
<div class="post_entry-header_info without-thumbnail">
<!-- Author Avatar & Name -->
Expand Down
2 changes: 1 addition & 1 deletion layout/_partial/Paradox-post_entry.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="post_entry-module mdl-card mdl-cell mdl-cell--12-col fade out">
<div class="post_entry-module mdl-card <% if(theme.card_elevation) { %><%= 'mdl-shadow--' + theme.card_elevation + 'dp' %><% } %> mdl-cell mdl-cell--12-col fade out">
<!-- Post Thumbnail -->
<% if(!post.thumbnail) { %>
<% if(!theme.thumbnail.purecolor) { %>
Expand Down
2 changes: 1 addition & 1 deletion layout/_partial/blog_info.ejs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Blog info -->
<div class="mdl-card something-else mdl-cell mdl-cell--8-col mdl-cell--4-col-desktop index-top-block">
<div class="mdl-card <% if(theme.card_elevation) { %><%= 'mdl-shadow--' + theme.card_elevation + 'dp' %><% } %> something-else mdl-cell mdl-cell--8-col mdl-cell--4-col-desktop index-top-block">

<!-- Search -->
<%- partial('_partial/Paradox-search') %>
Expand Down
2 changes: 1 addition & 1 deletion layout/_partial/daily_pic.ejs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Daily pic -->
<div class="mdl-card daily-pic mdl-cell mdl-cell--8-col index-top-block">
<div class="mdl-card <% if(theme.card_elevation) { %><%= 'mdl-shadow--' + theme.card_elevation + 'dp' %><% } %> daily-pic mdl-cell mdl-cell--8-col index-top-block">

<!-- Pic & Slogan -->
<div class="mdl-card__media mdl-color-text--grey-50" style="background-image:url(<%= theme.img.daily_pic %>)">
Expand Down
2 changes: 1 addition & 1 deletion layout/post.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<!-- Hidden Page -->
<div class="material-post_container">
<div class="material-post mdl-grid">
<div class="mdl-card mdl-shadow--4dp mdl-cell mdl-cell--12-col">
<div class="mdl-card <% if(theme.card_elevation) { %><%= 'mdl-shadow--' + theme.card_elevation + 'dp' %><% } %> mdl-cell mdl-cell--12-col">
<!-- Post Header(Thumbnail & Title) -->
<%- partial('_partial/post-header') %>
Expand Down
12 changes: 6 additions & 6 deletions source/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ a {
min-height: 400px;
flex-direction: column;
align-items: stretch;
border-radius: 5px;
border-radius: 2px;
}
@media screen and (max-width: 480px) {
#scheme-Paradox .material-post .mdl-card {
Expand Down Expand Up @@ -1261,9 +1261,9 @@ a {


#scheme-Isolation .post_entry-module {
margin-bottom: 24px;
width: 100%;
border-radius: 5px;
margin-bottom: 24px;
width: 100%;
border-radius: 2px;
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
Expand Down Expand Up @@ -1787,8 +1787,8 @@ a {
}

#scheme-Isolation .material-post .mdl-card{
width: 100%;
border-radius: 5px;
width: 100%;
border-radius: 2px;
}

#scheme-Isolation .material-nav a{
Expand Down
2 changes: 1 addition & 1 deletion source/css/style.min.css

Large diffs are not rendered by default.

0 comments on commit 339831f

Please sign in to comment.