From 3eb91a001d265fc94cd24ff7406f430093fea496 Mon Sep 17 00:00:00 2001 From: Christy Karpinski Date: Thu, 3 Aug 2023 15:28:17 -0500 Subject: [PATCH 1/2] added css to hide host inst field from all but the shared theme --- app/assets/stylesheets/atla-overrides.scss | 16 ++++++++++++++++ .../stylesheets/themes/shared_repository.scss | 19 +++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/app/assets/stylesheets/atla-overrides.scss b/app/assets/stylesheets/atla-overrides.scss index 65334831..3588e66e 100644 --- a/app/assets/stylesheets/atla-overrides.scss +++ b/app/assets/stylesheets/atla-overrides.scss @@ -159,6 +159,22 @@ button.btn.btn-default.btn-block.citations-button.center-block:hover, button.btn color:white; } +/* hide custom field host institution */ + /* hide the label in works list */ + dt[data-solr-field-name="institution_tesim"] { + display: none; + } + + /* hide the value in works list */ + body.catalog-index div.metadata dl.dl-horizontal dd:last-child { + display: none; + } + + /* hide from the facets */ + .panel.panel-default.facet_limit.blacklight-institution_sim { + display: none; + } + @media only screen and (min-width: 768px) { diff --git a/app/assets/stylesheets/themes/shared_repository.scss b/app/assets/stylesheets/themes/shared_repository.scss index 840c29c5..94d81b70 100644 --- a/app/assets/stylesheets/themes/shared_repository.scss +++ b/app/assets/stylesheets/themes/shared_repository.scss @@ -189,6 +189,25 @@ &.hyrax-homepage #search-form-header {margin-top:1em;} &.hyrax-homepage .text-right p{color:#258FCE;} + + /* hide custom field host institution */ + /* hide the label in works list */ + dt[data-solr-field-name="institution_tesim"] { + display: block; + } + + /* hide the value in works list */ + &.catalog-index div.metadata dl.dl-horizontal dd:last-child { + display: block; + } + + /* hide from the facets */ + .panel.panel-default.facet_limit.blacklight-institution_sim { + display: block; + } + + + @media screen and (min-width:768px){ .dropdown-menu .divider, .twitter-typeahead .tt-menu .divider{ From f5fe9e27a6eae9569f0a06f63b633986d7cb8f4d Mon Sep 17 00:00:00 2001 From: Christy Karpinski Date: Thu, 17 Aug 2023 08:17:53 -0500 Subject: [PATCH 2/2] Update atla-overrides.scss adding color for facet remove X button and bottom padding for collection in search results --- app/assets/stylesheets/atla-overrides.scss | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/atla-overrides.scss b/app/assets/stylesheets/atla-overrides.scss index 3588e66e..3affeccc 100644 --- a/app/assets/stylesheets/atla-overrides.scss +++ b/app/assets/stylesheets/atla-overrides.scss @@ -174,8 +174,12 @@ button.btn.btn-default.btn-block.citations-button.center-block:hover, button.btn .panel.panel-default.facet_limit.blacklight-institution_sim { display: none; } - - +/* fix remove facet button color* / +.glyphicon-remove:before { + color:#d33a35; +} +/* add space for collection icon in search results view*/ +.search-result-wrapper {padding-bottom:.5em;} @media only screen and (min-width: 768px) { .hyc-banner .hyc-title h1 {margin-bottom: 0em;}