国学小程序项目
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.
 
 
 
 
sinology-applet/src/static/style/app.scss

434 lines
5.3 KiB

/*每个页面公共css */
page {
background: #f4f4f4;
color: #383838;
font-size: 26rpx;
}
/* image{
background: skyblue;
} */
image,
video {
display: block;
}
image{will-change: transform}
/*字体颜色*/
.cor_fff {
color: #fff;
}
.cor_000 {
color: #000;
}
.cor_red {
color: #eb3831;
}
.cor_333 {
color: #333;
}
.cor_666 {
color: #666;
}
.cor_999 {
color: #999;
}
.cor_ccc {
color: #ccc;
}
.cor_eee{
color: #eee;
}
.cor_text {
color: #262626;
}
.cor_38{
color: #383838;
}
.cor_8c {
color: #8c8c8c;
}
.cor_80 {
color: #808080;
}
.cor_A6 {
color: #A6A6A6;
}
.cor_theme {
color: $uni-color-primary !important;
}
.cor_blue {
color: #43aefd;
}
.bk_theme {
background-color: $uni-color-primary !important;
color: #fff !important;
}
.fwb {
font-weight: bold;
}
/**图片大小**/
.img16 {
width: 16rpx;
height: 16rpx;
}
.mt70 {
margin-top: 70rpx;
}
.mt80 {
margin-top: 80rpx;
}
.mt90 {
margin-top: 90rpx;
}
.mr60 {
margin-right: 60rpx;
}
.mr70 {
margin-right: 70rpx;
}
.mr100 {
margin-right: 100rpx;
}
.m20lr {
margin-left: 20rpx;
margin-right: 20rpx;
}
.m30lr {
margin-left: 30rpx;
margin-right: 30rpx;
}
/**border**/
.bb1 {
border-bottom: solid 1px #f4f4f4;
}
.bt1 {
border-top: solid 1px #eee;
}
.border1 {
border: solid 1px #eee;
}
.border_tb1{
border-bottom: solid 1px #eee;
border-top: solid 1px #eee;
}
/***背景**/
.bk_f {
background-color: #fff;
}
.bk_f9 {
background-color: #f9f9f9;
}
.bk_f2 {
background-color: #f2f2f2;
}
.bk_rgba05 {
background-color: rgba(0, 0, 0, 0.5);
}
.bk_main {
background-color: #3d92e1;
}
.bk_blue {
background: skyblue;
}
.bk_red {
background-color: #ff2d17;
}
.bk_white {
background-color: #fff;
}
.opt5 {
opacity: 0.5;
}
.br_p50 {
border-radius: 50%;
}
.br_ltb{
border-radius: 50% 0 0 50% !important;
}
.br_rtb{
border-radius: 0 50% 50% 0 !important;
}
/**宽度**/
.wp20 {
width: 20%;
}
.wp25 {
width: 25%;
}
.wp40 {
width: 40%;
}
.wp50 {
width: 50%;
}
.wp100 {
width: 100%;
}
/**高度**/
.hp100 {
height: 100%;
}
/**行距**/
.lh1 {
line-height: 1;
}
.lh50{
line-height: 50rpx;
}
/**flex 设置**/
.df {
display: flex;
}
.fldr {
flex-direction: row !important;
}
.fldc {
flex-direction: column !important;
}
.fldrr {
flex-direction: row-reverse !important;
}
.jcsb {
justify-content: space-between !important;
}
.jcsba {
justify-content: space-around !important;
}
.jcfs {
justify-content: flex-start !important;
}
.jcc {
justify-content: center !important;
}
.jcfe {
justify-content: flex-end;
}
.fl1 {
flex: 1 !important;
}
.fw {
flex-wrap: wrap;
}
.ai-center {
align-items: center !important;
}
.ai-start {
align-items: flex-start;
}
.ai-baseline {
align-items: flex-end;
}
.ai-end {
align-items: flex-end;
}
.fls0 {
flex-shrink: 0;
}
/*对齐*/
.tac {
text-align: center;
}
.tar {
text-align: right;
}
.tal {
text-align: left;
}
/** 其他样式 **/
.ov {
overflow: hidden;
}
.ovya {
overflow-y: auto;
}
.bsb {
box-sizing: border-box;
}
.re {
position: relative;
}
.ab {
position: absolute;
}
.ab_full {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
}
.fixed {
position: fixed;
}
.db {
display: block;
}
.di {
display: inline;
}
.dib {
display: inline-block;
}
.dif {
display: inline-flex;
}
.v-middle {
position: absolute;
top: 50%;
transform: translateY(-50%);
}
.h-middle {
position: absolute;
left: 50%;
transform: translateX(-50%);
}
.middle {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.text-line-through {
text-decoration: line-through;
}
.text-underline {
text-decoration: underline;
}
.wb {
display: block;
word-break: break-all;
word-wrap: break-word;
}
.vam {
vertical-align: middle;
}
/*灰色分割条*/
.gray_bar {
height: 20rpx;
background: #f5f5f5;
}
.scroll-box {
flex: 1;
height: 100%;
position: relative;
}
.content_box {
flex: 1;
overflow-y: auto;
}
.theme-tag {
display: inline-block;
padding: 0 25rpx;
height: 36rpx;
line-height: 36rpx;
border-radius: 20rpx;
border: 2rpx solid $uni-color-primary;
box-sizing: content-box;
font-size: 24rpx;
color: $uni-color-primary;
}
.selector {
position: relative;
padding-left: 30rpx;
padding-right: 20rpx;
height: 60rpx;
line-height: 60rpx;
border-radius: 30rpx;
font-size: 24rpx;
color: #333;
background-color: #fff;
}
.selector.actived {
color: $uni-color-primary;
border: 1rpx solid $uni-color-primary;
background: #e6f2ff;
}
.img24 {
width: 24px;
height: 24px;
}
.img36 {
width: 36px;
height: 36px;
}
.img48 {
width: 48px;
height: 48px;
}
.img50 {
width: 50px;
height: 50px;
}
.img120 {
width: 120px;
height: 120px;
}
.img140 {
width: 140px;
height: 140px;
}
.theme-bg-light {
background-color: $uni-color-primary;
}
.pt100 {
padding-top: 100rpx;
}
.theme-btn {
padding: 0 20px;
min-width: 250rpx;
height: 78rpx;
line-height: 80rpx;
text-align: center;
font-size: 28rpx;
color: #fff;
border-radius: 40rpx;
background-color: $uni-color-primary;
}
.theme-btn-light {
padding: 0 20px;
min-width: 250rpx;
height: 78rpx;
line-height: 80rpx;
text-align: center;
font-size: 28rpx;
color: #fff;
border-radius: 40rpx;
color: $uni-color-primary;
border: 1px solid $uni-color-primary;
}
.img70 {
width:70px;
height: 70px;
}
// .u-tabbar {
// max-height: 50px;
// }
.j-tag {
display: inline-block;
margin-right: 2px;
}