耀实惠小程序
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.
 
 
 

367 lines
9.1 KiB

/* 1. 页面背景色 */
.page{
background-color: #EDEDED;
/* #ifndef APP-PLUS-NVUE */
min-height: 100%;
height: auto;
/* #endif */
/* #ifdef APP-PLUS-NVUE */
flex: 1;
/* #endif */
}
.hover-class {
opacity: .6;
}
.status-bar-height {width: 100%;height: var(--status-bar-height);background-color: #000;}
page {
display: flex;
flex-direction: column;
height: 100vh;
}
/* 防止图片闪一下 */
image{will-change: transform;width: 100%; }
/* 图标 */
.iconfont{
font-family:iconfont;
}
.view,.text{
font-size:24rpx;
line-height:1.8;
color:#0E151D;
}
.lineHeight-1 {
line-height: 1;
}
/* 宽度 */
.vw-100{ width: 750rpx; }
.vh-100{ width: 100vh; }
.w-100{ width: 100%; }
.h-100 {height: 100%;}
.min-h-100 {min-height: 100vh;}
/* flex 布局 */
.flex{
/* #ifndef APP-PLUS-NVUE */
display:flex;
/* #endif */
flex-direction:row;
}
.flex-row{ flex-direction:row!important; }
.flex-column{ flex-direction:column!important; }
.flex-row-reverse{ flex-direction:row-reverse!important; }
.flex-column-reverse{ flex-direction:column-reverse!important; }
.flex-wrap{ flex-wrap:wrap;}
.flex-nowrap{ flex-wrap:nowrap;}
.justify-start{justify-content:flex-start;}
.justify-end{justify-content:flex-end;}
.justify-between{justify-content:space-between;}
.justify-center{justify-content:center;}
.align-center{ align-items: center; }
.align-stretch{ align-items: stretch; }
.align-start{ align-items: flex-start; }
.align-end{ align-items: flex-end; }
/* #ifndef APP-PLUS-NVUE */
.content-start {align-content: flex-start;}
.content-end {align-content: flex-end;}
.content-center {align-content: center;}
.content-between {align-content: space-between;}
.content-around {align-content: space-around;}
.content-stretch {align-content: stretch;}
/* #endif */
/* #ifndef APP-PLUS-NVUE */
.flex-shrink{ flex-shrink: 0; }
/* #endif */
/* #ifndef APP-PLUS-NVUE */
.m-auto{ margin: auto; }
/* #endif */
/* 文字缩进 */
/* #ifndef APP-PLUS-NVUE */
.text-indent{text-indent:2;}
/* #endif */
/* 文字划线 */
.text-through{text-decoration:line-through;}
/* 文字对齐 */
.text-left { text-align: left;}
.text-right { text-align: right;}
.text-center { text-align: center;}
/* 文字换行溢出处理 */
.text-ellipsis {
/* #ifndef APP-PLUS-NVUE */
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
/* #endif */
/* #ifdef APP-PLUS-NVUE */
lines: 1;
/* #endif */
}
/* 文字粗细和斜体 */
.font-weight-light {font-weight: 300;} /*细*/
.font-weight-lighter {font-weight: 100;}/*更细*/
.font-weight-normal { font-weight: 500;} /*正常*/
.font-weight-bold { font-weight: 700;} /*粗*/
.font-weight-bolder { font-weight: bold;} /*更粗*/
.font-italic { font-style: italic;} /*斜体*/
/* 文字颜色 */
.text-grey {color: #707070}
.text-red {color: #FF0000}
.text-white {color: #ffffff;}
.text-primary {color: #007bff;}
.text-hover-primary { color: #0056b3;}
.text-secondary {color: #6c757d;}
.text-hover-secondary { color: #494f54;}
.text-success {color: #28a745;}
.text-hover-success{color: #19692c;}
.text-info { color: #17a2b8;}
.text-hover-info {color: #0f6674;}
.text-warning {color: #ffc107;}
.text-hover-warning { color: #ba8b00;}
.text-danger { color: #dc3545;}
.text-hover-danger { color: #a71d2a;}
.text-light { color: #f8f9fa;}
.text-hover-light { color: #cbd3da;}
.text-dark { color: #343a40;}
.text-hover-dark{ color: #121416;}
.text-body { color: #212529;}
.text-muted { color: #999999;}
.text-EE8414 {color: #EE8414;}
.text-FE6347 {color:#FE6347}
.text-blue {color: #0175FF}
.text-black {color: #000}
.text-light-muted { color: #A9A5A0;}
.text-light-black { color: rgba(0, 0, 0, 0.5);}
.text-light-white { color: rgba(255, 255, 255, 0.5);}
/* 背景颜色 */
.bg-primary { background-color: #007bff;}
.bg-hover-primary:hover{ background-color: #0062cc !important;}
.bg-secondary { background-color: #6c757d;}
.bg-hover-secondary:hover{ background-color: #545b62 !important;}
.bg-success { background-color: #28a745;}
.bg-hover-success { background-color: #1e7e34 !important;}
.bg-info { background-color: #17a2b8;}
.bg-hover-info { background-color: #117a8b !important;}
.bg-warning { background-color: #ffc107;}
.bg-FFE9E5 {background-color:#FFE9E5 !important;}
.bg-hover-warning { background-color: #d39e00 !important;}
.bg-hover-f1f1f1 {background-color: #f1f1f1 !important;}
.bg-hover-dc563e {background-color: #ef5d43 !important;}
.bg-danger { background-color: #dc3545;}
.bg-FE6347 {background-color: #FE6347 !important;}
.bg-hover-danger{ background-color: #bd2130 !important;}
.bg-light { background-color: #f8f9fa;}
.bg-hover-light{ background-color: #dae0e5 !important;}
.bg-dark { background-color: #343a40;}
.bg-hover-dark { background-color: #1d2124 !important;}
.bg-white { background-color: #ffffff;}
.bg-hover-main {background-color: #F6F7F8 !important;}
.bg-transparent { background-color: transparent;}
.theme-color { color: #01AEEA}
.theme-bg { background-color: #01AEEA}
/* 边框 */
.border { border-width: 1rpx;border-style: solid;border-color: #dee2e6;}
.border-top {
border-top-width: 1rpx;
border-top-style: solid;
border-top-color: #dee2e6;
}
.border-right {
border-right-width: 1rpx;
border-right-style: solid;
border-right-color: #dee2e6;
}
.border-bottom {
border-bottom-width: 1rpx;
border-bottom-style: solid;
border-bottom-color: #dee2e6;
}
.border-bottom-ee {
border-bottom-width: 1rpx;
border-bottom-style: solid;
border-bottom-color: #EEEEEE;
}
.border-bottom-dashed {
border-bottom-width: 2rpx;
border-bottom-style: dashed;
border-bottom-color: #F2F2F2;
}
.border-top-dashed {
border-top-width: 2rpx;
border-top-style: dashed;
border-top-color: #F2F2F2;
}
.border-left {
border-left-width: 1rpx;
border-left-style: solid;
border-left-color: #dee2e6;
}
.border-0 { border-width: 0!important;}
.border-top-0 { border-top-width: 0!important;}
.border-right-0 {border-right-width: 0!important;}
.border-bottom-0 {border-bottom-width: 0!important;}
.border-left-0 {border-left-width: 0!important;}
.border-primary { border-color: #007bff;}
.border-secondary {border-color: #6c757d;}
.border-light-secondary {border-color: #E9E8E5;}
.border-success {border-color: #28a745;}
.border-info {border-color: #17a2b8;}
.border-warning {border-color: #ffc107;}
.border-danger {border-color: #dc3545;}
.border-light {border-color: #f8f9fa;}
.border-dark {border-color: #343a40;}
.border-white {border-color: #FFFFFF;}
/* 圆角 */
.rounded { border-radius: 8rpx;}
.rounded-top {
border-top-left-radius: 8rpx;
border-top-right-radius: 8rpx;
}
.rounded-right {
border-top-right-radius: 8rpx;
border-bottom-right-radius: 8rpx;
}
.rounded-bottom {
border-bottom-right-radius: 8rpx;
border-bottom-left-radius: 8rpx;
}
.rounded-left {
border-top-left-radius: 8rpx;
border-bottom-left-radius: 8rpx;
}
.rounded-circle { border-radius: 100rpx;}
.rounded-0 { border-radius: 0;}
/* 显示 */
/* #ifndef APP-PLUS-NVUE */
.d-none{ display: none; }
.d-inline-block{ display: inline-block; }
.d-block{ display: block; }
/* #endif */
/* 内容溢出 */
.overflow-hidden { overflow: hidden;}
/* 定位 */
.position-relative { position: relative;}
.position-absolute { position: absolute;}
.position-fixed { position: fixed;}
/* 定位 - 固定顶部 */
.fixed-top {
position: fixed !important;
top: 0;
right: 0;
left: 0;
z-index: 1030;
}
/* 定位 - 固定底部 */
.fixed-bottom {
position: fixed;
right: 0;
bottom: 0;
left: 0;
z-index: 1030;
}
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
/* 阴影 */
/* #ifndef APP-PLUS-NVUE */
.shadow-none { box-shadow: none !important;}
/* #endif */
.btn-hover {
opacity: .7;
}
.zIndex-2 {
z-index: 2;
}
.zIndex-1 {
z-index: 1;
}
.zIndex-0 {
z-index: 0;
}
@for $i from 9 to 20 {
@each $short, $long in l left, t top, r right, b bottom {
.#{$short}-#{$i} {
#{$long}: $i + rpx!important;
}
.#{$long}-#{$i} {
#{$long}: $i + rpx!important;
}
}
}
// @for $i from 9 to 20 {
// .font-#{$i} {
// font-size: $i + px;
// }
// }
// 定义字体(rpx)单位,大于或等于20的都为rpx单位字体
@for $i from 9 through 60 {
.font-#{$i} {
font-size: $i + rpx;
}
}
// 定义内外边距,历遍1-80
@for $i from 0 through 80 {
// 只要双数和能被5除尽的数
@if $i % 2 == 0 or $i % 5 == 0 {
// 得出:margin-30或者m-30
.margin-#{$i}, .m-#{$i} {
margin: $i + rpx!important;
}
// 得出:padding-30或者p-30
.padding-#{$i}, .p-#{$i} {
padding: $i + rpx!important;
}
@each $short, $long in l left, t top, r right, b bottom {
// 缩写版,结果如: m-l-30
// 定义外边距
.m-#{$short}-#{$i} {
margin-#{$long}: $i + rpx!important;
}
// 定义内边距
.p-#{$short}-#{$i} {
padding-#{$long}: $i + rpx!important;
}
// 完整版,结果如:margin-left-30
// 定义外边距
.margin-#{$long}-#{$i} {
margin-#{$long}: $i + rpx!important;
}
// 定义内边距
.padding-#{$long}-#{$i} {
padding-#{$long}: $i + rpx!important;
}
}
}
}
// 定义flex等分
@for $i from 0 through 12 {
.flex-#{$i} {
flex: $i;
}
}