sidebar.styl 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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. .item-thumbnail
  106. opacity: 1
  107. float: left
  108. margin-left: -94px
  109. transition: all 0.2s ease
  110. .thumbnail
  111. width: 80px
  112. height: 80px
  113. display: block
  114. position: relative
  115. overflow: hidden
  116. span
  117. width: 100%
  118. height: 100%
  119. display: block
  120. .thumbnail-image
  121. position: absolute
  122. background-size: cover
  123. background-position: center
  124. .thumbnail-none
  125. background-image: url(thumbnail-default-small)
  126. background-size: 100% 100%
  127. .item-inner
  128. a
  129. .item-category
  130. font-size: 13px
  131. text-transform: uppercase
  132. a
  133. color: color-link
  134. &:hover
  135. color: color-sidebar-text-dark
  136. a, .fa
  137. margin-right: 5px
  138. .item-title
  139. font-size: 15px
  140. a
  141. color: color-sidebar-text-dark
  142. transition: all 0.2s ease
  143. .item-date
  144. color: #aaa
  145. font-size: 13px
  146. text-transform: uppercase
  147. &:hover
  148. .item-thumbnail
  149. opacity: 0.8
  150. .item-title a
  151. color: color-link