123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326 |
- // 定义内外边距,历遍1-80
- @for $i from 0 through 80 {
- // 只要双数和能被5除尽的数
- @if $i % 2 == 0 or $i % 5 == 0 {
- // 定义上下外边距
- .u-m-tb-#{$i} {
- margin: $i + rpx 0 !important;
- }
- // 定义左右外边距
- .u-m-lr-#{$i} {
- margin: 0 $i + rpx !important;
- }
- // 定义上下内边距
- .u-p-tb-#{$i} {
- padding: $i + rpx 0 !important;
- }
- // 定义左右内边距
- .u-p-lr-#{$i} {
- padding: 0 $i + rpx !important;
- }
- }
- }
- .u-font-bold {
- font-weight: bold;
- }
- .u-border-bottom {
- border-bottom: 1rpx solid $border-color;
- }
- .main-color {
- color: $main-color;
- }
- .orange {
- color: $orange;
- }
- .green {
- color: $green;
- }
- .grey {
- color: $grey;
- }
- .white {
- color: $white;
- }
- .empty {
- text-align: center;
- image {
- width: 50vw;
- margin-top: 25vh;
- }
- .empty-text {
- margin-top: 30upx
- }
- }
-
- /*基础字体样式*/
- .mim-font-12 {
- font-size: 12px;
- font-weight: 400;
- line-height: 16px;
- opacity: 1;
- }
- .mim-fontBold-12 {
- font-size: 12px;
- font-weight: bold;
- line-height: 16px;
- opacity: 1;
- }
- .mim-font-14 {
- font-size: 14px;
- font-weight: 400;
- line-height: 20px;
- opacity: 1;
- }
- .mim-fontBold-14 {
- font-size: 14px;
- font-weight: bold;
- line-height: 20px;
- opacity: 1;
- }
- .mim-font-16 {
- font-size: 16px;
- font-weight: 400;
- line-height: 22px;
- opacity: 1;
- }
- .mim-fontBold-16 {
- font-size: 16px;
- font-weight: bold;
- line-height: 22px;
- opacity: 1;
- }
- page{
- padding: 0;
- margin: 0;
- box-sizing: border-box;
- opacity: 1;
- color: #333333;
- }
- /*清除浮动*/
- .mimClear:after {
- content: "";
- display: block;
- height: 0;
- clear: both;
- visibility: hidden;
- }
- /*单行溢出文字省略*/
- .mim-ellipsis {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- /*文字不折行*/
- .mim-nowrap {
- white-space: nowrap;
- }
- /*多行文字溢出省略号*/
- .mim-multi-line {
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- overflow: hidden;
- }
- /*去除标签默认样式*/
- input[type="button"],
- input[type="submit"],
- input[type="reset"],
- textarea,
- input,
- button,
- select {
- -webkit-appearance: none;
- -moz-appearance: none;
- border: 0;
- outline: none;
- }
- /*input公共样式*/
- input {
- background-color: #f5f6f7;
- width: 100%;
- }
- ::-webkit-input-placeholder {
- color: #8088A8;
- }
- ::-moz-placeholder {
- color: #8088A8;
- }
- ::-moz-placeholder {
- color: #8088A8;
- }
- ::-ms-input-placeholder {
- color: #8088A8;
- }
- /* flex布局 */
- .mim-flex-wrap {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: -webkit-box;
- display: flex;
- -webkit-box-pack: center;
- -ms-flex-pack: center;
- -webkit-justify-content: center;
- justify-content: center;
- -webkit-box-align: center;
- -ms-flex-align: center;
- -webkit-align-items: center;
- align-items: center;
- }
- .mim-flex-wrap-left {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: -webkit-box;
- display: flex;
- -webkit-justify-content: flex-start;
- justify-content: flex-start;
- align-items: center;
- }
- .mim-flex-wrap-right {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: -webkit-box;
- display: flex;
- -webkit-justify-content: flex-end;
- justify-content: flex-end;
- align-items: center;
- }
- .mim-flex-wrap-space-between {
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .mim-flex-vertical {
- display: flex;
- -webkit-box-orient: vertical;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- -webkit-flex-flow: column;
- flex-direction: column;
- flex-flow: column;
- }
- .mim-flex-vertical-center {
- display: flex;
- -webkit-box-orient: vertical;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- -webkit-flex-flow: column;
- flex-direction: column;
- flex-flow: column;
- -webkit-box-align: center;
- -ms-flex-align: center;
- -webkit-align-items: center;
- align-items: center;
- }
- .mim-view{
- margin: 24rpx;
- min-height: 24rpx;
- padding: 24rpx;
- border-radius: 24rpx;
- opacity: 1;
- background: #FFFFFF;
- position: relative;
- background-position: center;
- background-repeat: no-repeat;
- background-size: 100% 100%;
- box-sizing: border-box;
- }
- .mim-button{
- display: -webkit-flex;
- display: -ms-flexbox;
- display: -webkit-box;
- display: flex;
- -webkit-box-pack: center;
- -ms-flex-pack: center;
- -webkit-justify-content: center;
- justify-content: center;
- -webkit-box-align: center;
- -ms-flex-align: center;
- -webkit-align-items: center;
- align-items: center;
- border-radius: 32rpx;
- opacity: 1;
- background: #DE2E27;
- color: #FFFFFF;
- border: none;
- cursor: pointer;
- &.disabled{
- pointer-events: none;
- background-color: #8088A8 !important;
- cursor: none;
- }
- }
- .mim-view-list {
- margin: 24rpx;
- min-height: 1rpx;
- }
- //文字通用样式
- @mixin font {
- font-weight: normal;
- opacity: 1;
- letter-spacing: 0;
- }
- /* 文字尺寸 */
- .mim-font-10{
- @include font;
- font-size: 20rpx !important;
- }
- .mim-font-12{
- @include font;
- font-size: 24rpx !important;
- }
- .mim-font-14{
- @include font;
- font-size: 28rpx !important;
- }
- .mim-font-15{
- @include font;
- font-size: 30rpx !important;
- }
- .mim-font-16{
- @include font;
- font-size: 32rpx !important;
- }
- .mim-font-24{
- @include font;
- font-size: 48rpx !important;
- }
- .bold{
- font-weight: bold !important;
- }
- .mimRed{
- color: #ff0000 !important;
- }
|