123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- .u-relative,
- .u-rela {
- position: relative;
- }
- .u-absolute,
- .u-abso {
- position: absolute;
- }
- image {
- display: inline-block;
- }
- view,
- text {
- box-sizing: border-box;
- }
- .u-font-xs {
- font-size: 22rpx;
- }
- .u-font-sm {
- font-size: 26rpx;
- }
- .u-font-md {
- font-size: 28rpx;
- }
- .u-font-lg {
- font-size: 30rpx;
- }
- .u-font-xl {
- font-size: 34rpx;
- }
- .u-flex {
-
- display: flex;
-
- flex-direction: row;
- align-items: center;
- }
- .u-flex-wrap {
- flex-wrap: wrap;
- }
- .u-flex-nowrap {
- flex-wrap: nowrap;
- }
- .u-col-center {
- align-items: center;
- }
- .u-col-top {
- align-items: flex-start;
- }
- .u-col-bottom {
- align-items: flex-end;
- }
- .u-row-center {
- justify-content: center;
- }
- .u-row-left {
- justify-content: flex-start;
- }
- .u-row-right {
- justify-content: flex-end;
- }
- .u-row-between {
- justify-content: space-between;
- }
- .u-row-around {
- justify-content: space-around;
- }
- .u-text-left {
- text-align: left;
- }
- .u-text-center {
- text-align: center;
- }
- .u-text-right {
- text-align: right;
- }
- .u-flex-col {
-
- display: flex;
-
- flex-direction: column;
- }
- @for $i from 0 through 12 {
- .u-flex-#{$i} {
- flex: $i;
- }
- }
- @for $i from 9 to 20 {
- .u-font-#{$i} {
- font-size: $i + px;
- }
- }
- @for $i from 20 through 40 {
- .u-font-#{$i} {
- font-size: $i + rpx;
- }
- }
- @for $i from 0 through 80 {
-
- @if $i % 2 == 0 or $i % 5 == 0 {
-
- .u-margin-#{$i}, .u-m-#{$i} {
- margin: $i + rpx!important;
- }
-
-
- .u-padding-#{$i}, .u-p-#{$i} {
- padding: $i + rpx!important;
- }
-
- @each $short, $long in l left, t top, r right, b bottom {
-
-
- .u-m-#{$short}-#{$i} {
- margin-#{$long}: $i + rpx!important;
- }
-
-
- .u-p-#{$short}-#{$i} {
- padding-#{$long}: $i + rpx!important;
- }
-
-
-
- .u-margin-#{$long}-#{$i} {
- margin-#{$long}: $i + rpx!important;
- }
-
-
- .u-padding-#{$long}-#{$i} {
- padding-#{$long}: $i + rpx!important;
- }
- }
- }
- }
- .u-reset-nvue {
- flex-direction: row;
- align-items: center;
- }
|