css
This commit is contained in:
parent
5ab54f321d
commit
a43b6f3670
|
@ -18,13 +18,13 @@ if (page.menu_id == undefined) {
|
||||||
<% } %>
|
<% } %>
|
||||||
<% }); %>
|
<% }); %>
|
||||||
<% years.forEach((year, i) => { %>
|
<% years.forEach((year, i) => { %>
|
||||||
<article class='post-card<%- scrollreveal() %>' id='archive'>
|
<article class='<%- scrollreveal() %>' id='archive'>
|
||||||
<div class='archive-year h4'><%= year %></div>
|
<div class='archive-header h4'><%= year %></div>
|
||||||
<% site.posts.sort('date', -1).filter(function (post) { %>
|
<% site.posts.sort('date', -1).filter(function (post) { %>
|
||||||
<% post.year = date(post.date, 'YYYY'); %>
|
<% post.year = date(post.date, 'YYYY'); %>
|
||||||
<% return post.year == year; %>
|
<% return post.year == year; %>
|
||||||
<% }).each(function(post) { %>
|
<% }).each(function(post) { %>
|
||||||
<div>
|
<div class='archive-list'>
|
||||||
<a class='post fs14' href="<%= url_for(post.link || post.path) %>">
|
<a class='post fs14' href="<%= url_for(post.link || post.path) %>">
|
||||||
<time><%= date(post.date, 'MM-DD') %></time>
|
<time><%= date(post.date, 'MM-DD') %></time>
|
||||||
<span>
|
<span>
|
||||||
|
|
|
@ -9,7 +9,7 @@ if (page.menu_id == undefined) {
|
||||||
<% page.layout = 'categories'; %>
|
<% page.layout = 'categories'; %>
|
||||||
<%- partial('_partial/main/navbar/list_post') %>
|
<%- partial('_partial/main/navbar/list_post') %>
|
||||||
<div class='post-list'>
|
<div class='post-list'>
|
||||||
<article class='post-card<%- scrollreveal() %>' id='cats'>
|
<article class='<%- scrollreveal() %>' id='cats'>
|
||||||
<% site.categories.sort('path').each(function(category){ %>
|
<% site.categories.sort('path').each(function(category){ %>
|
||||||
<div>
|
<div>
|
||||||
<a class="<%= category.parent ? 'cat child' : 'cat'%>" href="<%= url_for(category.path) %>">
|
<a class="<%= category.parent ? 'cat child' : 'cat'%>" href="<%= url_for(category.path) %>">
|
||||||
|
|
|
@ -9,7 +9,7 @@ if (page.menu_id == undefined) {
|
||||||
<% page.layout = 'tags'; %>
|
<% page.layout = 'tags'; %>
|
||||||
<%- partial('_partial/main/navbar/list_post') %>
|
<%- partial('_partial/main/navbar/list_post') %>
|
||||||
<div class='post-list'>
|
<div class='post-list'>
|
||||||
<article class='post-card<%- scrollreveal() %>' id='tags'>
|
<article class='<%- scrollreveal() %>' id='tags'>
|
||||||
<% site.tags.sort('length', -1).each(function(tag){ %>
|
<% site.tags.sort('length', -1).each(function(tag){ %>
|
||||||
<a class='tag' href="<%= url_for(tag.path) %>">
|
<a class='tag' href="<%= url_for(tag.path) %>">
|
||||||
<span class='name'><%= tag.name %></span>
|
<span class='name'><%= tag.name %></span>
|
||||||
|
|
|
@ -1,12 +1,23 @@
|
||||||
.post-list .post-card#archive
|
.post-list #archive
|
||||||
.archive-year
|
.archive-header
|
||||||
color: $color-theme
|
display: inline-block
|
||||||
opacity: .4
|
|
||||||
font-family: $ff-code
|
font-family: $ff-code
|
||||||
font-weight: 700
|
font-weight: 700
|
||||||
line-height: 1.2
|
line-height: 1.2
|
||||||
padding-bottom: 0.5rem
|
margin-bottom: .5em
|
||||||
trans1 opacity
|
position: relative
|
||||||
|
padding: 4px 0
|
||||||
|
color: var(--text-p3)
|
||||||
|
&:after
|
||||||
|
content: ""
|
||||||
|
position: absolute
|
||||||
|
height: 4px
|
||||||
|
bottom: 0
|
||||||
|
left: 0
|
||||||
|
right: 0
|
||||||
|
z-index: -1
|
||||||
|
border-radius: 4px
|
||||||
|
background: var(--block-border)
|
||||||
a.post
|
a.post
|
||||||
display: inline-flex
|
display: inline-flex
|
||||||
align-items: baseline
|
align-items: baseline
|
||||||
|
@ -19,44 +30,64 @@
|
||||||
margin-right: 1em
|
margin-right: 1em
|
||||||
font-weight: 700
|
font-weight: 700
|
||||||
flex-shrink: 0
|
flex-shrink: 0
|
||||||
opacity .65
|
opacity .5
|
||||||
&:hover .archive-year
|
&:hover
|
||||||
opacity: 1
|
.archive-header
|
||||||
|
color: var(--text-p1)
|
||||||
|
&:after
|
||||||
|
background: $color-theme
|
||||||
|
|
||||||
.post-list .post-card#cats
|
|
||||||
|
|
||||||
|
.post-list #cats
|
||||||
|
padding: 0
|
||||||
a.cat
|
a.cat
|
||||||
display: flex
|
display: flex
|
||||||
&.child
|
&.child
|
||||||
padding-left: 2rem
|
padding-left: 2rem
|
||||||
padding: 0.5rem 1rem
|
padding: .5em 1rem
|
||||||
border-radius: $border-block
|
border-radius: $border-block
|
||||||
color: var(--text-p2)
|
color: var(--text-p2)
|
||||||
align-items: center
|
align-items: center
|
||||||
justify-content: space-between
|
justify-content: space-between
|
||||||
|
font-weight: 500
|
||||||
|
font-size: $fs-14
|
||||||
.badge
|
.badge
|
||||||
color: $color-theme
|
|
||||||
font-weight: 700
|
font-weight: 700
|
||||||
font-family: $ff-code
|
font-family: $ff-code
|
||||||
opacity: .5
|
opacity: .5
|
||||||
|
font-size: $fs-12
|
||||||
&:hover
|
&:hover
|
||||||
background: var(--block)
|
background: var(--block-hover)
|
||||||
color: var(--text-p0)
|
color: var(--text-p0)
|
||||||
.badge
|
.badge
|
||||||
opacity: 1
|
opacity: 1
|
||||||
|
color: $color-theme
|
||||||
|
|
||||||
.post-list .post-card#tags
|
.post-list #tags
|
||||||
display: flex
|
display: flex
|
||||||
flex-wrap: wrap
|
flex-wrap: wrap
|
||||||
|
padding: 0
|
||||||
|
margin: 0 -4px
|
||||||
a.tag
|
a.tag
|
||||||
display: inline-flex
|
display: inline-flex
|
||||||
align-items: center
|
align-items: center
|
||||||
position: relative
|
position: relative
|
||||||
color: var(--text-p2)
|
color: var(--text-p2)
|
||||||
margin: 4px
|
margin: 4px
|
||||||
padding: 4px 8px
|
padding: .5em .75rem
|
||||||
border-radius: 4px
|
border-radius: 4px
|
||||||
background: var(--block)
|
background: var(--block)
|
||||||
font-size: $fs-14
|
font-size: $fs-13
|
||||||
|
font-weight: 500
|
||||||
|
&:before
|
||||||
|
content: "#"
|
||||||
|
margin-left: -2px
|
||||||
|
margin-right: 2px
|
||||||
|
opacity: .4
|
||||||
&:hover
|
&:hover
|
||||||
|
&:before
|
||||||
|
color $color-theme
|
||||||
|
opacity: 1
|
||||||
color: var(--text-p0)
|
color: var(--text-p0)
|
||||||
background: var(--block-hover)
|
background: var(--block-hover)
|
||||||
|
|
|
@ -29,19 +29,18 @@
|
||||||
line-height: 1.5
|
line-height: 1.5
|
||||||
.tag-plugin.navbar:last-child
|
.tag-plugin.navbar:last-child
|
||||||
nav.cap
|
nav.cap
|
||||||
padding: 0
|
margin-top: 1rem
|
||||||
background: none
|
|
||||||
a
|
a
|
||||||
margin: 0
|
margin: 0
|
||||||
padding: 0
|
|
||||||
color: $color-link
|
color: $color-link
|
||||||
|
background: var(--block-hover)
|
||||||
&.active
|
&.active
|
||||||
background: none
|
background: none
|
||||||
&:hover
|
&:hover
|
||||||
color: $color-hover
|
color: $color-hover
|
||||||
background: none
|
background: var(--block-border)
|
||||||
a+a
|
a+a
|
||||||
margin-left: 1.5rem
|
margin-left: .5rem
|
||||||
.about-header+.about-body
|
.about-header+.about-body
|
||||||
margin-top: 1.5rem
|
margin-top: 1.5rem
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue