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