From 7afa8ba39f45d2c1186251a8ff2a02dbefb021d5 Mon Sep 17 00:00:00 2001 From: lubber-de Date: Sun, 15 Dec 2024 13:24:02 +0100 Subject: [PATCH] feat(search): support remove icon --- src/definitions/modules/search.less | 2 +- src/themes/default/modules/search.variables | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/definitions/modules/search.less b/src/definitions/modules/search.less index 8729349c96..f931d133e4 100755 --- a/src/definitions/modules/search.less +++ b/src/definitions/modules/search.less @@ -309,7 +309,7 @@ .ui.search.loading > .icon.input > .remove.icon { display: none; } - .ui.search > .icon.input > input:-ms-input-placeholder ~ .remove.icon when (@supportIE){ + .ui.search > .icon.input > input:-ms-input-placeholder ~ .remove.icon when (@supportIE) { display: none; } } diff --git a/src/themes/default/modules/search.variables b/src/themes/default/modules/search.variables index 235cffcc03..07508a4047 100644 --- a/src/themes/default/modules/search.variables +++ b/src/themes/default/modules/search.variables @@ -135,10 +135,11 @@ @clearableIconHeight: @clearableIconWidth; @clearableIconInputRight: 1.85714em; + /* * Times icon taken from Font Awesome Free 5.15.4 by @fontawesome [https://fontawesome.com] * License - https://fontawesome.com/license/free -*/ + */ @clearableIconBackground: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 352 512'%3E%3Cpath d='M242.7 256l100.1-100.1c12.3-12.3 12.3-32.2 0-44.5l-22.2-22.2c-12.3-12.3-32.2-12.3-44.5 0L176 189.3 75.9 89.2c-12.3-12.3-32.2-12.3-44.5 0L9.2 111.5c-12.3 12.3-12.3 32.2 0 44.5L109.3 256 9.2 356.1c-12.3 12.3-12.3 32.2 0 44.5l22.2 22.2c12.3 12.3 32.2 12.3 44.5 0L176 322.7l100.1 100.1c12.3 12.3 32.2 12.3 44.5 0l22.2-22.2c12.3-12.3 12.3-32.2 0-44.5L242.7 256z'/%3E%3C/svg%3E") no-repeat; /* Category */