chore(stylelint): remove sass-lint/scss-lint in favor of stylelint

- remove scss-lint and sass-lint
- add stylelint and stylelint-order packages and configuration
- update all *.scss files to new syntax

fixes #14805
This commit is contained in:
Brandy Carney
2018-07-19 16:10:30 -04:00
committed by Cam Wiegert
parent 771c47f109
commit 7a8d5f68d2
192 changed files with 1309 additions and 1511 deletions

View File

@ -49,14 +49,14 @@
height: $picker-ios-button-height;
font-size: $picker-ios-button-font-size;
color: $picker-ios-button-text-color;
background: $picker-ios-button-background-color;
color: $picker-ios-button-text-color;
font-size: $picker-ios-button-font-size;
}
.picker-columns {
height: $picker-ios-height - $picker-ios-toolbar-height - 1;
perspective: $picker-ios-column-perspective;
}
@ -71,12 +71,13 @@
.picker-ios .picker-opts {
top: $picker-ios-option-offset-y;
font-size: $picker-ios-option-font-size;
line-height: $picker-ios-option-height;
color: $picker-ios-option-text-color;
transform-style: preserve-3d;
color: $picker-ios-option-text-color;
font-size: $picker-ios-option-font-size;
line-height: $picker-ios-option-height;
pointer-events: none;
}
@ -87,16 +88,17 @@
height: 46px;
font-size: $picker-ios-option-font-size;
line-height: $picker-ios-option-height;
color: $picker-ios-option-text-color;
background: transparent;
transform-style: preserve-3d;
transition-timing-function: ease-out;
backface-visibility: hidden;
background: transparent;
color: $picker-ios-option-text-color;
font-size: $picker-ios-option-font-size;
line-height: $picker-ios-option-height;
backface-visibility: hidden;
pointer-events: auto;
}
@ -104,9 +106,8 @@
@include position(0, null, null, 0);
@include transform(translate3d(0, 0, 90px));
position: absolute;
z-index: 10;
display: block;
position: absolute;
width: 100%;
height: $picker-ios-option-offset-y + 4px;
@ -116,16 +117,16 @@
background: linear-gradient(to bottom,
$picker-ios-top-background-color 20%,
$picker-ios-bottom-background-color 100%);
z-index: 10;
}
.picker-ios .picker-below-highlight {
@include position($picker-ios-option-offset-y + $picker-ios-option-height - 4, null, null, 0);
@include transform(translate3d(0, 0, 90px));
position: absolute;
z-index: 11;
display: block;
position: absolute;
width: 100%;
height: $picker-ios-option-offset-y + $picker-ios-option-height;
@ -135,4 +136,6 @@
background: linear-gradient(to top,
$picker-ios-top-background-color 30%,
$picker-ios-bottom-background-color 100%);
z-index: 11;
}

View File

@ -33,17 +33,19 @@
height: $picker-md-button-height;
background: $picker-md-button-background-color;
color: $picker-md-button-text-color;
font-size: $picker-md-button-font-size;
font-weight: 500;
text-transform: uppercase;
color: $picker-md-button-text-color;
background: $picker-md-button-background-color;
box-shadow: none;
}
.picker-md .picker-columns {
height: $picker-md-height - $picker-md-toolbar-height;
perspective: 1800px;
}
@ -58,12 +60,13 @@
.picker-md .picker-opts {
top: $picker-md-option-offset-y;
font-size: $picker-md-option-font-size;
line-height: $picker-md-option-height;
color: $picker-md-option-text-color;
transform-style: preserve-3d;
color: $picker-md-option-text-color;
font-size: $picker-md-option-font-size;
line-height: $picker-md-option-height;
pointer-events: none;
}
@ -74,23 +77,21 @@
height: 43px;
font-size: $picker-md-option-font-size;
line-height: $picker-md-option-height;
color: $picker-md-option-text-color;
background: transparent;
transition-timing-function: ease-out;
backface-visibility: hidden;
background: transparent;
color: $picker-md-option-text-color;
font-size: $picker-md-option-font-size;
line-height: $picker-md-option-height;
backface-visibility: hidden;
pointer-events: auto;
}
.picker-md .picker-prefix,
.picker-md .picker-suffix,
.picker-md .picker-opt.picker-opt-selected {
color: $picker-md-option-selected-color;
}
@ -99,7 +100,6 @@
@include transform(translate3d(0, 0, 90px));
position: absolute;
z-index: 10;
width: 100%;
height: $picker-md-option-offset-y + 4px;
@ -109,6 +109,8 @@
background: linear-gradient(to bottom,
$picker-md-top-background-color 20%,
$picker-md-bottom-background-color 100%);
z-index: 10;
}
.picker-md .picker-below-highlight {
@ -116,7 +118,6 @@
@include transform(translate3d(0, 0, 90px));
position: absolute;
z-index: 11;
width: 100%;
height: $picker-md-option-offset-y + $picker-md-option-height;
@ -126,4 +127,6 @@
background: linear-gradient(to top,
$picker-md-top-background-color 30%,
$picker-md-bottom-background-color 100%);
z-index: 11;
}

View File

@ -7,22 +7,21 @@ ion-picker {
@include font-smoothing();
@include position(0, null, null, 0);
position: absolute;
z-index: $z-index-overlay;
display: block;
position: absolute;
width: $picker-width;
height: $picker-width;
contain: strict;
z-index: $z-index-overlay;
}
.picker-toolbar {
z-index: 1;
width: 100%;
contain: strict;
z-index: 1;
}
.picker-wrapper {
@ -30,11 +29,8 @@ ion-picker {
@include margin(auto);
@include transform(translate3d(0, 100%, 0));
position: absolute;
z-index: $z-index-overlay-wrapper;
display: flex;
overflow: hidden;
position: absolute;
flex-direction: column;
@ -42,36 +38,37 @@ ion-picker {
max-width: $picker-max-width;
contain: strict;
overflow: hidden;
z-index: $z-index-overlay-wrapper;
}
.picker-columns {
@include margin(null, null, constant(safe-area-inset-bottom), null);
@include margin(null, null, env(safe-area-inset-bottom), null);
position: relative;
display: flex;
overflow: hidden;
justify-content: center;
contain: strict;
@include rtl() {
// Date is the same format in both directions
flex-direction: row-reverse;
}
display: flex;
position: relative;
justify-content: center;
contain: strict;
overflow: hidden;
}
.picker-col {
box-sizing: content-box;
position: relative;
display: flex;
position: relative;
flex: 1;
justify-content: center;
height: 100%;
box-sizing: content-box;
contain: content;
}
@ -92,9 +89,9 @@ ion-picker {
min-width: 45%;
max-width: 50%;
white-space: nowrap;
text-align: end;
white-space: nowrap;
}
.picker-suffix {
@ -105,31 +102,30 @@ ion-picker {
min-width: 45%;
max-width: 50%;
white-space: nowrap;
text-align: start;
white-space: nowrap;
}
// contain property is supported by Chrome
.picker-opt {
@include position(0, null, null, 0);
position: absolute;
display: block;
overflow: hidden;
position: absolute;
width: 100%;
border: 0;
text-align: center;
text-overflow: ellipsis;
white-space: nowrap;
text-align: center;
will-change: transform;
contain: strict;
overflow: hidden;
will-change: transform;
}
.picker-opt.picker-opt-disabled {
@ -163,12 +159,12 @@ ion-picker {
.picker-above-highlight,
.picker-below-highlight {
display: none;
pointer-events: none;
}
.picker-button {
border: 0;
font-family: inherit;
}