aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/search/SearchItem.scss
diff options
context:
space:
mode:
authormadelinegr <monika_hedman@brown.edu>2019-06-11 18:07:38 -0400
committermadelinegr <monika_hedman@brown.edu>2019-06-11 18:07:38 -0400
commitfbcbbb2dc3dcb59f3389de0e4cc11283a7e4d87a (patch)
tree9c9a1e9c39a89c67d049c1fd540055451a953b4a /src/client/views/search/SearchItem.scss
parentb0b75c59bc5e1efcef54f70ac6c92e415707590a (diff)
end of day 6/11
Diffstat (limited to 'src/client/views/search/SearchItem.scss')
-rw-r--r--src/client/views/search/SearchItem.scss54
1 files changed, 47 insertions, 7 deletions
diff --git a/src/client/views/search/SearchItem.scss b/src/client/views/search/SearchItem.scss
index 2d4c06a5c..5afb69164 100644
--- a/src/client/views/search/SearchItem.scss
+++ b/src/client/views/search/SearchItem.scss
@@ -12,7 +12,7 @@
.search-info {
display: flex;
justify-content: flex-end;
- width: 100%;
+ width: 40%;
}
.main-search-info {
@@ -29,20 +29,59 @@
.search-title {
text-transform: uppercase;
text-align: left;
- width: 8vw;
+ width: 80%;
font-weight: bold;
}
-.link-count {
- height: 25px;
- width: 25px;
- border-radius: 50%;
+.link-container.item {
+ height: 26px;
+ width: 26px;
+ border-radius: 13px;
background: $dark-color;
color: $light-color-secondary;
display: flex;
justify-content: center;
align-items: center;
margin-right: 10px;
+ -webkit-transition: all 0.2s ease-in-out;
+ -moz-transition: all 0.2s ease-in-out;
+ -o-transition: all 0.2s ease-in-out;
+ transition: all 0.2s ease-in-out;
+ transform-origin: top right;
+ overflow: hidden;
+
+ .link-count {
+ opacity: 1;
+ position: absolute;
+ z-index: 1000;
+ -webkit-transition: opacity 0.2s ease-in-out;
+ -moz-transition: opacity 0.2s ease-in-out;
+ -o-transition: opacity 0.2s ease-in-out;
+ transition: opacity 0.2s ease-in-out;
+ }
+
+ .link-extended {
+ opacity: 0;
+ position: absolute;
+ z-index: 500;
+ overflow: hidden;
+ -webkit-transition: opacity 0.2s ease-in-out;
+ -moz-transition: opacity 0.2s ease-in-out;
+ -o-transition: opacity 0.2s ease-in-out;
+ transition: opacity 0.2s ease-in-out;
+ }
+}
+
+.link-container.item:hover{
+ width: 70px;
+}
+
+.link-container.item:hover .link-count{
+ opacity: 0;
+}
+
+.link-container.item:hover .link-extended{
+ opacity: 1;
}
.search-type {
@@ -85,7 +124,8 @@
}
.search-item:hover~.searchBox-instances,
-.searchBox-instances:hover, .searchBox-instances:active{
+.searchBox-instances:hover,
+.searchBox-instances:active {
opacity: 1;
background: $lighter-alt-accent;
-webkit-transform: scale(1);