Skip to content
Snippets Groups Projects
Commit 9b3b4381 authored by Claas Kazzer's avatar Claas Kazzer :speech_balloon: Committed by Dorian Merz
Browse files

refs #15148

* fixes jumping content when changing tabs bug
* changes searchtools links into buttons on XS, SM
* fixes add-to-bookbag in sidebar (again)
parent 0751bd07
Branches
Tags
No related merge requests found
...@@ -65,6 +65,12 @@ section { ...@@ -65,6 +65,12 @@ section {
// width: auto; // width: auto;
// } // }
// //
// Prevent content from jumping when changing tabs in record view
html {
overflow-y: scroll;
}
// Add top-padding to body to accommodate fixed navbar; -- padding should equal navbar-height -- // Add top-padding to body to accommodate fixed navbar; -- padding should equal navbar-height --
// the home page, however, has a lower navbar because there is no breadcrumbs there // the home page, however, has a lower navbar because there is no breadcrumbs there
body { body {
...@@ -1409,6 +1415,7 @@ footer { ...@@ -1409,6 +1415,7 @@ footer {
.sort select { .sort select {
max-width: 12em; max-width: 12em;
} }
//// Off-Canvas //// Off-Canvas
@media only screen and (max-width: $screen-sm-max) { @media only screen and (max-width: $screen-sm-max) {
// Define position of VF5.1 offcanvas toggler // Define position of VF5.1 offcanvas toggler
...@@ -1561,6 +1568,25 @@ footer { ...@@ -1561,6 +1568,25 @@ footer {
} }
} }
// Display searchtools-links as buttons on XS, SM
@media screen and (max-width: $screen-sm-max) {
.searchtools {
a {
background-color: $white;
border: 1px solid $iron;
color: $oil;
// align on top of each other
display: block;
margin-bottom: 5px;
padding: 6px 12px;
text-align: center;
touch-action: manipulation;
vertical-align: middle;
white-space: nowrap;
}
}
}
////// Pagination & Searchtools - END ////// Pagination & Searchtools - END
//// Search results - END //// Search results - END
...@@ -1805,6 +1831,7 @@ footer { ...@@ -1805,6 +1831,7 @@ footer {
text-align: center; text-align: center;
} }
} }
//// pull content to right border for sidebar right //// pull content to right border for sidebar right
.container .sidebar { .container .sidebar {
&.right { &.right {
...@@ -1961,8 +1988,9 @@ footer { ...@@ -1961,8 +1988,9 @@ footer {
} }
} }
// Keep padding at 2px or "Add to Bookbag" in Record View will be out of line
.nav .btn-bookbag-toggle a { .nav .btn-bookbag-toggle a {
padding-left: 8px; padding-left: 2px;
} }
//// Toolbar in Detailview - END //// Toolbar in Detailview - END
......
...@@ -127,16 +127,15 @@ $this->headScript()->appendFile("check_save_statuses.js"); ...@@ -127,16 +127,15 @@ $this->headScript()->appendFile("check_save_statuses.js");
<div class="searchtools hidden-print"> <div class="searchtools hidden-print">
<strong><?=$this->transEsc('Search Tools')?>:</strong> <strong><?=$this->transEsc('Search Tools')?>:</strong>
<a href="<?=$this->results->getUrlQuery()->setViewParam('rss')?>"><i class="fa fa-bell" aria-hidden="true"></i> <?=$this->transEsc('Get RSS Feed')?></a> <a href="<?=$this->results->getUrlQuery()->setViewParam('rss')?>"><i class="fa fa-bell" aria-hidden="true"></i> <?=$this->transEsc('Get RSS Feed')?></a>
&mdash; <span class="hidden-xs hidden-sm">&mdash;</span>
<a href="<?=$this->url('search-email')?>" class="mailSearch" data-lightbox id="mailSearch<?=$this->escapeHtmlAttr($this->results->getSearchId())?>"> <a href="<?=$this->url('search-email')?>" class="mailSearch" data-lightbox id="mailSearch<?=$this->escapeHtmlAttr($this->results->getSearchId())?>">
<i class="fa fa-envelope" aria-hidden="true"></i> <?=$this->transEsc('Email this Search')?> <i class="fa fa-envelope" aria-hidden="true"></i> <?=$this->transEsc('Email this Search')?>
</a> </a>
<?php if ($this->accountCapabilities()->getSavedSearchSetting() === 'enabled'): ?> <?php if ($this->accountCapabilities()->getSavedSearchSetting() === 'enabled'): ?>
&mdash; <span class="hidden-xs hidden-sm">&mdash;</span>
<?php if (is_numeric($this->results->getSearchId())): ?> <?php if (is_numeric($this->results->getSearchId())): ?>
<?php if ($this->results->isSavedSearch()): ?> <?php if ($this->results->isSavedSearch()): ?>
<a href="<?=$this->url('myresearch-savesearch')?>?delete=<?=urlencode($this->results->getSearchId())?>"><i class="fa fa-remove" <a href="<?=$this->url('myresearch-savesearch')?>?delete=<?=urlencode($this->results->getSearchId())?>"><i class="fa fa-remove" aria-hidden="true"></i> <?=$this->transEsc('save_search_remove')?></a>
aria-hidden="true"></i> <?=$this->transEsc('save_search_remove')?></a>
<?php else: ?> <?php else: ?>
<a href="<?=$this->url('myresearch-savesearch')?>?save=<?=urlencode($this->results->getSearchId())?>"><i class="fa fa-save" aria-hidden="true"></i> <?=$this->transEsc('save_search')?></a> <a href="<?=$this->url('myresearch-savesearch')?>?save=<?=urlencode($this->results->getSearchId())?>"><i class="fa fa-save" aria-hidden="true"></i> <?=$this->transEsc('save_search')?></a>
<?php endif; ?> <?php endif; ?>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment