123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266 |
- @import 'vars.less';
- .button {
- position: relative;
- display: inline-flex;
- justify-content: center;
- align-items: center;
- padding: 0;
- margin: 0;
- border: none;
- cursor: pointer;
- outline: none;
- z-index: 10;
- transition: @transition-main;
- -webkit-appearance: none;
- &_disabled {
- pointer-events: none;
- opacity: 0.5;
- }
- &_h-slider {
- .size(24px);
- background-color: transparent;
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
- &-prev {
- left: -34px;
- }
- &-next {
- right: -34px;
- }
- &.slick-disabled {
- pointer-events: none;
- visibility: hidden;
- }
- }
- &_news-slider {
- .size(45px);
- position: absolute;
- background-color: @color-white;
- top: 50%;
- transform: translateY(-50%);
- border-radius: 50%;
- &-prev {
- left: -22px;
- }
- &-next {
- right: -22px;
- }
- .icon {
- fill: @color-blue-darken;
- }
- }
- &_icon {
- .size(24px);
- background-color: transparent;
- }
- &_grey {
- padding: 0 16px 0 20px;
- height: 32px;
- background-color: @color-page;
- border-radius: 36px;
- html.dark-mode & {
- background-color: @color-black;
- }
- &-tg {
- padding: 0 17px 0 11px;
- .button__text {
- color: @color-black !important;
- html.dark-mode & {
- color: @color-white !important;
- }
- }
- }
- .button__icon {
- margin-right: 12px;
- }
- .button__text {
- white-space: nowrap;
- font: 12px/14px @font-main;
- color: @color-orange;
- }
- }
- &_grid-slider {
- .size(45px);
- background-color: transparent;
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
- background-color: @color-dark-orange;
- border-radius: 50%;
- .icon {
- fill: @color-white;
- }
- &-prev {
- left: -11px;
- }
- &-next {
- right: -11px;
- }
- }
- &_poll {
- padding: 11px 28px 13px;
- height: 47px;
- border-radius: 10px;
- background-color: rgba(@color-white, .13);
- .button__text {
- font: 16px/23px @font-main;
- color: @color-white;
- }
- }
- &_question {
- height: 47px;
- padding: 0 26px;
- background-color: @color-orange;
- &:disabled {
- pointer-events: none;
- background: rgba(59, 85, 115, 0.08);
- .button__text {
- color: @color-grey-dark;
- }
- }
- .button__text {
- font: 16px/1 @font-main;
- color: @color-white;
- }
- }
- &_grey-dark {
- padding: 0 30px;
- height: 41px;
- background-color: rgba(@color-blue-darken, .08);
- border-radius: 11px;
- html.dark-mode & {
- background-color: rgba(@color-dark-blue, .5);
- }
- &-short {
- padding: 0 25px;
- }
- &-long {
- padding: 0 47px;
- }
- .button__text {
- font: 14px/1 @font-main;
- color: @color-blue-darken;
- html.dark-mode & {
- color: @color-white;
- }
- }
- }
- &_grey-load {
- padding: 0 19px 0 14px;
- height: 41px;
- border-radius: 11px;
- background-color: rgba(@color-blue-darken, .08);
- &.loading {
- .button__icon {
- animation: rotation .6s linear infinite;
- }
- }
- .button__icon {
- display: inline-block;
- margin-right: 11px;
- }
- .button__text {
- font: 14px/1 @font-main;
- color: @color-blue-darken;
- }
- }
- &_transparent {
- background: fade(@color-white, 7%);
- border-radius: 58px;
- padding: 10px 40px;
- color: @color-white !important;
- &:hover {
- background: fade(@color-white, 20%);
- }
- }
- &_video-transparent {
- width: 45px;
- height: 45px;
- background: fade(@color-white, 20%);
- border-radius: 50%;
- justify-content: center;
- align-items: center;
- &:hover {
- background: fade(@color-white, 10%);
- }
- }
- &_podcast-transparent {
- width: 45px;
- height: 45px;
- background: fade(@color-black, 20%);
- border-radius: 50%;
- justify-content: center;
- align-items: center;
- &:hover {
- background: fade(@color-black, 10%);
- }
- }
- &_video-slider {
- width: 45px;
- height: 45px;
- background: fade(@color-white, 20%);
- position: absolute;
- top: calc(50%);
- transform: translateY(-50%);
- border-radius: 50%;
- z-index: 1;
- .icon {
- fill: @color-white;
- }
- &-prev {
- left: -24px;
- }
- &-next {
- right: -24px;
- }
- }
- &_podcast-slider {
- background: fade(@color-black, 20%);
- }
- }
|