Skip to content

Commit

Permalink
Style edits to the display bar (#293)
Browse files Browse the repository at this point in the history
* remove hover/active state colors and add gray backgrounds
* caret rotates when the dropdown is clicked
  • Loading branch information
alishaevn authored Sep 17, 2020
1 parent 3217096 commit 3717b6d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 14 deletions.
Binary file added app/assets/images/light-blue-up-arrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 32 additions & 14 deletions app/assets/stylesheets/customOverrides/sort_widget.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,57 @@
DEFAULT MOBILE STYLING
********************************************************/

.btn-outline-secondary.active:not(:disabled):not(.disabled) {
background-color: $yale_blue;
border-color: $yale_blue;
.dropdown-menu {
background-color: transparent;
}

.btn-outline-secondary:hover {
background-color: $light_grey;
border-color: $light_grey;
.view-type-group > .btn-outline-secondary:first-child {
margin-right: 8px;
}

.btn-outline-secondary:not(:disabled):not(.disabled):active {
background-color: $dark_grey;
border-color: $dark_grey;
.btn-outline-secondary,
.btn-outline-secondary.active:not(:disabled):not(.disabled),
.btn-outline-secondary:not(:disabled):not(.disabled):active,
.btn-outline-secondary:hover,
.show > .btn-outline-secondary.dropdown-toggle {
background-color: $lightest_grey;
border-color: $lightest_grey;
color: $yale_blue;
}

.caret {
padding-left: 15px;
}

.dropdown-toggle {
background-image: image-url('light-blue-down-arrow.png');
background-size: 11px;
background-position-x: right;
background-position-y: center;
background-origin: content-box;
border-bottom: none;
background-repeat: no-repeat;
}

.dropdown-toggle {
border-bottom: none;
}

.dropdown-toggle::after {
content: none;
}

#per_page-dropdown,
#sort-dropdown {
background-color: $lightest_grey;
margin-right: 8px;
}

#per_page-dropdown .caret,
#sort-dropdown .caret {
background-image: image-url('light-blue-down-arrow.png');
}

#per_page-dropdown.show .caret,
#sort-dropdown.show .caret {
background-image: image-url('light-blue-up-arrow.png');
}

.search-widgets {
display: flex;
justify-content: flex-end;
Expand Down

0 comments on commit 3717b6d

Please sign in to comment.