-
Notifications
You must be signed in to change notification settings - Fork 564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ui): custom elevation for posts #158
Conversation
Your pull request doesn't follow our guidelines. Please fix the following:
Click here for details. Thank you! 🙏 |
This pull request still violates some of our guidelines:
Click here for details. |
This pull request still violates some of our guidelines:
Click here for details. |
This pull request still violates some of our guidelines:
Click here for details. |
This pull request still violates some of our guidelines:
Click here for details. |
Thank you, the title and description now looks good! |
烦透了!! |
@simonsmh 我第一次用的时候跟他奋斗了2个小时 |
done done done |
@simonsmh 恭喜,第一次遇到这个确实挺难过的 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't decided whether to change this elevation.
It's a preference, so at least we should add a configuration.
@viosey
如果这算是material design,那么就应当采用card应有的形式。Google mdl的template只是个sample,项目可以自己修改,不用完全照搬啊。 |
@simonsmh 这套 scheme 叫做 |
好的,不过大概明天晚上才能改了 |
done |
呃,可能我没有说清楚,就是配置的话不要使用开关的形式,而是自定义高度,以数值为参数 |
viosey是做产品经理的么
Viosey <notifications@github.com>于2017年1月20日周五 16:02写道:
… 呃,可能我没有说清楚,就是配置的话不要使用开关的形式,而是自定义高度,以数值为参数
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#158 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJEkg3QTrW_kWzygHCu5FOXa8bMRncr-ks5rUGoBgaJpZM4Ln_ji>
.
|
分明是一只大学汪 |
是这种样子的嘛? |
差不多了,我再修改一下 |
@@ -552,7 +552,7 @@ a { | |||
min-height: 400px; | |||
flex-direction: column; | |||
align-items: stretch; | |||
border-radius: 5px; | |||
border-radius: 2px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Please fix tab (use 4 tabs)
@@ -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_entry Header --> | |||
<% if(post.thumbnail == undefined) { %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Please use
<% if(!post.thumbnail) { %>
@@ -1287,7 +1287,7 @@ a { | |||
#scheme-Isolation .post_entry-module { | |||
margin-bottom: 24px; | |||
width: 100%; | |||
border-radius: 5px; | |||
border-radius: 2px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Please fix tab (use 4 tabs)
@@ -1812,7 +1812,7 @@ a { | |||
|
|||
#scheme-Isolation .material-post .mdl-card{ | |||
width: 100%; | |||
border-radius: 5px; | |||
border-radius: 2px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Please fix tab (use 4 tabs)
@@ -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"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use <% if(theme.card_elevation) { %><%= 'mdl-shadow--' + theme.card_elevation + 'dp' %><% } %>
for more readability
@@ -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"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use <% if(theme.card_elevation) { %><%= 'mdl-shadow--' + theme.card_elevation + 'dp' %><% } %>
for more readability
@@ -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"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use <% if(theme.card_elevation) { %><%= 'mdl-shadow--' + theme.card_elevation + 'dp' %><% } %>
for more readability
@@ -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"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use <% if(theme.card_elevation) { %><%= 'mdl-shadow--' + theme.card_elevation + 'dp' %><% } %>
for more readability
Review please.
Pierre Dupuis <notifications@github.com>于2017年1月20日周五 20:13写道:
… ***@***.**** requested changes on this pull request.
------------------------------
In source/css/style.css
<#158 (review)>
:
> @@ -552,7 +552,7 @@ a {
min-height: 400px;
flex-direction: column;
align-items: stretch;
- border-radius: 5px;
+ border-radius: 2px;
- Please fix tab (use 4 tabs)
------------------------------
In layout/_partial/Isolation-post_entry.ejs
<#158 (review)>
:
> @@ -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_entry Header -->
<% if(post.thumbnail == undefined) { %>
- Please use <% if(!post.thumbnail) { %>
------------------------------
In source/css/style.css
<#158 (review)>
:
> @@ -1287,7 +1287,7 @@ a {
#scheme-Isolation .post_entry-module {
margin-bottom: 24px;
width: 100%;
- border-radius: 5px;
+ border-radius: 2px;
- Please fix tab (use 4 tabs)
------------------------------
In source/css/style.css
<#158 (review)>
:
> @@ -1812,7 +1812,7 @@ a {
#scheme-Isolation .material-post .mdl-card{
width: 100%;
- border-radius: 5px;
+ border-radius: 2px;
- Please fix tab (use 4 tabs)
------------------------------
In layout/_partial/Paradox-post_entry.ejs
<#158 (review)>
:
> @@ -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">
I would use <% if(theme.card_elevation) { %><%= 'mdl-shadow--' +
theme.card_elevation + 'dp' %><% } %> for more readability
------------------------------
In layout/_partial/blog_info.ejs
<#158 (review)>
:
> @@ -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">
I would use <% if(theme.card_elevation) { %><%= 'mdl-shadow--' +
theme.card_elevation + 'dp' %><% } %> for more readability
------------------------------
In layout/_partial/daily_pic.ejs
<#158 (review)>
:
> @@ -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">
I would use <% if(theme.card_elevation) { %><%= 'mdl-shadow--' +
theme.card_elevation + 'dp' %><% } %> for more readability
------------------------------
In layout/post.ejs
<#158 (review)>
:
> @@ -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">
I would use <% if(theme.card_elevation) { %><%= 'mdl-shadow--' +
theme.card_elevation + 'dp' %><% } %> for more readability
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#158 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJEkg-Xdalmm0WgD-cDFEEH8kiu9JWI1ks5rUKTkgaJpZM4Ln_ji>
.
|
Don't worry about gitmagic for this time, your commit message is good. It was bad config from our part sorry |
Contributing rules
canary
. Then be sure to put thecanary
branch as the target for your pull request.What kind of change does this PR introduce? (check one with "x")
Does this PR introduce a breaking change? (check one with "x")
Fix #54
Reference: cards-section
to review