archive.less 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. .archive{
  2. .breadcrumbs{
  3. }
  4. background: white;
  5. padding: 30px 30px 30px 0;
  6. @media(max-width: 375px){
  7. padding: 0;
  8. .news-list{
  9. padding: 15px 10px;
  10. position: relative;
  11. .filters{
  12. top: 10px;
  13. right: 10px;
  14. }
  15. }
  16. }
  17. .topics-list{
  18. @media(max-width: @size-mobile){
  19. display: none;
  20. }
  21. height: 100%;
  22. .topics-continer{
  23. border-right: 1px solid #eee;
  24. ul{
  25. li{
  26. a{
  27. font: 18px/22px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  28. padding: 15px 10px 10px 30px;
  29. display: block;
  30. &.active{
  31. background: rgba(59,85,115,.1);
  32. }
  33. }
  34. .hr{
  35. border-bottom: #282b2b 2px;
  36. display: flex;
  37. border-bottom: 1px solid #bfbebd;
  38. margin: 0px 30px;
  39. padding-top: 5px;
  40. }
  41. .header {
  42. text-align: center;
  43. font-weight: bold;
  44. font-size: 1.4em;
  45. position: relative;
  46. display: none;
  47. padding: 4px;
  48. color: #888787;
  49. }
  50. }
  51. }
  52. }
  53. }
  54. .news-list{
  55. position: relative;
  56. .archive-news-item{
  57. display: flex;
  58. padding: 30px 30px 30px 0;
  59. border-bottom: 1px solid #eee;
  60. align-items: center;
  61. .illustration{
  62. min-width: 220px;
  63. width: 220px;
  64. margin-right: 30px;
  65. .picture-cont-16x9 div{
  66. height: 56.25%;
  67. overflow: hidden;
  68. }
  69. }
  70. .meta{
  71. .title{
  72. a{
  73. font: 24px/29px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  74. }
  75. }
  76. .published_at{
  77. font: 12px/17px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  78. color: #a8a8a8;
  79. .icon{
  80. width: 10px;
  81. height: 10px;
  82. fill: #a8a8a8;
  83. margin-right: 5px;
  84. }
  85. }
  86. }
  87. }
  88. @media(max-width: @size-mobile){
  89. .archive-news-item{
  90. flex-direction: column;
  91. padding: 0;
  92. padding-bottom: 15px;
  93. margin-bottom: 15px;
  94. .illustration{
  95. width: 100%;
  96. margin-right: 0;
  97. margin-bottom: 15px;
  98. }
  99. }
  100. }
  101. }
  102. .pagination{
  103. margin-top: 30px;
  104. color: #3b5573;
  105. display: flex;
  106. font: 14px/1 "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  107. max-width: 100%;
  108. overflow: hidden;
  109. @media(max-width: @size-mobile){
  110. overflow-x: scroll;
  111. }
  112. li{
  113. a{
  114. display: flex;
  115. width: 100%;
  116. height: 100%;
  117. justify-content: center;
  118. align-items: center;
  119. }
  120. background: rgba(59,85,115,.08);
  121. display: flex;
  122. flex-grow: 1;
  123. height: 40px;
  124. border-radius: 4px;
  125. margin-right: 7px;
  126. justify-content: center;
  127. align-items: center;
  128. &.active{
  129. a{
  130. background: #f5f5f5;
  131. color: #f6911f;
  132. }
  133. }
  134. &.disabled{
  135. cursor: not-allowed;
  136. color: #b3b3b3;
  137. user-select: none;
  138. }
  139. }
  140. }
  141. .filters{
  142. position: absolute;
  143. top: 0;
  144. right: 0;
  145. .icon{
  146. width: 25px;
  147. height: 25px;
  148. }
  149. }
  150. #filters-modal{
  151. position: fixed;
  152. display: block;
  153. width: 500px;
  154. padding: 30px;
  155. background: #fff;
  156. box-shadow: #000 0 0 11px -5px;
  157. z-index: 999;
  158. right: 60px;
  159. left: 0;
  160. top: -100%;
  161. margin: auto;
  162. transition: .3s;
  163. opacity: 0;
  164. @media(max-width: @size-mobile){
  165. width: 100%;
  166. }
  167. &.active{
  168. display: block;
  169. top: 40%;
  170. opacity: 1;
  171. }
  172. form{
  173. display: flex;
  174. justify-content: center;
  175. flex-wrap: wrap;
  176. button{
  177. background: rgba(59,85,115,.08);
  178. display: flex;
  179. height: 40px;
  180. border-radius: 4px;
  181. justify-content: center;
  182. align-items: center;
  183. outline: none;
  184. border: none;
  185. padding: 0 30px;
  186. font: 14px/1 "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  187. color: #3b5573;
  188. }
  189. }
  190. }
  191. }