sidebar.styl 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. #sidebar
  2. @media mq-normal
  3. column(sidebar-column)
  4. @media mq-tablet
  5. column(sidebar-column-tablet)
  6. .widget
  7. @extend $base-style
  8. line-height: line-height
  9. word-wrap: break-word
  10. font-size: 0.9em
  11. ul, ol
  12. list-style: none
  13. margin: 0
  14. ul, ol
  15. margin: 0 20px
  16. ul
  17. list-style: disc
  18. ol
  19. list-style: decimal
  20. .category-list-count
  21. .tag-list-count
  22. .archive-list-count
  23. padding-left: 5px
  24. color: color-grey
  25. font-size: 0.85em
  26. &:before
  27. content: "("
  28. &:after
  29. content: ")"
  30. .tagcloud
  31. a
  32. margin-right: 5px
  33. .widget-wrap
  34. margin: block-margin 10px
  35. @media mq-mini
  36. margin: block-margin 20px
  37. .widget-title
  38. @extend $block-caption
  39. margin-bottom: 0
  40. .widget
  41. padding: 15px 5px
  42. a
  43. color: color-sidebar-text
  44. text-decoration: none
  45. &:hover
  46. color: color-sidebar-text-dark
  47. ul, ol, dl
  48. ul, ol, dl
  49. margin-left: 15px
  50. list-style: disc
  51. ul, ol
  52. list-style: none
  53. li
  54. padding: 10px 0
  55. font-size: font-size
  56. border-bottom: 1px solid border-color
  57. a
  58. color: color-sidebar-text
  59. ul, ol
  60. list-style: none
  61. li
  62. border: none
  63. &:last-child
  64. padding-bottom: 0px
  65. ul:not(#recent-post), ol:not(#recent-post)
  66. li
  67. a
  68. &:before
  69. color: #ccc
  70. content: "\f0da"
  71. font-size: 12px
  72. margin-right: 6px
  73. font-family: FontAwesome
  74. transition: 0.2s ease
  75. &:hover:before
  76. color: color-sidebar-text-dark
  77. #toTop
  78. @extend $block
  79. cursor: pointer
  80. text-align: center
  81. width: 64px
  82. height: 64px
  83. color: white
  84. font-size: 32px
  85. line-height: 64px
  86. background: color-default
  87. border-radius: 4px
  88. @media mq-mobile
  89. width: 54px
  90. height: 54px
  91. font-size: 28px
  92. line-height: 54px
  93. @media mq-mini
  94. width: 54px
  95. height: 54px
  96. font-size: 28px
  97. line-height: 54px
  98. &.fix
  99. bottom: 20px
  100. position: fixed
  101. #recent-post
  102. li
  103. clearfix()
  104. padding: 10px 0 10px 94px
  105. &.no-thumbnail
  106. li
  107. padding: 10px 0px
  108. li
  109. .item-thumbnail
  110. opacity: 1
  111. float: left
  112. margin-left: -94px
  113. transition: all 0.2s ease
  114. .thumbnail
  115. width: 80px
  116. height: 80px
  117. display: block
  118. position: relative
  119. overflow: hidden
  120. span
  121. width: 100%
  122. height: 100%
  123. display: block
  124. .thumbnail-image
  125. position: absolute
  126. background-size: cover
  127. background-position: center
  128. .thumbnail-none
  129. background-image: url(thumbnail-default-small)
  130. background-size: 100% 100%
  131. .item-inner
  132. a
  133. .item-category
  134. font-size: 13px
  135. text-transform: uppercase
  136. a
  137. color: color-link
  138. &:hover
  139. color: color-sidebar-text-dark
  140. a, .fa
  141. margin-right: 5px
  142. .item-title
  143. font-size: 15px
  144. a
  145. color: color-sidebar-text-dark
  146. transition: all 0.2s ease
  147. .item-date
  148. color: #aaa
  149. font-size: 13px
  150. text-transform: uppercase
  151. &:hover
  152. .item-thumbnail
  153. opacity: 0.8
  154. .item-title a
  155. color: color-link