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 | |
4 | $border-size: 2px; | ||||
Akron | 2d0d96d | 2019-11-18 19:49:50 +0100 | [diff] [blame] | 5 | $qmargin: 3px; |
Akron | 179b7c8 | 2018-05-28 19:33:38 +0200 | [diff] [blame] | 6 | // $right-padding: 60px; |
Nils Diewald | 845282c | 2015-05-14 07:53:03 +0000 | [diff] [blame] | 7 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 8 | |
Akron | 2d0d96d | 2019-11-18 19:49:50 +0100 | [diff] [blame] | 9 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 10 | /** |
11 | * Input field | ||||
12 | */ | ||||
13 | #q-field { | ||||
14 | width: 100%; | ||||
15 | margin: 0; | ||||
Akron | 2d0d96d | 2019-11-18 19:49:50 +0100 | [diff] [blame] | 16 | margin-bottom: $qmargin; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 17 | display: block; |
Akron | 36c020f | 2018-03-19 16:25:26 +0100 | [diff] [blame] | 18 | |
19 | &::-webkit-search-cancel-button { | ||||
20 | display: none; | ||||
21 | } | ||||
Akron | 1be6c1c | 2020-01-07 15:29:58 +0100 | [diff] [blame] | 22 | |
23 | &.loading { | ||||
24 | background-color: $light-orange; | ||||
25 | background-image: none; | ||||
26 | } | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 27 | } |
28 | |||||
29 | header input { | ||||
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 30 | @include input-field; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 31 | } |
32 | |||||
33 | #searchbar { | ||||
34 | position: relative; | ||||
35 | width: 100%; | ||||
Akron | 2d0d96d | 2019-11-18 19:49:50 +0100 | [diff] [blame] | 36 | padding: 0; |
Akron | 179b7c8 | 2018-05-28 19:33:38 +0200 | [diff] [blame] | 37 | padding-right: $right-distance + $button-width; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 38 | button[type=submit] { |
39 | position: absolute; | ||||
Akron | 2d0d96d | 2019-11-18 19:49:50 +0100 | [diff] [blame] | 40 | padding: 0; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 41 | right: $right-distance; |
Akron | 1be6c1c | 2020-01-07 15:29:58 +0100 | [diff] [blame] | 42 | &:not(.loading)::after { |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 43 | content: $fa-search; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 44 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 45 | } |
46 | } | ||||
47 | |||||
48 | /** | ||||
49 | * Checkbox styling | ||||
50 | * http://stackoverflow.com/questions/4148499/how-to-style-checkbox-using-css | ||||
51 | */ | ||||
52 | .checkbox { | ||||
53 | display: none; | ||||
54 | + label { | ||||
55 | cursor: pointer; | ||||
56 | span { | ||||
57 | border-radius: 4px; | ||||
58 | display: inline-block; | ||||
59 | width: 1em; // 12px | ||||
60 | height: 1em; | ||||
61 | line-height: 1em; // 12px; | ||||
62 | vertical-align: middle; | ||||
63 | padding: 0; | ||||
64 | margin-right: .2em; | ||||
65 | /* | ||||
66 | background-color: $nearly-white; | ||||
67 | &:hover { | ||||
68 | border-color: $nearly-white; | ||||
69 | } | ||||
70 | */ | ||||
71 | &::after { | ||||
72 | font-family: "FontAwesome"; | ||||
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 73 | content: $fa-check; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 74 | } |
75 | } | ||||
76 | } | ||||
77 | &:checked + label span { | ||||
78 | &:after { | ||||
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 79 | content: $fa-checked; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 80 | } |
81 | } | ||||
Nils Diewald | 845282c | 2015-05-14 07:53:03 +0000 | [diff] [blame] | 82 | } |
Akron | 2d0d96d | 2019-11-18 19:49:50 +0100 | [diff] [blame] | 83 | |
84 | |||||
85 | .query.panel { | ||||
86 | padding-right: $right-distance + $button-width; | ||||
87 | } | ||||
88 | |||||
89 | // Specify result button group layout | ||||
90 | |||||
91 | .query.button-group.button-panel { | ||||
92 | width: auto; | ||||
93 | text-align: right; | ||||
94 | vertical-align: top; | ||||
95 | display: block; | ||||
96 | line-height: 1.3em; | ||||
97 | > span { | ||||
98 | box-shadow: none; | ||||
99 | } | ||||
100 | } |