From 102fb55514948ca89256dc013a890622d09148e1 Mon Sep 17 00:00:00 2001 From: Jeremy McDermott Date: Mon, 29 Jul 2024 16:11:29 -0300 Subject: [PATCH] LOYALIST-51 Search: View page theming --- .../images/square-xmark-solid.svg | 1 + .../src/scss/style.scss | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 custom/themes/the_loyalist_collection/images/square-xmark-solid.svg diff --git a/custom/themes/the_loyalist_collection/images/square-xmark-solid.svg b/custom/themes/the_loyalist_collection/images/square-xmark-solid.svg new file mode 100644 index 0000000..7a08b76 --- /dev/null +++ b/custom/themes/the_loyalist_collection/images/square-xmark-solid.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/custom/themes/the_loyalist_collection/src/scss/style.scss b/custom/themes/the_loyalist_collection/src/scss/style.scss index 0da2513..612e80a 100644 --- a/custom/themes/the_loyalist_collection/src/scss/style.scss +++ b/custom/themes/the_loyalist_collection/src/scss/style.scss @@ -159,3 +159,24 @@ dl.loyalist-record { } } } + +input[type="search"]::-webkit-search-cancel-button { + appearance: none; + height: $spacer * 3; + width: $spacer * 3; + background: url(../../images/square-xmark-solid.svg) no-repeat 50% 50%; + background-size: contain; + margin-right: $spacer * -1; + opacity: 0; + pointer-events: none; +} + +input[type="search"]:focus::-webkit-search-cancel-button, +input[type="search"]:hover::-webkit-search-cancel-button { + opacity: 0.7; + pointer-events: auto; +} +input[type="search"]::-webkit-search-cancel-button:hover { + cursor: pointer; + fill: $unb-logo-red; +}