Skip to content

Commit

Permalink
refactor(css): appearance mixin (#8212)
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat authored and brandyscarney committed Oct 6, 2016
1 parent 9f697a1 commit f34d0c2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/components/alert/alert.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,14 @@ $alert-ios-checkbox-icon-transform: rotate(45deg) !default;
// --------------------------------------------------

.alert-ios .alert-input {
@include appearance(none);

margin-top: $alert-ios-input-margin-top;
padding: $alert-ios-input-padding;

border: $alert-ios-input-border;
border-radius: $alert-ios-input-border-radius;
background-color: $alert-ios-input-background-color;

-webkit-appearance: none;
}


Expand Down
4 changes: 2 additions & 2 deletions src/components/alert/alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ ion-alert input {
}

.alert-tappable {
@include appearance(none);

margin: 0;
padding: 0;

Expand All @@ -98,6 +100,4 @@ ion-alert input {
line-height: initial;
text-align: left;
background: transparent;

-webkit-appearance: none;
}
3 changes: 1 addition & 2 deletions src/components/input/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ ion-textarea {

.text-input {
@include placeholder();
@include appearance(none);

display: inline-block;

Expand All @@ -43,8 +44,6 @@ ion-textarea {
border: 0;
border-radius: 0;
background: transparent;

-webkit-appearance: none;
}

textarea.text-input {
Expand Down
6 changes: 2 additions & 4 deletions src/components/slides/slides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,12 @@
opacity: .2;
}
button.swiper-pagination-bullet {
@include appearance(none);

border: 0;
margin: 0;
padding: 0;
box-shadow: none;
-moz-appearance: none;
-ms-appearance: none;
-webkit-appearance: none;
appearance: none;
}
.swiper-pagination-clickable .swiper-pagination-bullet {
cursor: pointer;
Expand Down
4 changes: 3 additions & 1 deletion src/themes/ionic.mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
// --------------------------------------------------

@mixin appearance($val) {
-webkit-appearance: $val;
-moz-appearance: $val;
-ms-appearance: $val;
-webkit-appearance: $val;
appearance: $val;
}


Expand Down

0 comments on commit f34d0c2

Please sign in to comment.