blob: d383e73c37d63ff2ea9a122e82ea790ad09cd407 [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
77/**
78 * Checkbox styling
79 * http://stackoverflow.com/questions/4148499/how-to-style-checkbox-using-css
80*/
81.checkbox {
82 display: none;
83 + label {
84 cursor: pointer;
85 span {
86 border-radius: 4px;
87 display: inline-block;
88 width: 1em; // 12px
89 height: 1em;
90 line-height: 1em; // 12px;
91 vertical-align: middle;
92 padding: 0;
93 margin-right: .2em;
94/*
95 background-color: $nearly-white;
96 &:hover {
97 border-color: $nearly-white;
98 }
99*/
100 &::after {
101 font-family: "FontAwesome";
Nils Diewaldfccfbcb2015-04-29 20:48:19 +0000102 content: $fa-check;
Nils Diewalda944fab2015-04-08 21:02:04 +0000103 }
104 }
105 }
106 &:checked + label span {
107 &:after {
Nils Diewaldfccfbcb2015-04-29 20:48:19 +0000108 content: $fa-checked;
Nils Diewalda944fab2015-04-08 21:02:04 +0000109 }
110 }
Nils Diewald845282c2015-05-14 07:53:03 +0000111}