blob: ab86913577b8e3b21fa6337dd4e206f8c4da9b18 [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;
Akron2d0d96d2019-11-18 19:49:50 +01005$qmargin: 3px;
Akron179b7c82018-05-28 19:33:38 +02006// $right-padding: 60px;
Nils Diewald845282c2015-05-14 07:53:03 +00007
Nils Diewalda944fab2015-04-08 21:02:04 +00008
Akron2d0d96d2019-11-18 19:49:50 +01009
Nils Diewalda944fab2015-04-08 21:02:04 +000010/**
11 * Input field
12 */
13#q-field {
14 width: 100%;
15 margin: 0;
Akron2d0d96d2019-11-18 19:49:50 +010016 margin-bottom: $qmargin;
Nils Diewalda944fab2015-04-08 21:02:04 +000017 display: block;
Akron36c020f2018-03-19 16:25:26 +010018
19 &::-webkit-search-cancel-button {
20 display: none;
21 }
Nils Diewalda944fab2015-04-08 21:02:04 +000022}
23
24header input {
Akron189b3592016-01-04 20:56:46 +010025 @include input-field;
Nils Diewalda944fab2015-04-08 21:02:04 +000026}
27
28#searchbar {
29 position: relative;
30 width: 100%;
Akron2d0d96d2019-11-18 19:49:50 +010031 padding: 0;
Akron179b7c82018-05-28 19:33:38 +020032 padding-right: $right-distance + $button-width;
Nils Diewalda944fab2015-04-08 21:02:04 +000033 button[type=submit] {
34 position: absolute;
Akron2d0d96d2019-11-18 19:49:50 +010035 padding: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000036 right: $right-distance;
Nils Diewalda944fab2015-04-08 21:02:04 +000037 &::after {
Nils Diewald2488d052015-04-09 21:46:02 +000038 content: $fa-search;
Nils Diewalda944fab2015-04-08 21:02:04 +000039 }
Nils Diewalda944fab2015-04-08 21:02:04 +000040 }
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 Diewaldfccfbcb2015-04-29 20:48:19 +000068 content: $fa-check;
Nils Diewalda944fab2015-04-08 21:02:04 +000069 }
70 }
71 }
72 &:checked + label span {
73 &:after {
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000074 content: $fa-checked;
Nils Diewalda944fab2015-04-08 21:02:04 +000075 }
76 }
Nils Diewald845282c2015-05-14 07:53:03 +000077}
Akron2d0d96d2019-11-18 19:49:50 +010078
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}