# 一、第一学期封装的css样式库:common.1.0.css
/* 元素的隐藏 */
.hidden, .display-none{
display: none !important;
}
/* 元素的块级、行内块转换 */
.display-inline-block{ display: inline-block; }
.display-block{ display: block; }
/* flex布局 */
.flex, .d-flex{
display: flex;
}
.flex-row{flex-direction: row;} /* flex布局水平方向从左往右排列 */
.flex-row-reverse{flex-direction: row-reverse;} /* flex布局水平方向从右往左排列 */
.justify-center,.justify-content-center{justify-content:center;} /* flex布局水平方向居中排列,两边等间距 */
.justify-between{justify-content:space-between;}/* flex布局水平方向两边顶到头,剩余空间等间距 */
.justify-around{justify-content: space-around;} /* flex布局水平方向,每个元素占相同的剩余空间 */
.justify-evenly{justify-content:space-evenly;} /* flex布局水平方向,每个元素间隔相同 */
.justify-end{justify-content:flex-end;} /* flex布局水平方向,元素靠右排列 */
.justify-start{justify-content:flex-start;} /* flex布局水平方向默认排列方式,元素靠左排列,默认就是可以不写 */
.flex-column{ flex-direction:column; } /* flex布局垂直方向从上往下排列 */
.flex-column-reverse{ flex-direction:column-reverse; } /* flex布局垂直方向从下往上排列 */
.align-center{ align-items: center; } /* flex布局垂直方向居中排列,上下等间距 */
.align-stretch{ align-items: stretch; } /* flex布局垂直方向铺满整个空间 */
.align-end{ align-items: flex-end; } /* flex布局垂直方向,元素靠下排列 */
.align-start{ align-items: flex-start; } /* flex布局垂直方向,元素靠上排列 */
/* 外边距 */
/* 上外边距 */
.mt-0 { margin-top: 0px; }
.mt-05 { margin-top: 5px; }
.mt-1, .mt-10{ margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-2, .mt-20 { margin-top: 20px; }
.mt-25 { margin-top: 25px; }
.mt-3, .mt-30 { margin-top: 30px; }
.mt-35 { margin-top: 35px; }
.mt-4, .mt-40 { margin-top: 40px; }
.mt-45 { margin-top: 45px; }
.mt-5, .mt-50 { margin-top: 50px; }
/* 右外边距 */
.mr-0 { margin-right: 0px; }
.mr-05 { margin-right: 5px; }
.mr-1, .mr-10{ margin-right: 10px; }
.mr-15 { margin-right: 15px; }
.mr-2, .mr-20 { margin-right: 20px; }
.mr-25 { margin-right: 25px; }
.mr-3, .mr-30 { margin-right: 30px; }
.mr-35 { margin-right: 35px; }
.mr-4, .mr-40 { margin-right: 40px; }
.mr-45 { margin-right: 45px; }
.mr-5, .mr-50 { margin-right: 50px; }
/* 下外边距 */
.mb-0 { margin-bottom: 0px; }
.mb-05 { margin-bottom: 5px; }
.mb-1, .mb-10{ margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-2, .mb-20 { margin-bottom: 20px; }
.mb-25 { margin-bottom: 25px; }
.mb-3, .mb-30 { margin-bottom: 30px; }
.mb-35 { margin-bottom: 35px; }
.mb-4, .mb-40 { margin-bottom: 40px; }
.mb-45 { margin-bottom: 45px; }
.mb-5, .mb-50 { margin-bottom: 50px; }
/* 左外边距 */
.ml-0 { margin-left: 0px; }
.ml-05 { margin-left: 5px; }
.ml-1, .ml-10{ margin-left: 10px; }
.ml-15 { margin-left: 15px; }
.ml-2, .ml-20 { margin-left: 20px; }
.ml-25 { margin-left: 25px; }
.ml-3, .ml-30 { margin-left: 30px; }
.ml-35 { margin-left: 35px; }
.ml-4, .ml-40 { margin-left: 40px; }
.ml-45 { margin-left: 45px; }
.ml-5, .ml-50 { margin-left: 50px; }
/* 其他常用外边距 */
.m-auto{ margin: auto; } /* 外边距自适应,居中 */
.mt-auto { margin-top: auto; }
.mr-auto { margin-right: auto; }
.mb-auto { margin-bottom: auto; }
.ml-auto { margin-left: auto; }
.mx-auto { margin-left: auto; margin-right: auto; } /* 水平自适应居中 */
.my-auto { margin-top: auto; margin-bottom: auto; } /* 垂直自适应居中 */
/* 外边距上右下左都是0像素 */
.m-0 { margin: 0px; }
/* 外边距水平方向 */
.mx-0 { margin-left: 0px; margin-right: 0px; } /* 外边距水平方向,也就是左外边距、右外边距都是0像素 */
.mx-05 { margin-left: 5px; margin-right: 5px; }
.mx-10, .mx-1 { margin-left: 10px; margin-right: 10px; }
.mx-15 { margin-left: 15px; margin-right: 15px; }
.mx-20, .mx-2 { margin-left: 20px; margin-right: 20px; }
.mx-25 { margin-left: 25px; margin-right: 25px; }
.mx-30, .mx-3 { margin-left: 30px; margin-right: 30px; }
.mx-35 { margin-left: 35px; margin-right: 35px; }
.mx-40, .mx-4 { margin-left: 40px; margin-right: 40px; }
.mx-45 { margin-left: 45px; margin-right: 45px; }
.mx-50, .mx-5 { margin-left: 50px; margin-right: 50px; }
/* 外边距垂直方向 */
.my-0 { margin-top: 0px; margin-bottom: 0px; } /* 外边距垂直方向,也就是上外边距、下外边距都是0像素 */
.my-05 { margin-top: 5px; margin-bottom: 5px; }
.my-10, .my-1 { margin-top: 10px; margin-bottom: 10px; }
.my-15 { margin-top: 15px; margin-bottom: 15px; }
.my-20, .my-2 { margin-top: 20px; margin-bottom: 20px; }
.my-25 { margin-top: 25px; margin-bottom: 25px; }
.my-30, .my-3 { margin-top: 30px; margin-bottom: 30px; }
.my-35 { margin-top: 35px; margin-bottom: 35px; }
.my-40, .my-4 { margin-top: 40px; margin-bottom: 40px; }
.my-45 { margin-top: 45px; margin-bottom: 45px; }
.my-50, .my-5 { margin-top: 50px; margin-bottom: 50px; }
/* 内边距 */
/* 上内边距 */
.pt-0 { padding-top: 0px; }
.pt-05 { padding-top: 5px; }
.pt-1, .pt-10{ padding-top: 10px; }
.pt-15 { padding-top: 15px; }
.pt-2, .pt-20 { padding-top: 20px; }
.pt-25 { padding-top: 25px; }
.pt-3, .pt-30 { padding-top: 30px; }
.pt-35 { padding-top: 35px; }
.pt-4, .pt-40 { padding-top: 40px; }
.pt-45 { padding-top: 45px; }
.pt-5, .pt-50 { padding-top: 50px; }
/* 右内边距 */
.pr-0 { padding-right: 0px; }
.pr-05 { padding-right: 5px; }
.pr-1, .pr-10{ padding-right: 10px; }
.pr-15 { padding-right: 15px; }
.pr-2, .pr-20 { padding-right: 20px; }
.pr-25 { padding-right: 25px; }
.pr-3, .pr-30 { padding-right: 30px; }
.pr-35 { padding-right: 35px; }
.pr-4, .pr-40 { padding-right: 40px; }
.pr-45 { padding-right: 45px; }
.pr-5, .pr-50 { padding-right: 50px; }
/* 下内边距 */
.pb-0 { padding-bottom: 0px; }
.pb-05 { padding-bottom: 5px; }
.pb-1, .pb-10{ padding-bottom: 10px; }
.pb-15 { padding-bottom: 15px; }
.pb-2, .pb-20 { padding-bottom: 20px; }
.pb-25 { padding-bottom: 25px; }
.pb-3, .pb-30 { padding-bottom: 30px; }
.pb-35 { padding-bottom: 35px; }
.pb-4, .pb-40 { padding-bottom: 40px; }
.pb-45 { padding-bottom: 45px; }
.pb-5, .pb-50 { padding-bottom: 50px; }
/* 左内边距 */
.pl-0 { padding-left: 0px; }
.pl-05 { padding-left: 5px; }
.pl-1, .pl-10{ padding-left: 10px; }
.pl-15 { padding-left: 15px; }
.pl-2, .pl-20 { padding-left: 20px; }
.pl-25 { padding-left: 25px; }
.pl-3, .pl-30 { padding-left: 30px; }
.pl-35 { padding-left: 35px; }
.pl-4, .pl-40 { padding-left: 40px; }
.pl-45 { padding-left: 45px; }
.pl-5, .pl-50 { padding-left: 50px; }
/* 其他常用内边距 */
/* 内边距上右下左都是0像素 */
.p-0 { padding: 0px; }
/* 内边距水平方向 */
.px-0 { padding-left: 0px; padding-right: 0px; } /* 内边距水平方向,也就是左内边距、右内边距都是0像素 */
.px-05 { padding-left: 5px; padding-right: 5px; }
.px-10, .px-1 { padding-left: 10px; padding-right: 10px; }
.px-15 { padding-left: 15px; padding-right: 15px; }
.px-20, .px-2 { padding-left: 20px; padding-right: 20px; }
.px-25 { padding-left: 25px; padding-right: 25px; }
.px-30, .px-3 { padding-left: 30px; padding-right: 30px; }
.px-35 { padding-left: 35px; padding-right: 35px; }
.px-40, .px-4 { padding-left: 40px; padding-right: 40px; }
.px-45 { padding-left: 45px; padding-right: 45px; }
.px-50, .px-5 { padding-left: 50px; padding-right: 50px; }
/* 内边距垂直方向 */
.py-0 { padding-top: 0px; padding-bottom: 0px; } /* 内边距垂直方向,也就是上内边距、下内边距都是0像素 */
.py-05 { padding-top: 5px; padding-bottom: 5px; }
.py-10, .py-1 { padding-top: 10px; padding-bottom: 10px; }
.py-15 { padding-top: 15px; padding-bottom: 15px; }
.py-20, .py-2 { padding-top: 20px; padding-bottom: 20px; }
.py-25 { padding-top: 25px; padding-bottom: 25px; }
.py-30, .py-3 { padding-top: 30px; padding-bottom: 30px; }
.py-35 { padding-top: 35px; padding-bottom: 35px; }
.py-40, .py-4 { padding-top: 40px; padding-bottom: 40px; }
.py-45 { padding-top: 45px; padding-bottom: 45px; }
.py-50, .py-5 { padding-top: 50px; padding-bottom: 50px; }
.py-100{padding-top: 100px; padding-bottom: 100px;}
/* 边框 */
.border-0{border-width:0px}
.border-top-0{border-top-width:0px;}
.border-right-0{border-right-width:0px;}
.border-bottom-0{border-bottom-width:0px;}
.border-left-0{border-left-width:0px;}
.border{border-width: 1px; border-style: solid; border-color: #dee2ed;}
.border-top{border-top-width: 1px; border-top-style: solid; border-top-color: #dee2ed;}
.border-right{border-right-width: 1px; border-right-style: solid; border-right-color: #dee2ed;}
.border-bottom{border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #dee2ed;}
.border-left{border-left-width: 1px; border-left-style: solid; border-left-color: #dee2ed;}
/* 边框圆角 */
.rounded-0{border-radius:0px;}
.rounded-circle{border-radius:100%;}
.rounded {border-radius:5px}
.rounded-lg {border-radius:10px}
/* 字体 */
/* 字体大小 */
.font-xs { font-size: 6px;}
.font-smaller { font-size: 8px;}
.font-small { font-size: 10px;}
.font-sm { font-size: 12px;}
.font { font-size: 14px;}
.font-normal { font-size: 16px;}
.font-md { font-size: 18px;}
.font-lg { font-size: 20px;}
.font-lger { font-size: 24px;}
.font-max{font-size: 30px;}
/* 字体下划线 */
.text-underline{text-decoration: underline;}
.text-no-underline{text-decoration: none;}
/* 文字颜色 */
.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: #6c757d;}
.text-black { color: #111111;}
.text-hover-black{ color: #343a40;}
/* 浅灰色 */
.text-light-light-muted { color: #D9D9D9;}
.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;}
.bg-secondary { background-color: #6c757d;}
.bg-hover-secondary:hover{ background-color: #545b62;}
.bg-success { background-color: #28a745;}
.bg-hover-success:hover { background-color: #1e7e34;}
.bg-info { background-color: #17a2b8;}
.bg-hover-info:hover { background-color: #117a8b;}
.bg-warning { background-color: #ffc107;}
.bg-hover-warning:hover { background-color: #d39e00;}
.bg-danger { background-color: #dc3545;}
.bg-hover-danger:hover{ background-color: #bd2130;}
.bg-light { background-color: #f8f9fa;}
.bg-hover-light:hover{ background-color: #dae0e5;}
.bg-light-secondary{background-color: #f9f9fa;}
.bg-hover-light-secondary:hover{ background-color: #dae0e5;}
.bg-dark { background-color: #343a40;}
.bg-hover-dark:hover { background-color: #1d2124;}
.bg-white { background-color: #ffffff;}
.bg-transparent { background-color: transparent;}
/* 定位 */
.position-static { position: static;} /*默认*/
.position-relative { position: relative;} /*相对定位*/
.position-absolute { position: absolute;} /*绝对定位*/
.position-fixed { position: fixed;} /*绝对定位*/
/* 定位 - 固定顶部 */
.fixed-top {
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 1000;
}
/* 定位 - 固定底部 */
.fixed-bottom {
position: fixed;
right: 0;
bottom: 0;
left: 0;
z-index: 1000;
}
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
/* 字体粗细 */
.font-weight-lighter{font-weight: lighter;} /*更细*/
.font-weight-normal{font-weight: normal;} /*标准*/
.font-weight-bold{font-weight: bold;} /*粗体*/
.font-weight-bolder{font-weight: bolder;} /*更粗*/
/* 文字对齐 */
.text-left { text-align: left;}
.text-right { text-align: right;}
.text-center { text-align: center;}
/* 文字一行溢出处理 */
.lines-1{
overflow: hidden; /*文字长度超出限定宽度,则隐藏超出的内容*/
white-space: nowrap; /*设置文字在一行显示,不能换行*/
text-overflow: ellipsis; /*规定当文本溢出时,显示省略符号来代表被修剪的文本*/
}
/* 文字两行溢出处理 */
.lines-2{
overflow: hidden; /*文字长度超出限定宽度,则隐藏超出的内容*/
text-overflow: ellipsis; /*规定当文本溢出时,显示省略符号来代表被修剪的文本*/
-webkit-line-clamp: 2; /*用来限制在一个块元素显示的文本的行数,2 表示最多显示 2 行。为了实现该效果,它需要组合其他的 WebKit 属性*/
display: -webkit-box; /*和 -webkit-line-clamp 结合使用,将对象作为弹性伸缩盒子模型显示*/
-webkit-box-orient: vertical;/*和 -webkit-line-clamp 结合使用,设置或检索伸缩盒对象的子元素的排列方式*/
}
# 二、第三学期第1季公共css样式库[css原子化]:common.v1.css
说明:此样式库是在我们上面的样式库
common.1.0.css基础上,针对移动端、PC端、H5、小程序、APP,加入了一些平台判断,使其更具有通用性,由于我们已经在第一学期开发网页的时候,大家跟着老师手动敲的这些css样式,因此,这个样式库不详细讲了,用到样式的时候,如果大家忘了,可以过来看一下源码,在用的时候,如果这个里面的样式在上面没有,老师也会给大家提出来的。
关于rpx的官方说明:
尺寸单位
/* #ifndef APP-PLUS-NVUE */
/* scroll-view */
.scroll-row{ width: 100%;white-space: nowrap; }
.scroll-row-item{ display: inline-block; }
/* #endif */
/* 图标 */
.iconfont{
font-family:iconfont;
}
.view,.text{
font-size:28rpx;
line-height:1.8;
color:#0E151D;
}
/* 宽度 */
/* #ifndef APP-PLUS-NVUE */
.w-100{ width: 100%; }
/* #endif */
.row {
margin-right: -20rpx;
margin-left: -20rpx;
/* #ifndef APP-PLUS-NVUE */
display: flex;
/* #endif */
flex-wrap: wrap;
flex-direction: row;
}
.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12{
position: relative;
padding-right: 20rpx;
padding-left: 20rpx;
}
.col-12 { width: 750rpx;}
.col-11 { width: 687.5rpx; }
.col-10 { width: 625rpx; }
.col-9 { width: 562.5rpx; }
.col-8 { width: 500rpx; }
.col-7 { width: 437.5rpx; }
.col-6 { width: 375rpx; }
.col-5 { width: 312.5rpx;}
.col-4 {width: 250rpx;}
.col-3 {width: 187.5rpx;}
.col-2 {width: 125rpx;}
.col-1 {width: 62.5rpx;}
.col-offset-12 { margin-left: 750rpx;}
.col-offset-11 { margin-left: 687.5rpx; }
.col-offset-10 { margin-left: 625rpx; }
.col-offset-9 { margin-left: 562.5rpx; }
.col-offset-8 { margin-left: 500rpx; }
.col-offset-7 { margin-left: 437.5rpx; }
.col-offset-6 { margin-left: 375rpx; }
.col-offset-5 { margin-left: 312.5rpx;}
.col-offset-4 {margin-left: 250rpx;}
.col-offset-3 {margin-left: 187.5rpx;}
.col-offset-2 {margin-left: 125rpx;}
.col-offset-1 {margin-left: 62.5rpx;}
.col-offset-0 {margin-left: 0;}
/* flex 布局 */
.flex{
/* #ifndef APP-PLUS-NVUE */
display:flex;
/* #endif */
flex-direction:row;
}
.flex-row{ flex-direction:row; }
.flex-column{ flex-direction:column; }
.flex-row-reverse{ flex-direction:row-reverse; }
.flex-column-reverse{ flex-direction:column-reverse; }
.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 */
.flex-1{ flex: 1; }
.flex-2{ flex: 2; }
.flex-3{ flex: 3; }
.flex-4{ flex: 4; }
.flex-5{ flex: 5; }
/* #ifndef APP-PLUS-NVUE */
.flex-shrink{ flex-shrink: 0; }
/* #endif */
.container {
padding-right: 20rpx;
padding-left: 20rpx;
}
/* -- 内外边距 -- */
.m-0 { margin: 0; }
/* #ifndef APP-PLUS-NVUE */
.m-auto{ margin: auto; }
/* #endif */
.m-1 { margin: 10rpx; }
.m-1-half { margin: 6rpx; }
.m-2 { margin: 20rpx; }
.m-2-half { margin: 12rpx; }
.m-3 { margin: 30rpx; }
.m-3-half { margin: 16rpx; }
.m-4 { margin: 40rpx; }
.m-4-half { margin: 24rpx; }
.m-5 { margin: 50rpx; }
.mt-0 { margin-top: 0; }
/* #ifndef APP-PLUS-NVUE */
.mt-auto { margin-top: auto; }
/* #endif */
.mt-1 { margin-top: 10rpx; }
.mt-1-half { margin-top: 6rpx; }
.mt-2 { margin-top: 20rpx; }
.mt-2-half { margin-top: 12rpx; }
.mt-3 { margin-top: 30rpx; }
.mt-3-half { margin-top: 16rpx; }
.mt-4 { margin-top: 40rpx; }
.mt-4-half { margin-top: 24rpx; }
.mt-5 { margin-top: 50rpx; }
.mb-0 { margin-bottom: 0; }
/* #ifndef APP-PLUS-NVUE */
.mb-auto { margin-bottom: auto; }
/* #endif */
.mb-1 { margin-bottom: 10rpx; }
.mb-1-half { margin-bottom: 6rpx; }
.mb-2 { margin-bottom: 20rpx; }
.mb-2-half { margin-bottom: 12rpx; }
.mb-3 { margin-bottom: 30rpx; }
.mb-3-half { margin-bottom: 16rpx; }
.mb-4 { margin-bottom: 40rpx; }
.mb-4-half { margin-bottom: 24rpx; }
.mb-5 { margin-bottom: 50rpx; }
.ml-0 { margin-left: 0; }
/* #ifndef APP-PLUS-NVUE */
.ml-auto { margin-left: auto; }
/* #endif */
.ml-1 { margin-left: 10rpx; }
.ml-2 { margin-left: 20rpx; }
.ml-3 { margin-left: 30rpx; }
.ml-4 { margin-left: 40rpx; }
.ml-5 { margin-left: 50rpx; }
.mr-0 { margin-right: 0; }
/* #ifndef APP-PLUS-NVUE */
.mr-auto { margin-right: auto; }
/* #endif */
.mr-1 { margin-right: 10rpx; }
.mr-2 { margin-right: 20rpx; }
.mr-3 { margin-right: 30rpx; }
.mr-4 { margin-right: 40rpx; }
.mr-5 { margin-right: 50rpx; }
.my-0 { margin-top: 0; margin-bottom: 0; }
/* #ifndef APP-PLUS-NVUE */
.my-auto { margin-top: auto; margin-bottom: auto; }
/* #endif */
.my-1 { margin-top: 10rpx; margin-bottom: 10rpx; }
.my-2 { margin-top: 20rpx; margin-bottom: 20rpx; }
.my-3 { margin-top: 30rpx; margin-bottom: 30rpx; }
.my-4 { margin-top: 40rpx; margin-bottom: 40rpx; }
.my-5 { margin-top: 50rpx; margin-bottom: 50rpx; }
.mx-0 { margin-left: 0; margin-right: 0; }
/* #ifndef APP-PLUS-NVUE */
.mx-auto { margin-left: auto; margin-right: auto; }
/* #endif */
.mx-1 { margin-left: 10rpx; margin-right: 10rpx;}
.mx-2 { margin-left: 20rpx; margin-right: 20rpx;}
.mx-3 { margin-left: 30rpx; margin-right: 30rpx;}
.mx-4 { margin-left: 40rpx; margin-right: 40rpx;}
.mx-5 { margin-left: 50rpx; margin-right: 50rpx;}
.p-0 { padding: 0; }
.p { padding: 5rpx; }
.p-1 { padding: 10rpx; }
.p-1-half { padding: 6rpx; }
.p-2 { padding: 20rpx; }
.p-2-half { padding: 12rpx; }
.p-3 { padding: 30rpx; }
.p-3-half { padding: 18rpx; }
.p-4 { padding: 40rpx; }
.p-4-half { padding: 24rpx; }
.p-5 { padding: 50rpx; }
.pt-0 { padding-top: 0; }
.pt { padding-top: 5rpx; }
.pt-1 { padding-top: 10rpx; }
.pt-2 { padding-top: 20rpx; }
.pt-3 { padding-top: 30rpx; }
.pt-4 { padding-top: 40rpx; }
.pt-5 { padding-top: 50rpx; }
.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 10rpx; }
.pb { padding-bottom: 5rpx; }
.pb-2 { padding-bottom: 20rpx; }
.pb-3 { padding-bottom: 30rpx; }
.pb-4 { padding-bottom: 40rpx; }
.pb-5 { padding-bottom: 50rpx; }
.pl-0 { padding-left: 0; }
.pl { padding-left: 5rpx; }
.pl-1 { padding-left: 10rpx; }
.pl-2 { padding-left: 20rpx; }
.pl-3 { padding-left: 30rpx; }
.pl-4 { padding-left: 40rpx; }
.pl-5 { padding-left: 50rpx; }
.pl-6 { padding-left: 60rpx; }
.pl-7 { padding-left: 70rpx; }
.pl-8 { padding-left: 80rpx; }
.pr-0 { padding-right: 0; }
.pr { padding-right: 5rpx; }
.pr-1 { padding-right: 10rpx; }
.pr-2 { padding-right: 20rpx; }
.pr-3 { padding-right: 30rpx; }
.pr-4 { padding-right: 40rpx; }
.pr-5 { padding-right: 50rpx; }
.pr-6 { padding-right: 60rpx; }
.pr-7 { padding-right: 70rpx; }
.pr-8 { padding-right: 80rpx; }
.py-0 { padding-top: 0; padding-bottom: 0; }
.py { padding-top: 5rpx; padding-bottom: 5rpx; }
.py-1 { padding-top: 10rpx; padding-bottom: 10rpx; }
.py-2 { padding-top: 20rpx; padding-bottom: 20rpx; }
.py-3 { padding-top: 30rpx; padding-bottom: 30rpx; }
.py-4 { padding-top: 40rpx; padding-bottom: 40rpx; }
.py-5 { padding-top: 50rpx; padding-bottom: 50rpx; }
.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: 10rpx; padding-right: 10rpx;}
.px { padding-left: 5rpx; padding-right: 5rpx;}
.px-2 { padding-left: 20rpx; padding-right: 20rpx;}
.px-3 { padding-left: 30rpx; padding-right: 30rpx;}
.px-4 { padding-left: 40rpx; padding-right: 40rpx;}
.px-5 { padding-left: 50rpx; padding-right: 50rpx;}
/* 文字大小 */
.font-xs { font-size: 13rpx;}
.font-smaller { font-size: 15rpx;}
.font-small { font-size: 20rpx;}
.font-sm { font-size: 25rpx;}
.font { font-size: 30rpx !important;}
.font-midder { font-size: 33rpx !important;}
.font-md { font-size: 35rpx !important;}
.font-lg { font-size: 40rpx !important;}
.font-lger { font-size: 45rpx !important;}
.font-max{font-size: 60rpx !important;}
.h1{font-size:80rpx; line-height:1.8;}
.h2{font-size:60rpx; line-height:1.8;}
.h3{font-size:45rpx; line-height:1.8;}
.h4{font-size:32rpx; line-height:1.8;}
.h5{font-size:30rpx; line-height:1.8;}
.h6{font-size:28rpx; line-height:1.8;}
/* 文字缩进 */
/* #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: 400;} /*正常*/
.font-weight-bold { font-weight: 700;} /*粗*/
.font-weight-bolder { font-weight: bold;} /*更粗*/
.font-italic { font-style: italic;} /*斜体*/
/* 文字颜色 */
.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: #6c757d;}
.text-black { color: #111111;}
.text-hover-black{ color: #343a40;}
/* 浅灰色 */
.text-light-light-muted { color: #D9D9D9;}
.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;}
.bg-secondary { background-color: #6c757d;}
.bg-hover-secondary:hover{ background-color: #545b62;}
.bg-success { background-color: #28a745;}
.bg-hover-success { background-color: #1e7e34;}
.bg-info { background-color: #17a2b8;}
.bg-hover-info { background-color: #117a8b;}
.bg-warning { background-color: #ffc107;}
.bg-hover-warning { background-color: #d39e00;}
.bg-danger { background-color: #dc3545;}
.bg-hover-danger{ background-color: #bd2130;}
.bg-light { background-color: #f8f9fa;}
.bg-hover-light{ background-color: #dae0e5;}
.bg-light-secondary{background-color: #f9f9fa;}
.bg-hover-light-secondary{ background-color: #dae0e5;}
.bg-dark { background-color: #343a40;}
.bg-hover-dark { background-color: #1d2124;}
.bg-white { background-color: #ffffff;}
.bg-transparent { background-color: transparent;}
.bg-hui{background-color: #F9F9F9;}
.bg-hui-icon{background-color: #D7D7D7;}
.bg-hui-icon-color{color: #A7A7A7;}
/* 边框 */
.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-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-lg { border-radius: 14rpx;}
.rounded-top {
border-top-left-radius: 8rpx;
border-top-right-radius: 8rpx;
}
.rounded-top-lg {
border-top-left-radius: 14rpx;
border-top-right-radius: 14rpx;
}
.rounded-right {
border-top-right-radius: 8rpx;
border-bottom-right-radius: 8rpx;
}
.rounded-top-right {
border-top-right-radius: 8rpx;
}
.rounded-bottom {
border-bottom-right-radius: 8rpx;
border-bottom-left-radius: 8rpx;
}
.rounded-bottom-right {
border-bottom-right-radius: 8rpx;
}
.rounded-bottom-lg {
border-bottom-right-radius: 14rpx;
border-bottom-left-radius: 14rpx;
}
.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;
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 { box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.15);}
.shadow-lg { box-shadow: 0rpx 40rpx 100rpx 0rpx rgba(0, 0, 0, 0.175);}
.shadow-none { box-shadow: none !important;}
/* #endif */
.mask{
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: 100;
}
# 三、第三学期第2季公共css样式库:common.nvue.vue.css
说明:此样式库是在我们第一学期的样式库
common.1.0.css基础上,针对移动端、PC端、H5、小程序、APP,加入了一些平台判断,使其更具有通用性,由于我们已经在第一学期开发网页的时候,大家跟着老师手动敲的这些css样式,因此,这个样式库不详细讲了,用到样式的时候,如果大家忘了,可以过来看一下源码,在用的时候,如果这个里面的样式在上面没有,老师也会给大家提出来的。
关于rpx的官方说明:
尺寸单位
/* #ifndef APP-PLUS-NVUE */
/* scroll-view */
.scroll-row{ width: 100%;white-space: nowrap; }
.scroll-row-item{ display: inline-block; }
/* #endif */
/* 图标 */
.iconfont{
font-family:iconfont;
}
.view,.text{
font-size:28rpx;
line-height:1.8;
color:#0E151D;
}
/* 宽度 */
/* #ifndef APP-PLUS-NVUE */
.w-100{ width: 100%; }
/* #endif */
.row {
margin-right: -20rpx;
margin-left: -20rpx;
/* #ifndef APP-PLUS-NVUE */
display: flex;
/* #endif */
flex-wrap: wrap;
flex-direction: row;
}
.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12{
position: relative;
padding-right: 20rpx;
padding-left: 20rpx;
}
.col-12 { width: 750rpx;}
.col-11 { width: 687.5rpx; }
.col-10 { width: 625rpx; }
.col-9 { width: 562.5rpx; }
.col-8 { width: 500rpx; }
.col-7 { width: 437.5rpx; }
.col-6 { width: 375rpx; }
.col-5 { width: 312.5rpx;}
.col-4 {width: 250rpx;}
.col-3 {width: 187.5rpx;}
.col-2 {width: 125rpx;}
.col-1 {width: 62.5rpx;}
.col-offset-12 { margin-left: 750rpx;}
.col-offset-11 { margin-left: 687.5rpx; }
.col-offset-10 { margin-left: 625rpx; }
.col-offset-9 { margin-left: 562.5rpx; }
.col-offset-8 { margin-left: 500rpx; }
.col-offset-7 { margin-left: 437.5rpx; }
.col-offset-6 { margin-left: 375rpx; }
.col-offset-5 { margin-left: 312.5rpx;}
.col-offset-4 {margin-left: 250rpx;}
.col-offset-3 {margin-left: 187.5rpx;}
.col-offset-2 {margin-left: 125rpx;}
.col-offset-1 {margin-left: 62.5rpx;}
.col-offset-0 {margin-left: 0;}
/* flex 布局 */
.flex{
/* #ifndef APP-PLUS-NVUE */
display:flex;
/* #endif */
flex-direction:row;
}
.flex-row{ flex-direction:row; }
.flex-column{ flex-direction:column; }
.flex-row-reverse{ flex-direction:row-reverse; }
.flex-column-reverse{ flex-direction:column-reverse; }
.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 */
.flex-1{ flex: 1; }
.flex-2{ flex: 2; }
.flex-3{ flex: 3; }
.flex-4{ flex: 4; }
.flex-5{ flex: 5; }
/* #ifndef APP-PLUS-NVUE */
.flex-shrink{ flex-shrink: 0; }
/* #endif */
.container {
padding-right: 20rpx;
padding-left: 20rpx;
}
/* -- 内外边距 -- */
.m-0 { margin: 0; }
/* #ifndef APP-PLUS-NVUE */
.m-auto{ margin: auto; }
/* #endif */
.m-1 { margin: 10rpx; }
.m-1-half { margin: 6rpx; }
.m-2 { margin: 20rpx; }
.m-2-half { margin: 12rpx; }
.m-3 { margin: 30rpx; }
.m-3-half { margin: 16rpx; }
.m-4 { margin: 40rpx; }
.m-4-half { margin: 24rpx; }
.m-5 { margin: 50rpx; }
.mt-0 { margin-top: 0; }
/* #ifndef APP-PLUS-NVUE */
.mt-auto { margin-top: auto; }
/* #endif */
.mt-1 { margin-top: 10rpx; }
.mt-1-half { margin-top: 6rpx; }
.mt-2 { margin-top: 20rpx; }
.mt-2-half { margin-top: 12rpx; }
.mt-3 { margin-top: 30rpx; }
.mt-3-half { margin-top: 16rpx; }
.mt-4 { margin-top: 40rpx; }
.mt-4-half { margin-top: 24rpx; }
.mt-5 { margin-top: 50rpx; }
.mb-0 { margin-bottom: 0; }
/* #ifndef APP-PLUS-NVUE */
.mb-auto { margin-bottom: auto; }
/* #endif */
.mb-1 { margin-bottom: 10rpx; }
.mb-1-half { margin-bottom: 6rpx; }
.mb-2 { margin-bottom: 20rpx; }
.mb-2-half { margin-bottom: 12rpx; }
.mb-3 { margin-bottom: 30rpx; }
.mb-3-half { margin-bottom: 16rpx; }
.mb-4 { margin-bottom: 40rpx; }
.mb-4-half { margin-bottom: 24rpx; }
.mb-5 { margin-bottom: 50rpx; }
.ml-0 { margin-left: 0; }
/* #ifndef APP-PLUS-NVUE */
.ml-auto { margin-left: auto; }
/* #endif */
.ml-1 { margin-left: 10rpx; }
.ml-2 { margin-left: 20rpx; }
.ml-3 { margin-left: 30rpx; }
.ml-4 { margin-left: 40rpx; }
.ml-5 { margin-left: 50rpx; }
.mr-0 { margin-right: 0; }
/* #ifndef APP-PLUS-NVUE */
.mr-auto { margin-right: auto; }
/* #endif */
.mr-1 { margin-right: 10rpx; }
.mr-2 { margin-right: 20rpx; }
.mr-3 { margin-right: 30rpx; }
.mr-4 { margin-right: 40rpx; }
.mr-5 { margin-right: 50rpx; }
.my-0 { margin-top: 0; margin-bottom: 0; }
/* #ifndef APP-PLUS-NVUE */
.my-auto { margin-top: auto; margin-bottom: auto; }
/* #endif */
.my-1 { margin-top: 10rpx; margin-bottom: 10rpx; }
.my-2 { margin-top: 20rpx; margin-bottom: 20rpx; }
.my-3 { margin-top: 30rpx; margin-bottom: 30rpx; }
.my-4 { margin-top: 40rpx; margin-bottom: 40rpx; }
.my-5 { margin-top: 50rpx; margin-bottom: 50rpx; }
.mx-0 { margin-left: 0; margin-right: 0; }
/* #ifndef APP-PLUS-NVUE */
.mx-auto { margin-left: auto; margin-right: auto; }
/* #endif */
.mx-1 { margin-left: 10rpx; margin-right: 10rpx;}
.mx-2 { margin-left: 20rpx; margin-right: 20rpx;}
.mx-3 { margin-left: 30rpx; margin-right: 30rpx;}
.mx-4 { margin-left: 40rpx; margin-right: 40rpx;}
.mx-5 { margin-left: 50rpx; margin-right: 50rpx;}
.p-0 { padding: 0; }
.p { padding: 5rpx; }
.p-1 { padding: 10rpx; }
.p-1-half { padding: 6rpx; }
.p-2 { padding: 20rpx; }
.p-2-half { padding: 12rpx; }
.p-3 { padding: 30rpx; }
.p-3-half { padding: 18rpx; }
.p-4 { padding: 40rpx; }
.p-4-half { padding: 24rpx; }
.p-5 { padding: 50rpx; }
.pt-0 { padding-top: 0; }
.pt { padding-top: 5rpx; }
.pt-1 { padding-top: 10rpx; }
.pt-2 { padding-top: 20rpx; }
.pt-3 { padding-top: 30rpx; }
.pt-4 { padding-top: 40rpx; }
.pt-5 { padding-top: 50rpx; }
.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 10rpx; }
.pb { padding-bottom: 5rpx; }
.pb-2 { padding-bottom: 20rpx; }
.pb-3 { padding-bottom: 30rpx; }
.pb-4 { padding-bottom: 40rpx; }
.pb-5 { padding-bottom: 50rpx; }
.pl-0 { padding-left: 0; }
.pl { padding-left: 5rpx; }
.pl-1 { padding-left: 10rpx; }
.pl-2 { padding-left: 20rpx; }
.pl-3 { padding-left: 30rpx; }
.pl-4 { padding-left: 40rpx; }
.pl-5 { padding-left: 50rpx; }
.pl-6 { padding-left: 60rpx; }
.pl-7 { padding-left: 70rpx; }
.pl-8 { padding-left: 80rpx; }
.pr-0 { padding-right: 0; }
.pr { padding-right: 5rpx; }
.pr-1 { padding-right: 10rpx; }
.pr-2 { padding-right: 20rpx; }
.pr-3 { padding-right: 30rpx; }
.pr-4 { padding-right: 40rpx; }
.pr-5 { padding-right: 50rpx; }
.pr-6 { padding-right: 60rpx; }
.pr-7 { padding-right: 70rpx; }
.pr-8 { padding-right: 80rpx; }
.py-0 { padding-top: 0; padding-bottom: 0; }
.py { padding-top: 5rpx; padding-bottom: 5rpx; }
.py-1 { padding-top: 10rpx; padding-bottom: 10rpx; }
.py-2 { padding-top: 20rpx; padding-bottom: 20rpx; }
.py-3 { padding-top: 30rpx; padding-bottom: 30rpx; }
.py-4 { padding-top: 40rpx; padding-bottom: 40rpx; }
.py-5 { padding-top: 50rpx; padding-bottom: 50rpx; }
.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: 10rpx; padding-right: 10rpx;}
.px { padding-left: 5rpx; padding-right: 5rpx;}
.px-2 { padding-left: 20rpx; padding-right: 20rpx;}
.px-3 { padding-left: 30rpx; padding-right: 30rpx;}
.px-4 { padding-left: 40rpx; padding-right: 40rpx;}
.px-5 { padding-left: 50rpx; padding-right: 50rpx;}
/* 文字大小 */
.font-xs { font-size: 13rpx;}
.font-smaller { font-size: 15rpx;}
.font-small { font-size: 20rpx;}
.font-sm { font-size: 25rpx;}
.font { font-size: 30rpx !important;}
.font-midder { font-size: 33rpx !important;}
.font-md { font-size: 35rpx !important;}
.font-lg { font-size: 40rpx !important;}
.font-lger { font-size: 45rpx !important;}
.font-max{font-size: 60rpx !important;}
.h1{font-size:80rpx; line-height:1.8;}
.h2{font-size:60rpx; line-height:1.8;}
.h3{font-size:45rpx; line-height:1.8;}
.h4{font-size:32rpx; line-height:1.8;}
.h5{font-size:30rpx; line-height:1.8;}
.h6{font-size:28rpx; line-height:1.8;}
/* 文字缩进 */
/* #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: 400;} /*正常*/
.font-weight-bold { font-weight: 700;} /*粗*/
.font-weight-bolder { font-weight: bold;} /*更粗*/
.font-italic { font-style: italic;} /*斜体*/
/* 文字颜色 */
.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: #6c757d;}
.text-black { color: #111111;}
.text-hover-black{ color: #343a40;}
/* 浅灰色 */
.text-light-light-muted { color: #D9D9D9;}
.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;}
.bg-secondary { background-color: #6c757d;}
.bg-hover-secondary:hover{ background-color: #545b62;}
.bg-success { background-color: #28a745;}
.bg-hover-success { background-color: #1e7e34;}
.bg-info { background-color: #17a2b8;}
.bg-hover-info { background-color: #117a8b;}
.bg-warning { background-color: #ffc107;}
.bg-hover-warning { background-color: #d39e00;}
.bg-danger { background-color: #dc3545;}
.bg-hover-danger{ background-color: #bd2130;}
.bg-light { background-color: #f8f9fa;}
.bg-hover-light{ background-color: #dae0e5;}
.bg-light-secondary{background-color: #f9f9fa;}
.bg-hover-light-secondary{ background-color: #dae0e5;}
.bg-dark { background-color: #343a40;}
.bg-hover-dark { background-color: #1d2124;}
.bg-white { background-color: #ffffff;}
.bg-transparent { background-color: transparent;}
.bg-hui{background-color: #F9F9F9;}
.bg-hui-icon{background-color: #D7D7D7;}
.bg-hui-icon-color{color: #A7A7A7;}
/* 边框 */
.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-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-lg { border-radius: 14rpx;}
.rounded-top {
border-top-left-radius: 8rpx;
border-top-right-radius: 8rpx;
}
.rounded-top-lg {
border-top-left-radius: 14rpx;
border-top-right-radius: 14rpx;
}
.rounded-right {
border-top-right-radius: 8rpx;
border-bottom-right-radius: 8rpx;
}
.rounded-top-right {
border-top-right-radius: 8rpx;
}
.rounded-bottom {
border-bottom-right-radius: 8rpx;
border-bottom-left-radius: 8rpx;
}
.rounded-bottom-right {
border-bottom-right-radius: 8rpx;
}
.rounded-bottom-lg {
border-bottom-right-radius: 14rpx;
border-bottom-left-radius: 14rpx;
}
.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;
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 { box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.15);}
.shadow-lg { box-shadow: 0rpx 40rpx 100rpx 0rpx rgba(0, 0, 0, 0.175);}
.shadow-none { box-shadow: none !important;}
/* #endif */
.mask{
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: 100;
}