From dc0e97c16cdad45a2db31f4bd738f5962bf385f7 Mon Sep 17 00:00:00 2001 From: Dorian Merz <merz@ub.uni-leipzig.de> Date: Fri, 22 May 2020 15:10:18 +0200 Subject: [PATCH] refs #17577 [fid_bbi] styling of usertags table * add more whitespace for readability * add some responsiveness --- themes/fid_bbi/scss/compiled.scss | 11 ++++++++++- themes/fid_bbi/templates/myresearch/usertags.phtml | 4 ++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/themes/fid_bbi/scss/compiled.scss b/themes/fid_bbi/scss/compiled.scss index 4c2ec479ba2..a52d41f4c19 100644 --- a/themes/fid_bbi/scss/compiled.scss +++ b/themes/fid_bbi/scss/compiled.scss @@ -651,7 +651,16 @@ table.tags { border-bottom: 1px solid $charcoal; th, td { - padding: .3em; + padding: .3em 1em .3em 1em; + width: 33%; + min-width: 40px; + @media screen and (max-width: $screen-xs-max) { + // hide overlong captions + .hidden-xs { + visibility: hidden; + } + border-top: 1px dashed $gray-lighter; + } } th { diff --git a/themes/fid_bbi/templates/myresearch/usertags.phtml b/themes/fid_bbi/templates/myresearch/usertags.phtml index 84414853dbd..34b1dec906f 100644 --- a/themes/fid_bbi/templates/myresearch/usertags.phtml +++ b/themes/fid_bbi/templates/myresearch/usertags.phtml @@ -4,10 +4,10 @@ <?=$this->render('RecordDriver/DefaultRecord/offcanvas-toggler-myresearch'); ?> <h2><?=$this->translate('Your Tags')?></h2> <?php if (!empty($tags)): ?> - <table class="tags"> + <table class="tags table-responsive"> <tr> <th><?=$this->translate('Tag')?></th> - <th><?=$this->translate('tags_record_count')?></th> + <th>#<span class="hidden-xs"> <?=$this->translate('tags_record_count')?></span></th> <th><?=$this->translate('tags_records_on_lists')?></th> </tr> <?php foreach ($tags as $tag): ?> -- GitLab