| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231 |
- // 字体
- @for $i from 20 through 100{
- .fs#{$i} {
- font-size: #{$i}rpx;
- }
- }
- // 颜色
- @for $i from 0 through 9{
- .color#{$i} {
- color: #{$i}#{$i}#{$i};
- }
- }
- // padding
- @for $i from 1 through 100{
- .p#{$i} {
- padding: #{$i}rpx;
- }
- }
- @for $i from 1 through 100{
- .ptb#{$i} {
- padding-top: #{$i}rpx ;
- padding-bottom: #{$i}rpx ;
- }
- }
- @for $i from 1 through 100{
- .plr#{$i} {
- padding-left: #{$i}rpx;
- padding-right: #{$i}rpx;
- }
- }
- @for $i from 1 through 200{
- .pt#{$i} {
- padding-top: #{$i}rpx;
- }
- }
- @for $i from 1 through 100{
- .pl#{$i} {
- padding-left: #{$i}rpx;
- }
- }
- @for $i from 1 through 100{
- .pr#{$i} {
- padding-right: #{$i}rpx;
- }
- }
- @for $i from 1 through 200{
- .pb#{$i} {
- padding-bottom: #{$i}rpx;
- }
- }
- // margin
- @for $i from 1 through 100{
- .m#{$i} {
- margin: #{$i}rpx;
- }
- }
- @for $i from 1 through 100{
- .mtb#{$i} {
- margin-top: #{$i}rpx ;
- margin-bottom: #{$i}rpx ;
- }
- }
- @for $i from 1 through 100{
- .mlr#{$i} {
- margin-left: #{$i}rpx;
- margin-right: #{$i}rpx;
- }
- }
- @for $i from 1 through 100{
- .mt#{$i} {
- margin-top: #{$i}rpx;
- }
- }
- @for $i from 1 through 100{
- .ml#{$i} {
- margin-left: #{$i}rpx;
- }
- }
- @for $i from 1 through 100{
- .mr#{$i} {
- margin-right: #{$i}rpx;
- }
- }
- @for $i from 1 through 100{
- .mb#{$i} {
- margin-bottom: #{$i}rpx;
- }
- }
- // 圆角
- @for $i from 0 through 100{
- .radius#{$i} {
- border-radius: #{$i}rpx;
- }
- }
- // padding 左右+width自动计算
- @for $i from 10 through 60{
- .w-calc-#{$i} {
- width: calc(100% - #{$i*2}rpx);
- padding-left: #{$i}rpx;
- padding-right: #{$i}rpx;
- }
- }
- // gap
- @for $i from 1 through 100{
- .gap#{$i} {
- gap: #{$i}rpx;
- }
- }
- // 高
- @for $i from 1 through 900{
- .h#{$i} {
- height: #{$i}rpx;
- }
- }
- // 宽
- @for $i from 1 through 900{
- .w#{$i} {
- width: #{$i}rpx;
- }
- }
- // 宽
- @for $i from 1 through 900{
- .lh#{$i} {
- line-height: #{$i}rpx;
- }
- }
- // font-weight
- $steps: 100 200 300 400 500 600 700 800 bold;
- @each $i in $steps {
- .weight-#{$i} {
- font-weight: $i;
- }
- }
- .bold {
- font-weight: bold;
- }
- .scrollx {
- overflow-x: scroll;
- }
- .scrolly {
- overflow-y: scroll;
- }
- .row {
- display: flex;
- flex-direction: row;
- }
- .column {
- display: flex;
- flex-direction: column;
- }
- .justify-start {
- display: flex;
- justify-content: flex-start;
- }
- .justify-center {
- display: flex;
- justify-content: center;
- }
- .justify-end {
- display: flex;
- justify-content: flex-end;
- }
- .justify-around {
- display: flex;
- justify-content: space-around;
- }
- .justify-evenly {
- display: flex;
- justify-content: space-evenly;
- }
- .justify-between {
- display: flex;
- justify-content: space-between;
- }
- .align-start {
- display: flex;
- align-items: flex-start;
- }
- .align-center {
- display: flex;
- align-items: center;
- }
- .align-end {
- display: flex;
- align-items: flex-end;
- }
- .center {
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .centerV {
- display: flex;
- justify-content: center;
- align-items: center;
- flex-direction: column;
- }
- .wrap {
- flex-wrap: wrap;
- }
- .flex-1 {
- flex: 1;
- }
-
- .align-center{
- display: flex;
- align-items: center;
- }
- .justify-between{
- display: flex;
- }
|