blob: 5ac8c0c8b090981c70f961666e449c2e638639f0 [file] [log] [blame]
Nils Diewalda297f062015-04-02 00:23:46 +00001@charset "utf-8";
2@import "util";
3
4$border-size: 2px;
5$right-distance: 30px;
6
7#q-field {
8 @include box-sizing-box();
9 outline: none;
10 font-size: 11pt;
11 border: $border-size solid $nearly-white;
12 padding: 2px;
13 width: 100%;
14 margin: 0;
15 display: block;
16}
17
18#searchbar {
19 position: relative;
20 @include box-sizing-box();
21 width: 100%;
22 padding-right: 60px;
23 button[type=submit] {
24 position: absolute;
25 font-weight: normal;
26 @include choose-item;
27 padding: 0;
28 height: 100%;
29 top: 0;
30 right: $right-distance;
31 width: 30px;
32 cursor:pointer;
33 > span:nth-of-type(1) {
34 @include blind;
35 }
36 &::after {
37 font-family: "FontAwesome";
38 content: "\f002";
39 }
40 border: {
41 width: $border-size;
42 style: solid;
43 color: $nearly-white;
44 }
45 &:hover {
46 @include choose-hover;
47 }
48 &:active {
49 @include choose-active;
50 }
51
52 /**
53 * This is just for styling the last button,
54 * in case there are more than one buttons.
55 */
56 &:last-of-type {
57 @include box-sizing-box();
58 border: {
59 right-width: $border-size;
60 right-style: solid;
61 top-right-radius: $standard-border-radius;
62 bottom-right-radius: $standard-border-radius;
63 }
64 }
65 }
66 button + button {
67 right: 0;
68 }
69}
70
71/**
72 * Checkbox styling
73 * http://stackoverflow.com/questions/4148499/how-to-style-checkbox-using-css
74*/
75.checkbox {
76 display: none;
77 + label {
78 cursor: pointer;
79 span {
80 border-radius: 4px;
81 display: inline-block;
82 width: 1em; // 12px
83 height: 1em;
84 line-height: 1em; // 12px;
85 vertical-align: middle;
86 padding: 0;
87 margin-right: .2em;
88/*
89 background-color: $nearly-white;
90 &:hover {
91 border-color: $nearly-white;
92 }
93*/
94 &:after {
95 font-family: "FontAwesome";
96 content: '\f096';
97 }
98 }
99 }
100 &:checked + label span {
101 &:after {
102 content:"\f046";
103 }
104 }
105}
106
107#button-right {
108 display: inline-block;
109 float: right;
110 color: $nearly-white;
111 line-height: 2em;
112 margin-right: $right-distance;
113 > a {
114 color: $nearly-white;
115 cursor:pointer;
116 position: relative;
117 font-size: 120%;
118 > span {
119 @include blind;
120 }
121 }
122 > a::after {
123 font-family: 'FontAwesome';
124 }
125 > a.tutorial::after {
126 content: '\f19d';
127 }
128 > a.align.left::after {
129 content: '\f036';
130 }
131 > a.align.right::after {
132 content: '\f038';
133 }
134}