|
@@ -2,14 +2,7 @@
|
|
|
/* stylelint-disable scss/at-extend-no-missing-placeholder */
|
|
/* stylelint-disable scss/at-extend-no-missing-placeholder */
|
|
|
/* stylelint-disable prettier/prettier */
|
|
/* stylelint-disable prettier/prettier */
|
|
|
/* stylelint-disable scss/no-global-function-names */
|
|
/* stylelint-disable scss/no-global-function-names */
|
|
|
-.test {
|
|
|
|
|
- // 可以通过 @apply 多个样式封装整体样式
|
|
|
|
|
- @apply mt-4 ml-4;
|
|
|
|
|
-
|
|
|
|
|
- padding-top: 4px;
|
|
|
|
|
- color: red;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
|
|
+$H5Container: if($uni_platform =='h5', $container, '');
|
|
|
|
|
|
|
|
.s-fz,
|
|
.s-fz,
|
|
|
.ss-fz {
|
|
.ss-fz {
|
|
@@ -194,22 +187,22 @@ $spac-map: (
|
|
|
$suffixm: if($j ==1, '', 'm' + $j);
|
|
$suffixm: if($j ==1, '', 'm' + $j);
|
|
|
|
|
|
|
|
// margin $p-spac除数
|
|
// margin $p-spac除数
|
|
|
- .#{$container} .m-spac#{$suffix} {
|
|
|
|
|
|
|
+ #{$container}.m-spac#{$suffix} {
|
|
|
margin:calc($p-spac / #{$j});
|
|
margin:calc($p-spac / #{$j});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// margin $p-spac除数 负值
|
|
// margin $p-spac除数 负值
|
|
|
- .#{$container} .nm-spac#{$suffix} {
|
|
|
|
|
|
|
+ #{$container}.nm-spac#{$suffix} {
|
|
|
margin:calc($p-spac / -#{$j});
|
|
margin:calc($p-spac / -#{$j});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// padding $p-spac除数
|
|
// padding $p-spac除数
|
|
|
- .#{$container} .p-spac#{$suffix} {
|
|
|
|
|
|
|
+ #{$container}.p-spac#{$suffix} {
|
|
|
padding:calc($p-spac / #{$j});
|
|
padding:calc($p-spac / #{$j});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// padding $p-spac倍数
|
|
// padding $p-spac倍数
|
|
|
- .#{$container} .p-spac#{$suffixm} {
|
|
|
|
|
|
|
+ #{$container}.p-spac#{$suffixm} {
|
|
|
padding:calc($p-spac * #{$j});
|
|
padding:calc($p-spac * #{$j});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -218,29 +211,29 @@ $spac-map: (
|
|
|
$t: map-get($spac-map, $i);
|
|
$t: map-get($spac-map, $i);
|
|
|
|
|
|
|
|
// 4方向 $p-spac除数
|
|
// 4方向 $p-spac除数
|
|
|
- .#{$container} .#{map-get($t,0)}-spac#{ $suffix} {
|
|
|
|
|
|
|
+ #{$container}.#{map-get($t,0)}-spac#{ $suffix} {
|
|
|
#{map-get($t,1)}: calc($p-spac / #{$j});
|
|
#{map-get($t,1)}: calc($p-spac / #{$j});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// margin 4方向 $p-spac倍数
|
|
// margin 4方向 $p-spac倍数
|
|
|
- .#{$container} .m#{map-get($t,0)}-spac#{ $suffixm} {
|
|
|
|
|
|
|
+ #{$container}.m#{map-get($t,0)}-spac#{ $suffixm} {
|
|
|
margin-#{map-get($t,1)}: calc($p-spac * #{$j});
|
|
margin-#{map-get($t,1)}: calc($p-spac * #{$j});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// margin 4方向 $p-spac除数
|
|
// margin 4方向 $p-spac除数
|
|
|
@if($j>1) {
|
|
@if($j>1) {
|
|
|
- .#{$container} .m#{map-get($t,0)}-spac#{ $suffix} {
|
|
|
|
|
|
|
+ #{$container}.m#{map-get($t,0)}-spac#{ $suffix} {
|
|
|
margin-#{map-get($t,1)}: calc($p-spac / #{$j});
|
|
margin-#{map-get($t,1)}: calc($p-spac / #{$j});
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// margin 4方向 $p-spac除数 负值
|
|
// margin 4方向 $p-spac除数 负值
|
|
|
- .#{$container} .nm#{map-get($t,0)}-spac#{ $suffix} {
|
|
|
|
|
|
|
+ #{$container}.nm#{map-get($t,0)}-spac#{ $suffix} {
|
|
|
margin-#{map-get($t,1)}: calc($p-spac / -#{$j});
|
|
margin-#{map-get($t,1)}: calc($p-spac / -#{$j});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// padding 4方向 $p-spac除数
|
|
// padding 4方向 $p-spac除数
|
|
|
- .#{$container} .p#{map-get($t,0)}-spac#{ $suffix} {
|
|
|
|
|
|
|
+ #{$container}.p#{map-get($t,0)}-spac#{ $suffix} {
|
|
|
padding-#{map-get($t,1)}: calc($p-spac / #{$j});
|
|
padding-#{map-get($t,1)}: calc($p-spac / #{$j});
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -290,14 +283,30 @@ $spac-map: (
|
|
|
|
|
|
|
|
|
|
|
|
|
// 主按钮
|
|
// 主按钮
|
|
|
-button[type=primary],
|
|
|
|
|
-button[type=primary]:active,
|
|
|
|
|
-button[type=primary]:hover,
|
|
|
|
|
-button[type=primary]:focus {
|
|
|
|
|
|
|
+#{$H5Container}button[type=primary],
|
|
|
|
|
+#{$H5Container}button[type=primary]:active,
|
|
|
|
|
+#{$H5Container}button[type=primary]:hover,
|
|
|
|
|
+#{$H5Container}button[type=primary]:focus {
|
|
|
// margin: 0;
|
|
// margin: 0;
|
|
|
- background-color: $p-color !important;
|
|
|
|
|
|
|
+ background-color: $p-color ;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+#{$H5Container}button[type=primary][plain],
|
|
|
|
|
+#{$H5Container}button[type=primary][plain]:active,
|
|
|
|
|
+#{$H5Container}button[type=primary][plain]:hover,
|
|
|
|
|
+#{$H5Container}button[type=primary][plain]:focus {
|
|
|
|
|
+ color: $p-color;
|
|
|
|
|
+ background-color: transparent;
|
|
|
|
|
+ border: 1rpx solid $p-color;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+#{$H5Container}button[size='mini'] {
|
|
|
|
|
+ padding: 0 $p-spacd2;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
button[disabled][type=primary] {
|
|
button[disabled][type=primary] {
|
|
|
background-color: rgba($p-color, .6);
|
|
background-color: rgba($p-color, .6);
|
|
|
}
|
|
}
|
|
@@ -445,21 +454,21 @@ image {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.#{$container} .justify-between {
|
|
|
|
|
- @apply justify-between;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+// #{$container}.justify-between {
|
|
|
|
|
+// @apply justify-between;
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
-.#{$container} .justify-start {
|
|
|
|
|
- @apply justify-start;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+// #{$container}.justify-start {
|
|
|
|
|
+// @apply justify-start;
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
-.#{$container} .inline-block {
|
|
|
|
|
- @apply inline-block;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+// #{$container}.inline-block {
|
|
|
|
|
+// @apply inline-block;
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
-.#{$container} .m-b-0 {
|
|
|
|
|
- @apply m-b-0;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+// #{$container}.m-b-0 {
|
|
|
|
|
+// @apply m-b-0;
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
// #region 穿透到组件内样式,以pass-com 开头
|
|
// #region 穿透到组件内样式,以pass-com 开头
|
|
|
.pass-com-rotater {
|
|
.pass-com-rotater {
|