| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- @import '../common/abstracts/variable';
- @import '../common/abstracts/mixin';
- .wot-theme-dark {
- @include b(action-sheet) {
- background-color: $-dark-background2;
- color: $-dark-color;
- @include e(action) {
- color: $-dark-color;
- background: $-dark-background2;
- &:not(.wd-action-sheet__action--disabled):not(.wd-action-sheet__action--loading):active {
- background: $-dark-background4;
- }
- @include m(disabled) {
- color: $-dark-color-gray;
- }
- }
- @include e(subname) {
- color: $-dark-color3;
- }
- @include e(cancel) {
- color: $-dark-color;
- background: $-dark-background4;
- &:active {
- background: $-dark-background5;
- }
- }
- :deep(.wd-action-sheet__close) {
- color: $-dark-color3;
- }
- @include e(panel-title) {
- color: $-dark-color;
- }
- @include e(header) {
- color: $-dark-color;
- }
- }
- }
- :deep(.wd-action-sheet__popup) {
- border-radius: $-action-sheet-radius $-action-sheet-radius 0 0;
- }
- @include b(action-sheet) {
- background-color: $-color-white;
- padding-bottom: 1px;
- @include edeep(popup) {
- border-radius: $-action-sheet-radius $-action-sheet-radius 0 0;
- }
- @include e(actions) {
- padding: 8px 0;
- max-height: 50vh;
- overflow-y: auto;
- -webkit-overflow-scrolling: touch;
- }
- @include e(action) {
- position: relative;
- display: block;
- width: 100%;
- height: $-action-sheet-action-height;
- line-height: $-action-sheet-action-height;
- color: $-action-sheet-color;
- font-size: $-action-sheet-fs;
- text-align: center;
- border: none;
- background: $-action-sheet-bg;
- outline: none;
- &:after {
- display: none;
- }
- &:not(&--disabled):not(&--loading):active {
- background: $-action-sheet-active-color;
- }
- @include m(disabled) {
- color: $-action-sheet-disabled-color;
- cursor: not-allowed;
- }
- @include m(loading) {
- display: flex;
- align-items: center;
- justify-content: center;
- line-height: initial;
- }
- }
-
- @include edeep(action-loading){
- width: $-action-sheet-loading-size;
- height: $-action-sheet-loading-size;
- }
- @include e(name) {
- display: inline-block;
- }
- @include e(subname) {
- display: inline-block;
- margin-left: 4px;
- font-size: $-action-sheet-subname-fs;
- color: $-action-sheet-subname-color;
- }
- @include e(cancel) {
- display: block;
- width: calc(100% - 48px);
- line-height: $-action-sheet-cancel-height;
- padding: 0;
- color: $-action-sheet-cancel-color;
- font-size: $-action-sheet-fs;
- text-align: center;
- border-radius: $-action-sheet-cancel-radius;
- border: none;
- background: $-action-sheet-cancel-bg;
- outline: none;
- margin: 0 auto 24px;
- font-weight: $-action-sheet-weight;
- &:active {
- background: $-action-sheet-active-color;
- }
- &:after {
- display: none;
- }
- }
- @include e(header) {
- color: $-action-sheet-color;
- position: relative;
- height: $-action-sheet-title-height;
- line-height: $-action-sheet-title-height;
- text-align: center;
- font-size: $-action-sheet-title-fs;
- font-weight: $-action-sheet-weight;
- }
- @include edeep(close) {
- position: absolute;
- top: $-action-sheet-close-top;
- right: $-action-sheet-close-right;
- color: $-action-sheet-close-color;
- font-size: $-action-sheet-close-fs;
- transform: rotate(-45deg);
- line-height: 1.1;
- }
- @include e(panels) {
- height: 84px;
- overflow-y: hidden;
- &:first-of-type {
- margin-top: 20px;
- }
- &:last-of-type {
- margin-bottom: 12px;
- }
- }
- @include e(panels-content) {
- display: flex;
- overflow-x: auto;
- -webkit-overflow-scrolling: touch;
- }
- @include e(panel) {
- width: 88px;
- flex: 0 0 auto;
- display: inline-block;
- padding: $-action-sheet-panel-padding;
- }
- @include e(panel-img) {
- display: block;
- width: $-action-sheet-panel-img-fs;
- height: $-action-sheet-panel-img-fs;
- margin: 0 auto;
- margin-bottom: 7px;
- border-radius: $-action-sheet-panel-img-radius;
- }
- @include e(panel-title) {
- font-size: $-action-sheet-subname-fs;
- line-height: 1.2;
- text-align: center;
- color: $-action-sheet-color;
- @include lineEllipsis;
- }
- }
|