Skip to content

Commit

Permalink
Merge branch 'dev' into vufind-1233
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Dec 7, 2023
2 parents b3df25b + 0a879cd commit bdf0ab1
Show file tree
Hide file tree
Showing 9 changed files with 102 additions and 99 deletions.
2 changes: 1 addition & 1 deletion themes/bootprint3/css/compiled.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/bootstrap3/css/compiled.css

Large diffs are not rendered by default.

10 changes: 0 additions & 10 deletions themes/bootstrap3/less/components/keyboard.less
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,3 @@
.show-keyboard {
display: block;
}

@media (max-width: 400px) {
.keyboard-selection {
display: none;
}

.show-keyboard {
display: none;
}
}
84 changes: 47 additions & 37 deletions themes/bootstrap3/less/components/search.less
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,6 @@
.home-facet-list { flex: 0 1 100%; }
}

.searchForm {
margin: 0;
padding: 0;

.input-group .form-control:first-child {
border-top-right-radius: @input-border-radius;
border-bottom-right-radius: @input-border-radius;
}

@media (max-width: 767px) {
.input-group {
width: 100%;
}
}
}

header .container.navbar { margin-bottom: 0; }

.search-sort, .search-result-limit { display: flex; }
Expand Down Expand Up @@ -688,32 +672,58 @@ table.search-history-table {
}
}

.searchForm-query {
position: relative;
display: inline-block;
.searchForm {
margin: 0;
padding: 0;

.searchForm-query {
position: relative;

#searchForm_lookfor {
padding-right: 28px;
@media (min-width: 768px) {
display: inline-block;
}

#searchForm_lookfor {
padding-right: 34px;
}

/* Adjust padding for the virtual keyboard button */
@media (min-width: 401px) {
#searchForm_lookfor.with-keyboard-selection {
padding-right: 72px;
}
}

#searchForm_controls {
position: absolute;
right: 3px;
top: 5px;
z-index: 4;
height: 2em;
}

#searchForm-reset {
bottom: 0;
width: 2em;
border: none;
border-radius: 50%;
background-color: @gray-lighter;
margin: 0;
padding: 2px;
font-size: 1em;
cursor: pointer;
}
}
}

#searchForm_controls {
position: absolute;
right: 3px;
top: 5px;
z-index: 4;
height: 2em;
/* Hide virtual keyboard on narrow screens */
@media (max-width: 400px) {
.keyboard-selection {
display: none;
}

#searchForm-reset {
bottom: 0;
width: 2em;
border: none;
border-radius: 50%;
background-color: @gray-lighter;
margin: 0;
padding: 2px;
font-size: 1em;
cursor: pointer;
.show-keyboard, .simple-keyboard {
display: none;
}
}

Expand Down
10 changes: 0 additions & 10 deletions themes/bootstrap3/scss/components/keyboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,3 @@
.show-keyboard {
display: block;
}

@media (max-width: 400px) {
.keyboard-selection {
display: none;
}

.show-keyboard {
display: none;
}
}
84 changes: 47 additions & 37 deletions themes/bootstrap3/scss/components/search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,6 @@ $thumbnail-width-large: 160px;
.home-facet-list { flex: 0 1 100%; }
}

.searchForm {
margin: 0;
padding: 0;

.input-group .form-control:first-child {
border-top-right-radius: $input-border-radius;
border-bottom-right-radius: $input-border-radius;
}

@media (max-width: 767px) {
.input-group {
width: 100%;
}
}
}

header .container.navbar { margin-bottom: 0; }

.search-sort, .search-result-limit { display: flex; }
Expand Down Expand Up @@ -688,32 +672,58 @@ table.search-history-table {
}
}

.searchForm-query {
position: relative;
display: inline-block;
.searchForm {
margin: 0;
padding: 0;

.searchForm-query {
position: relative;

#searchForm_lookfor {
padding-right: 28px;
@media (min-width: 768px) {
display: inline-block;
}

#searchForm_lookfor {
padding-right: 34px;
}

/* Adjust padding for the virtual keyboard button */
@media (min-width: 401px) {
#searchForm_lookfor.with-keyboard-selection {
padding-right: 72px;
}
}

#searchForm_controls {
position: absolute;
right: 3px;
top: 5px;
z-index: 4;
height: 2em;
}

#searchForm-reset {
bottom: 0;
width: 2em;
border: none;
border-radius: 50%;
background-color: $gray-lighter;
margin: 0;
padding: 2px;
font-size: 1em;
cursor: pointer;
}
}
}

#searchForm_controls {
position: absolute;
right: 3px;
top: 5px;
z-index: 4;
height: 2em;
/* Hide virtual keyboard on narrow screens */
@media (max-width: 400px) {
.keyboard-selection {
display: none;
}

#searchForm-reset {
bottom: 0;
width: 2em;
border: none;
border-radius: 50%;
background-color: $gray-lighter;
margin: 0;
padding: 2px;
font-size: 1em;
cursor: pointer;
.show-keyboard, .simple-keyboard {
display: none;
}
}

Expand Down
5 changes: 4 additions & 1 deletion themes/bootstrap3/templates/search/searchbox.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,11 @@
. ($this->searchbox()->autocompleteAutoSubmit($this->searchClassId) ? ' ac-auto-submit' : '');
$searchboxAttributes['data-autocomplete-formatting-rules'] = $this->searchbox()->autocompleteFormattingRulesJson($this->searchClassId);
}
if (!empty($keyboardLayouts)) {
$searchboxAttributes['class'] .= ' with-keyboard-selection';
}
?>
<div class="searchForm-query input-group">
<div class="searchForm-query">
<input<?=$this->htmlAttributes($searchboxAttributes)?>>
<div id="searchForm_controls">
<button id="searchForm-reset" class="searchForm-reset hidden" type="reset" tabindex="-1" aria-label="<?=$this->transEscAttr('searchform_reset_button')?>"><?=$this->icon('ui-reset-search');?></button>
Expand Down
2 changes: 1 addition & 1 deletion themes/local_theme_example/css/compiled.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/sandal/css/compiled.css

Large diffs are not rendered by default.

0 comments on commit bdf0ab1

Please sign in to comment.