Skip to content

Commit

Permalink
Some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kreafox committed Jul 15, 2022
1 parent 7ac15f0 commit 9ff197d
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 65 deletions.
4 changes: 2 additions & 2 deletions src/SearchBlock/less/facets.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
div#page-document .searchlib-block {
.searchlib-block {
div.facets {
i.icon.dropdown {
margin-right: 0px;
Expand Down Expand Up @@ -98,7 +98,6 @@ div#page-document .searchlib-block {
}

.sui-multi-checkbox-facet {
// max-height: 200px;
overflow: auto;
max-height: 100%;
padding: 0 0.6em;
Expand Down Expand Up @@ -167,6 +166,7 @@ div#page-document .searchlib-block {
}

.sui-multi-checkbox-facet__option-input-wrapper {
display: flex;
max-width: 15em;
flex: 1;
}
Expand Down
28 changes: 12 additions & 16 deletions src/SearchBlock/less/filterlist.less
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,6 @@ div#page-document .searchlib-block {
filter: grayscale(100%);
}
}

// .card .meta {
// color: @s-medium-gray2 !important;
// }
}

.facets-wrapper {
Expand Down Expand Up @@ -352,18 +348,18 @@ div#page-document .searchlib-block {
}
}

@media only screen and (max-width: 770px) {
div.filter-list-item.more-like-this {
.label {
width: 100%;
}

i.icon.delete {
top: 23px !important;
right: 23px !important;
}
}
}
// @media only screen and (max-width: 770px) {
// div.filter-list-item.more-like-this {
// .label {
// width: 100%;
// }
//
// i.icon.delete {
// top: 23px !important;
// right: 23px !important;
// }
// }
// }

// .filter-list-item.more-like-this {
// margin-bottom: 1em;
Expand Down
2 changes: 1 addition & 1 deletion src/SearchBlock/less/searchinput.less
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
}
}

div.input-controls {
.input-controls {
display: flex;
align-items: center;
margin-top: 2px;
Expand Down
15 changes: 0 additions & 15 deletions src/SearchBlock/less/searchresult.less
Original file line number Diff line number Diff line change
Expand Up @@ -155,21 +155,6 @@ div#page-document .ui.four.cards {
}
}

div#page-document .horizontal-card-thumbnail {
display: block;
height: 100%;
min-height: 10em;
margin-right: 0.6em;
background-position: center;
background-size: cover;
float: left;

img {
width: 100%;
visibility: hidden;
}
}

div#page-document .horizontal-card-item .content.details .header a {
color: #004b87;
font-size: 18px;
Expand Down
69 changes: 38 additions & 31 deletions src/SearchBlock/less/searchview.less
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,15 @@ div#page-document {
justify-content: right;
margin-bottom: 0.5em;

.ui.dropdown {
.icon.chevron {
position: relative;
top: -1px;
margin-left: 0.3em;
font-size: 0.6em;
}
}

#archived-facet {
position: relative;
top: -1px;
Expand Down Expand Up @@ -160,7 +169,6 @@ div#page-document {

.view-selector {
width: auto !important;
padding-bottom: 1em;
padding-left: 0px !important;
margin-left: 10px;
font-size: 16px;
Expand Down Expand Up @@ -207,7 +215,6 @@ div#page-document {

.sorting {
width: auto;
margin-bottom: 0.5em;
font-size: 16px;

.inline.dropdown > span {
Expand Down Expand Up @@ -416,6 +423,30 @@ p.highlight-description\.highlight {
}
}

@media screen and (min-width: 750px) {
div.body-content div.col-mid div.ui.doubling.stackable.one.cards {
max-width: 1000px;
}

body.searchlib-page {
&.has-toolbar {
div.header-wrapper[role='banner'] {
div.ui.container:first-of-type {
width: calc(100vw - 100px) !important;
}
}
}

&.has-toolbar-collapsed {
div.header-wrapper[role='banner'] {
div.ui.container:first-of-type {
width: calc(100vw - 50px) !important;
}
}
}
}
}

@media screen and (max-width: 600px) {
.ui.basic.segment.content-area .ui.container#page-document {
padding: 0px 5px 0px 5px !important;
Expand All @@ -442,51 +473,27 @@ p.highlight-description\.highlight {
}
}

div.view-selector {
div.buttons {
.view-selector {
.buttons {
position: relative;
left: -14px;
}
}

div.above-results {
.above-results {
display: flex;
justify-content: left !important;
margin-top: 1em !important;
margin-bottom: 2em !important;
column-gap: 10px;
row-gap: 10px;

div.sorting {
.sorting {
margin: 0px !important;
}

div.view-selector {
.view-selector {
margin: 0px !important;
}
}
}

@media screen and (min-width: 750px) {
div.body-content div.col-mid div.ui.doubling.stackable.one.cards {
max-width: 1000px;
}

body.searchlib-page {
&.has-toolbar {
div.header-wrapper[role='banner'] {
div.ui.container:first-of-type {
width: calc(100vw - 100px) !important;
}
}
}

&.has-toolbar-collapsed {
div.header-wrapper[role='banner'] {
div.ui.container:first-of-type {
width: calc(100vw - 50px) !important;
}
}
}
}
}

0 comments on commit 9ff197d

Please sign in to comment.