sidebar.styl 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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. .category-list-child
  55. padding: 10px 0
  56. font-size: font-size
  57. border-bottom: 1px solid border-color
  58. a
  59. color: color-sidebar-text
  60. ul, ol
  61. list-style: none
  62. li
  63. border: none
  64. &:last-child
  65. padding-bottom: 0px
  66. ul:not(#recent-post), ol:not(#recent-post)
  67. li
  68. a
  69. &:before
  70. color: #ccc
  71. content: "\f0da"
  72. font-size: 12px
  73. margin-right: 6px
  74. font-family: FontAwesome
  75. transition: 0.2s ease
  76. &:hover:before
  77. color: color-sidebar-text-dark
  78. #toTop
  79. @extend $block
  80. cursor: pointer
  81. text-align: center
  82. width: 64px
  83. height: 64px
  84. color: white
  85. font-size: 32px
  86. line-height: 64px
  87. background: color-default
  88. border-radius: 4px
  89. @media mq-mobile
  90. width: 54px
  91. height: 54px
  92. font-size: 28px
  93. line-height: 54px
  94. @media mq-mini
  95. width: 54px
  96. height: 54px
  97. font-size: 28px
  98. line-height: 54px
  99. &.fix
  100. bottom: 20px
  101. position: fixed
  102. #recent-post
  103. li
  104. clearfix()
  105. padding: 10px 0 10px 94px
  106. &.no-thumbnail
  107. li
  108. padding: 10px 0px
  109. li
  110. .item-thumbnail
  111. opacity: 1
  112. float: left
  113. margin-left: -94px
  114. transition: all 0.2s ease
  115. .thumbnail
  116. width: 80px
  117. height: 80px
  118. display: block
  119. position: relative
  120. overflow: hidden
  121. span
  122. width: 100%
  123. height: 100%
  124. display: block
  125. .thumbnail-image
  126. position: absolute
  127. background-size: cover
  128. background-position: center
  129. .thumbnail-none
  130. background-image: url(thumbnail-default-small)
  131. background-size: 100% 100%
  132. .item-inner
  133. a
  134. .item-category
  135. font-size: 13px
  136. text-transform: uppercase
  137. a
  138. color: color-link
  139. &:hover
  140. color: color-sidebar-text-dark
  141. a, .fa
  142. margin-right: 5px
  143. .item-title
  144. font-size: 15px
  145. a
  146. color: color-sidebar-text-dark
  147. transition: all 0.2s ease
  148. .item-date
  149. color: #aaa
  150. font-size: 13px
  151. text-transform: uppercase
  152. &:hover
  153. .item-thumbnail
  154. opacity: 0.8
  155. .item-title a
  156. color: color-link