blob: 7e34b27babc011c2d827f68dfe4808efa8926d6f [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 }
Akron1be6c1c2020-01-07 15:29:58 +010022
23 &.loading {
24 background-color: $light-orange;
25 background-image: none;
26 }
Nils Diewalda944fab2015-04-08 21:02:04 +000027}
28
29header input {
Akron189b3592016-01-04 20:56:46 +010030 @include input-field;
Nils Diewalda944fab2015-04-08 21:02:04 +000031}
32
33#searchbar {
34 position: relative;
35 width: 100%;
Akron2d0d96d2019-11-18 19:49:50 +010036 padding: 0;
Akron179b7c82018-05-28 19:33:38 +020037 padding-right: $right-distance + $button-width;
Nils Diewalda944fab2015-04-08 21:02:04 +000038 button[type=submit] {
39 position: absolute;
Akron2d0d96d2019-11-18 19:49:50 +010040 padding: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000041 right: $right-distance;
Akron1be6c1c2020-01-07 15:29:58 +010042 &:not(.loading)::after {
Nils Diewald2488d052015-04-09 21:46:02 +000043 content: $fa-search;
Nils Diewalda944fab2015-04-08 21:02:04 +000044 }
Nils Diewalda944fab2015-04-08 21:02:04 +000045 }
46}
47
48/**
49 * Checkbox styling
50 * http://stackoverflow.com/questions/4148499/how-to-style-checkbox-using-css
51*/
52.checkbox {
53 display: none;
54 + label {
55 cursor: pointer;
56 span {
57 border-radius: 4px;
58 display: inline-block;
59 width: 1em; // 12px
60 height: 1em;
61 line-height: 1em; // 12px;
62 vertical-align: middle;
63 padding: 0;
64 margin-right: .2em;
65/*
66 background-color: $nearly-white;
67 &:hover {
68 border-color: $nearly-white;
69 }
70*/
71 &::after {
72 font-family: "FontAwesome";
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000073 content: $fa-check;
Nils Diewalda944fab2015-04-08 21:02:04 +000074 }
75 }
76 }
77 &:checked + label span {
78 &:after {
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000079 content: $fa-checked;
Nils Diewalda944fab2015-04-08 21:02:04 +000080 }
81 }
Nils Diewald845282c2015-05-14 07:53:03 +000082}
Akron2d0d96d2019-11-18 19:49:50 +010083
84
85.query.panel {
86 padding-right: $right-distance + $button-width;
87}
88
89// Specify result button group layout
90
91.query.button-group.button-panel {
92 width: auto;
93 text-align: right;
94 vertical-align: top;
95 display: block;
96 line-height: 1.3em;
97 > span {
98 box-shadow: none;
99 }
100}