feat(style): add scss variables (#291)

This commit is contained in:
Fine0830
2023-06-28 15:46:27 +08:00
committed by GitHub
parent 63db3fbc2e
commit 9ac1265e7f
85 changed files with 308 additions and 266 deletions

View File

@@ -443,11 +443,11 @@ limitations under the License. -->
});
</script>
<style scoped>
<style lang="scss" scoped>
.calendar {
float: left;
user-select: none;
color: #3d444f;
color: $font-color;
}
.calendar + .calendar {
@@ -479,7 +479,7 @@ limitations under the License. -->
.calendar-head .calendar-year-select,
.calendar-head .calendar-month-select {
font-size: 12px;
font-size: $font-size-smaller;
padding: 0 2px;
position: relative;
}
@@ -524,8 +524,8 @@ limitations under the License. -->
float: left;
}
.calendar-week:before,
.calendar-date:before {
.calendar-week::before,
.calendar-date::before {
content: "";
display: inline-block;
height: 100%;
@@ -539,27 +539,27 @@ limitations under the License. -->
}
.calendar-date-out {
color: #ccc;
color: $disabled-color;
}
.calendar-date:hover,
.calendar-date-on {
color: #3f97e3;
background-color: #f8f8f8;
color: $font-color;
background-color: $theme-background;
}
.calendar-date-selected,
.calendar-date-selected:hover {
color: #fff;
color: $text-color;
font-weight: bold;
border-radius: 14px;
background: #3f97e3;
background: $active-background;
}
.calendar-date-disabled {
cursor: not-allowed !important;
color: #ccc !important;
background: #fff !important;
color: $disabled-color !important;
background: $theme-background !important;
}
.calendar-foot {
@@ -591,7 +591,7 @@ limitations under the License. -->
width: 100%;
height: 100%;
position: absolute;
background: #fff;
background: $theme-background;
left: 0;
top: 0;
}
@@ -626,7 +626,7 @@ limitations under the License. -->
margin-top: -30px;
height: 30px;
line-height: 30px;
background: #fff;
background: $theme-background;
text-align: center;
font-weight: bold;
}

View File

@@ -232,7 +232,7 @@ limitations under the License. -->
</script>
<style lang="scss" scoped>
.no-data {
font-size: 12px;
font-size: $font-size-smaller;
height: 100%;
box-sizing: border-box;
display: -webkit-box;
@@ -254,9 +254,9 @@ limitations under the License. -->
z-index: 9999999;
box-shadow: #ddd 1px 2px 10px;
transition: all cubic-bezier(0.075, 0.82, 0.165, 1) linear;
background-color: rgb(255, 255, 255);
background-color: rgb(255 255 255);
border-radius: 4px;
color: rgb(51, 51, 51);
color: rgb(51 51 51);
padding: 5px;
}
@@ -266,7 +266,7 @@ limitations under the License. -->
cursor: pointer;
&:hover {
color: #409eff;
color: $active-color;
background-color: #eee;
}
}

View File

@@ -86,17 +86,17 @@ limitations under the License. -->
position: relative;
justify-content: space-between;
border: 1px solid #ddd;
background: #fff;
background: $theme-background;
border-radius: 3px;
color: #000;
font-size: 12px;
font-size: $font-size-smaller;
height: 24px;
.selected {
padding: 0 3px;
border-radius: 3px;
margin: 3px;
color: #409eff;
color: $active-color;
background-color: #fafafa;
border: 1px solid #e8e8e8;
text-align: center;
@@ -126,7 +126,7 @@ limitations under the License. -->
position: absolute;
right: 5px;
top: 0;
font-size: 14px;
font-size: $font-size-normal;
display: none;
color: #aaa;
cursor: pointer;
@@ -137,8 +137,8 @@ limitations under the License. -->
position: absolute;
top: 26px;
left: 0;
background: #fff;
box-shadow: 0 1px 6px rgba(99, 99, 99, 0.2);
background-color: $theme-background;
box-shadow: 0 1px 6px rgb(99 99 99 / 20%);
border: 1px solid #ddd;
width: 100%;
border-radius: 0 0 3px 3px;
@@ -164,7 +164,7 @@ limitations under the License. -->
padding: 7px 15px;
&.select-disabled {
color: #409eff;
color: $active-color;
cursor: not-allowed;
}

View File

@@ -302,7 +302,7 @@ limitations under the License. -->
transform: scaleY(0.8);
}
to {
100% {
opacity: 1;
transform: scaleY(1);
}
@@ -314,7 +314,7 @@ limitations under the License. -->
transform: scaleY(1);
}
to {
100% {
opacity: 0;
transform: scaleY(0.8);
}
@@ -343,7 +343,7 @@ limitations under the License. -->
cursor: pointer;
}
.datepicker-close:before {
.datepicker-close::before {
display: block;
content: "";
position: absolute;
@@ -354,14 +354,14 @@ limitations under the License. -->
margin-left: -8px;
margin-top: -8px;
text-align: center;
color: #fff;
color: $text-color;
border-radius: 50%;
background: #ccc
background: $disabled-color
url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA3IDciIHdpZHRoPSI3IiBoZWlnaHQ9IjciPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik01LjU4LDVsMi44LTIuODFBLjQxLjQxLDAsMSwwLDcuOCwxLjZMNSw0LjQxLDIuMiwxLjZhLjQxLjQxLDAsMCwwLS41OC41OGgwTDQuNDIsNSwxLjYyLDcuOGEuNDEuNDEsMCwwLDAsLjU4LjU4TDUsNS41OCw3LjgsOC4zOWEuNDEuNDEsMCwwLDAsLjU4LS41OGgwWiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEuNSAtMS40OCkiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4NCg==")
no-repeat 50% 50%;
}
.datepicker__clearable:hover:before {
.datepicker__clearable:hover::before {
display: none;
}
@@ -369,7 +369,7 @@ limitations under the License. -->
display: block;
}
.datepicker-close:hover:before {
.datepicker-close:hover::before {
background-color: #afafaf;
}
@@ -385,7 +385,7 @@ limitations under the License. -->
padding: 0 5px;
width: 100%;
user-select: none;
font-family: "Monaco";
font-family: Monaco;
letter-spacing: -0.7px;
}
@@ -399,7 +399,6 @@ limitations under the License. -->
cursor: not-allowed;
background-color: #ebebe4;
border-color: #e5e5e5;
-webkit-box-shadow: none;
box-shadow: none;
}
@@ -409,9 +408,9 @@ limitations under the License. -->
transition: all 200ms ease;
opacity: 1;
transform: scaleY(1);
font-size: 12px;
background: #fff;
box-shadow: 0 1px 6px rgba(99, 99, 99, 0.2);
font-size: $font-size-smaller;
background: $theme-background;
box-shadow: 0 1px 6px rgb(99 99 99 / 20%);
margin-top: 2px;
outline: 0;
padding: 5px;
@@ -457,7 +456,7 @@ limitations under the License. -->
border: 0;
background-color: transparent;
line-height: 34px;
font-size: 12px;
font-size: $font-size-smaller;
color: #666;
text-align: left;
outline: none;
@@ -497,7 +496,7 @@ limitations under the License. -->
.datepicker-btn {
padding: 5px 10px;
background: #3f97e3;
color: #fff;
color: $text-color;
border-radius: 2px;
display: inline-block;
cursor: pointer;
@@ -525,7 +524,7 @@ limitations under the License. -->
cursor: pointer;
margin: 10px 0 0 5px;
padding: 5px 15px;
color: #ffffff;
color: $text-color;
}
.datepicker__buttons .datepicker__button-select {