blob: 37769316bfc8352b3361cfbba3c39670a6321ed3 [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;
Akron179b7c82018-05-28 19:33:38 +02005// $right-padding: 60px;
Nils Diewald845282c2015-05-14 07:53:03 +00006
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;
Akron36c020f2018-03-19 16:25:26 +010016
17 &::-webkit-search-cancel-button {
18 display: none;
19 }
Nils Diewalda944fab2015-04-08 21:02:04 +000020}
21
22header input {
Akron189b3592016-01-04 20:56:46 +010023 @include input-field;
Nils Diewalda944fab2015-04-08 21:02:04 +000024}
25
26#searchbar {
27 position: relative;
28 width: 100%;
Akron179b7c82018-05-28 19:33:38 +020029 padding-right: $right-distance + $button-width;
Nils Diewalda944fab2015-04-08 21:02:04 +000030 button[type=submit] {
31 position: absolute;
Nils Diewalda944fab2015-04-08 21:02:04 +000032 right: $right-distance;
Nils Diewalda944fab2015-04-08 21:02:04 +000033 &::after {
Nils Diewald2488d052015-04-09 21:46:02 +000034 content: $fa-search;
Nils Diewalda944fab2015-04-08 21:02:04 +000035 }
Nils Diewalda944fab2015-04-08 21:02:04 +000036 }
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 Diewaldfccfbcb2015-04-29 20:48:19 +000064 content: $fa-check;
Nils Diewalda944fab2015-04-08 21:02:04 +000065 }
66 }
67 }
68 &:checked + label span {
69 &:after {
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000070 content: $fa-checked;
Nils Diewalda944fab2015-04-08 21:02:04 +000071 }
72 }
Nils Diewald845282c2015-05-14 07:53:03 +000073}