Skip to content

Commit

Permalink
Merge branch 'master' of github.com:oznu/homebridge-config-ui-x
Browse files Browse the repository at this point in the history
  • Loading branch information
oznu committed Mar 19, 2021
2 parents eea2606 + 9d0030f commit fb4b1b4
Show file tree
Hide file tree
Showing 9 changed files with 97 additions and 52 deletions.
8 changes: 5 additions & 3 deletions ui/src/app/modules/logs/logs.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
-o-transition: opacity 200ms ease-in;
transition: opacity 200ms ease-in;

&:hover,
&:active {
opacity: 1;
@media (hover: hover) {
&:hover,
&:active {
opacity: 1;
}
}
}
}
10 changes: 6 additions & 4 deletions ui/src/app/modules/plugins/plugins.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@
padding: 10px;
margin-bottom: 15px;

&:focus,
&:hover {
border: 1px solid #000000;

@media (hover: hover) {
&:hover {
border: 1px solid #000000;
}
}

&:focus {
border: 1px solid #000000;
box-shadow: 0 1px 0 0 #000000;
}
}
Expand Down
24 changes: 15 additions & 9 deletions ui/src/app/modules/status/status.component.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
::ng-deep {
a {
&.grey-text {
&:hover {
text-decoration: underline;
@media (hover: hover) {
&:hover {
text-decoration: underline;
}
}
}
}
Expand Down Expand Up @@ -34,10 +36,12 @@ gridster {
}

.widget-item {
&:hover,
&:active {
.widget-control-button {
opacity: 1;
@media (hover: hover) {
&:hover,
&:active {
.widget-control-button {
opacity: 1;
}
}
}
}
Expand All @@ -55,9 +59,11 @@ gridster {
-o-transition: opacity 200ms ease-in;
transition: opacity 200ms ease-in;

&:hover,
&:active {
opacity: 1;
@media (hover: hover) {
&:hover,
&:active {
opacity: 1;
}
}

@media (max-width: 1023px) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
border-radius: 5px;
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
padding: 15px;

&:hover {
.add-widget-label {
font-weight: 500;
@media (hover: hover) {
&:hover {
.add-widget-label {
font-weight: 500;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ table.table-sm td {
}

.system-info-link {
&:hover {
text-decoration: underline;
@media (hover: hover) {
&:hover {
text-decoration: underline;
}
}
}

Expand Down
8 changes: 5 additions & 3 deletions ui/src/scss/base/buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
width: 47px;
height: 47px;

&:hover {
-webkit-box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
@media (hover: hover) {
&:hover {
-webkit-box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
}
}

Expand Down
20 changes: 12 additions & 8 deletions ui/src/scss/components/accessories.scss
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,12 @@
}
}

&:hover,
&:active {
.manage-accessory-button {
opacity: 0.6;
@media (hover: hover) {
&:hover,
&:active {
.manage-accessory-button {
opacity: 0.6;
}
}
}

Expand All @@ -128,10 +130,12 @@
margin-right: 15px;
margin-top: 15px;

&:active,
&:hover {
opacity: 1;
transform: scale(1.2);
@media (hover: hover) {
&:active,
&:hover {
opacity: 1;
transform: scale(1.2);
}
}
}

Expand Down
44 changes: 31 additions & 13 deletions ui/src/scss/themes/themes-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@
background-color: $darkModePrimary;
border-color: $darkModePrimary;
}
&:hover,
@media (hover: hover) {
&:hover {
border-color: $darkModePrimary !important;
}
}
&:focus {
border-color: $darkModePrimary !important;
}
Expand All @@ -80,8 +84,10 @@

a {
color: $secondaryBackground;
&:hover {
text-decoration: underline;
@media (hover: hover) {
&:hover {
text-decoration: underline;
}
}
}
}
Expand All @@ -98,21 +104,29 @@
&.card-link {
color: #9e9e9e;

&:hover {
color: $darkModePrimary !important;
@media (hover: hover) {
&:hover {
color: $darkModePrimary !important;
}
}
}

color: $darkModePrimary;
&:hover {
text-decoration: underline;

@media (hover: hover) {
&:hover {
text-decoration: underline;
}
}
}

.icon-button {
cursor: pointer;
&:hover {
color: $darkModePrimary !important;

@media (hover: hover) {
&:hover {
color: $darkModePrimary !important;
}
}
}

Expand Down Expand Up @@ -162,7 +176,9 @@
}

.table-hover tbody tr:hover {
color: $darkModePrimary !important;
@media (hover: hover) {
color: $darkModePrimary !important;
}
}

.table-striped tbody tr:nth-of-type(odd) {
Expand Down Expand Up @@ -201,12 +217,14 @@
color: #999999 !important;
border-color: #242424 !important;

&:focus,
&:hover {
border: 1px solid #242424 !important;
@media (hover: hover) {
&:hover {
border: 1px solid #242424 !important;
}
}

&:focus {
border: 1px solid #242424 !important;
box-shadow: inherit !important;
color: $darkModePrimary !important;
}
Expand Down
20 changes: 14 additions & 6 deletions ui/src/scss/themes/themes-light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,21 @@
a {
&.card-link {
color: #000000;

&:hover {
color: $primary !important;

@media (hover: hover) {
&:hover {
color: $primary !important;
}
}
}
}

.icon-button {
cursor: pointer;
&:hover {
color: $primary !important;
@media (hover: hover) {
&:hover {
color: $primary !important;
}
}
}

Expand All @@ -44,7 +48,11 @@
background-color: $primary;
border-color: $primary;
}
&:hover,
@media (hover: hover) {
&:hover {
border-color: $primary !important;
}
}
&:focus {
border-color: $primary !important;
}
Expand Down

0 comments on commit fb4b1b4

Please sign in to comment.