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