blob: e0f241e82931d2f5aa6d4609cdb59dba44defdc5 [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 {
19 outline: none;
20 font-size: 11pt;
21 border: $border-size solid $nearly-white;
22 padding: 2px;
23}
24
25#searchbar {
26 position: relative;
27 width: 100%;
Nils Diewald845282c2015-05-14 07:53:03 +000028 padding-right: $right-padding;
Nils Diewalda944fab2015-04-08 21:02:04 +000029 button[type=submit] {
30 position: absolute;
31 font-weight: normal;
32 @include choose-item;
33 padding: 0;
34 height: 100%;
35 top: 0;
36 right: $right-distance;
37 width: 30px;
38 cursor:pointer;
39 > span:nth-of-type(1) {
40 @include blind;
41 }
42 &::after {
43 font-family: "FontAwesome";
Nils Diewald2488d052015-04-09 21:46:02 +000044 content: $fa-search;
Nils Diewalda944fab2015-04-08 21:02:04 +000045 }
46 border: {
47 width: $border-size;
48 style: solid;
49 color: $nearly-white;
50 }
51 &:hover {
52 @include choose-hover;
53 }
54 &:active {
55 @include choose-active;
56 }
57
58 /**
59 * This is just for styling the last button,
60 * in case there are more than one buttons.
61 */
62 &:last-of-type {
63 @include box-sizing-box();
64 border: {
65 right-width: $border-size;
66 right-style: solid;
67 top-right-radius: $standard-border-radius;
68 bottom-right-radius: $standard-border-radius;
69 }
70 }
71 }
72 button + button {
73 right: 0;
74 }
75}
76
Nils Diewald845282c2015-05-14 07:53:03 +000077#koralquery {
78 margin-top: 10px;
79 margin-right: 40px;
80 border: {
81 radius: $standard-border-radius;
82 color: $dark-green;
83 style: solid;
84 width: $border-size;
85 }
86 white-space: pre;
87 background-color: $nearly-white;
88 color: $dark-grey;
89}
90
91
Nils Diewalda944fab2015-04-08 21:02:04 +000092/**
93 * Checkbox styling
94 * http://stackoverflow.com/questions/4148499/how-to-style-checkbox-using-css
95*/
96.checkbox {
97 display: none;
98 + label {
99 cursor: pointer;
100 span {
101 border-radius: 4px;
102 display: inline-block;
103 width: 1em; // 12px
104 height: 1em;
105 line-height: 1em; // 12px;
106 vertical-align: middle;
107 padding: 0;
108 margin-right: .2em;
109/*
110 background-color: $nearly-white;
111 &:hover {
112 border-color: $nearly-white;
113 }
114*/
115 &::after {
116 font-family: "FontAwesome";
Nils Diewaldfccfbcb2015-04-29 20:48:19 +0000117 content: $fa-check;
Nils Diewalda944fab2015-04-08 21:02:04 +0000118 }
119 }
120 }
121 &:checked + label span {
122 &:after {
Nils Diewaldfccfbcb2015-04-29 20:48:19 +0000123 content: $fa-checked;
Nils Diewalda944fab2015-04-08 21:02:04 +0000124 }
125 }
Nils Diewald845282c2015-05-14 07:53:03 +0000126}