183 lines
4.3 KiB
Plaintext
183 lines
4.3 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 */
|
|||
|
/* 水平间距 */
|
|||
|
/* 垂直间距 */
|
|||
|
/* 透明度 */
|
|||
|
/* 文章场景相关 */
|
|||
|
.ui-radio.data-v-f282f071 {
|
|||
|
display: flex;
|
|||
|
align-items: center;
|
|||
|
height: 18px;
|
|||
|
margin: 0 0.5em 0 0;
|
|||
|
}
|
|||
|
.ui-radio .ui-radio-input.data-v-f282f071 {
|
|||
|
display: inline-block;
|
|||
|
width: 18px;
|
|||
|
height: 18px;
|
|||
|
margin: 0 0.5em 0 0;
|
|||
|
line-height: 18px;
|
|||
|
vertical-align: middle;
|
|||
|
}
|
|||
|
.ui-radio .ui-radio-input.data-v-f282f071::before {
|
|||
|
position: absolute;
|
|||
|
width: 0;
|
|||
|
height: 0;
|
|||
|
content: "";
|
|||
|
background-color: currentColor;
|
|||
|
border-radius: 18px;
|
|||
|
position: absolute !important;
|
|||
|
top: 0;
|
|||
|
right: 0;
|
|||
|
bottom: 0;
|
|||
|
left: 0;
|
|||
|
margin: auto;
|
|||
|
}
|
|||
|
.ui-radio .ui-radio-input.cur.data-v-f282f071 {
|
|||
|
position: relative;
|
|||
|
}
|
|||
|
.ui-radio .ui-radio-input.cur.data-v-f282f071::before {
|
|||
|
width: 10px;
|
|||
|
height: 10px;
|
|||
|
transition: all 0.2s ease-in-out;
|
|||
|
}
|
|||
|
.ui-radio.data-v-f282f071:last-child {
|
|||
|
margin: 0 0.14286em;
|
|||
|
}
|
|||
|
.ui-radio.check .ui-radio-input.data-v-f282f071::before {
|
|||
|
width: 18px;
|
|||
|
height: 18px;
|
|||
|
font-family: "colorui";
|
|||
|
font-size: 0;
|
|||
|
content: "\e69f";
|
|||
|
background-color: transparent;
|
|||
|
}
|
|||
|
.ui-radio.check .ui-radio-input.cur.data-v-f282f071::before {
|
|||
|
width: 18px;
|
|||
|
height: 18px;
|
|||
|
font-size: 1em;
|
|||
|
line-height: 18px;
|
|||
|
text-align: center;
|
|||
|
transform: scale(0.8);
|
|||
|
}
|
|||
|
.ui-radio.line .ui-radio-input.cur.data-v-f282f071::before {
|
|||
|
width: calc(100% - 2px);
|
|||
|
height: calc(100% - 2px);
|
|||
|
background-color: var(--ui-BG);
|
|||
|
}
|
|||
|
.ui-radio.line .ui-radio-input.cur.data-v-f282f071::after {
|
|||
|
position: absolute;
|
|||
|
width: 10px;
|
|||
|
height: 10px;
|
|||
|
content: "";
|
|||
|
background-color: inherit;
|
|||
|
border-radius: 50%;
|
|||
|
position: absolute !important;
|
|||
|
top: 0;
|
|||
|
right: 0;
|
|||
|
bottom: 0;
|
|||
|
left: 0;
|
|||
|
margin: auto;
|
|||
|
}
|
|||
|
.ui-radio.lg .ui-radio-input.data-v-f282f071 {
|
|||
|
font-size: 18px;
|
|||
|
}
|
|||
|
.ui-radio.img.data-v-f282f071 {
|
|||
|
position: relative;
|
|||
|
margin: 0 0.28572em 0;
|
|||
|
}
|
|||
|
.ui-radio.img .ui-radio-input.data-v-f282f071 {
|
|||
|
position: absolute;
|
|||
|
top: -1px;
|
|||
|
left: -1px;
|
|||
|
width: 42px;
|
|||
|
height: 42px;
|
|||
|
margin: 0;
|
|||
|
border-radius: 0px;
|
|||
|
}
|
|||
|
.ui-radio.img .ui-radio-input.data-v-f282f071::before {
|
|||
|
width: 40px;
|
|||
|
height: 40px;
|
|||
|
border-radius: 10rpx;
|
|||
|
}
|
|||
|
.ui-radio.img .ui-radio-input.cur.data-v-f282f071 {
|
|||
|
top: -2px;
|
|||
|
left: -2px;
|
|||
|
width: 44px;
|
|||
|
height: 44px;
|
|||
|
border-radius: 7px !important;
|
|||
|
opacity: 0.8;
|
|||
|
}
|
|||
|
.ui-radio.img .ui-radio-img.data-v-f282f071 {
|
|||
|
display: block;
|
|||
|
width: 40px;
|
|||
|
height: 40px;
|
|||
|
overflow: hidden;
|
|||
|
border-radius: 10px;
|
|||
|
}
|
|||
|
.ui-radio.card.data-v-f282f071 {
|
|||
|
position: relative;
|
|||
|
display: flex;
|
|||
|
flex-direction: row-reverse;
|
|||
|
justify-content: space-between;
|
|||
|
padding: 30rpx;
|
|||
|
margin: 30rpx;
|
|||
|
border-radius: 10rpx !important;
|
|||
|
}
|
|||
|
.ui-radio.card .ui-radio-bg.data-v-f282f071 {
|
|||
|
position: absolute;
|
|||
|
top: 0;
|
|||
|
left: 0;
|
|||
|
z-index: 0;
|
|||
|
width: 200%;
|
|||
|
height: 200%;
|
|||
|
content: "";
|
|||
|
background-color: var(--ui-BG);
|
|||
|
border-radius: 20rpx !important;
|
|||
|
transform: scale(0.5);
|
|||
|
transform-origin: 0 0;
|
|||
|
}
|
|||
|
.ui-radio.card .ui-radio-input.data-v-f282f071 {
|
|||
|
position: relative;
|
|||
|
z-index: 1;
|
|||
|
margin-right: 0;
|
|||
|
}
|
|||
|
.ui-radio.card .ui-radio-bg.data-v-f282f071::after {
|
|||
|
position: absolute;
|
|||
|
top: 4px;
|
|||
|
left: 4px;
|
|||
|
z-index: 0;
|
|||
|
width: calc(200% - 16px);
|
|||
|
height: calc(200% - 16px);
|
|||
|
content: "";
|
|||
|
background-color: var(--ui-BG) !important;
|
|||
|
border-radius: 28rpx !important;
|
|||
|
transform: scale(0.5);
|
|||
|
transform-origin: 0 0;
|
|||
|
}
|
|||
|
.ui-radio.card .ui-radio-content.data-v-f282f071 {
|
|||
|
position: relative;
|
|||
|
z-index: 1;
|
|||
|
display: flex;
|
|||
|
flex: 1;
|
|||
|
align-items: center;
|
|||
|
}
|