From 23a8ed9bd90177807cdcd02f96f20d0257dc7c2c Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Mon, 16 May 2022 09:58:05 +0200 Subject: [PATCH] Add less file `search-field.less` --- asset/css/search-field.less | 81 +++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 asset/css/search-field.less diff --git a/asset/css/search-field.less b/asset/css/search-field.less new file mode 100644 index 00000000..76fb7577 --- /dev/null +++ b/asset/css/search-field.less @@ -0,0 +1,81 @@ +form.search-field { + .search-icon { + padding: 0.5em 0 0.5em 0.5em; + background-color: @searchbar-bg; + .rounded-corners(0.25em); + border-top-right-radius: unset; + border-bottom-right-radius: unset; + min-height: 26px; + margin-bottom: 0.25em; + } + + input.search-field { + .rounded-corners(0.25em); + .appearance(none); + padding: 0.5em; + margin-bottom: 0.5em; + margin-right: 1em; + background-color: @searchbar-bg; + border: none; + border-top-left-radius: unset; + border-bottom-left-radius: unset; + background-image: unset; + } + + input[type="submit"] { + .rounded-corners(3px); + margin-bottom: 0.5em; + max-width: 10em; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + background-color: @primary-button-bg; + color: @primary-button-color; + border: 2px solid @primary-button-bg; + padding: ~"calc(0.5em - 2px) 1em"; + } + + #term-container { + margin-top: 1em; + + label { + position: relative; + + .trash-icon { + display: none; + position: absolute; + right: 9px; + top: 1px; + } + + &:hover { + //badge for read-only mode + input[type="button"] { + background-color: @search-term-selected-bg; + color: @search-term-selected-color; + } + + .trash-icon { + display: inline-block; + color: @cancel-button-color; + background-color: @search-term-selected-bg; + } + } + + //badge + input[type="button"], input[type="text"] { + .rounded-corners(0.25em); + border: none; + padding: 0.5em; + margin-right: 0.5em; + margin-bottom: 0.5em; + max-width: 10em; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + background-color: @search-term-bg; + color: @search-term-color; + } + } + } +} \ No newline at end of file