Merge pull request #1867 from Camc314/fix-hovering-on-mobile

Fix hovering CSS changes on mobile
This commit is contained in:
dkanada 2020-09-03 23:35:14 +09:00 committed by GitHub
commit c5223cbc80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 48 additions and 6 deletions

View file

@ -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);
}

View file

@ -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);
}

View file

@ -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);
}

View file

@ -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);
}

View file

@ -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);
}

View file

@ -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);
}