| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- @import '../common/abstracts/_mixin.scss';
- @import '../common/abstracts/variable.scss';
- .wot-theme-dark {
- @include b(search) {
- background: $-dark-background4;
- @include e(block) {
- background-color: $-dark-background;
- }
- @include e(input) {
- color: $-dark-color;
- }
- @include e(cover) {
- background-color: $-dark-background;
- }
- @include e(search-icon) {
- color: $-dark-color;
- }
- @include e(search-left-icon) {
- color: $-dark-color;
- }
- @include e(clear) {
- color: $-dark-color;
- }
- @include e(cancel) {
- color: $-dark-color;
- }
- @include when(light) {
- background: $-dark-background4;
-
- .wd-search__block {
- background: $-dark-background7;
- }
-
- .wd-search__cover {
- background: $-dark-background7;
- }
- }
- }
- }
- @include b(search) {
- display: flex;
- padding: $-search-padding;
- align-items: center;
- background: #fff;
- @include e(block) {
- flex: 1;
- background-color: $-search-input-bg;
- border-radius: $-search-input-radius;
- display: flex;
- flex-direction: row;
- align-items: center;
- position: relative;
- }
- @include e(field) {
- flex: 1;
- display: flex;
- flex-direction: row;
- align-items: center;
- position: relative;
- }
- @include e(input) {
- flex: 1;
- height: $-search-input-height;
- box-sizing: border-box;
- padding: $-search-input-padding;
- border: none;
- background: transparent;
- font-size: $-search-input-fs;
- -webkit-appearance: none;
- outline: none;
- color: $-search-input-color;
- z-index: 0;
- @include lineEllipsis;
- &::-webkit-search-cancel-button {
- -webkit-appearance: none;
- }
- }
- @include e(cover) {
- width: 100%;
- height: $-search-input-height;
- background-color: $-search-input-bg;
- line-height: $-search-input-height;
- font-size: $-search-input-fs;
- border-radius: $-search-input-radius;
- flex-direction: row;
- justify-content: center;
- align-items: center;
- }
- @include edeep(search-icon) {
- margin-right: 8px;
- color: $-search-icon-color;
- font-size: $-search-icon-size;
- }
- @include edeep(search-left-icon) {
- position: absolute;
- font-size: $-search-icon-size;
- top: 50%;
- left: 16px;
- transform: translateY(-50%);
- color: $-search-icon-color;
- }
- @include e(placeholder-txt) {
- color: $-search-placeholder-color;
- font-size: $-search-input-fs;
- }
- @include edeep(clear) {
- position: absolute;
- right: 0;
- padding: 6px 9px 6px 7px;
- color: $-search-cancel-color;
- }
- @include edeep(clear-icon) {
- vertical-align: middle;
- font-size: $-search-clear-icon-size;
- }
- @include e(cancel) {
- padding: $-search-cancel-padding;
- height: $-search-input-height;
- line-height: $-search-input-height;
- font-size: $-search-cancel-fs;
- color: $-search-cancel-color;
- -webkit-tap-highlight-color: transparent;
- }
- @include when(light) {
- background: $-search-light-bg;
- .wd-search__block {
- background: #fff;
- }
- .wd-search__cover {
- background: #fff;
- }
- }
- @include when(without-cancel) {
- padding-right: $-search-side-padding;
- }
- }
|