button.less 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. @import 'vars.less';
  2. .button {
  3. position: relative;
  4. display: inline-flex;
  5. justify-content: center;
  6. align-items: center;
  7. padding: 0;
  8. margin: 0;
  9. border: none;
  10. cursor: pointer;
  11. outline: none;
  12. z-index: 10;
  13. transition: @transition-main;
  14. -webkit-appearance: none;
  15. &_disabled {
  16. pointer-events: none;
  17. opacity: 0.5;
  18. }
  19. &_h-slider {
  20. .size(24px);
  21. background-color: transparent;
  22. position: absolute;
  23. top: 50%;
  24. transform: translateY(-50%);
  25. &-prev {
  26. left: -34px;
  27. }
  28. &-next {
  29. right: -34px;
  30. }
  31. &.slick-disabled {
  32. pointer-events: none;
  33. visibility: hidden;
  34. }
  35. }
  36. &_news-slider {
  37. .size(45px);
  38. position: absolute;
  39. background-color: @color-white;
  40. top: 50%;
  41. transform: translateY(-50%);
  42. border-radius: 50%;
  43. &-prev {
  44. left: -22px;
  45. }
  46. &-next {
  47. right: -22px;
  48. }
  49. .icon {
  50. fill: @color-blue-darken;
  51. }
  52. }
  53. &_icon {
  54. .size(24px);
  55. background-color: transparent;
  56. }
  57. &_grey {
  58. padding: 0 16px 0 20px;
  59. height: 32px;
  60. background-color: @color-page;
  61. border-radius: 36px;
  62. html.dark-mode & {
  63. background-color: @color-black;
  64. }
  65. &-tg {
  66. padding: 0 17px 0 11px;
  67. .button__text {
  68. color: @color-black !important;
  69. html.dark-mode & {
  70. color: @color-white !important;
  71. }
  72. }
  73. }
  74. .button__icon {
  75. margin-right: 12px;
  76. }
  77. .button__text {
  78. white-space: nowrap;
  79. font: 12px/14px @font-main;
  80. color: @color-orange;
  81. }
  82. }
  83. &_grid-slider {
  84. .size(45px);
  85. background-color: transparent;
  86. position: absolute;
  87. top: 50%;
  88. transform: translateY(-50%);
  89. background-color: @color-dark-orange;
  90. border-radius: 50%;
  91. .icon {
  92. fill: @color-white;
  93. }
  94. &-prev {
  95. left: -11px;
  96. }
  97. &-next {
  98. right: -11px;
  99. }
  100. }
  101. &_poll {
  102. padding: 11px 28px 13px;
  103. height: 47px;
  104. border-radius: 10px;
  105. background-color: rgba(@color-white, .13);
  106. .button__text {
  107. font: 16px/23px @font-main;
  108. color: @color-white;
  109. }
  110. }
  111. &_question {
  112. height: 47px;
  113. padding: 0 26px;
  114. background-color: @color-orange;
  115. &:disabled {
  116. pointer-events: none;
  117. background: rgba(59, 85, 115, 0.08);
  118. .button__text {
  119. color: @color-grey-dark;
  120. }
  121. }
  122. .button__text {
  123. font: 16px/1 @font-main;
  124. color: @color-white;
  125. }
  126. }
  127. &_grey-dark {
  128. padding: 0 30px;
  129. height: 41px;
  130. background-color: rgba(@color-blue-darken, .08);
  131. border-radius: 11px;
  132. html.dark-mode & {
  133. background-color: rgba(@color-dark-blue, .5);
  134. }
  135. &-short {
  136. padding: 0 25px;
  137. }
  138. &-long {
  139. padding: 0 47px;
  140. }
  141. .button__text {
  142. font: 14px/1 @font-main;
  143. color: @color-blue-darken;
  144. html.dark-mode & {
  145. color: @color-white;
  146. }
  147. }
  148. }
  149. &_grey-load {
  150. padding: 0 19px 0 14px;
  151. height: 41px;
  152. border-radius: 11px;
  153. background-color: rgba(@color-blue-darken, .08);
  154. &.loading {
  155. .button__icon {
  156. animation: rotation .6s linear infinite;
  157. }
  158. }
  159. .button__icon {
  160. display: inline-block;
  161. margin-right: 11px;
  162. }
  163. .button__text {
  164. font: 14px/1 @font-main;
  165. color: @color-blue-darken;
  166. }
  167. }
  168. &_transparent {
  169. background: fade(@color-white, 7%);
  170. border-radius: 58px;
  171. padding: 10px 40px;
  172. color: @color-white !important;
  173. &:hover {
  174. background: fade(@color-white, 20%);
  175. }
  176. }
  177. &_video-transparent {
  178. width: 45px;
  179. height: 45px;
  180. background: fade(@color-white, 20%);
  181. border-radius: 50%;
  182. justify-content: center;
  183. align-items: center;
  184. &:hover {
  185. background: fade(@color-white, 10%);
  186. }
  187. }
  188. &_podcast-transparent {
  189. width: 45px;
  190. height: 45px;
  191. background: fade(@color-black, 20%);
  192. border-radius: 50%;
  193. justify-content: center;
  194. align-items: center;
  195. &:hover {
  196. background: fade(@color-black, 10%);
  197. }
  198. }
  199. &_video-slider {
  200. width: 45px;
  201. height: 45px;
  202. background: fade(@color-white, 20%);
  203. position: absolute;
  204. top: calc(50%);
  205. transform: translateY(-50%);
  206. border-radius: 50%;
  207. z-index: 1;
  208. .icon {
  209. fill: @color-white;
  210. }
  211. &-prev {
  212. left: -24px;
  213. }
  214. &-next {
  215. right: -24px;
  216. }
  217. }
  218. &_podcast-slider {
  219. background: fade(@color-black, 20%);
  220. }
  221. }