Skip to content

Commit

Permalink
fix(covers): absolute positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Mar 22, 2018
1 parent 9836c60 commit ce09978
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 9 deletions.
5 changes: 4 additions & 1 deletion core/src/components/checkbox/checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ ion-checkbox {
}

ion-checkbox input {
@include position(0, 0, 0, 0);
@include position(0, null, null, 0);
@include margin(0);

position: absolute;

width: 100%;
height: 100%;

border: 0;
background: transparent;
cursor: pointer;
Expand Down
5 changes: 4 additions & 1 deletion core/src/components/datetime/datetime.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ ion-datetime {
}

.datetime-cover {
@include position(0, 0, 0, 0);
@include position(0, null, null, 0);

position: absolute;

width: 100%;
height: 100%;

border: 0;

background: transparent;
Expand Down
5 changes: 4 additions & 1 deletion core/src/components/input/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,12 @@ input.native-input:-webkit-autofill {
// The input cover is not clickable when the input is disabled

.input-cover {
@include position(0, 0, 0, 0);
@include position(0, null, null, 0);

position: absolute;

width: 100%;
height: 100%;
}

.input[disabled] .input-cover {
Expand Down
5 changes: 4 additions & 1 deletion core/src/components/item/item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,13 @@ ion-item-group {
}

.item-cover {
@include position(0, 0, 0, 0);
@include position(0, null, null, 0);

position: absolute;

width: 100%;
height: 100%;

background: transparent;
cursor: pointer;
}
Expand Down
5 changes: 4 additions & 1 deletion core/src/components/radio/radio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ ion-radio {
}

ion-radio input {
@include position(0, 0, 0, 0);
@include position(0, null, null, 0);
@include margin(0);

position: absolute;

width: 100%;
height: 100%;

border: 0;
background: transparent;
cursor: pointer;
Expand Down
5 changes: 4 additions & 1 deletion core/src/components/select/select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ ion-select {
}

.select-cover {
@include position(0, 0, 0, 0);
@include position(0, null, null, 0);

position: absolute;

width: 100%;
height: 100%;

border: 0;

background: transparent;
Expand Down
5 changes: 4 additions & 1 deletion core/src/components/spinner/spinner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ ion-spinner {
}

ion-spinner svg {
@include position(0, 0, 0, 0);
@include position(0, null, null, 0);

position: absolute;

width: 100%;
height: 100%;

transform: translateZ(0);
}

Expand Down
5 changes: 4 additions & 1 deletion core/src/components/title/title.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@
// --------------------------------------------------

.toolbar-ios ion-title {
@include position(0, 0, 0, 0);
@include position(0, null, null, 0);
@include padding(0, 90px, 1px);

position: absolute;

width: 100%;
height: 100%;

transform: translateZ(0);

pointer-events: none;
Expand Down
5 changes: 4 additions & 1 deletion core/src/components/toggle/toggle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,14 @@ ion-toggle ion-gesture {
}

ion-toggle input {
@include position(0, 0, 0, 0);
@include position(0, null, null, 0);
@include margin(0);

position: absolute;

width: 100%;
height: 100%;

background: transparent;
cursor: pointer;
border: 0;
Expand Down

0 comments on commit ce09978

Please sign in to comment.