更新:登录功能
This commit is contained in:
148
uni_modules/wot-design-uni/components/wd-search/index.scss
Normal file
148
uni_modules/wot-design-uni/components/wd-search/index.scss
Normal file
@@ -0,0 +1,148 @@
|
||||
@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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user