[Search] Hover and loading

Added styling to result items when they are
hovered over.
Also added a loading icon.
This commit is contained in:
shale
2015-07-23 11:41:17 -07:00
parent 4759162bb7
commit ebb5474b34
4 changed files with 94 additions and 9 deletions

View File

@@ -35,6 +35,32 @@
margin-top: 10px;
width: 100%;
}
.load-icon {
position: relative;
&.loading {
pointer-events: none;
margin-left: $leftMargin;
.title-label {
// Text styling
font-style: italic;
font-size: .9em;
opacity: 0.5;
// Text positioning
margin-left: $iconWidth + $leftMargin;
line-height: 24px;
}
.wait-spinner {
margin-left: $leftMargin;
}
}
&:not(.loading) {
cursor: pointer;
}
}
.results {
// Spacing away from the search input
@@ -83,7 +109,21 @@
color: $colorItemTreeIcon;
}
.label .type-icon {
color: #fff; //$colorItemTreeIconHover;
color: #fff;
}
}
// Change styling when it's being hovered over
&:not(.selected) {
&:hover {
background: lighten($colorBodyBg, 5%);
color: lighten($colorBodyFg, 20%);
.context-trigger {
display: block;
}
.icon {
color: $colorItemTreeIconHover;
}
}
}
}