Showing hover backgrounds on expand toggles.

This commit is contained in:
ThePendulum 2020-01-09 03:54:47 +01:00
parent 83cbdcbf3d
commit b1343a63b5
3 changed files with 34 additions and 3 deletions

View File

@ -235,7 +235,7 @@ export default {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
padding: .5rem 0 0 0; padding: .5rem 0;
font-weight: bold; font-weight: bold;
font-size: .9rem; font-size: .9rem;
cursor: pointer; cursor: pointer;
@ -250,14 +250,23 @@ export default {
} }
} }
.expand-sidebar { .expand-sidebar:hover {
background: $shadow-hint;
} }
.expand-header { .expand-header {
display: none; display: none;
&:hover {
background: $shadow-hint;
}
} }
.collapse-header { .collapse-header {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
background: $profile; background: $profile;
color: $highlight; color: $highlight;
@ -266,6 +275,7 @@ export default {
} }
&:hover { &:hover {
background: $highlight-hint;
color: $text-contrast; color: $text-contrast;
.icon { .icon {

View File

@ -56,6 +56,10 @@ export default {
.tiles { .tiles {
grid-template-columns: repeat(auto-fit, minmax(15rem, .5fr)); grid-template-columns: repeat(auto-fit, minmax(15rem, .5fr));
} }
&.compact .tiles {
padding: 0 1rem 1rem 1rem;
}
} }
} }

View File

@ -674,6 +674,9 @@
.sites.expanded .tiles[data-v-7bebaa3e] { .sites.expanded .tiles[data-v-7bebaa3e] {
grid-template-columns: repeat(auto-fit, minmax(15rem, 0.5fr)); grid-template-columns: repeat(auto-fit, minmax(15rem, 0.5fr));
} }
.sites.expanded.compact .tiles[data-v-7bebaa3e] {
padding: 0 1rem 1rem 1rem;
}
.tiles[data-v-7bebaa3e] { .tiles[data-v-7bebaa3e] {
display: grid; display: grid;
grid-gap: 0 1rem; grid-gap: 0 1rem;
@ -781,7 +784,7 @@
justify-content: center; justify-content: center;
-webkit-box-align: center; -webkit-box-align: center;
align-items: center; align-items: center;
padding: .5rem 0 0 0; padding: .5rem 0;
font-weight: bold; font-weight: bold;
font-size: .9rem; font-size: .9rem;
cursor: pointer; cursor: pointer;
@ -793,10 +796,23 @@
.expand:hover .icon[data-v-e2e12602] { .expand:hover .icon[data-v-e2e12602] {
fill: rgba(0, 0, 0, 0.7); fill: rgba(0, 0, 0, 0.7);
} }
.expand-sidebar[data-v-e2e12602]:hover {
background: rgba(0, 0, 0, 0.1);
}
.expand-header[data-v-e2e12602] { .expand-header[data-v-e2e12602] {
display: none; display: none;
} }
.expand-header[data-v-e2e12602]:hover {
background: rgba(0, 0, 0, 0.1);
}
.collapse-header[data-v-e2e12602] { .collapse-header[data-v-e2e12602] {
width: 100%;
display: -webkit-box;
display: flex;
-webkit-box-pack: center;
justify-content: center;
-webkit-box-align: center;
align-items: center;
background: #222; background: #222;
color: rgba(255, 255, 255, 0.5); color: rgba(255, 255, 255, 0.5);
} }
@ -804,6 +820,7 @@
fill: rgba(255, 255, 255, 0.5); fill: rgba(255, 255, 255, 0.5);
} }
.collapse-header[data-v-e2e12602]:hover { .collapse-header[data-v-e2e12602]:hover {
background: rgba(255, 255, 255, 0.075);
color: #fff; color: #fff;
} }
.collapse-header:hover .icon[data-v-e2e12602] { .collapse-header:hover .icon[data-v-e2e12602] {