hexo-theme-amane/source/css/_partial/archive.styl

141 lines
2.6 KiB
Stylus
Raw Normal View History

2015-03-19 14:25:53 +00:00
.archives
clearfix()
2015-03-20 09:29:51 +00:00
.article:first-child
margin: 20px 0
2015-03-19 14:25:53 +00:00
2015-05-28 01:36:20 +00:00
.archive-year-wrap,
.archive-category-wrap,
.archive-tag-wrap,
.layout-title
font-size: 1.4em
margin: block-margin 0 20px 0
@media mq-mini
2015-05-28 01:36:20 +00:00
padding: 0 15px
font-size: 1.2em
2015-03-20 09:29:51 +00:00
.fa
margin-right: 3px
.archive-year
color: color-default
&:hover
color: color-link
2015-07-24 13:54:28 +00:00
.layout-wrap-inner
@media mq-mini
padding: 0 15px
2015-03-19 14:25:53 +00:00
.archive-year
@extend $block-caption
.archive-article
2015-05-28 01:36:20 +00:00
clearfix()
2015-03-19 14:25:53 +00:00
avoid-column-break()
@extend $block
2015-05-28 01:36:20 +00:00
padding: 0
2015-03-19 14:25:53 +00:00
margin-bottom: 15px
2015-07-24 13:54:28 +00:00
2015-05-28 01:36:20 +00:00
.archive-article-thumbnail
float: left
margin-right: 10px
.thumbnail
width: 160px
height: 90px
display: block
position: relative
overflow: hidden
span
width: 100%
height: 100%
display: block
.thumbnail-image
position: absolute
background-size: cover
background-position: center
.thumbnail-none
background-image: url(thumbnail-default-small)
@media mq-mini
.thumbnail
width: 120px
height: 67.5px
2015-03-19 14:25:53 +00:00
2015-05-28 01:36:20 +00:00
.archive-article-header
padding: 10px
a
@extend $link-dark
2015-07-24 13:54:28 +00:00
2015-03-19 14:25:53 +00:00
.archive-article-title
2015-05-28 01:36:20 +00:00
font-size: 1.2em
line-height: 1.2em
@media mq-mini
font-size: 1em
line-height: 1em
height: 1em
overflow: hidden
display: block
2015-03-19 14:25:53 +00:00
.archive-article-date
display: block
2015-05-28 01:36:20 +00:00
margin-top: 8px
2015-07-24 13:54:28 +00:00
2015-05-28 01:36:20 +00:00
.layout-wrap-inner
&.list-categories
ul
margin-left: 15px
list-style: none
li,
.category-list-child
padding: 10px 0
font-size: font-size
border-bottom: 1px solid border-color
a
color: color-sidebar-text
ul, ol
list-style: none
li
border: none
&:last-child
padding-bottom: 0px
li
a
&:before
color: #ccc
content: "\f0da"
font-size: 12px
margin-right: 6px
font-family: FontAwesome
transition: 0.2s ease
&:hover:before
color: color-sidebar-text-dark
&.tag-cloud
a
@extend $link-dark
margin-right: 8px
&:before
content: '#'
2015-03-19 14:25:53 +00:00
#page-nav
clearfix()
margin: block-margin auto
text-align: center
color: color-grey
overflow: hidden
a, span
2015-03-20 09:29:51 +00:00
height: 32px
padding: 0 10px
line-height: 32px
text-align: center
display: inline-block
border-radius: 2px
2015-03-19 14:25:53 +00:00
a
color: color-grey
text-decoration: none
&:hover
2015-03-20 09:29:51 +00:00
color: white
background: color-link
2015-03-19 14:25:53 +00:00
.page-number
display: inline-block
2015-03-20 09:29:51 +00:00
@media mq-mini
2015-03-19 14:25:53 +00:00
display: none
.current
color: color-default
font-weight: bold
.space
color: color-border