_sidebar.scss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. .sidebar {
  2. @media(max-width: 991px) {
  3. margin-top: 50px;
  4. }
  5. &__title {
  6. margin: 0;
  7. color: $thm-black;
  8. font-size: 20px;
  9. font-weight: 500;
  10. margin-bottom: 30px;
  11. }
  12. &__single:not(&__search) {
  13. padding: 50px;
  14. border-style: solid;
  15. border-width: 1px;
  16. border-color: #efefef;
  17. border-radius: 5px;
  18. @media (max-width: 1199px) {
  19. padding: 30px;
  20. }
  21. }
  22. &__single+&__single {
  23. margin-top: 30px;
  24. }
  25. &__post {
  26. &__single+&__single {
  27. margin-top: 30px;
  28. }
  29. &-image,
  30. &-content {
  31. display: table-cell;
  32. vertical-align: middle;
  33. }
  34. &-image {
  35. width: 60px;
  36. .inner-block {
  37. width: 100%;
  38. >img {
  39. width: 100%;
  40. border-radius: 50%;
  41. }
  42. }
  43. }
  44. &-content {
  45. padding-left: 20px;
  46. }
  47. &-title {
  48. margin: 0;
  49. font-size: 16px;
  50. line-height: 24px;
  51. font-weight: 400;
  52. color: $thm-text-color;
  53. a {
  54. color: inherit;
  55. transition: all .4s ease;
  56. &:hover {
  57. color: $thm-black;
  58. }
  59. }
  60. }
  61. }
  62. &__category-list {
  63. margin: 0;
  64. padding: 0;
  65. list-style: none;
  66. &-item {
  67. line-height: 1em;
  68. a {
  69. color: #74727a;
  70. font-size: 16px;
  71. font-weight: 400;
  72. display: block;
  73. position: relative;
  74. transition: all .4s ease;
  75. &:before {
  76. content: '\f105';
  77. font-family: 'FontAwesome';
  78. color: #7b7b8c;
  79. font-weight: 900;
  80. font-size: 14px;
  81. position: absolute;
  82. top: 50%;
  83. right: 0;
  84. transform: translateY(-50%);
  85. transition: all .4s ease;
  86. }
  87. &:hover {
  88. color: $thm-base-color;
  89. }
  90. }
  91. }
  92. &-item+&-item {
  93. margin-top: 27px;
  94. }
  95. }
  96. &__tags-list {
  97. margin: 0;
  98. padding: 0;
  99. list-style: none;
  100. margin-top: -10px;
  101. &-item {
  102. display: inline-block;
  103. vertical-align: middle;
  104. line-height: 1em;
  105. a {
  106. display: block;
  107. color: $thm-text-color;
  108. font-size: 16px;
  109. font-weight: 400;
  110. line-height: 1em;
  111. transition: all .4s ease;
  112. &:hover {
  113. color: $thm-base-color-2;
  114. }
  115. }
  116. }
  117. }
  118. &__search-form {
  119. width: 100%;
  120. height: 83px;
  121. background-image: linear-gradient(40deg,$thm-base-color 0%, $thm-base-color-2 100%);
  122. position: relative;
  123. border-radius: 5px;
  124. input {
  125. width: 100%;
  126. height: 100%;
  127. background-color: transparent;
  128. border: none;
  129. outline: none;
  130. color: #fff;
  131. padding-left: 40px;
  132. padding-right: 40px;
  133. @include placeholder {
  134. color: #fff;
  135. }
  136. }
  137. button[type=submit] {
  138. background-color: transparent;
  139. border: none;
  140. outline: none;
  141. position: absolute;
  142. top: 50%;
  143. right: 50px;
  144. transform: translateY(-50%);
  145. cursor: pointer;
  146. padding: 0;
  147. transition: all .4s ease;
  148. i {
  149. font-size: 16px;
  150. color: #fff;
  151. transition: all .4s ease;
  152. }
  153. }
  154. }
  155. }