blob: 4fee3900d8468e1ca2d4e4e6ec4ead6c692a3419 [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 }
Akron6a535d42015-08-26 20:16:58 +020051 &:hover, &:focus {
Nils Diewalda944fab2015-04-08 21:02:04 +000052 @include choose-hover;
53 }
Akron6a535d42015-08-26 20:16:58 +020054 &::-moz-focus-inner {
55 border: none;
56 }
Nils Diewalda944fab2015-04-08 21:02:04 +000057 &:active {
58 @include choose-active;
59 }
60
61 /**
62 * This is just for styling the last button,
63 * in case there are more than one buttons.
64 */
65 &:last-of-type {
66 @include box-sizing-box();
67 border: {
68 right-width: $border-size;
69 right-style: solid;
70 top-right-radius: $standard-border-radius;
71 bottom-right-radius: $standard-border-radius;
72 }
73 }
74 }
75 button + button {
76 right: 0;
77 }
78}
79
80/**
81 * Checkbox styling
82 * http://stackoverflow.com/questions/4148499/how-to-style-checkbox-using-css
83*/
84.checkbox {
85 display: none;
86 + label {
87 cursor: pointer;
88 span {
89 border-radius: 4px;
90 display: inline-block;
91 width: 1em; // 12px
92 height: 1em;
93 line-height: 1em; // 12px;
94 vertical-align: middle;
95 padding: 0;
96 margin-right: .2em;
97/*
98 background-color: $nearly-white;
99 &:hover {
100 border-color: $nearly-white;
101 }
102*/
103 &::after {
104 font-family: "FontAwesome";
Nils Diewaldfccfbcb2015-04-29 20:48:19 +0000105 content: $fa-check;
Nils Diewalda944fab2015-04-08 21:02:04 +0000106 }
107 }
108 }
109 &:checked + label span {
110 &:after {
Nils Diewaldfccfbcb2015-04-29 20:48:19 +0000111 content: $fa-checked;
Nils Diewalda944fab2015-04-08 21:02:04 +0000112 }
113 }
Nils Diewald845282c2015-05-14 07:53:03 +0000114}