Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 1 | @charset "utf-8"; |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 2 | @import "../util"; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 3 | |
Akron | 2d0d96d | 2019-11-18 19:49:50 +0100 | [diff] [blame] | 4 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 5 | /** |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 6 | * Search field |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 7 | */ |
8 | #q-field { | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 9 | display: block; |
10 | margin-bottom: 3px; | ||||
11 | width: 100%; | ||||
12 | margin: 0; | ||||
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame^] | 13 | border-radius: 6px; |
Akron | 36c020f | 2018-03-19 16:25:26 +0100 | [diff] [blame] | 14 | |
15 | &::-webkit-search-cancel-button { | ||||
16 | display: none; | ||||
17 | } | ||||
Akron | 1be6c1c | 2020-01-07 15:29:58 +0100 | [diff] [blame] | 18 | |
19 | &.loading { | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 20 | background: { |
21 | color: $light-orange; | ||||
22 | image: none; | ||||
23 | } | ||||
Akron | 1be6c1c | 2020-01-07 15:29:58 +0100 | [diff] [blame] | 24 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 25 | } |
26 | |||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 27 | |
28 | #searchbar { | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 29 | position: relative; |
30 | width: 100%; | ||||
31 | padding: 0; | ||||
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame^] | 32 | // padding-right: $right-distance + $button-width; |
Akron | d059ea2 | 2021-03-02 15:32:27 +0100 | [diff] [blame] | 33 | margin-top: 7pt; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 34 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 35 | button[type=submit] { |
36 | position: absolute; | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 37 | padding: 0; |
Uyen-Nhu Tran | 243fe73 | 2024-04-10 01:17:24 +0200 | [diff] [blame^] | 38 | // right: $right-distance; |
39 | right: 0; | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 40 | |
Akron | 1be6c1c | 2020-01-07 15:29:58 +0100 | [diff] [blame] | 41 | &:not(.loading)::after { |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 42 | content: $fa-search; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 43 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 44 | } |
45 | } | ||||
46 | |||||
Akron | 2d0d96d | 2019-11-18 19:49:50 +0100 | [diff] [blame] | 47 | .query.panel { |
48 | padding-right: $right-distance + $button-width; | ||||
49 | } | ||||
50 | |||||
51 | // Specify result button group layout | ||||
52 | |||||
53 | .query.button-group.button-panel { | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 54 | display: block; |
55 | width: auto; | ||||
56 | text-align: right; | ||||
Akron | 2d0d96d | 2019-11-18 19:49:50 +0100 | [diff] [blame] | 57 | vertical-align: top; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 58 | line-height: 1.3em; |
59 | |||||
Akron | 2d0d96d | 2019-11-18 19:49:50 +0100 | [diff] [blame] | 60 | > span { |
61 | box-shadow: none; | ||||
62 | } | ||||
63 | } |