blob: aa13a3c3cabe3f1e252c09c8ad1c2f94cd998b0d [file] [log] [blame]
Nils Diewalda944fab2015-04-08 21:02:04 +00001/**
Nils Diewald652e5f42015-05-10 18:11:45 +00002 * Some variables and mixins for Kalamar,
3 * other Sass styles will use.
4 */
5
6/**
Nils Diewalda944fab2015-04-08 21:02:04 +00007 * Official IDS colors
8 */
9$ids-orange-1: rgb(246, 168, 0);
10$ids-orange-2: rgb(242, 148, 0);
11$ids-grey-1: rgb(135, 136, 138);
12$ids-grey-2: rgb(217, 218, 219);
13$ids-blue-1: rgb( 0, 158, 224); // Pragmatik
14$ids-blue-2: rgb(188, 228, 247); // Pragmatik
15$ids-green-1: rgb( 99, 111, 7); // Grammatik
16$ids-green-2: rgb(227, 232, 163); // Grammatik
17$ids-pink-1: rgb(193, 0, 43); // Lexik
18$ids-pink-2: rgb(250, 243, 222); // Lexik
19
Akron08b82d62016-12-05 15:06:05 +010020$black: #333;
21
Nils Diewalda944fab2015-04-08 21:02:04 +000022/**
23 * Orange Colors
24 */
25$light-orange: #f4eebb; // #ffe56a;
26$middle-orange: #ffd080;
27$dark-orange: $ids-orange-1; // #ffa500;
28$darker-orange: #ff8000;
Nils Diewald0e6992a2015-04-14 20:13:52 +000029$darkest-orange: #e55d00;
Nils Diewalda944fab2015-04-08 21:02:04 +000030// $light-orange-2: #f4eebb;, #ffd080;
31// Yellow: #fff48d
32
33/**
34 * Green Colors
35 */
Nils Diewald7148c6f2015-05-04 15:07:53 +000036$dark-green: $ids-green-1; // #496000;
Akron2f979122018-07-25 17:00:23 +020037// $middle-green: lighten($ids-green-1, 5%);
38$middle-green: lighten($ids-green-1, 9%);
Nils Diewald7148c6f2015-05-04 15:07:53 +000039$light-green: lighten($ids-green-1, 13%); // #7ba400;
Akron2f979122018-07-25 17:00:23 +020040$lightest-green: #d8e38c; // lighten($ids-green-1, 26%);
Nils Diewalda944fab2015-04-08 21:02:04 +000041
42/**
43 * Blue Colors
44 */
Nils Diewald652e5f42015-05-10 18:11:45 +000045$light-blue: $ids-blue-2;
46$dark-blue: $ids-blue-1;
Nils Diewalda944fab2015-04-08 21:02:04 +000047$darkest-blue: darken($dark-blue, 40%);
48
Nils Diewalda1228622015-04-25 01:59:10 +000049/**
50 * Grey Colors
Nils Diewalda944fab2015-04-08 21:02:04 +000051 */
52$middle-grey: $ids-grey-1; // #999;
53$light-grey: $ids-grey-2; // #ddd;
Nils Diewald652e5f42015-05-10 18:11:45 +000054$dark-grey: darken($middle-grey, 15%);
55$nearly-white: #fefefe;
Nils Diewalda944fab2015-04-08 21:02:04 +000056
Nils Diewald652e5f42015-05-10 18:11:45 +000057/**
58 * Red Colors (no IDS relation)
59 */
Nils Diewalda944fab2015-04-08 21:02:04 +000060$middle-red: #c1002b;
61$light-red: lighten($middle-red, 40%);
62$dark-red: darken($middle-red, 40%);
63
Nils Diewald652e5f42015-05-10 18:11:45 +000064
65/**
66 * Basic shadows
67 */
Nils Diewalda944fab2015-04-08 21:02:04 +000068$dark-shadow: 1px 1px 1px rgba(0,0,0,0.3);
69$light-shadow: 1px 1px rgba(255,255,255,0.5);
70
Nils Diewalda944fab2015-04-08 21:02:04 +000071/**
72 * KWIC colors
73 */
74$kwic-border: $middle-grey;
75$kwic-line-noneven: $light-grey;
76$kwic-line-even: $nearly-white;
77$kwic-match-color: $dark-grey;
78$kwic-match-shadow: $light-shadow;
79
80$kwic-highlight-1: $middle-red;
81$kwic-highlight-2: $dark-blue; // #009ee0;
82$kwic-highlight-3: $dark-orange; // #f29400;
83$kwic-highlight-4: $light-green;
84
85$choose-bg: $light-grey;
86$choose-border-color: $middle-grey;
87$choose-border: 2px solid $choose-border-color;
88$choose-color: $dark-grey;
89$choose-blind-color: $middle-grey;
90$choose-box-shadow: 2px 2px 2px rgba(0,0,0,0.2);
91$standard-border-radius: 6px;
92$item-padding: 3pt 6pt;
Akron189b3592016-01-04 20:56:46 +010093$button-width: 30px;
94$base-padding: 8px;
Akronbec4a6a2018-07-10 14:45:15 +020095$border-size: 2px;
96$result-border-size: 1px;
Nils Diewald652e5f42015-05-10 18:11:45 +000097$total-results: $light-green;
98
Nils Diewalda944fab2015-04-08 21:02:04 +000099/**
Nils Diewald652e5f42015-05-10 18:11:45 +0000100 * Path information - relative to css!
Nils Diewalda944fab2015-04-08 21:02:04 +0000101 */
Nils Diewald652e5f42015-05-10 18:11:45 +0000102$img-path: '../img';
Nils Diewaldce328112015-04-08 22:48:18 +0000103$font-path: '../font';
Nils Diewalda944fab2015-04-08 21:02:04 +0000104
105/**
106 * Margins
107 */
Nils Diewald4347ee92015-05-04 20:32:48 +0000108$standard-margin: 40px;
Nils Diewald652e5f42015-05-10 18:11:45 +0000109$right-distance: $standard-margin;
Nils Diewald4347ee92015-05-04 20:32:48 +0000110$right-match-distance: $standard-margin / 2;
Nils Diewalda944fab2015-04-08 21:02:04 +0000111$logo-left-distance: 230px;
112
Nils Diewald652e5f42015-05-10 18:11:45 +0000113/**
114 * Mixin for blind elements
115 * (e.g., spans in elements with an icon background)
116 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000117@mixin blind {
118 position: absolute;
119 margin-left: -3000px;
120}
121
Nils Diewald652e5f42015-05-10 18:11:45 +0000122
123/**
124 * Chooseable items (default)
125 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000126@mixin choose-item {
127 color: $choose-color;
128 background-color: $choose-bg;
129 border-color: $choose-border-color;
130 text-shadow: $light-shadow;
131}
132
Nils Diewald652e5f42015-05-10 18:11:45 +0000133/**
134 * Chooseable items (mouse over)
135 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000136@mixin choose-hover {
137 color: $nearly-white;
138 text-shadow: none;
139 background-color: $dark-orange;
140 border-color: $darker-orange;
141}
142
Nils Diewald652e5f42015-05-10 18:11:45 +0000143/**
144 * Chooseable items (not available)
145 */
Nils Diewalda1228622015-04-25 01:59:10 +0000146@mixin choose-inactive {
147 color: lighten($choose-color, 20%);
148 background-color: lighten($choose-bg, 20%);
149 border-color: transparent;
150 text-shadow: none;
151}
152
Nils Diewald652e5f42015-05-10 18:11:45 +0000153/**
154 * Chooseable items (active)
155 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000156@mixin choose-active {
157 color: $dark-green;
158 text-shadow: none;
159 background-color: $light-green;
160 border-color: $dark-green;
161}
162
Nils Diewald652e5f42015-05-10 18:11:45 +0000163/**
164 * Chooseable items (action: remove something)
165 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000166@mixin choose-remove {
167 color: $nearly-white;
168 text-shadow: none;
169 background-color: $middle-red;
170 border-color: $dark-red;
171}
172
Akron2f979122018-07-25 17:00:23 +0200173@mixin cell-info {
174 text-overflow: ellipsis;
175 white-space: nowrap;
176 max-width: 25em;
177 overflow: hidden;
178 padding: 1px 6px;
179 margin: 0px;
180}
181
Nils Diewald652e5f42015-05-10 18:11:45 +0000182/**
183 * Mixin for basic color transition
184 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000185@mixin color-transition {
186 transition: color 0.3s ease 0s;
187}
188
Akron189b3592016-01-04 20:56:46 +0100189@mixin input-field {
190 outline: none;
191 font-size: 11pt;
192 border: $border-size solid $nearly-white;
193 padding: 2px;
194 margin: 0;
195}
196
Nils Diewald652e5f42015-05-10 18:11:45 +0000197/**
198 * Mixing for basic text padding
199 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000200@mixin standard-text-padding {
201 padding-left: .4em;
202 padding-right: .4em;
203}
204
Nils Diewald652e5f42015-05-10 18:11:45 +0000205
206/**
207 * Mixing for correct box sizing (probably not necessary)
Akron308db382016-05-30 22:34:07 +0200208 * DEPRECATED
Nils Diewald652e5f42015-05-10 18:11:45 +0000209 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000210@mixin box-sizing-box() {
211 -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
212 -moz-box-sizing: border-box; /* Firefox, other Gecko */
213 box-sizing: border-box; /* Opera/IE 8+ */
214}
215
Nils Diewald652e5f42015-05-10 18:11:45 +0000216/**
Akron67b51812017-05-01 14:10:55 +0200217 * Noisy background
Nils Diewald652e5f42015-05-10 18:11:45 +0000218 */
Nils Diewald1c546922015-04-13 01:56:19 +0000219@mixin light-noise {
220 background-image:url('#{$img-path}/noise.png');
221}
Nils Diewalda944fab2015-04-08 21:02:04 +0000222
Nils Diewald652e5f42015-05-10 18:11:45 +0000223/**
224 * Mixin for no-appearance rules
225 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000226// https://css-tricks.com/almanac/properties/a/appearance/
227@mixin no-appearance {
228 -webkit-appearance:none;
229 -moz-appearance:none;
230 appearance:none;
231}
Nils Diewald2488d052015-04-09 21:46:02 +0000232
233
234/**
Nils Diewald652e5f42015-05-10 18:11:45 +0000235 * Font Awesome symbol table
Nils Diewald2488d052015-04-09 21:46:02 +0000236 */
Nils Diewald7c8ced22015-04-15 19:21:00 +0000237$fa-bars: "\f0c9";
238$fa-extlink: "\f08e";
239$fa-up: "\f0d8";
240$fa-down: "\f0d7";
241$fa-close: "\f00d";
Akronc56cf2d2016-11-09 22:02:38 +0100242$fa-download: "\f019";
Nils Diewald7c8ced22015-04-15 19:21:00 +0000243$fa-info: "\f05a";
244$fa-elipsis: "\f141";
245$fa-previous: "\f0d9";
246$fa-next: "\f0da";
247$fa-search: "\f002";
Nils Diewald652e5f42015-05-10 18:11:45 +0000248$fa-rewrite: "\f040";
Nils Diewald7c8ced22015-04-15 19:21:00 +0000249$fa-login: "\f090";
250$fa-logout: "\f08b";
251$fa-tutorial: "\f19d";
252$fa-left-align: "\f036";
253$fa-right-align: "\f038";
Nils Diewald652e5f42015-05-10 18:11:45 +0000254$fa-question: "\f128";
Nils Diewaldfccfbcb2015-04-29 20:48:19 +0000255$fa-checked: "\f046";
Nils Diewald845282c2015-05-14 07:53:03 +0000256$fa-check: "\f096";
Akron0669f2f2015-05-28 20:27:09 +0200257$fa-code: "\f121";
Akron9a5b1e12016-12-06 18:18:23 +0100258$fa-marked: "\f005";
Akron04905352018-01-24 02:06:32 +0100259// $fa-metadata: "\f067";
260$fa-metadata: "\f055";
Akronfbf3a782017-06-28 17:34:28 +0200261$fa-to-query: "\f102";
Akron7991b192018-07-09 17:28:43 +0200262$fa-cut: "\f0c4";
263$fa-plugin: "\f1e6";