Skip to content

Commit

Permalink
Merge pull request #1867 from Camc314/fix-hovering-on-mobile
Browse files Browse the repository at this point in the history
Fix hovering CSS changes on mobile
  • Loading branch information
dkanada committed Sep 3, 2020
2 parents abe4466 + fe5ff12 commit c5223cb
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 6 deletions.
9 changes: 8 additions & 1 deletion src/themes/appletv/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,14 @@ html {
background: #f0f0f0;
}

.paper-icon-button-light:hover:not(:disabled) {
@media (hover: hover) and (pointer: fine) {
.paper-icon-button-light:hover:not(:disabled) {
color: #00a4dc;
background-color: rgba(0, 164, 220, 0.2);
}
}

.paper-icon-button-light:active:not(:disabled) {
color: #00a4dc;
background-color: rgba(0, 164, 220, 0.2);
}
Expand Down
9 changes: 8 additions & 1 deletion src/themes/blueradiance/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,14 @@ html {
}
}

.paper-icon-button-light:hover:not(:disabled) {
@media (hover: hover) and (pointer: fine) {
.paper-icon-button-light:hover:not(:disabled) {
color: #00a4dc;
background-color: rgba(0, 164, 220, 0.2);
}
}

.paper-icon-button-light:active:not(:disabled) {
color: #00a4dc;
background-color: rgba(0, 164, 220, 0.2);
}
Expand Down
9 changes: 8 additions & 1 deletion src/themes/dark/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,14 @@ html {
background-color: rgba(0, 0, 0, 0.86);
}

.paper-icon-button-light:hover:not(:disabled) {
@media (hover: hover) and (pointer: fine) {
.paper-icon-button-light:hover:not(:disabled) {
color: #00a4dc;
background-color: rgba(0, 164, 220, 0.2);
}
}

.paper-icon-button-light:active:not(:disabled) {
color: #00a4dc;
background-color: rgba(0, 164, 220, 0.2);
}
Expand Down
9 changes: 8 additions & 1 deletion src/themes/light/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,14 @@ html {
color: #000;
}

.paper-icon-button-light:hover:not(:disabled) {
@media (hover: hover) and (pointer: fine) {
.paper-icon-button-light:hover:not(:disabled) {
color: #00a4dc;
background-color: rgba(0, 164, 220, 0.2);
}
}

.paper-icon-button-light:active:not(:disabled) {
color: #00a4dc;
background-color: rgba(0, 164, 220, 0.2);
}
Expand Down
9 changes: 8 additions & 1 deletion src/themes/purplehaze/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,14 @@ html {
}
}

.paper-icon-button-light:hover:not(:disabled) {
@media (hover: hover) and (pointer: fine) {
.paper-icon-button-light:hover:not(:disabled) {
color: rgb(12, 232, 214);
background-color: rgba(0, 164, 220, 0.2);
}
}

.paper-icon-button-light:active:not(:disabled) {
color: rgb(12, 232, 214);
background-color: rgba(0, 164, 220, 0.2);
}
Expand Down
9 changes: 8 additions & 1 deletion src/themes/wmc/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,14 @@ html {
background: rgba(17, 98, 164, 0.9);
}

.paper-icon-button-light:hover:not(:disabled) {
@media (hover: hover) and (pointer: fine) {
.paper-icon-button-light:hover:not(:disabled) {
color: #00a4dc;
background-color: rgba(0, 164, 220, 0.2);
}
}

.paper-icon-button-light:active:not(:disabled) {
color: #00a4dc;
background-color: rgba(0, 164, 220, 0.2);
}
Expand Down

0 comments on commit c5223cb

Please sign in to comment.