blob: 6411d87378c11e5294fad7f039b795c6f00c32a0 [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 Diewalda944fab2015-04-08 21:02:04 +00005
6/**
7 * Input field
8 */
9#q-field {
10 width: 100%;
11 margin: 0;
12 margin-bottom: 3px;
13 display: block;
14}
15
16header input {
17 outline: none;
18 font-size: 11pt;
19 border: $border-size solid $nearly-white;
20 padding: 2px;
21}
22
23#searchbar {
24 position: relative;
25 width: 100%;
26 padding-right: 60px;
27 button[type=submit] {
28 position: absolute;
29 font-weight: normal;
30 @include choose-item;
31 padding: 0;
32 height: 100%;
33 top: 0;
34 right: $right-distance;
35 width: 30px;
36 cursor:pointer;
37 > span:nth-of-type(1) {
38 @include blind;
39 }
40 &::after {
41 font-family: "FontAwesome";
Nils Diewald2488d052015-04-09 21:46:02 +000042 content: $fa-search;
Nils Diewalda944fab2015-04-08 21:02:04 +000043 }
44 border: {
45 width: $border-size;
46 style: solid;
47 color: $nearly-white;
48 }
49 &:hover {
50 @include choose-hover;
51 }
52 &:active {
53 @include choose-active;
54 }
55
56 /**
57 * This is just for styling the last button,
58 * in case there are more than one buttons.
59 */
60 &:last-of-type {
61 @include box-sizing-box();
62 border: {
63 right-width: $border-size;
64 right-style: solid;
65 top-right-radius: $standard-border-radius;
66 bottom-right-radius: $standard-border-radius;
67 }
68 }
69 }
70 button + button {
71 right: 0;
72 }
73}
74
75/**
76 * Checkbox styling
77 * http://stackoverflow.com/questions/4148499/how-to-style-checkbox-using-css
78*/
79.checkbox {
80 display: none;
81 + label {
82 cursor: pointer;
83 span {
84 border-radius: 4px;
85 display: inline-block;
86 width: 1em; // 12px
87 height: 1em;
88 line-height: 1em; // 12px;
89 vertical-align: middle;
90 padding: 0;
91 margin-right: .2em;
92/*
93 background-color: $nearly-white;
94 &:hover {
95 border-color: $nearly-white;
96 }
97*/
98 &::after {
99 font-family: "FontAwesome";
Nils Diewaldfccfbcb2015-04-29 20:48:19 +0000100 content: $fa-check;
Nils Diewalda944fab2015-04-08 21:02:04 +0000101 }
102 }
103 }
104 &:checked + label span {
105 &:after {
Nils Diewaldfccfbcb2015-04-29 20:48:19 +0000106 content: $fa-checked;
Nils Diewalda944fab2015-04-08 21:02:04 +0000107 }
108 }
Nils Diewaldfccfbcb2015-04-29 20:48:19 +0000109}