You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
812 lines
9.3 KiB
812 lines
9.3 KiB
/**
|
|
* 这里是uni-app内置的常用样式变量
|
|
*
|
|
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
|
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
|
*
|
|
*/
|
|
|
|
/**
|
|
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
|
*
|
|
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
|
*/
|
|
|
|
/* 颜色变量 */
|
|
|
|
/* 行为相关颜色 */
|
|
$uni-color-primary: #007aff;
|
|
$uni-color-success: #4cd964;
|
|
$page-color-base: #f5f5f5;
|
|
$uni-color-warning: #f0ad4e;
|
|
$uni-color-error: #dd524d;
|
|
$font-color-light: #909399;
|
|
|
|
/* 文字基本颜色 */
|
|
$uni-text-color:#333;//基本色
|
|
$uni-text-color-inverse:#fff;//反色
|
|
$uni-text-color-grey:#999;//辅助灰色,如加载更多的提示信息
|
|
$uni-text-color-placeholder: #808080;
|
|
$uni-text-color-disable:#c0c0c0;
|
|
|
|
/* 背景颜色 */
|
|
$uni-bg-color:#ffffff;
|
|
$uni-bg-color-grey:#f8f8f8;
|
|
$uni-bg-color-hover:#f1f1f1;//点击状态颜色
|
|
$uni-bg-color-mask:rgba(0, 0, 0, 0.4);//遮罩颜色
|
|
|
|
/* 边框颜色 */
|
|
$uni-border-color:#c8c7cc;
|
|
|
|
/* 尺寸变量 */
|
|
|
|
/* 文字尺寸 */
|
|
$uni-font-size-sm:24upx;
|
|
$uni-font-size-base:28upx;
|
|
$uni-font-size-lg:32upx;
|
|
$font-lg: 32upx;
|
|
$font-sm: 24upx;
|
|
$font-base: 28upx;
|
|
$base-color: #089bf5;
|
|
|
|
/* 图片尺寸 */
|
|
$uni-img-size-sm:40upx;
|
|
$uni-img-size-base:52upx;
|
|
$uni-img-size-lg:80upx;
|
|
|
|
/* Border Radius */
|
|
$uni-border-radius-sm: 4upx;
|
|
$uni-border-radius-base: 6upx;
|
|
$uni-border-radius-lg: 12upx;
|
|
$uni-border-radius-circle: 50%;
|
|
|
|
/* 水平间距 */
|
|
$font-color-dark: #303133;
|
|
$uni-spacing-row-sm: 10px;
|
|
$uni-spacing-row-base: 20upx;
|
|
$uni-spacing-row-lg: 30upx;
|
|
|
|
/* 垂直间距 */
|
|
$uni-spacing-col-sm: 8upx;
|
|
$uni-spacing-col-base: 16upx;
|
|
$uni-spacing-col-lg: 24upx;
|
|
|
|
/* 透明度 */
|
|
$uni-opacity-disabled: 0.3; // 组件禁用态的透明度
|
|
|
|
/* 文章场景相关 */
|
|
$uni-color-title: #2C405A; // 文章标题颜色
|
|
$uni-font-size-title:40upx;
|
|
$uni-color-subtitle: #555555; // 二级标题颜色
|
|
$uni-font-size-subtitle:36upx;
|
|
$uni-color-paragraph: #3F536E; // 文章段落颜色
|
|
$uni-font-size-paragraph:30upx;
|
|
|
|
/* 字体大小 */
|
|
.font11 {
|
|
font-size: 11px;
|
|
}
|
|
.font12 {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.font13 {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.fontlet{
|
|
letter-spacing: 2px;
|
|
}
|
|
|
|
.font14 {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.font15 {
|
|
font-size: 15px;
|
|
}
|
|
|
|
.font16 {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.font18 {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.font20 {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.font22 {
|
|
font-size: 22px;
|
|
}
|
|
|
|
.font24 {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.font28 {
|
|
font-size: 28px;
|
|
}
|
|
|
|
.font36 {
|
|
font-size: 36px;
|
|
}
|
|
|
|
.font40 {
|
|
font-size: 40px;
|
|
}
|
|
|
|
// 字体加粗
|
|
.fontwig6{
|
|
font-weight: bold;
|
|
}
|
|
/* 字体间距 */
|
|
.fontspec {
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.fontspec10 {
|
|
letter-spacing: 10px;
|
|
}
|
|
|
|
|
|
/* 字体行间距 */
|
|
.linehet {
|
|
line-height: 20px;
|
|
}
|
|
|
|
/* 字体位置 */
|
|
.fotlt {
|
|
text-align: left;
|
|
}
|
|
|
|
.fotrt {
|
|
text-align: right;
|
|
}
|
|
|
|
.fotct {
|
|
text-align: center;
|
|
}
|
|
|
|
.margle {
|
|
margin-left: 6px;
|
|
}
|
|
|
|
.margle10 {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.margle20 {
|
|
margin-left: 20px;
|
|
}
|
|
|
|
.marglerig{
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.marRight10{
|
|
margin-right: 10px;
|
|
}
|
|
.marRight20{
|
|
margin-right: 20px;
|
|
}
|
|
.marRight40{
|
|
margin-right: 40px;
|
|
}
|
|
|
|
.verc {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.versub {
|
|
vertical-align: sub;
|
|
}
|
|
|
|
.text1 {
|
|
overflow: hidden;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 1;
|
|
-webkit-box-orient: vertical;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
|
|
.text2 {
|
|
overflow: hidden;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* 字体颜色 */
|
|
.fcor333 {
|
|
color: #333333;
|
|
}
|
|
|
|
.fcorfff {
|
|
color: #ffffff;
|
|
}
|
|
|
|
.fcor666 {
|
|
color: #666666;
|
|
}
|
|
|
|
.fcor999 {
|
|
color: #b2b2b2;
|
|
}
|
|
|
|
.fcor089 {
|
|
color: #089bf5;
|
|
}
|
|
|
|
.fcorFD7{
|
|
color: #FD786D;
|
|
}
|
|
|
|
.fcoreb5 {
|
|
color: #eb5823;
|
|
}
|
|
|
|
.fcorred{
|
|
color: red;
|
|
}
|
|
|
|
.fcor41c{
|
|
color: #41cda2;
|
|
}
|
|
|
|
/* 背景颜色 */
|
|
.backcor6 {
|
|
background-color: #f6f6f6;
|
|
}
|
|
|
|
//渐变
|
|
.backcorlr{
|
|
background: linear-gradient(to right, #fe1a1a, #ff722e);
|
|
}
|
|
|
|
.backcor9 {
|
|
background-color: #f6f6f6;
|
|
}
|
|
|
|
.backcorf06{
|
|
background-color: #0083f5;
|
|
}
|
|
|
|
.backcor008{
|
|
background-color: #0083f5;
|
|
}
|
|
|
|
|
|
.backcor89 {
|
|
background-color: #089bf5;
|
|
}
|
|
|
|
.backcorfff {
|
|
background-color: white;
|
|
}
|
|
|
|
.backshare {
|
|
background: rgba(0, 0, 0, 0);
|
|
}
|
|
|
|
/* 页面布局 */
|
|
.width90 {
|
|
width: 90%;
|
|
margin-left: 5%;
|
|
}
|
|
|
|
.width90p {
|
|
width: 90%;
|
|
}
|
|
|
|
.width10 {
|
|
width: 10%;
|
|
}
|
|
|
|
.width96 {
|
|
width: 96%;
|
|
margin-left: 2%;
|
|
}
|
|
|
|
.width94 {
|
|
width: 94%;
|
|
margin-left: 3%;
|
|
}
|
|
.width92 {
|
|
width: 92%;
|
|
margin-left: 4%;
|
|
}
|
|
|
|
|
|
.width80 {
|
|
width: 80%;
|
|
margin-left: 10%;
|
|
}
|
|
|
|
|
|
.width80p {
|
|
width: 80%;
|
|
}
|
|
|
|
.width65 {
|
|
width: 65%;
|
|
}
|
|
|
|
.width70 {
|
|
width: 70%;
|
|
}
|
|
|
|
.width75 {
|
|
width: 75%;
|
|
}
|
|
|
|
.width85 {
|
|
width: 85%;
|
|
}
|
|
|
|
|
|
.width50 {
|
|
width: 50%;
|
|
}
|
|
|
|
.width45 {
|
|
width: 45%;
|
|
}
|
|
|
|
.width40 {
|
|
width: 40%;
|
|
}
|
|
|
|
.width60 {
|
|
width: 60%
|
|
}
|
|
|
|
.width60w {
|
|
width: 60%;
|
|
margin-left: 20%;
|
|
}
|
|
|
|
.width35 {
|
|
width: 35%;
|
|
}
|
|
|
|
.width30 {
|
|
width: 30%;
|
|
}
|
|
|
|
.width20 {
|
|
width: 20%;
|
|
}
|
|
|
|
.width25 {
|
|
width: 25%;
|
|
}
|
|
|
|
.width15 {
|
|
width: 15%;
|
|
}
|
|
.width8 {
|
|
width: 8%;
|
|
}
|
|
|
|
|
|
.width95 {
|
|
width: 95%;
|
|
}
|
|
|
|
.width100 {
|
|
width: 100%;
|
|
}
|
|
|
|
.bor-botm1 {
|
|
border-bottom: 1px solid #f4f4f4;
|
|
}
|
|
|
|
.bor-dot1 {
|
|
border-bottom: 1px dotted #999999;
|
|
}
|
|
.bor-botm10 {
|
|
border-bottom: 10px solid #f4f4f4;
|
|
}
|
|
|
|
//
|
|
/* 高40px */
|
|
.height40p {
|
|
height: 40px;
|
|
}
|
|
.height45 {
|
|
height: 45px;
|
|
}
|
|
|
|
.height22{
|
|
height: 22px;
|
|
}
|
|
|
|
.height100 {
|
|
height: 100%;
|
|
}
|
|
|
|
|
|
.height10 {
|
|
height: 10px;
|
|
}
|
|
|
|
|
|
.height60 {
|
|
height: 60px;
|
|
}
|
|
|
|
|
|
.height70 {
|
|
height: 70px;
|
|
}
|
|
|
|
.height80 {
|
|
height: 80px;
|
|
}
|
|
|
|
|
|
.height90 {
|
|
height: 90px;
|
|
}
|
|
|
|
|
|
.height100p {
|
|
height: 100px;
|
|
}
|
|
|
|
.height110 {
|
|
height: 110px;
|
|
}
|
|
|
|
.height120{
|
|
height: 120px;
|
|
}
|
|
|
|
.height150{
|
|
height: 150px;
|
|
}
|
|
|
|
.height180{
|
|
height: 180px;
|
|
}
|
|
|
|
.height30 {
|
|
height: 30px;
|
|
line-height: 30px;
|
|
}
|
|
|
|
.height40 {
|
|
height: 40px;
|
|
line-height: 40px;
|
|
}
|
|
|
|
.height45l {
|
|
height: 45px;
|
|
line-height: 45px;
|
|
}
|
|
|
|
.heightl60 {
|
|
height: 60px;
|
|
line-height: 60px;
|
|
}
|
|
|
|
|
|
.height20 {
|
|
height: 20px;
|
|
line-height: 20px;
|
|
}
|
|
.height25 {
|
|
height: 25px;
|
|
}
|
|
|
|
.height20p {
|
|
height: 20px;
|
|
}
|
|
|
|
|
|
.height50 {
|
|
height: 50px;
|
|
line-height: 50px;
|
|
}
|
|
|
|
.height50l {
|
|
height: 50px;
|
|
}
|
|
|
|
/* 向上下外间距 */
|
|
|
|
.margle10{
|
|
margin-left: 10px;
|
|
}
|
|
.mart90 {
|
|
margin-top: 90px;
|
|
}
|
|
|
|
.mart80{
|
|
margin-top: 80px;
|
|
}
|
|
.mart60{
|
|
margin-top: 60px;
|
|
}
|
|
|
|
.mart50 {
|
|
margin-top: 50px;
|
|
}
|
|
|
|
.mart40 {
|
|
margin-top: 40px;
|
|
}
|
|
|
|
.mart30 {
|
|
margin-top: 30px;
|
|
}
|
|
|
|
.mart15 {
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.mart20 {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.mart10 {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.mart5 {
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.mart1 {
|
|
margin-top: 1px;
|
|
}
|
|
|
|
.marb65 {
|
|
margin-bottom: 65px;
|
|
}
|
|
|
|
.marb50 {
|
|
margin-bottom: 50px;
|
|
}
|
|
|
|
.marb40 {
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.marb30 {
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.marb20 {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.marb15 {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.marb10 {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.marb5 {
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
|
|
/* 向上下内间距 */
|
|
.paddtop5 {
|
|
padding-top: 5px;
|
|
}
|
|
.paddtop10 {
|
|
padding-top: 10px;
|
|
}
|
|
.paading10{
|
|
padding : 10px;
|
|
}
|
|
|
|
.paading20{
|
|
padding : 20px;
|
|
}
|
|
.paddtop13 {
|
|
padding-top: 13px;
|
|
}
|
|
|
|
.paddtop15 {
|
|
padding-top: 15px;
|
|
}
|
|
.paddtop20 {
|
|
padding-top: 20px;
|
|
}
|
|
|
|
.paddtop25 {
|
|
padding-top: 25px;
|
|
}
|
|
|
|
.paddtop35 {
|
|
padding-top: 35px;
|
|
}
|
|
|
|
.paddleft5 {
|
|
padding-left: 5px;
|
|
}
|
|
|
|
.paddleft10 {
|
|
padding-left: 10px;
|
|
}
|
|
|
|
.padleft15 {
|
|
padding-left: 15px;
|
|
}
|
|
|
|
.paddtright5 {
|
|
padding-right: 5px;
|
|
}
|
|
|
|
|
|
.paddtright10 {
|
|
padding-right: 10px;
|
|
}
|
|
|
|
.paddbotm5 {
|
|
padding-bottom: 5px;
|
|
}
|
|
|
|
.paddbotm10 {
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
/* 左悬浮 */
|
|
.flleft {
|
|
float: left;
|
|
}
|
|
|
|
/* 右悬浮 */
|
|
.flright {
|
|
float: right;
|
|
}
|
|
|
|
/**
|
|
* 圆角
|
|
*/
|
|
.border-r{
|
|
border-radius: 5px;
|
|
}
|
|
|
|
//虚线
|
|
.borderdot{
|
|
border: 1px dotted #999999;
|
|
}
|
|
/* button样式 */
|
|
.btnw70 {
|
|
width: 70%;
|
|
color: white;
|
|
margin-top: 40px;
|
|
background-color: #089bf5;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.btnw50 {
|
|
width: 50%;
|
|
margin-left: 25%;
|
|
height: 45px;
|
|
line-height: 45px;
|
|
color: white;
|
|
text-align: center;
|
|
margin-top: 40px;
|
|
background-color: #0083f5;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.btn92{
|
|
width: 92%;
|
|
margin-left: 4%;
|
|
height: 45px;
|
|
line-height: 45px;
|
|
color: #FFFFFF;
|
|
background-color: #089bf5;
|
|
border-radius: 22px;
|
|
text-align: center;
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* 下滑线 */
|
|
.line1 {
|
|
height: 1px;
|
|
background-color: #f4f4f4;
|
|
}
|
|
|
|
.line2 {
|
|
height: 2px;
|
|
background-color: #f4f4f4;
|
|
}
|
|
|
|
.line10 {
|
|
height: 10px;
|
|
background-color: #f4f4f4;
|
|
}
|
|
|
|
.line1089 {
|
|
height: 10px;
|
|
background-color: #089bf5;
|
|
}
|
|
|
|
/* 展示样式 */
|
|
.displ {
|
|
display: inline-block;
|
|
}
|
|
|
|
.aliitem{
|
|
align-items: center;
|
|
display: flex;
|
|
}
|
|
|
|
.alijun{
|
|
justify-content: flex-end;
|
|
display: flex;
|
|
}
|
|
|
|
.alijusstart{
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
display: flex;
|
|
}
|
|
|
|
.alijusend{
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
display: flex;
|
|
}
|
|
|
|
.alicntend{
|
|
justify-content: end;
|
|
align-items: center;
|
|
display: flex;
|
|
}
|
|
|
|
.alijus{
|
|
justify-content: center;
|
|
align-items: center;
|
|
display: flex;
|
|
}
|
|
|
|
.iconw{
|
|
width: 15px;
|
|
}
|
|
|
|
.iconw25{
|
|
width: 25px;
|
|
}
|
|
|
|
.iconw40{
|
|
width: 40px;
|
|
}
|
|
|
|
//容器
|
|
.all-container{
|
|
width: 100%;
|
|
min-height: calc(100vh - var(--window-top));
|
|
box-sizing: border-box;
|
|
}
|
|
.pd-main{
|
|
padding: 20rpx;
|
|
}
|
|
.dis-flex{
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.flex-sp{
|
|
justify-content: space-between;
|
|
}
|
|
.flex-1{
|
|
flex: 1;
|
|
}
|
|
.flex-s0{
|
|
flex-shrink: 0;
|
|
} |