Skip to content
Snippets Groups Projects
Commit 5e84f8de authored by Alexander Purr's avatar Alexander Purr Committed by Robert Lange
Browse files

refs #16307 [fid_adlr] better responsive tables

* reuse and adjust .table-resp-data & .table-resp-data-md from finc where fid_adlr default table styles dont work properly
** profile view
** search history
* remove old style .table-responsive (enabled only horizontal scrolling)
* profile menu; td::before color
parent d3fdacaf
No related merge requests found
......@@ -193,7 +193,7 @@ $default-border-hover: 3px;
$default-outline-hover-offset: 5px;
$default-outline-hover-width: 3px;
// Default border styles
//$border-default-styles: 1px solid $border-color !default;
$border-default-styles: 0px;
// *****************************************************************
......
......@@ -78,8 +78,28 @@ table {
// ************ Responsive data tables *****************************
// *****************************************************************
.table-responsive {
@media (max-width: $screen-xs-max) {
border: 0;
// reuse and improve .table-resp-data & .table-resp-data-md from finc - #16306
// exceptionally add mixin at component - only used here
@mixin table-resp-data-additionals {
tbody > tr > td {
padding-left: calc(50% + 10px);
}
tbody > tr > td::before {
color: $oil;
font-weight: normal;
left: 20px;
top: 20px;
}
}
@media screen and (max-width: $screen-xs-max) {
.table-resp-data {
@include table-resp-data-additionals;
}
}
@media screen and (max-width: $screen-md-max) {
.table-resp-data-md {
@include table-resp-data-additionals;
}
}
\ No newline at end of file
......@@ -7,7 +7,7 @@
$this->layout()->breadcrumbs = '<li><a href="' . $this->url('myresearch-home') . '">' . $this->transEsc('Your Account') . '</a></li> <li class="active">' . $this->transEsc('Profile') . '</li>';
// Template for use by the renderArray helper:
$arrTemplate = '<tr><th>%%LABEL%%:</th><td> %%VALUE%%</td></tr>';
$arrTemplate = '<tr><th>%%LABEL%%:</th><td data-title="%%LABEL%%:">%%VALUE%%</td></tr>';
// styling for user forms #15445
$profile = $this->profile;
......@@ -32,9 +32,7 @@
<?=$this->flashmessages();?>
<?php if (is_array($this->profile)): ?>
<?php /* fid_adlr: responsive tables via horizontal scrolling: add div with "table-responsive" #16767 */ ?>
<div class="table-responsive">
<table class="table table-striped">
<table class="table table-striped table-resp-data">
<?=$this->renderArray(
$arrTemplate,
$profile,
......@@ -55,7 +53,6 @@
)
)?>
</table>
</div>
<?php /* fid: changes user data #15405 */ ?>
<a href="<?=$this->url('fid/user/update')?>" class="btn btn-primary"><?=$this->transEsc('fid::Edit Account')?></a>
<?php elseif ('ils-none' !== $this->ils()->getOfflineMode() && $this->patronLoginView && !empty($this->patronLoginView->getTemplate())): ?>
......
......@@ -5,8 +5,7 @@
?>
<?php /* finc adds code for responsive data table here - CK */ ?>
<?php /* fid_adlr: responsive tables via horizontal scrolling #16767 */ ?>
<div class="table-responsive">
<table class="search-history-table table-striped" id="<?=$this->showSaved ? 'saved-searches' : 'recent-searches'?>">
<table class="search-history-table table-striped table-resp-data" id="<?=$this->showSaved ? 'saved-searches' : 'recent-searches'?>">
<tr>
<th width="20%"><?=$this->transEsc("history_time")?></th>
<th><?=$this->transEsc("history_search")?></th>
......@@ -70,5 +69,4 @@
</tr>
<?php endforeach; ?>
</table>
</div>
<!-- fid_adlr: search - history-table - END -->
\ No newline at end of file
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