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; +}