This commit is contained in:
Sodbileg Gansukh 2019-05-27 21:34:56 +08:00
parent 68e254b093
commit 074ded8057
16 changed files with 58 additions and 30 deletions

View File

@ -1,7 +1,5 @@
.author { .author {
background-color: @white-color; background-color: @white-color;
border-radius: 5px;
box-shadow: @shadow-base;
display: flex; display: flex;
margin-top: 30px; margin-top: 30px;
padding: 30px 20px; padding: 30px 20px;

View File

@ -1,7 +1,5 @@
.comment { .comment {
background-color: @white-color; background-color: @white-color;
border-radius: 5px;
box-shadow: @shadow-base;
margin-top: 30px; margin-top: 30px;
padding: 30px; padding: 30px;
} }

View File

@ -0,0 +1,14 @@
.page-template {
.single .post-header {
border-bottom: 1px solid @light-gray-color;
padding: 25px 30px;
}
}
@media (min-width: 992px) {
.page-template {
.content-column {
margin-left: 16.666667%;
}
}
}

View File

@ -3,12 +3,9 @@
} }
.post { .post {
border-radius: 5px;
box-shadow: @shadow-base;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 100%; height: 100%;
overflow: hidden;
} }
.post-wrapper { .post-wrapper {

View File

@ -1,3 +1,14 @@
.u-shadow {
border-radius: 5px;
box-shadow: @shadow-base;
overflow: hidden;
transition: box-shadow .3s @animation-base;
&:hover {
box-shadow: 0 0 20px rgba(0,0,0,.12);
}
}
.u-plain-list { .u-plain-list {
list-style-type: none; list-style-type: none;
margin: 0; margin: 0;

View File

@ -16,6 +16,7 @@
@import "site/footer.less"; @import "site/footer.less";
@import "blog/post.less"; @import "blog/post.less";
@import "blog/page.less";
@import "blog/featured.less"; @import "blog/featured.less";
@import "blog/single.less"; @import "blog/single.less";
@import "blog/share.less"; @import "blog/share.less";

View File

@ -1,7 +1,5 @@
.widget { .widget {
background-color: @white-color; background-color: @white-color;
border-radius: 5px;
box-shadow: @shadow-base;
padding: 20px; padding: 20px;
& + & { & + & {
@ -65,17 +63,8 @@
} }
} }
.recent-image-placeholder {
border-radius: 50%;
flex-shrink: 0;
height: 50px;
overflow: hidden;
width: 50px;
}
.post-header { .post-header {
margin-bottom: 0; margin-bottom: 0;
margin-left: 15px;
overflow: hidden; overflow: hidden;
} }

23
page.hbs Normal file
View File

@ -0,0 +1,23 @@
{{!< default}}
<div class="container">
<div class="row">
<div class="content-column col-lg-8">
<div class="content-area">
<main class="site-main">
{{#post}}
<article class="{{post_class}}{{#unless feature_image}} no-image{{/unless}} single u-shadow">
{{> post-header tag="h1" hide_link=true}}
{{> post-media}}
<div class="post-wrapper">
<div class="post-content u-text-format">
{{content}}
</div>
</div>
</article>
{{/post}}
</main>
</div>
</div>
</div>
</div>

View File

@ -1,5 +1,5 @@
{{#foreach authors}} {{#foreach authors}}
<section class="author"> <section class="author u-shadow">
<div class="author-image-placeholder u-placeholder"> <div class="author-image-placeholder u-placeholder">
<img class="author-image lazyload u-object-fit" data-src="{{img_url profile_image size="xs"}}" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="{{name}}"> <img class="author-image lazyload u-object-fit" data-src="{{img_url profile_image size="xs"}}" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="{{name}}">
</div> </div>

View File

@ -1,4 +1,4 @@
<div class="comment"> <div class="comment u-shadow">
<div id="disqus_thread"></div> <div id="disqus_thread"></div>
</div> </div>

View File

@ -1,4 +1,4 @@
<article class="{{post_class}}{{#unless feature_image}} no-image{{/unless}}"> <article class="{{post_class}}{{#unless feature_image}} no-image{{/unless}} u-shadow">
{{#if featured}} {{#if featured}}
<img class="post-image lazyload u-object-fit" <img class="post-image lazyload u-object-fit"
data-src="{{img_url feature_image}}" data-src="{{img_url feature_image}}"

View File

@ -1,7 +1,7 @@
<section class="widget widget-facebook widget-no-title"> <section class="widget widget-facebook widget-no-title u-shadow">
<div class="fb-page" <div class="fb-page"
{{!-- data-href="__YOUR_FACEBOOK_PAGE_URL__" --}} {{!-- data-href="__YOUR_FACEBOOK_PAGE_URL__" --}}
data-href="https://www.facebook.com/ultralinx" data-href="https://www.facebook.com/iveelco"
data-small-header="false" data-small-header="false"
data-hide-cover="false" data-hide-cover="false"
data-show-facepile="true" data-show-facepile="true"

View File

@ -1,3 +1,3 @@
<div class="widget widget-instagram widget-no-title"> <div class="widget widget-instagram widget-no-title u-shadow">
<div class="instagram-feed"></div> <div class="instagram-feed"></div>
</div> </div>

View File

@ -1,13 +1,10 @@
<div class="widget widget-recent"> <div class="widget widget-recent u-shadow">
<h4 class="widget-title">Recent Posts</h4> <h4 class="widget-title">Recent Posts</h4>
{{#get "posts" limit="3" include="tags" as |recents|}} {{#get "posts" limit="3" include="tags" as |recents|}}
{{#if recents}} {{#if recents}}
<div class="recent-posts"> <div class="recent-posts">
{{#foreach recents}} {{#foreach recents}}
<article class="recent"> <article class="recent">
<div class="recent-image-placeholder u-placeholder">
<img class="recent-image lazyload u-object-fit" data-src={{img_url feature_image size="xs"}} src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="{{title}}">
</div>
{{> post-header tag="h5" hide_tag=true show_date=true}} {{> post-header tag="h5" hide_tag=true show_date=true}}
</article> </article>
{{/foreach}} {{/foreach}}

View File

@ -1,4 +1,4 @@
<div class="widget widget-tags"> <div class="widget widget-tags u-shadow">
<h4 class="widget-title">Tags</h4> <h4 class="widget-title">Tags</h4>
{{#get "tags" limit="all" include="count.posts"}} {{#get "tags" limit="all" include="count.posts"}}
<div class="tag-feed"> <div class="tag-feed">

View File

@ -6,7 +6,7 @@
<div class="content-area"> <div class="content-area">
<main class="site-main"> <main class="site-main">
{{#post}} {{#post}}
<article class="{{post_class}}{{#unless feature_image}} no-image{{/unless}} single"> <article class="{{post_class}}{{#unless feature_image}} no-image{{/unless}} single u-shadow">
{{> post-header tag="h1" hide_link=true}} {{> post-header tag="h1" hide_link=true}}
<div class="post-meta"> <div class="post-meta">
<time class="post-meta-date" datetime="{{date format="YYYY-MM-DD"}}"> <time class="post-meta-date" datetime="{{date format="YYYY-MM-DD"}}">