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 | 179b7c8 | 2018-05-28 19:33:38 +0200 | [diff] [blame] | 5 | // $right-padding: 60px; |
Nils Diewald | 845282c | 2015-05-14 07:53:03 +0000 | [diff] [blame] | 6 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 7 | |
8 | /** | ||||
9 | * Input field | ||||
10 | */ | ||||
11 | #q-field { | ||||
12 | width: 100%; | ||||
13 | margin: 0; | ||||
14 | margin-bottom: 3px; | ||||
15 | display: block; | ||||
Akron | 36c020f | 2018-03-19 16:25:26 +0100 | [diff] [blame] | 16 | |
17 | &::-webkit-search-cancel-button { | ||||
18 | display: none; | ||||
19 | } | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 20 | } |
21 | |||||
22 | header input { | ||||
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 23 | @include input-field; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 24 | } |
25 | |||||
26 | #searchbar { | ||||
27 | position: relative; | ||||
28 | width: 100%; | ||||
Akron | 179b7c8 | 2018-05-28 19:33:38 +0200 | [diff] [blame] | 29 | padding-right: $right-distance + $button-width; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 30 | button[type=submit] { |
31 | position: absolute; | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 32 | right: $right-distance; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 33 | &::after { |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 34 | content: $fa-search; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 35 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 36 | } |
37 | } | ||||
38 | |||||
39 | /** | ||||
40 | * Checkbox styling | ||||
41 | * http://stackoverflow.com/questions/4148499/how-to-style-checkbox-using-css | ||||
42 | */ | ||||
43 | .checkbox { | ||||
44 | display: none; | ||||
45 | + label { | ||||
46 | cursor: pointer; | ||||
47 | span { | ||||
48 | border-radius: 4px; | ||||
49 | display: inline-block; | ||||
50 | width: 1em; // 12px | ||||
51 | height: 1em; | ||||
52 | line-height: 1em; // 12px; | ||||
53 | vertical-align: middle; | ||||
54 | padding: 0; | ||||
55 | margin-right: .2em; | ||||
56 | /* | ||||
57 | background-color: $nearly-white; | ||||
58 | &:hover { | ||||
59 | border-color: $nearly-white; | ||||
60 | } | ||||
61 | */ | ||||
62 | &::after { | ||||
63 | font-family: "FontAwesome"; | ||||
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 64 | content: $fa-check; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 65 | } |
66 | } | ||||
67 | } | ||||
68 | &:checked + label span { | ||||
69 | &:after { | ||||
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 70 | content: $fa-checked; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 71 | } |
72 | } | ||||
Nils Diewald | 845282c | 2015-05-14 07:53:03 +0000 | [diff] [blame] | 73 | } |