399 lines
13 KiB
Plaintext
399 lines
13 KiB
Plaintext
|
/* stylelint-disable comment-empty-line-before */
|
|||
|
/**
|
|||
|
* 这里是uni-app内置的常用样式变量
|
|||
|
*
|
|||
|
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
|||
|
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
|||
|
*
|
|||
|
*/
|
|||
|
/**
|
|||
|
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
|||
|
*
|
|||
|
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
|||
|
*/
|
|||
|
/* 颜色变量 */
|
|||
|
/* 行为相关颜色 */
|
|||
|
/* 文字基本颜色 */
|
|||
|
/* 背景颜色 */
|
|||
|
/* 边框颜色 */
|
|||
|
/* 尺寸变量 */
|
|||
|
/* 文字尺寸 */
|
|||
|
/* 图片尺寸 */
|
|||
|
/* Border Radius */
|
|||
|
/* 水平间距 */
|
|||
|
/* 垂直间距 */
|
|||
|
/* 透明度 */
|
|||
|
/* 文章场景相关 */
|
|||
|
/**
|
|||
|
* 辅助函数
|
|||
|
*/
|
|||
|
/**
|
|||
|
* SCSS 配置项:命名空间以及BEM
|
|||
|
*/
|
|||
|
/* 转换成字符串 */
|
|||
|
/* 判断是否存在 Modifier */
|
|||
|
/* 判断是否存在伪类 */
|
|||
|
/**
|
|||
|
* 主题色切换
|
|||
|
* @params $theme-color 主题色
|
|||
|
* @params $type 变暗’dark‘ 变亮 'light'
|
|||
|
* @params $mix-color 自己设置的混色
|
|||
|
*/
|
|||
|
/**
|
|||
|
* 颜色结果切换, 如果开启线性渐变色 使用渐变色,如果没有开启,那么使用主题色
|
|||
|
* @params $open-linear 是否开启线性渐变色
|
|||
|
* @params $deg 渐变色角度
|
|||
|
* @params $theme-color 当前配色
|
|||
|
* @params [Array] $set 主题色明暗设置,与 $color-list 数量对应
|
|||
|
* @params [Array] $color-list 渐变色顺序, $color-list 和 $per-list 数量相同
|
|||
|
* @params [Array] $per-list 渐变色比例
|
|||
|
*/
|
|||
|
/**
|
|||
|
* UI规范基础变量
|
|||
|
*/
|
|||
|
/*----------------------------------------- Theme color. start ----------------------------------------*/
|
|||
|
/* 主题颜色 */
|
|||
|
/* 辅助色 */
|
|||
|
/* 文字颜色(默认浅色背景下 */
|
|||
|
/* 暗黑模式 */
|
|||
|
/* 图形颜色 */
|
|||
|
/*----------------------------------------- Theme color. end -------------------------------------------*/
|
|||
|
/*-------------------------------- Theme color application size. start --------------------------------*/
|
|||
|
/* 文字字号 */
|
|||
|
/* 文字字重 */
|
|||
|
/* 尺寸 */
|
|||
|
/*-------------------------------- Theme color application size. end --------------------------------*/
|
|||
|
/* action-sheet */
|
|||
|
/* badge */
|
|||
|
/* button */
|
|||
|
/* cell */
|
|||
|
/* calendar */
|
|||
|
/* checkbox */
|
|||
|
/* collapse */
|
|||
|
/* divider */
|
|||
|
/* drop-menu */
|
|||
|
/* input-number */
|
|||
|
/* input */
|
|||
|
/* textarea */
|
|||
|
/* loadmore */
|
|||
|
/* message-box */
|
|||
|
/* notice-bar */
|
|||
|
/* pagination */
|
|||
|
/* picker */
|
|||
|
/* col-picker */
|
|||
|
/* overlay */
|
|||
|
/* popup */
|
|||
|
/* progress */
|
|||
|
/* radio */
|
|||
|
/* search */
|
|||
|
/* slider */
|
|||
|
/* sort-button */
|
|||
|
/* steps */
|
|||
|
/* switch */
|
|||
|
/* tabs */
|
|||
|
/* tag */
|
|||
|
/* toast */
|
|||
|
/* tooltip */
|
|||
|
/* popover */
|
|||
|
/* grid-item */
|
|||
|
/* statustip */
|
|||
|
/* card */
|
|||
|
/* upload */
|
|||
|
/* curtain */
|
|||
|
/* notify */
|
|||
|
/* skeleton */
|
|||
|
/* circle */
|
|||
|
/* swiper */
|
|||
|
/* swiper-nav */
|
|||
|
/* segmented */
|
|||
|
/* tabbar */
|
|||
|
/* tabbar-item */
|
|||
|
/* navbar */
|
|||
|
/* navbar-capsule */
|
|||
|
/* table */
|
|||
|
/* sidebar */
|
|||
|
/* sidebar-item */
|
|||
|
/* fab */
|
|||
|
/* count-down */
|
|||
|
/* number-keyboard */
|
|||
|
/* passwod-input */
|
|||
|
/* form-item */
|
|||
|
/* backtop */
|
|||
|
/* index-bar */
|
|||
|
/**
|
|||
|
* 混合宏
|
|||
|
*/
|
|||
|
/**
|
|||
|
* SCSS 配置项:命名空间以及BEM
|
|||
|
*/
|
|||
|
/**
|
|||
|
* 辅助函数
|
|||
|
*/
|
|||
|
/**
|
|||
|
* SCSS 配置项:命名空间以及BEM
|
|||
|
*/
|
|||
|
/* 转换成字符串 */
|
|||
|
/* 判断是否存在 Modifier */
|
|||
|
/* 判断是否存在伪类 */
|
|||
|
/**
|
|||
|
* 主题色切换
|
|||
|
* @params $theme-color 主题色
|
|||
|
* @params $type 变暗’dark‘ 变亮 'light'
|
|||
|
* @params $mix-color 自己设置的混色
|
|||
|
*/
|
|||
|
/**
|
|||
|
* 颜色结果切换, 如果开启线性渐变色 使用渐变色,如果没有开启,那么使用主题色
|
|||
|
* @params $open-linear 是否开启线性渐变色
|
|||
|
* @params $deg 渐变色角度
|
|||
|
* @params $theme-color 当前配色
|
|||
|
* @params [Array] $set 主题色明暗设置,与 $color-list 数量对应
|
|||
|
* @params [Array] $color-list 渐变色顺序, $color-list 和 $per-list 数量相同
|
|||
|
* @params [Array] $per-list 渐变色比例
|
|||
|
*/
|
|||
|
/**
|
|||
|
* BEM,定义块(b)
|
|||
|
*/
|
|||
|
/* 定义元素(e),对于伪类,会自动将 e 嵌套在 伪类 底下 */
|
|||
|
/* 此方法用于生成穿透样式 */
|
|||
|
/* 定义元素(e),对于伪类,会自动将 e 嵌套在 伪类 底下 */
|
|||
|
/* 定义状态(m) */
|
|||
|
/* 对于需要需要嵌套在 m 底下的 e,调用这个混合宏,一般在切换整个组件的状态,如切换颜色的时候 */
|
|||
|
/* 状态,生成 is-$state 类名 */
|
|||
|
/**
|
|||
|
* 常用混合宏
|
|||
|
*/
|
|||
|
/* 单行超出隐藏 */
|
|||
|
/* 多行超出隐藏 */
|
|||
|
/* 清除浮动 */
|
|||
|
/* 0.5px 边框 指定方向*/
|
|||
|
/* 0.5px 边框 环绕 */
|
|||
|
/**
|
|||
|
* 三角形实现尖角样式,适用于背景透明情况
|
|||
|
* @param $size 三角形高,底边为 $size * 2
|
|||
|
* @param $bg 三角形背景颜色
|
|||
|
*/
|
|||
|
/**
|
|||
|
* 正方形实现尖角样式,适用于背景不透明情况
|
|||
|
* @param $size 正方形边长
|
|||
|
* @param $bg 正方形背景颜色
|
|||
|
* @param $z-index z-index属性值,不得大于外部包裹器
|
|||
|
* @param $box-shadow 阴影
|
|||
|
*/
|
|||
|
.wot-theme-dark .wd-col-picker.is-border .wd-col-picker__cell.data-v-adcdd452 {
|
|||
|
position: relative;
|
|||
|
}
|
|||
|
.wot-theme-dark .wd-col-picker.is-border .wd-col-picker__cell.data-v-adcdd452::after {
|
|||
|
position: absolute;
|
|||
|
display: block;
|
|||
|
content: "";
|
|||
|
width: calc(100% - var(--wot-cell-padding, var(--wot-size-side-padding, 15px)));
|
|||
|
height: 1px;
|
|||
|
left: var(--wot-cell-padding, var(--wot-size-side-padding, 15px));
|
|||
|
top: 0;
|
|||
|
transform: scaleY(0.5);
|
|||
|
background: var(--wot-dark-border-color, #3a3a3c);
|
|||
|
}
|
|||
|
.wot-theme-dark .wd-col-picker__label.data-v-adcdd452 {
|
|||
|
color: var(--wot-dark-color, var(--wot-color-white, rgb(255, 255, 255)));
|
|||
|
}
|
|||
|
.wot-theme-dark .wd-col-picker__cell.data-v-adcdd452 {
|
|||
|
background-color: var(--wot-dark-background2, #1b1b1b);
|
|||
|
color: var(--wot-dark-color, var(--wot-color-white, rgb(255, 255, 255)));
|
|||
|
}
|
|||
|
.wot-theme-dark .wd-col-picker__cell.is-disabled .wd-col-picker__value.data-v-adcdd452 {
|
|||
|
color: var(--wot-dark-color3, rgba(232, 230, 227, 0.8));
|
|||
|
}
|
|||
|
.wot-theme-dark .wd-col-picker__value.data-v-adcdd452 {
|
|||
|
color: var(--wot-dark-color, var(--wot-color-white, rgb(255, 255, 255)));
|
|||
|
}
|
|||
|
.wot-theme-dark .wd-col-picker__value--placeholder.data-v-adcdd452 {
|
|||
|
color: var(--wot-dark-color-gray, var(--wot-color-secondary, #595959));
|
|||
|
}
|
|||
|
.wot-theme-dark .wd-col-picker.data-v-adcdd452 .wd-col-picker__arrow {
|
|||
|
color: var(--wot-dark-color, var(--wot-color-white, rgb(255, 255, 255)));
|
|||
|
}
|
|||
|
.wot-theme-dark .wd-col-picker__list.data-v-adcdd452 {
|
|||
|
color: var(--wot-dark-color, var(--wot-color-white, rgb(255, 255, 255)));
|
|||
|
}
|
|||
|
.wot-theme-dark .wd-col-picker__selected.data-v-adcdd452 {
|
|||
|
color: var(--wot-dark-color, var(--wot-color-white, rgb(255, 255, 255)));
|
|||
|
}
|
|||
|
.wd-col-picker.is-border .wd-col-picker__cell.data-v-adcdd452 {
|
|||
|
position: relative;
|
|||
|
}
|
|||
|
.wd-col-picker.is-border .wd-col-picker__cell.data-v-adcdd452::after {
|
|||
|
position: absolute;
|
|||
|
display: block;
|
|||
|
content: "";
|
|||
|
width: calc(100% - var(--wot-cell-padding, var(--wot-size-side-padding, 15px)));
|
|||
|
height: 1px;
|
|||
|
left: var(--wot-cell-padding, var(--wot-size-side-padding, 15px));
|
|||
|
top: 0;
|
|||
|
transform: scaleY(0.5);
|
|||
|
background: var(--wot-color-border-light, #e8e8e8);
|
|||
|
}
|
|||
|
.wd-col-picker__cell.data-v-adcdd452 {
|
|||
|
position: relative;
|
|||
|
display: flex;
|
|||
|
padding: var(--wot-cell-wrapper-padding, 10px) var(--wot-cell-padding, var(--wot-size-side-padding, 15px));
|
|||
|
align-items: flex-start;
|
|||
|
background-color: var(--wot-color-white, rgb(255, 255, 255));
|
|||
|
text-decoration: none;
|
|||
|
color: var(--wot-cell-title-color, rgba(0, 0, 0, 0.85));
|
|||
|
font-size: var(--wot-cell-title-fs, 14px);
|
|||
|
overflow: hidden;
|
|||
|
line-height: var(--wot-cell-line-height, 24px);
|
|||
|
}
|
|||
|
.wd-col-picker__cell.is-disabled .wd-col-picker__value.data-v-adcdd452 {
|
|||
|
color: var(--wot-input-disabled-color, #d9d9d9);
|
|||
|
}
|
|||
|
.wd-col-picker__cell.is-align-right .wd-col-picker__value.data-v-adcdd452 {
|
|||
|
text-align: right;
|
|||
|
}
|
|||
|
.wd-col-picker__cell.is-error .wd-col-picker__value.data-v-adcdd452 {
|
|||
|
color: var(--wot-input-error-color, var(--wot-color-danger, #fa4350));
|
|||
|
}
|
|||
|
.wd-col-picker__cell.is-error.data-v-adcdd452 .wd-col-picker__arrow {
|
|||
|
color: var(--wot-input-error-color, var(--wot-color-danger, #fa4350));
|
|||
|
}
|
|||
|
.wd-col-picker__cell.is-large.data-v-adcdd452 {
|
|||
|
font-size: var(--wot-cell-title-fs-large, 16px);
|
|||
|
}
|
|||
|
.wd-col-picker__cell.is-large.data-v-adcdd452 .wd-col-picker__arrow {
|
|||
|
font-size: var(--wot-cell-icon-size-large, 18px);
|
|||
|
}
|
|||
|
.wd-col-picker__error-message.data-v-adcdd452 {
|
|||
|
color: var(--wot-form-item-error-message-color, var(--wot-color-danger, #fa4350));
|
|||
|
font-size: var(--wot-form-item-error-message-font-size, var(--wot-fs-secondary, 12px));
|
|||
|
line-height: var(--wot-form-item-error-message-line-height, 24px);
|
|||
|
text-align: left;
|
|||
|
vertical-align: middle;
|
|||
|
}
|
|||
|
.wd-col-picker__label.data-v-adcdd452 {
|
|||
|
position: relative;
|
|||
|
width: var(--wot-input-cell-label-width, 33%);
|
|||
|
margin-right: var(--wot-cell-padding, var(--wot-size-side-padding, 15px));
|
|||
|
color: var(--wot-cell-title-color, rgba(0, 0, 0, 0.85));
|
|||
|
box-sizing: border-box;
|
|||
|
}
|
|||
|
.wd-col-picker__label.is-required.data-v-adcdd452 {
|
|||
|
padding-left: 12px;
|
|||
|
}
|
|||
|
.wd-col-picker__label.is-required.data-v-adcdd452::after {
|
|||
|
position: absolute;
|
|||
|
left: 0;
|
|||
|
top: 2px;
|
|||
|
content: "*";
|
|||
|
font-size: var(--wot-cell-required-size, 18px);
|
|||
|
line-height: 1.1;
|
|||
|
color: var(--wot-cell-required-color, var(--wot-color-danger, #fa4350));
|
|||
|
}
|
|||
|
.wd-col-picker__value-wraper.data-v-adcdd452 {
|
|||
|
display: flex;
|
|||
|
}
|
|||
|
.wd-col-picker__value.data-v-adcdd452 {
|
|||
|
flex: 1;
|
|||
|
margin-right: 10px;
|
|||
|
color: var(--wot-cell-value-color, rgba(0, 0, 0, 0.85));
|
|||
|
}
|
|||
|
.wd-col-picker__value.is-ellipsis.data-v-adcdd452 {
|
|||
|
overflow: hidden;
|
|||
|
text-overflow: ellipsis;
|
|||
|
white-space: nowrap;
|
|||
|
}
|
|||
|
.wd-col-picker__value--placeholder.data-v-adcdd452 {
|
|||
|
color: var(--wot-input-placeholder-color, #bfbfbf);
|
|||
|
}
|
|||
|
.wd-col-picker__body.data-v-adcdd452 {
|
|||
|
flex: 1;
|
|||
|
}
|
|||
|
.data-v-adcdd452 .wd-col-picker__arrow {
|
|||
|
display: block;
|
|||
|
font-size: var(--wot-cell-icon-size, 16px);
|
|||
|
color: var(--wot-cell-arrow-color, rgba(0, 0, 0, 0.25));
|
|||
|
line-height: var(--wot-cell-line-height, 24px);
|
|||
|
}
|
|||
|
.wd-col-picker__selected.data-v-adcdd452 {
|
|||
|
height: var(--wot-col-picker-selected-height, 44px);
|
|||
|
font-size: var(--wot-col-picker-selected-fs, 14px);
|
|||
|
color: var(--wot-col-picker-selected-color, rgba(0, 0, 0, 0.85));
|
|||
|
overflow: hidden;
|
|||
|
}
|
|||
|
.wd-col-picker__selected-container.data-v-adcdd452 {
|
|||
|
position: relative;
|
|||
|
display: flex;
|
|||
|
-webkit-user-select: none;
|
|||
|
-moz-user-select: none;
|
|||
|
user-select: none;
|
|||
|
}
|
|||
|
.wd-col-picker__selected-item.data-v-adcdd452 {
|
|||
|
flex: 0 0 auto;
|
|||
|
height: var(--wot-col-picker-selected-height, 44px);
|
|||
|
line-height: var(--wot-col-picker-selected-height, 44px);
|
|||
|
padding: var(--wot-col-picker-selected-padding, 0 16px);
|
|||
|
}
|
|||
|
.wd-col-picker__selected-item.is-selected.data-v-adcdd452 {
|
|||
|
font-weight: var(--wot-col-picker-selected-fw, 700);
|
|||
|
}
|
|||
|
.wd-col-picker__selected-line.data-v-adcdd452 {
|
|||
|
position: absolute;
|
|||
|
bottom: 5px;
|
|||
|
width: var(--wot-col-picker-line-width, 16px);
|
|||
|
left: 0;
|
|||
|
height: var(--wot-col-picker-line-height, 3px);
|
|||
|
background: var(--wot-col-picker-line-color, linear-gradient(315deg, rgb(81, 124, 240), rgb(118, 158, 245)));
|
|||
|
z-index: 1;
|
|||
|
border-radius: calc(var(--wot-col-picker-line-height, 3px) / 2);
|
|||
|
box-shadow: var(--wot-col-picker-line-box-shadow, 0px 1px 2px 0px rgba(1, 87, 255, 0.2));
|
|||
|
}
|
|||
|
.wd-col-picker__list-container.data-v-adcdd452 {
|
|||
|
position: relative;
|
|||
|
}
|
|||
|
.wd-col-picker__list.data-v-adcdd452 {
|
|||
|
height: var(--wot-col-picker-list-height, 53vh);
|
|||
|
padding-bottom: var(--wot-col-picker-list-padding-bottom, 30px);
|
|||
|
box-sizing: border-box;
|
|||
|
overflow: auto;
|
|||
|
color: var(--wot-col-picker-list-color, rgba(0, 0, 0, 0.85));
|
|||
|
font-size: var(--wot-col-picker-list-fs, 14px);
|
|||
|
-webkit-overflow-scrolling: touch;
|
|||
|
}
|
|||
|
.wd-col-picker__list-item.data-v-adcdd452 {
|
|||
|
display: flex;
|
|||
|
padding: var(--wot-col-picker-list-item-padding, 12px 15px);
|
|||
|
align-items: flex-start;
|
|||
|
}
|
|||
|
.wd-col-picker__list-item.is-selected.data-v-adcdd452 {
|
|||
|
color: var(--wot-col-picker-list-color-checked, var(--wot-color-theme, #4d80f0));
|
|||
|
}
|
|||
|
.wd-col-picker__list-item.is-selected.data-v-adcdd452 .wd-col-picker__checked {
|
|||
|
opacity: 1;
|
|||
|
}
|
|||
|
.wd-col-picker__list-item.is-disabled.data-v-adcdd452 {
|
|||
|
color: var(--wot-col-picker-list-color-disabled, rgba(0, 0, 0, 0.15));
|
|||
|
}
|
|||
|
.wd-col-picker__list-item-label.data-v-adcdd452 {
|
|||
|
line-height: 1.285;
|
|||
|
}
|
|||
|
.wd-col-picker__list-item-tip.data-v-adcdd452 {
|
|||
|
margin-top: 2px;
|
|||
|
font-size: var(--wot-col-picker-list-fs-tip, 12px);
|
|||
|
color: var(--wot-col-picker-list-color-tip, rgba(0, 0, 0, 0.45));
|
|||
|
}
|
|||
|
.data-v-adcdd452 .wd-col-picker__checked {
|
|||
|
display: block;
|
|||
|
margin-left: 4px;
|
|||
|
font-size: var(--wot-col-picker-list-checked-icon-size, 18px);
|
|||
|
color: var(--wot-col-picker-list-color-checked, var(--wot-color-theme, #4d80f0));
|
|||
|
opacity: 0;
|
|||
|
}
|
|||
|
.wd-col-picker__loading.data-v-adcdd452 {
|
|||
|
display: flex;
|
|||
|
position: absolute;
|
|||
|
top: 0;
|
|||
|
left: 0;
|
|||
|
right: 0;
|
|||
|
bottom: 0;
|
|||
|
align-items: center;
|
|||
|
justify-content: center;
|
|||
|
}
|