blob: bb82ca02ca8ae321e39b083dcb8fc50ecbfdfa24 [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
Akron49f88cc2018-09-11 11:06:19 +020099$left-width: 176px;
100$border-size: 2px;
101$left-distance: $left-width + ($border-size * 2);
102
Nils Diewalda944fab2015-04-08 21:02:04 +0000103/**
Nils Diewald652e5f42015-05-10 18:11:45 +0000104 * Path information - relative to css!
Nils Diewalda944fab2015-04-08 21:02:04 +0000105 */
Nils Diewald652e5f42015-05-10 18:11:45 +0000106$img-path: '../img';
Nils Diewaldce328112015-04-08 22:48:18 +0000107$font-path: '../font';
Nils Diewalda944fab2015-04-08 21:02:04 +0000108
109/**
110 * Margins
111 */
Nils Diewald4347ee92015-05-04 20:32:48 +0000112$standard-margin: 40px;
Nils Diewald652e5f42015-05-10 18:11:45 +0000113$right-distance: $standard-margin;
Nils Diewald4347ee92015-05-04 20:32:48 +0000114$right-match-distance: $standard-margin / 2;
Nils Diewalda944fab2015-04-08 21:02:04 +0000115$logo-left-distance: 230px;
116
Nils Diewald652e5f42015-05-10 18:11:45 +0000117/**
118 * Mixin for blind elements
119 * (e.g., spans in elements with an icon background)
120 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000121@mixin blind {
122 position: absolute;
123 margin-left: -3000px;
124}
125
Nils Diewald652e5f42015-05-10 18:11:45 +0000126
127/**
128 * Chooseable items (default)
129 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000130@mixin choose-item {
131 color: $choose-color;
132 background-color: $choose-bg;
133 border-color: $choose-border-color;
134 text-shadow: $light-shadow;
135}
136
Nils Diewald652e5f42015-05-10 18:11:45 +0000137/**
138 * Chooseable items (mouse over)
139 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000140@mixin choose-hover {
141 color: $nearly-white;
142 text-shadow: none;
143 background-color: $dark-orange;
144 border-color: $darker-orange;
145}
146
Nils Diewald652e5f42015-05-10 18:11:45 +0000147/**
148 * Chooseable items (not available)
149 */
Nils Diewalda1228622015-04-25 01:59:10 +0000150@mixin choose-inactive {
151 color: lighten($choose-color, 20%);
152 background-color: lighten($choose-bg, 20%);
153 border-color: transparent;
154 text-shadow: none;
155}
156
Nils Diewald652e5f42015-05-10 18:11:45 +0000157/**
158 * Chooseable items (active)
159 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000160@mixin choose-active {
161 color: $dark-green;
162 text-shadow: none;
163 background-color: $light-green;
164 border-color: $dark-green;
165}
166
Nils Diewald652e5f42015-05-10 18:11:45 +0000167/**
168 * Chooseable items (action: remove something)
169 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000170@mixin choose-remove {
171 color: $nearly-white;
172 text-shadow: none;
173 background-color: $middle-red;
174 border-color: $dark-red;
175}
176
Akron2f979122018-07-25 17:00:23 +0200177@mixin cell-info {
178 text-overflow: ellipsis;
179 white-space: nowrap;
180 max-width: 25em;
181 overflow: hidden;
182 padding: 1px 6px;
183 margin: 0px;
184}
185
Nils Diewald652e5f42015-05-10 18:11:45 +0000186/**
187 * Mixin for basic color transition
188 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000189@mixin color-transition {
190 transition: color 0.3s ease 0s;
191}
192
Akron189b3592016-01-04 20:56:46 +0100193@mixin input-field {
194 outline: none;
195 font-size: 11pt;
196 border: $border-size solid $nearly-white;
197 padding: 2px;
198 margin: 0;
199}
200
Nils Diewald652e5f42015-05-10 18:11:45 +0000201/**
202 * Mixing for basic text padding
203 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000204@mixin standard-text-padding {
205 padding-left: .4em;
206 padding-right: .4em;
207}
208
Nils Diewald652e5f42015-05-10 18:11:45 +0000209
210/**
211 * Mixing for correct box sizing (probably not necessary)
Akron308db382016-05-30 22:34:07 +0200212 * DEPRECATED
Nils Diewald652e5f42015-05-10 18:11:45 +0000213 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000214@mixin box-sizing-box() {
215 -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
216 -moz-box-sizing: border-box; /* Firefox, other Gecko */
217 box-sizing: border-box; /* Opera/IE 8+ */
218}
219
Nils Diewald652e5f42015-05-10 18:11:45 +0000220/**
Akron67b51812017-05-01 14:10:55 +0200221 * Noisy background
Nils Diewald652e5f42015-05-10 18:11:45 +0000222 */
Nils Diewald1c546922015-04-13 01:56:19 +0000223@mixin light-noise {
224 background-image:url('#{$img-path}/noise.png');
225}
Nils Diewalda944fab2015-04-08 21:02:04 +0000226
Nils Diewald652e5f42015-05-10 18:11:45 +0000227/**
228 * Mixin for no-appearance rules
229 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000230// https://css-tricks.com/almanac/properties/a/appearance/
231@mixin no-appearance {
232 -webkit-appearance:none;
233 -moz-appearance:none;
234 appearance:none;
235}
Nils Diewald2488d052015-04-09 21:46:02 +0000236
237
238/**
Nils Diewald652e5f42015-05-10 18:11:45 +0000239 * Font Awesome symbol table
Nils Diewald2488d052015-04-09 21:46:02 +0000240 */
Akron88d1ccc2018-08-14 17:22:05 +0200241$fa-bars: "\f0c9";
242$fa-extlink: "\f08e";
243$fa-up: "\f0d8";
244$fa-down: "\f0d7";
Akronec6bb8e2018-08-29 13:07:56 +0200245$fa-minimize: "\f0d8";
Akron88d1ccc2018-08-14 17:22:05 +0200246$fa-close: "\f00d";
247$fa-download: "\f019";
248$fa-info: "\f05a";
249$fa-elipsis: "\f141";
250$fa-previous: "\f0d9";
251$fa-next: "\f0da";
252$fa-search: "\f002";
253$fa-rewrite: "\f040";
254$fa-login: "\f090";
255$fa-logout: "\f08b";
256$fa-tutorial: "\f19d";
257$fa-left-align: "\f036";
258$fa-right-align: "\f038";
259$fa-center-align: "\f037";
260$fa-question: "\f128";
261$fa-checked: "\f046";
262$fa-check: "\f096";
263$fa-code: "\f121";
264$fa-marked: "\f005";
Akron04905352018-01-24 02:06:32 +0100265// $fa-metadata: "\f067";
Akron88d1ccc2018-08-14 17:22:05 +0200266$fa-metadata: "\f055";
267$fa-to-query: "\f102";
268$fa-cut: "\f0c4";
Akron3ad46942018-08-22 16:47:14 +0200269$fa-plugin: "\f1e6";
270$fa-referto: "\f0c5";