|
...
|
...
|
@@ -13,7 +13,7 @@ page { |
|
|
|
/* Color 可以自定义相关配色 */
|
|
|
|
/* var属性兼容性 --> https://www.caniuse.com/#feat=css-variables */
|
|
|
|
/* 标准色 */
|
|
|
|
--red: #e54d42;
|
|
|
|
--red: #FA5151;
|
|
|
|
--orange: #FF7A00;
|
|
|
|
--yellow: #FFC9AA;
|
|
|
|
--olive: #8dc63f;
|
|
...
|
...
|
@@ -152,8 +152,8 @@ radio { |
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch::after,
|
|
|
|
switch::before {
|
|
|
|
.switch::after,
|
|
|
|
.switch::before {
|
|
|
|
font-family: "cuIcon";
|
|
|
|
content: "\e645";
|
|
|
|
position: absolute;
|
|
...
|
...
|
@@ -173,24 +173,24 @@ switch::before { |
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch::before {
|
|
|
|
.switch::before {
|
|
|
|
content: "\e646";
|
|
|
|
right: 0;
|
|
|
|
transform: scale(1, 1);
|
|
|
|
left: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch[checked]::after,
|
|
|
|
switch.checked::after {
|
|
|
|
.switch[checked]::after,
|
|
|
|
.switch.checked::after {
|
|
|
|
transform: scale(1, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
switch[checked]::before,
|
|
|
|
switch.checked::before {
|
|
|
|
.switch[checked]::before,
|
|
|
|
.switch.checked::before {
|
|
|
|
transform: scale(0, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
switch[checked]::before {
|
|
|
|
.switch[checked]::before {
|
|
|
|
transform: scale(0, 0);
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -222,7 +222,7 @@ checkbox.round .wx-checkbox-input { |
|
|
|
border-radius: 100rpx;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch .wx-switch-input {
|
|
|
|
.switch .wx-switch-input {
|
|
|
|
border: none;
|
|
|
|
padding: 0 24px;
|
|
|
|
width: 48px;
|
|
...
|
...
|
@@ -231,11 +231,11 @@ switch .wx-switch-input { |
|
|
|
border-radius: 100rpx;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch .wx-switch-input:not([class*="bg-"]) {
|
|
|
|
.switch .wx-switch-input:not([class*="bg-"]) {
|
|
|
|
background: var(--grey) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch .wx-switch-input::after {
|
|
|
|
.switch .wx-switch-input::after {
|
|
|
|
margin: auto;
|
|
|
|
width: 26px;
|
|
|
|
height: 26px;
|
|
...
|
...
|
@@ -248,7 +248,7 @@ switch .wx-switch-input::after { |
|
|
|
transition: all 0.1s ease-in-out 0s;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch .wx-switch-input.wx-switch-input-checked::after {
|
|
|
|
.switch .wx-switch-input.wx-switch-input-checked::after {
|
|
|
|
margin: auto;
|
|
|
|
left: 22px;
|
|
|
|
box-shadow: none;
|
|
...
|
...
|
@@ -261,13 +261,13 @@ radio-group { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch.radius .wx-switch-input::after,
|
|
|
|
switch.radius .wx-switch-input,
|
|
|
|
switch.radius .wx-switch-input::before {
|
|
|
|
.switch.radius .wx-switch-input::after,
|
|
|
|
.switch.radius .wx-switch-input,
|
|
|
|
.switch.radius .wx-switch-input::before {
|
|
|
|
border-radius: 10rpx;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch .wx-switch-input::before,
|
|
|
|
.switch .wx-switch-input::before,
|
|
|
|
radio.radio::before,
|
|
|
|
checkbox .wx-checkbox-input::before,
|
|
|
|
radio .wx-radio-input::before,
|
|
...
|
...
|
@@ -328,127 +328,127 @@ radio.radio[checked]::after { |
|
|
|
border-color: var(--blue) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.red[checked] .wx-switch-input,
|
|
|
|
.switch.red[checked] .wx-switch-input,
|
|
|
|
checkbox.red[checked] .wx-checkbox-input,
|
|
|
|
radio.red[checked] .wx-radio-input {
|
|
|
|
border-color: var(--red) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.orange[checked] .wx-switch-input,
|
|
|
|
.switch.orange[checked] .wx-switch-input,
|
|
|
|
checkbox.orange[checked] .wx-checkbox-input,
|
|
|
|
radio.orange[checked] .wx-radio-input {
|
|
|
|
border-color: var(--orange) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.yellow[checked] .wx-switch-input,
|
|
|
|
.switch.yellow[checked] .wx-switch-input,
|
|
|
|
checkbox.yellow[checked] .wx-checkbox-input,
|
|
|
|
radio.yellow[checked] .wx-radio-input {
|
|
|
|
border-color: var(--yellow) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.olive[checked] .wx-switch-input,
|
|
|
|
.switch.olive[checked] .wx-switch-input,
|
|
|
|
checkbox.olive[checked] .wx-checkbox-input,
|
|
|
|
radio.olive[checked] .wx-radio-input {
|
|
|
|
border-color: var(--olive) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.green[checked] .wx-switch-input,
|
|
|
|
.switch.green[checked] .wx-switch-input,
|
|
|
|
checkbox.green[checked] .wx-checkbox-input,
|
|
|
|
checkbox[checked] .wx-checkbox-input,
|
|
|
|
radio.green[checked] .wx-radio-input {
|
|
|
|
border-color: var(--green) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.cyan[checked] .wx-switch-input,
|
|
|
|
.switch.cyan[checked] .wx-switch-input,
|
|
|
|
checkbox.cyan[checked] .wx-checkbox-input,
|
|
|
|
radio.cyan[checked] .wx-radio-input {
|
|
|
|
border-color: var(--cyan) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.blue[checked] .wx-switch-input,
|
|
|
|
.switch.blue[checked] .wx-switch-input,
|
|
|
|
checkbox.blue[checked] .wx-checkbox-input,
|
|
|
|
radio.blue[checked] .wx-radio-input {
|
|
|
|
border-color: var(--blue) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.purple[checked] .wx-switch-input,
|
|
|
|
.switch.purple[checked] .wx-switch-input,
|
|
|
|
checkbox.purple[checked] .wx-checkbox-input,
|
|
|
|
radio.purple[checked] .wx-radio-input {
|
|
|
|
border-color: var(--purple) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.mauve[checked] .wx-switch-input,
|
|
|
|
.switch.mauve[checked] .wx-switch-input,
|
|
|
|
checkbox.mauve[checked] .wx-checkbox-input,
|
|
|
|
radio.mauve[checked] .wx-radio-input {
|
|
|
|
border-color: var(--mauve) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.pink[checked] .wx-switch-input,
|
|
|
|
.switch.pink[checked] .wx-switch-input,
|
|
|
|
checkbox.pink[checked] .wx-checkbox-input,
|
|
|
|
radio.pink[checked] .wx-radio-input {
|
|
|
|
border-color: var(--pink) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.brown[checked] .wx-switch-input,
|
|
|
|
.switch.brown[checked] .wx-switch-input,
|
|
|
|
checkbox.brown[checked] .wx-checkbox-input,
|
|
|
|
radio.brown[checked] .wx-radio-input {
|
|
|
|
border-color: var(--brown) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.grey[checked] .wx-switch-input,
|
|
|
|
.switch.grey[checked] .wx-switch-input,
|
|
|
|
checkbox.grey[checked] .wx-checkbox-input,
|
|
|
|
radio.grey[checked] .wx-radio-input {
|
|
|
|
border-color: var(--grey) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.gray[checked] .wx-switch-input,
|
|
|
|
.switch.gray[checked] .wx-switch-input,
|
|
|
|
checkbox.gray[checked] .wx-checkbox-input,
|
|
|
|
radio.gray[checked] .wx-radio-input {
|
|
|
|
border-color: var(--grey) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.black[checked] .wx-switch-input,
|
|
|
|
.switch.black[checked] .wx-switch-input,
|
|
|
|
checkbox.black[checked] .wx-checkbox-input,
|
|
|
|
radio.black[checked] .wx-radio-input {
|
|
|
|
border-color: var(--black) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.white[checked] .wx-switch-input,
|
|
|
|
.switch.white[checked] .wx-switch-input,
|
|
|
|
checkbox.white[checked] .wx-checkbox-input,
|
|
|
|
radio.white[checked] .wx-radio-input {
|
|
|
|
border-color: var(--white) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.red[checked] .wx-switch-input.wx-switch-input-checked,
|
|
|
|
.switch.red[checked] .wx-switch-input.wx-switch-input-checked,
|
|
|
|
checkbox.red[checked] .wx-checkbox-input,
|
|
|
|
radio.red[checked] .wx-radio-input {
|
|
|
|
background-color: var(--red) !important;
|
|
|
|
color: var(--white) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.orange[checked] .wx-switch-input,
|
|
|
|
.switch.orange[checked] .wx-switch-input,
|
|
|
|
checkbox.orange[checked] .wx-checkbox-input,
|
|
|
|
radio.orange[checked] .wx-radio-input {
|
|
|
|
background-color: var(--orange) !important;
|
|
|
|
color: var(--white) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.yellow[checked] .wx-switch-input,
|
|
|
|
.switch.yellow[checked] .wx-switch-input,
|
|
|
|
checkbox.yellow[checked] .wx-checkbox-input,
|
|
|
|
radio.yellow[checked] .wx-radio-input {
|
|
|
|
background-color: var(--yellow) !important;
|
|
|
|
color: var(--black) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.olive[checked] .wx-switch-input,
|
|
|
|
.switch.olive[checked] .wx-switch-input,
|
|
|
|
checkbox.olive[checked] .wx-checkbox-input,
|
|
|
|
radio.olive[checked] .wx-radio-input {
|
|
|
|
background-color: var(--olive) !important;
|
|
|
|
color: var(--white) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.green[checked] .wx-switch-input,
|
|
|
|
switch[checked] .wx-switch-input,
|
|
|
|
.switch.green[checked] .wx-switch-input,
|
|
|
|
.switch[checked] .wx-switch-input,
|
|
|
|
checkbox.green[checked] .wx-checkbox-input,
|
|
|
|
checkbox[checked] .wx-checkbox-input,
|
|
|
|
radio.green[checked] .wx-radio-input,
|
|
...
|
...
|
@@ -457,70 +457,70 @@ radio[checked] .wx-radio-input { |
|
|
|
color: var(--white) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.cyan[checked] .wx-switch-input,
|
|
|
|
.switch.cyan[checked] .wx-switch-input,
|
|
|
|
checkbox.cyan[checked] .wx-checkbox-input,
|
|
|
|
radio.cyan[checked] .wx-radio-input {
|
|
|
|
background-color: var(--cyan) !important;
|
|
|
|
color: var(--white) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.blue[checked] .wx-switch-input,
|
|
|
|
.switch.blue[checked] .wx-switch-input,
|
|
|
|
checkbox.blue[checked] .wx-checkbox-input,
|
|
|
|
radio.blue[checked] .wx-radio-input {
|
|
|
|
background-color: var(--blue) !important;
|
|
|
|
color: var(--white) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.purple[checked] .wx-switch-input,
|
|
|
|
.switch.purple[checked] .wx-switch-input,
|
|
|
|
checkbox.purple[checked] .wx-checkbox-input,
|
|
|
|
radio.purple[checked] .wx-radio-input {
|
|
|
|
background-color: var(--purple) !important;
|
|
|
|
color: var(--white) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.mauve[checked] .wx-switch-input,
|
|
|
|
.switch.mauve[checked] .wx-switch-input,
|
|
|
|
checkbox.mauve[checked] .wx-checkbox-input,
|
|
|
|
radio.mauve[checked] .wx-radio-input {
|
|
|
|
background-color: var(--mauve) !important;
|
|
|
|
color: var(--white) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.pink[checked] .wx-switch-input,
|
|
|
|
.switch.pink[checked] .wx-switch-input,
|
|
|
|
checkbox.pink[checked] .wx-checkbox-input,
|
|
|
|
radio.pink[checked] .wx-radio-input {
|
|
|
|
background-color: var(--pink) !important;
|
|
|
|
color: var(--white) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.brown[checked] .wx-switch-input,
|
|
|
|
.switch.brown[checked] .wx-switch-input,
|
|
|
|
checkbox.brown[checked] .wx-checkbox-input,
|
|
|
|
radio.brown[checked] .wx-radio-input {
|
|
|
|
background-color: var(--brown) !important;
|
|
|
|
color: var(--white) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.grey[checked] .wx-switch-input,
|
|
|
|
.switch.grey[checked] .wx-switch-input,
|
|
|
|
checkbox.grey[checked] .wx-checkbox-input,
|
|
|
|
radio.grey[checked] .wx-radio-input {
|
|
|
|
background-color: var(--grey) !important;
|
|
|
|
color: var(--white) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.gray[checked] .wx-switch-input,
|
|
|
|
.switch.gray[checked] .wx-switch-input,
|
|
|
|
checkbox.gray[checked] .wx-checkbox-input,
|
|
|
|
radio.gray[checked] .wx-radio-input {
|
|
|
|
background-color: #f0f0f0 !important;
|
|
|
|
color: var(--black) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.black[checked] .wx-switch-input,
|
|
|
|
.switch.black[checked] .wx-switch-input,
|
|
|
|
checkbox.black[checked] .wx-checkbox-input,
|
|
|
|
radio.black[checked] .wx-radio-input {
|
|
|
|
background-color: var(--black) !important;
|
|
|
|
color: var(--white) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch.white[checked] .wx-switch-input,
|
|
|
|
.switch.white[checked] .wx-switch-input,
|
|
|
|
checkbox.white[checked] .wx-checkbox-input,
|
|
|
|
radio.white[checked] .wx-radio-input {
|
|
|
|
background-color: var(--white) !important;
|
...
|
...
|
|