150 lines
3.6 KiB
Plaintext
150 lines
3.6 KiB
Plaintext
/**
|
||
* 这里是uni-app内置的常用样式变量
|
||
*
|
||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||
*
|
||
*/
|
||
/**
|
||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||
*
|
||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||
*/
|
||
/* 颜色变量 */
|
||
/* 行为相关颜色 */
|
||
/* 文字基本颜色 */
|
||
/* 背景颜色 */
|
||
/* 边框颜色 */
|
||
/* 尺寸变量 */
|
||
/* 文字尺寸 */
|
||
/* 图片尺寸 */
|
||
/* Border Radius */
|
||
/* 水平间距 */
|
||
/* 垂直间距 */
|
||
/* 透明度 */
|
||
/* 文章场景相关 */
|
||
.custom-tabs.data-v-f67213a1 {
|
||
display: flex;
|
||
flex-direction: column;
|
||
height: 100%;
|
||
}
|
||
.tabs-header.data-v-f67213a1 {
|
||
display: flex;
|
||
justify-content: center;
|
||
white-space: nowrap;
|
||
padding: 10rpx 0;
|
||
background-color: #fff;
|
||
border-bottom: 1rpx solid #eee;
|
||
position: relative;
|
||
z-index: 10;
|
||
scrollbar-width: none;
|
||
-ms-overflow-style: none;
|
||
}
|
||
.tabs-header.scrollable.data-v-f67213a1::before {
|
||
content: "";
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
width: 20rpx;
|
||
height: 100%;
|
||
background: linear-gradient(to right, white, rgba(255, 255, 255, 0));
|
||
pointer-events: none;
|
||
z-index: 20;
|
||
}
|
||
.tabs-header.scrollable.data-v-f67213a1::after {
|
||
content: "";
|
||
position: absolute;
|
||
top: 0;
|
||
right: 0;
|
||
width: 20rpx;
|
||
height: 100%;
|
||
background: linear-gradient(to left, white, rgba(255, 255, 255, 0));
|
||
pointer-events: none;
|
||
z-index: 20;
|
||
}
|
||
.tabs-header.data-v-f67213a1 ::-webkit-scrollbar {
|
||
display: none;
|
||
width: 0;
|
||
height: 0;
|
||
color: transparent;
|
||
}
|
||
.smart-tab-item.data-v-f67213a1 {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 12rpx 30rpx;
|
||
font-size: 28rpx;
|
||
position: relative;
|
||
transition: all 0.3s ease;
|
||
box-sizing: border-box;
|
||
}
|
||
.tabs-header:not(.scrollable) .smart-tab-item.data-v-f67213a1 {
|
||
flex: 1;
|
||
min-width: 0;
|
||
text-overflow: ellipsis;
|
||
overflow: hidden;
|
||
white-space: nowrap;
|
||
justify-content: center;
|
||
}
|
||
.smart-tab-item.active .tab-text.data-v-f67213a1 {
|
||
position: relative;
|
||
}
|
||
.smart-tab-item.active .tab-text.data-v-f67213a1::after {
|
||
content: "";
|
||
position: absolute;
|
||
bottom: -10rpx;
|
||
left: 0;
|
||
right: 0;
|
||
height: 4rpx;
|
||
background-color: var(--71c614aa);
|
||
border-radius: 2rpx;
|
||
}
|
||
|
||
/* 微信小程序需要特殊处理 */
|
||
.tabs-header .uni-scroll-view-content.data-v-f67213a1 {
|
||
display: var(--scroll-content-display, block) !important;
|
||
}
|
||
.tab-badge.data-v-f67213a1 {
|
||
position: absolute;
|
||
top: -10rpx;
|
||
right: 10rpx;
|
||
min-width: 36rpx;
|
||
height: 36rpx;
|
||
padding: 0 6rpx;
|
||
background-color: #ff3b30;
|
||
color: #fff;
|
||
font-size: 20rpx;
|
||
border-radius: 18rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
transform: scale(0.85);
|
||
}
|
||
.tabs-content.data-v-f67213a1 {
|
||
flex: 1;
|
||
height: 0;
|
||
}
|
||
.scroll-button.data-v-f67213a1 {
|
||
position: absolute;
|
||
top: 50%;
|
||
transform: translateY(-50%);
|
||
width: 40rpx;
|
||
height: 40rpx;
|
||
background-color: rgba(0, 0, 0, 0.3);
|
||
border-radius: 50%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
z-index: 30;
|
||
cursor: pointer;
|
||
}
|
||
.scroll-button.left.data-v-f67213a1 {
|
||
left: 10rpx;
|
||
}
|
||
.scroll-button.right.data-v-f67213a1 {
|
||
right: 10rpx;
|
||
}
|
||
.scroll-button .icon.data-v-f67213a1 {
|
||
color: white;
|
||
font-size: 24rpx;
|
||
} |