sidebar.styl 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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. #recent-post
  78. li
  79. clearfix()
  80. padding: 10px 0 10px 94px
  81. .item-thumbnail
  82. opacity: 1
  83. float: left
  84. margin-left: -94px
  85. transition: all 0.2s ease
  86. .thumbnail
  87. width: 80px
  88. height: 80px
  89. display: block
  90. position: relative
  91. overflow: hidden
  92. span
  93. width: 100%
  94. height: 100%
  95. display: block
  96. .thumbnail-image
  97. position: absolute
  98. background-size: cover
  99. background-position: center
  100. .thumbnail-none
  101. background-image: url(thumbnail-default-small)
  102. background-size: 100% 100%
  103. .item-inner
  104. a
  105. .item-category
  106. font-size: 13px
  107. text-transform: uppercase
  108. a
  109. color: color-link
  110. &:hover
  111. color: color-sidebar-text-dark
  112. a, .fa
  113. margin-right: 5px
  114. .item-title
  115. font-size: 15px
  116. a
  117. color: color-sidebar-text-dark
  118. transition: all 0.2s ease
  119. .item-date
  120. color: #aaa
  121. font-size: 13px
  122. text-transform: uppercase
  123. &:hover
  124. .item-thumbnail
  125. opacity: 0.8
  126. .item-title a
  127. color: color-link