hexo-theme-icarus/source/css/_partial/sidebar.styl

166 lines
3.9 KiB
Stylus
Raw Normal View History

2015-03-19 14:25:53 +00:00
#sidebar
2016-02-02 16:19:44 +00:00
@media mq-normal
column(sidebar-column)
@media mq-tablet
column(sidebar-column-tablet)
2015-03-19 14:25:53 +00:00
.widget
2016-02-02 16:19:44 +00:00
@extend $base-style
line-height: line-height
word-wrap: break-word
font-size: 0.9em
2015-03-19 14:25:53 +00:00
ul, ol
2016-02-02 16:19:44 +00:00
list-style: none
margin: 0
ul, ol
margin: 0 20px
ul
list-style: disc
ol
list-style: decimal
2015-03-19 14:25:53 +00:00
.category-list-count
.tag-list-count
.archive-list-count
2016-02-02 16:19:44 +00:00
padding-left: 5px
color: color-grey
font-size: 0.85em
&:before
content: "("
&:after
content: ")"
2015-03-19 14:25:53 +00:00
.tagcloud
2016-02-02 16:19:44 +00:00
a
margin-right: 5px
2015-03-19 14:25:53 +00:00
.widget-wrap
2016-02-02 16:19:44 +00:00
margin: block-margin 10px
@media mq-mini
margin: block-margin 20px
2015-03-19 14:25:53 +00:00
.widget-title
2016-02-02 16:19:44 +00:00
@extend $block-caption
margin-bottom: 0
2015-03-19 14:25:53 +00:00
.widget
2016-02-02 16:19:44 +00:00
padding: 15px 5px
a
2015-03-19 14:25:53 +00:00
color: color-sidebar-text
2016-02-02 16:19:44 +00:00
text-decoration: none
&:hover
color: color-sidebar-text-dark
ul, ol, dl
ul, ol, dl
margin-left: 15px
list-style: disc
2015-03-19 14:25:53 +00:00
ul, ol
2016-02-02 16:19:44 +00:00
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
ul:not(#recent-post), ol:not(#recent-post)
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
2015-03-19 14:25:53 +00:00
2015-03-20 09:29:51 +00:00
#toTop
2016-02-02 16:19:44 +00:00
@extend $block
display: none
2016-02-02 16:19:44 +00:00
cursor: pointer
text-align: center
width: 60px
height: 60px
2016-02-02 16:19:44 +00:00
color: white
font-size: 50px
line-height: 55px
2016-02-02 16:19:44 +00:00
background: color-default
opacity: 0.8
2016-02-02 16:19:44 +00:00
border-radius: 4px
bottom: 20px
position: fixed
2016-02-02 16:19:44 +00:00
@media mq-mobile
width: 52px
height: 52px
font-size: 34px
line-height: 52px
2016-02-02 16:19:44 +00:00
@media mq-mini
width: 48px
height: 48px
font-size: 32px
line-height: 48px
2015-03-20 09:29:51 +00:00
2015-03-19 14:25:53 +00:00
#recent-post
2015-04-05 08:05:08 +00:00
li
2016-02-02 16:19:44 +00:00
clearfix()
padding: 10px 0 10px 94px
&.no-thumbnail
li
padding: 10px 0px
li
.item-thumbnail
opacity: 1
float: left
margin-left: -94px
transition: all 0.2s ease
.thumbnail
width: 80px
height: 80px
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)
background-size: 100% 100%
.item-inner
a
.item-category
font-size: 13px
text-transform: uppercase
a
color: color-link
&:hover
color: color-sidebar-text-dark
a, .fa
margin-right: 5px
.item-title
font-size: 15px
a
color: color-sidebar-text-dark
transition: all 0.2s ease
.item-date
color: #aaa
font-size: 13px
text-transform: uppercase
&:hover
.item-thumbnail
opacity: 0.8
.item-title a
color: color-link