style(sass): move font smooth to mixin and remove webkit properties

autoprefixer is adding the backdrop-filter for us now
This commit is contained in:
Brandy Carney
2018-03-28 17:57:00 -04:00
parent 54558c92af
commit 88752dea51
22 changed files with 22 additions and 41 deletions

View File

@ -50,7 +50,6 @@
background: $action-sheet-ios-translucent-background-color; background: $action-sheet-ios-translucent-background-color;
backdrop-filter: $action-sheet-ios-translucent-filter; backdrop-filter: $action-sheet-ios-translucent-filter;
-webkit-backdrop-filter: $action-sheet-ios-translucent-filter;
} }

View File

@ -4,6 +4,7 @@
// -------------------------------------------------- // --------------------------------------------------
ion-action-sheet { ion-action-sheet {
@include font-smoothing();
@include position(0, 0, 0, 0); @include position(0, 0, 0, 0);
position: fixed; position: fixed;
@ -11,9 +12,6 @@ ion-action-sheet {
display: block; display: block;
touch-action: none; touch-action: none;
font-smoothing: antialiased;
-webkit-font-smoothing: antialiased;
} }
.action-sheet-wrapper { .action-sheet-wrapper {

View File

@ -29,7 +29,6 @@
background: $alert-ios-translucent-background-color; background: $alert-ios-translucent-background-color;
backdrop-filter: $alert-ios-translucent-filter; backdrop-filter: $alert-ios-translucent-filter;
-webkit-backdrop-filter: $alert-ios-translucent-filter;
} }

View File

@ -4,6 +4,7 @@
// -------------------------------------------------- // --------------------------------------------------
ion-alert { ion-alert {
@include font-smoothing();
@include position(0, 0, 0, 0); @include position(0, 0, 0, 0);
position: fixed; position: fixed;
@ -18,9 +19,6 @@ ion-alert {
touch-action: none; touch-action: none;
contain: strict; contain: strict;
font-smoothing: antialiased;
-webkit-font-smoothing: antialiased;
} }
ion-alert.alert-top { ion-alert.alert-top {

View File

@ -20,6 +20,8 @@ $ionicons-font-path: $font-path !default;
} }
ion-icon { ion-icon {
@include font-smoothing();
display: inline-block; display: inline-block;
font-family: "Ionicons"; font-family: "Ionicons";
@ -31,9 +33,6 @@ ion-icon {
text-transform: none; text-transform: none;
speak: none; speak: none;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
@include rtl() { @include rtl() {
&[aria-label^="arrow"]::before, &[aria-label^="arrow"]::before,
&[flip-rtl]::before { &[flip-rtl]::before {

View File

@ -13,6 +13,7 @@
} }
.back-button button { .back-button button {
@include font-smoothing();
@include text-align(center); @include text-align(center);
@include appearance(none); @include appearance(none);
@ -39,9 +40,6 @@
font-kerning: none; font-kerning: none;
user-select: none; user-select: none;
font-smoothing: antialiased;
-webkit-font-smoothing: antialiased;
display: flex; display: flex;
flex-flow: row nowrap; flex-flow: row nowrap;

View File

@ -4,6 +4,7 @@
// -------------------------------------------------- // --------------------------------------------------
ion-badge { ion-badge {
@include font-smoothing();
@include padding($badge-ios-padding-top, $badge-ios-padding-end, $badge-ios-padding-bottom, $badge-ios-padding-start); @include padding($badge-ios-padding-top, $badge-ios-padding-end, $badge-ios-padding-bottom, $badge-ios-padding-start);
@include text-align(center); @include text-align(center);
@ -19,9 +20,6 @@ ion-badge {
white-space: nowrap; white-space: nowrap;
vertical-align: baseline; vertical-align: baseline;
font-smoothing: antialiased;
-webkit-font-smoothing: antialiased;
contain: content; contain: content;
} }

View File

@ -4,6 +4,7 @@
// -------------------------------------------------- // --------------------------------------------------
.button { .button {
@include font-smoothing();
@include text-align(center); @include text-align(center);
@include appearance(none); @include appearance(none);
@ -30,9 +31,6 @@
user-select: none; user-select: none;
contain: content; contain: content;
font-smoothing: antialiased;
-webkit-font-smoothing: antialiased;
} }
.button:active, .button:active,

View File

@ -11,6 +11,5 @@
.card-header-translucent-ios { .card-header-translucent-ios {
background-color: $card-ios-header-translucent-background-color; background-color: $card-ios-header-translucent-background-color;
-webkit-backdrop-filter: $card-ios-header-translucent-filter;
backdrop-filter: $card-ios-header-translucent-filter; backdrop-filter: $card-ios-header-translucent-filter;
} }

View File

@ -4,6 +4,8 @@
// -------------------------------------------------- // --------------------------------------------------
ion-chip { ion-chip {
@include font-smoothing();
box-sizing: border-box; box-sizing: border-box;
display: inline-flex; display: inline-flex;
@ -12,9 +14,6 @@ ion-chip {
font-weight: normal; font-weight: normal;
vertical-align: middle; vertical-align: middle;
-webkit-font-smoothing: antialiased;
font-smoothing: antialiased;
} }
ion-chip > ion-icon { ion-chip > ion-icon {

View File

@ -53,7 +53,6 @@
.fab-translucent-ios { .fab-translucent-ios {
background-color: $fab-ios-translucent-background-color; background-color: $fab-ios-translucent-background-color;
-webkit-backdrop-filter: $fab-ios-translucent-filter;
backdrop-filter: $fab-ios-translucent-filter; backdrop-filter: $fab-ios-translucent-filter;
} }

View File

@ -5,6 +5,5 @@
// -------------------------------------------------- // --------------------------------------------------
.footer-translucent-ios { .footer-translucent-ios {
-webkit-backdrop-filter: $footer-ios-translucent-filter;
backdrop-filter: $footer-ios-translucent-filter; backdrop-filter: $footer-ios-translucent-filter;
} }

View File

@ -5,6 +5,5 @@
// -------------------------------------------------- // --------------------------------------------------
.header-translucent-ios { .header-translucent-ios {
-webkit-backdrop-filter: $header-ios-translucent-filter;
backdrop-filter: $header-ios-translucent-filter; backdrop-filter: $header-ios-translucent-filter;
} }

View File

@ -29,7 +29,6 @@
background-color: $loading-ios-translucent-background-color; background-color: $loading-ios-translucent-background-color;
backdrop-filter: $loading-ios-translucent-filter; backdrop-filter: $loading-ios-translucent-filter;
-webkit-backdrop-filter: $loading-ios-translucent-filter;
} }

View File

@ -4,6 +4,7 @@
// -------------------------------------------------- // --------------------------------------------------
ion-picker { ion-picker {
@include font-smoothing();
@include position(0, null, null, 0); @include position(0, null, null, 0);
position: absolute; position: absolute;
@ -14,9 +15,6 @@ ion-picker {
height: $picker-width; height: $picker-width;
contain: strict; contain: strict;
-webkit-font-smoothing: antialiased;
font-smoothing: antialiased;
} }
.picker-toolbar { .picker-toolbar {

View File

@ -62,6 +62,5 @@
.popover-translucent-ios .popover-arrow::after { .popover-translucent-ios .popover-arrow::after {
background: $popover-ios-translucent-background-color; background: $popover-ios-translucent-background-color;
-webkit-backdrop-filter: $popover-ios-translucent-filter;
backdrop-filter: $popover-ios-translucent-filter; backdrop-filter: $popover-ios-translucent-filter;
} }

View File

@ -4,6 +4,8 @@
// -------------------------------------------------- // --------------------------------------------------
ion-segment { ion-segment {
@include font-smoothing();
display: flex; display: flex;
flex: 1; flex: 1;
@ -11,7 +13,4 @@ ion-segment {
justify-content: center; justify-content: center;
width: 100%; width: 100%;
font-smoothing: antialiased;
-webkit-font-smoothing: antialiased;
} }

View File

@ -32,7 +32,6 @@
// background-color: color-mod($tabbar-ios-background-color, a($alpha-ios-highest)); // background-color: color-mod($tabbar-ios-background-color, a($alpha-ios-highest));
background-color: $tabbar-ios-translucent-background-color; background-color: $tabbar-ios-translucent-background-color;
-webkit-backdrop-filter: $tabbar-ios-translucent-filter;
backdrop-filter: $tabbar-ios-translucent-filter; backdrop-filter: $tabbar-ios-translucent-filter;
} }

View File

@ -27,7 +27,6 @@
background: $toast-ios-translucent-background-color; background: $toast-ios-translucent-background-color;
backdrop-filter: $toast-ios-translucent-filter; backdrop-filter: $toast-ios-translucent-filter;
-webkit-backdrop-filter: $toast-ios-translucent-filter;
} }
.toast-ios .toast-wrapper.toast-top { .toast-ios .toast-wrapper.toast-top {

View File

@ -67,7 +67,6 @@
} }
.toolbar-translucent-ios .toolbar-background-ios { .toolbar-translucent-ios .toolbar-background-ios {
-webkit-backdrop-filter: $toolbar-ios-translucent-filter;
backdrop-filter: $toolbar-ios-translucent-filter; backdrop-filter: $toolbar-ios-translucent-filter;
} }

View File

@ -4,6 +4,8 @@
// -------------------------------------------------- // --------------------------------------------------
ion-toolbar { ion-toolbar {
@include font-smoothing();
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
z-index: $z-index-toolbar; z-index: $z-index-toolbar;
@ -17,9 +19,6 @@ ion-toolbar {
width: 100%; width: 100%;
-webkit-font-smoothing: antialiased;
font-smoothing: antialiased;
contain: content; contain: content;
} }

View File

@ -8,6 +8,14 @@
appearance: $val; appearance: $val;
} }
// Font smoothing
// --------------------------------------------------
@mixin font-smoothing() {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
}
// Input Placeholder // Input Placeholder
// -------------------------------------------------- // --------------------------------------------------