From 9876c87d4df6acd3eb4a017a0c04f32f2cd0596a Mon Sep 17 00:00:00 2001 From: Camilo Villamizar Date: Wed, 19 Jun 2024 16:29:11 -0300 Subject: [PATCH] NBBIB-442 search input + button joined on all size displays --- .../bs5_nbbib_lib_unb_ca/src/scss/style.scss | 73 +++++++++++-------- 1 file changed, 42 insertions(+), 31 deletions(-) diff --git a/custom/themes/bs5_nbbib_lib_unb_ca/src/scss/style.scss b/custom/themes/bs5_nbbib_lib_unb_ca/src/scss/style.scss index 04fdebb7..2d09abba 100644 --- a/custom/themes/bs5_nbbib_lib_unb_ca/src/scss/style.scss +++ b/custom/themes/bs5_nbbib_lib_unb_ca/src/scss/style.scss @@ -1269,14 +1269,12 @@ html { } @media screen and (max-width: 1428px) { .view-nb-bibliography-citations, - .view-nb-bibliography-contributors, - .block-views-exposed-filter-blocknb-bibliography-citations-page-2 { + .view-nb-bibliography-contributors { * { border-radius: 8px !important; } margin: 0 !important; form#views-exposed-form-nb-bibliography-citations-page-1, - form#views-exposed-form-nb-bibliography-citations-page-2, form#views-exposed-form-nb-bibliography-contributors-page-1 { width: 100% !important; div.form-item-search-api-fulltext, @@ -1293,42 +1291,46 @@ html { left: 1rem !important; font-size: 15px !important; } + #edit-actions { + width: 40% !important; + } } } - #edit-actions { - width: 40% !important; - } } -@media screen and (max-width: 1376px) { - #edit-actions { - display: flex !important; - justify-content: space-between; - input { - margin: 0 !important; - width: 49% !important; - } - #edit-submit-nb-bibliography-citations:not(:has(+ #edit-reset)), - #edit-submit-nb-bibliography-contributors:not(:has(+ #edit-reset)) { - width: 100% !important; +@media screen and (max-width: 1376px) { + body:not(.path-frontpage) { + #edit-actions { + display: flex !important; + justify-content: space-between; + input { + margin: 0 !important; + width: 49% !important; + } + #edit-submit-nb-bibliography-citations:not(:has(+ #edit-reset)), + #edit-submit-nb-bibliography-contributors:not(:has(+ #edit-reset)) { + width: 100% !important; + } } } } @media screen and (max-width: 1106px) { - #edit-actions { - width: 100% !important; - } - #navbarSupportedContent { - margin-top: 1rem; - justify-content: flex-start !important; - .nav-item:first-of-type { - padding-left: 0; + body:not(.path-frontpage) { + #edit-actions { + width: 100% !important; + } + #navbarSupportedContent { + margin-top: 1rem; + justify-content: flex-start !important; + .nav-item:first-of-type { + padding-left: 0; + } + } + .form-item-sort-by { + margin-left: 0 !important; + } + form.views-exposed-form { + height: 14rem !important; } - } - .form-item-sort-by { - margin-left: 0 !important; - } - form.views-exposed-form { - height: 14rem !important; } } @media screen and (max-width: 991px) { @@ -1362,6 +1364,15 @@ html { order: 1 !important; } } + #views-exposed-form-nb-bibliography-citations-page-2 { + width: 90% !important; + label[for="edit-search-api-fulltext"], + label[for="edit-name"] { + top: -1.8rem !important; + left: 1rem !important; + font-size: 15px !important; + } + } } @media screen and (max-width: 638px) { header {