- 移除 createSetupExtend 插件及其相关配置 - 更新 Vue 版本从 3.5.13 到 3.5.25 - 更新 Element Plus 版本从 2.12.0 到 2.14.1 - 添加 @vue/shared 依赖 - 移除 @vue/compiler-sfc 开发依赖 - 移除 unplugin-vue-setup-extend-plus 依赖 - 更新 @babel 相关依赖版本 - 移除 @esbuild 相关可选依赖 - 更新 chokidar 版本从 3.6.0 到 5.0.0 - 移除部分已废弃的依赖项
197 lines
3.4 KiB
SCSS
Executable File
197 lines
3.4 KiB
SCSS
Executable File
@use 'sass:color';
|
|
@import './variables.module.scss';
|
|
|
|
// Element Plus风格的颜色按钮样式
|
|
@mixin colorBtn($color) {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 8px 16px;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
line-height: 1;
|
|
white-space: nowrap;
|
|
text-align: center;
|
|
background-image: none;
|
|
border: 1px solid $color;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
box-sizing: border-box;
|
|
color: #fff;
|
|
background-color: $color;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
background-color: color.adjust($color, $lightness: 10%);
|
|
border-color: color.adjust($color, $lightness: 10%);
|
|
color: #fff;
|
|
}
|
|
|
|
&:active {
|
|
background-color: color.adjust($color, $lightness: -5%);
|
|
border-color: color.adjust($color, $lightness: -5%);
|
|
color: #fff;
|
|
}
|
|
|
|
&:disabled {
|
|
color: #c0c4cc;
|
|
background-color: #f5f7fa;
|
|
border-color: #e4e7ed;
|
|
cursor: not-allowed;
|
|
}
|
|
}
|
|
|
|
.blue-btn {
|
|
@include colorBtn($blue)
|
|
}
|
|
|
|
.light-blue-btn {
|
|
@include colorBtn($light-blue)
|
|
}
|
|
|
|
.red-btn {
|
|
@include colorBtn($red)
|
|
}
|
|
|
|
.pink-btn {
|
|
@include colorBtn($pink)
|
|
}
|
|
|
|
.green-btn {
|
|
@include colorBtn($green)
|
|
}
|
|
|
|
.tiffany-btn {
|
|
@include colorBtn($tiffany)
|
|
}
|
|
|
|
.yellow-btn {
|
|
@include colorBtn($yellow)
|
|
}
|
|
|
|
.pan-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 8px 16px;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
line-height: 1;
|
|
white-space: nowrap;
|
|
text-align: center;
|
|
background-image: none;
|
|
border: 1px solid #dcdfe6;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
box-sizing: border-box;
|
|
color: #606266;
|
|
background-color: #fff;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
color: #3B82F6;
|
|
border-color: #c6e2ff;
|
|
background-color: #ecf5ff;
|
|
}
|
|
|
|
&:active {
|
|
color: #3a8ee6;
|
|
border-color: #3a8ee6;
|
|
background-color: #ecf5ff;
|
|
}
|
|
|
|
&:disabled {
|
|
color: #c0c4cc;
|
|
background-color: #f5f7fa;
|
|
border-color: #e4e7ed;
|
|
cursor: not-allowed;
|
|
}
|
|
}
|
|
|
|
// Element Plus风格的链接按钮样式
|
|
.pan-btn-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 8px 16px;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
line-height: 1;
|
|
white-space: nowrap;
|
|
text-align: center;
|
|
background-image: none;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
box-sizing: border-box;
|
|
background-color: transparent;
|
|
text-decoration: none;
|
|
outline: none;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
&:active {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
&:disabled {
|
|
color: #c0c4cc;
|
|
cursor: not-allowed;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
// 不同颜色的链接按钮
|
|
.blue-btn-link {
|
|
@extend .pan-btn-link;
|
|
color: #3B82F6;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
color: #66b1ff;
|
|
}
|
|
}
|
|
|
|
.red-btn-link {
|
|
@extend .pan-btn-link;
|
|
color: #EF4444;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
color: #f78989;
|
|
}
|
|
}
|
|
|
|
.info-btn-link {
|
|
@extend .pan-btn-link;
|
|
color: #64748B;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
color: #a6a9ad;
|
|
}
|
|
}
|
|
|
|
.custom-button {
|
|
display: inline-block;
|
|
line-height: 1;
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
background: #fff;
|
|
color: #fff;
|
|
-webkit-appearance: none;
|
|
text-align: center;
|
|
box-sizing: border-box;
|
|
outline: 0;
|
|
margin: 0;
|
|
padding: 10px 15px;
|
|
font-size: 14px;
|
|
border-radius: 4px;
|
|
}
|