blob: 37d7d69d56a4eb74db41993ed912e33001ed8a23 [file] [log] [blame]
Nils Diewalda944fab2015-04-08 21:02:04 +00001@charset "utf-8";
Nils Diewaldab4d3ca2015-04-17 01:48:43 +00002@import "../util";
Nils Diewalda944fab2015-04-08 21:02:04 +00003
4$border-size: 2px;
Nils Diewald845282c2015-05-14 07:53:03 +00005$right-padding: 60px;
6
Nils Diewalda944fab2015-04-08 21:02:04 +00007
8/**
9 * Input field
10 */
11#q-field {
12 width: 100%;
13 margin: 0;
14 margin-bottom: 3px;
15 display: block;
16}
17
18header input {
Akron189b3592016-01-04 20:56:46 +010019 @include input-field;
Nils Diewalda944fab2015-04-08 21:02:04 +000020}
21
22#searchbar {
23 position: relative;
24 width: 100%;
Nils Diewald845282c2015-05-14 07:53:03 +000025 padding-right: $right-padding;
Nils Diewalda944fab2015-04-08 21:02:04 +000026 button[type=submit] {
27 position: absolute;
Nils Diewalda944fab2015-04-08 21:02:04 +000028 right: $right-distance;
Nils Diewalda944fab2015-04-08 21:02:04 +000029 &::after {
Nils Diewald2488d052015-04-09 21:46:02 +000030 content: $fa-search;
Nils Diewalda944fab2015-04-08 21:02:04 +000031 }
Nils Diewalda944fab2015-04-08 21:02:04 +000032 }
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 Diewaldfccfbcb2015-04-29 20:48:19 +000060 content: $fa-check;
Nils Diewalda944fab2015-04-08 21:02:04 +000061 }
62 }
63 }
64 &:checked + label span {
65 &:after {
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000066 content: $fa-checked;
Nils Diewalda944fab2015-04-08 21:02:04 +000067 }
68 }
Nils Diewald845282c2015-05-14 07:53:03 +000069}