blob: 90e20b1b20fd048a6fd0a0fc38dc2d8efa03e97a [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%);
hebasta94f8ba62018-12-11 15:29:10 +010041$grey-green: #bcc387;
Nils Diewalda944fab2015-04-08 21:02:04 +000042
43/**
44 * Blue Colors
45 */
Nils Diewald652e5f42015-05-10 18:11:45 +000046$light-blue: $ids-blue-2;
47$dark-blue: $ids-blue-1;
Nils Diewalda944fab2015-04-08 21:02:04 +000048$darkest-blue: darken($dark-blue, 40%);
49
Nils Diewalda1228622015-04-25 01:59:10 +000050/**
51 * Grey Colors
Nils Diewalda944fab2015-04-08 21:02:04 +000052 */
53$middle-grey: $ids-grey-1; // #999;
hebasta94f8ba62018-12-11 15:29:10 +010054$semilight-grey: #8d8d8d;
Nils Diewalda944fab2015-04-08 21:02:04 +000055$light-grey: $ids-grey-2; // #ddd;
Nils Diewald652e5f42015-05-10 18:11:45 +000056$dark-grey: darken($middle-grey, 15%);
57$nearly-white: #fefefe;
Nils Diewald652e5f42015-05-10 18:11:45 +000058/**
59 * Red Colors (no IDS relation)
60 */
Nils Diewalda944fab2015-04-08 21:02:04 +000061$middle-red: #c1002b;
62$light-red: lighten($middle-red, 40%);
63$dark-red: darken($middle-red, 40%);
64
Nils Diewald652e5f42015-05-10 18:11:45 +000065
66/**
67 * Basic shadows
68 */
Nils Diewalda944fab2015-04-08 21:02:04 +000069$dark-shadow: 1px 1px 1px rgba(0,0,0,0.3);
70$light-shadow: 1px 1px rgba(255,255,255,0.5);
71
Nils Diewalda944fab2015-04-08 21:02:04 +000072/**
73 * KWIC colors
74 */
75$kwic-border: $middle-grey;
76$kwic-line-noneven: $light-grey;
77$kwic-line-even: $nearly-white;
78$kwic-match-color: $dark-grey;
79$kwic-match-shadow: $light-shadow;
80
81$kwic-highlight-1: $middle-red;
82$kwic-highlight-2: $dark-blue; // #009ee0;
83$kwic-highlight-3: $dark-orange; // #f29400;
84$kwic-highlight-4: $light-green;
85
86$choose-bg: $light-grey;
87$choose-border-color: $middle-grey;
88$choose-border: 2px solid $choose-border-color;
89$choose-color: $dark-grey;
90$choose-blind-color: $middle-grey;
91$choose-box-shadow: 2px 2px 2px rgba(0,0,0,0.2);
92$standard-border-radius: 6px;
93$item-padding: 3pt 6pt;
Akron189b3592016-01-04 20:56:46 +010094$button-width: 30px;
95$base-padding: 8px;
Akronbec4a6a2018-07-10 14:45:15 +020096$border-size: 2px;
97$result-border-size: 1px;
Nils Diewald652e5f42015-05-10 18:11:45 +000098$total-results: $light-green;
99
Akron49f88cc2018-09-11 11:06:19 +0200100$left-width: 176px;
101$border-size: 2px;
102$left-distance: $left-width + ($border-size * 2);
103
Nils Diewalda944fab2015-04-08 21:02:04 +0000104/**
Nils Diewald652e5f42015-05-10 18:11:45 +0000105 * Path information - relative to css!
Nils Diewalda944fab2015-04-08 21:02:04 +0000106 */
Nils Diewald652e5f42015-05-10 18:11:45 +0000107$img-path: '../img';
Nils Diewaldce328112015-04-08 22:48:18 +0000108$font-path: '../font';
Nils Diewalda944fab2015-04-08 21:02:04 +0000109
110/**
111 * Margins
112 */
Nils Diewald4347ee92015-05-04 20:32:48 +0000113$standard-margin: 40px;
Nils Diewald652e5f42015-05-10 18:11:45 +0000114$right-distance: $standard-margin;
Nils Diewald4347ee92015-05-04 20:32:48 +0000115$right-match-distance: $standard-margin / 2;
Nils Diewalda944fab2015-04-08 21:02:04 +0000116$logo-left-distance: 230px;
117
Nils Diewald652e5f42015-05-10 18:11:45 +0000118/**
119 * Mixin for blind elements
120 * (e.g., spans in elements with an icon background)
121 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000122@mixin blind {
123 position: absolute;
124 margin-left: -3000px;
125}
126
Nils Diewald652e5f42015-05-10 18:11:45 +0000127
128/**
129 * Chooseable items (default)
130 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000131@mixin choose-item {
132 color: $choose-color;
133 background-color: $choose-bg;
134 border-color: $choose-border-color;
135 text-shadow: $light-shadow;
136}
137
Nils Diewald652e5f42015-05-10 18:11:45 +0000138/**
139 * Chooseable items (mouse over)
140 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000141@mixin choose-hover {
142 color: $nearly-white;
143 text-shadow: none;
144 background-color: $dark-orange;
145 border-color: $darker-orange;
146}
147
Nils Diewald652e5f42015-05-10 18:11:45 +0000148/**
149 * Chooseable items (not available)
150 */
Nils Diewalda1228622015-04-25 01:59:10 +0000151@mixin choose-inactive {
152 color: lighten($choose-color, 20%);
153 background-color: lighten($choose-bg, 20%);
154 border-color: transparent;
155 text-shadow: none;
156}
157
Nils Diewald652e5f42015-05-10 18:11:45 +0000158/**
159 * Chooseable items (active)
160 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000161@mixin choose-active {
162 color: $dark-green;
163 text-shadow: none;
164 background-color: $light-green;
165 border-color: $dark-green;
166}
167
Nils Diewald652e5f42015-05-10 18:11:45 +0000168/**
169 * Chooseable items (action: remove something)
170 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000171@mixin choose-remove {
172 color: $nearly-white;
173 text-shadow: none;
174 background-color: $middle-red;
175 border-color: $dark-red;
176}
177
Akron2f979122018-07-25 17:00:23 +0200178@mixin cell-info {
179 text-overflow: ellipsis;
180 white-space: nowrap;
181 max-width: 25em;
182 overflow: hidden;
183 padding: 1px 6px;
184 margin: 0px;
185}
186
Nils Diewald652e5f42015-05-10 18:11:45 +0000187/**
188 * Mixin for basic color transition
189 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000190@mixin color-transition {
191 transition: color 0.3s ease 0s;
192}
193
Akron189b3592016-01-04 20:56:46 +0100194@mixin input-field {
195 outline: none;
196 font-size: 11pt;
197 border: $border-size solid $nearly-white;
198 padding: 2px;
199 margin: 0;
200}
201
Nils Diewald652e5f42015-05-10 18:11:45 +0000202/**
203 * Mixing for basic text padding
204 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000205@mixin standard-text-padding {
206 padding-left: .4em;
207 padding-right: .4em;
208}
209
Nils Diewald652e5f42015-05-10 18:11:45 +0000210
211/**
212 * Mixing for correct box sizing (probably not necessary)
Akron308db382016-05-30 22:34:07 +0200213 * DEPRECATED
Nils Diewald652e5f42015-05-10 18:11:45 +0000214 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000215@mixin box-sizing-box() {
216 -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
217 -moz-box-sizing: border-box; /* Firefox, other Gecko */
218 box-sizing: border-box; /* Opera/IE 8+ */
219}
220
Nils Diewald652e5f42015-05-10 18:11:45 +0000221/**
Akron67b51812017-05-01 14:10:55 +0200222 * Noisy background
Nils Diewald652e5f42015-05-10 18:11:45 +0000223 */
Nils Diewald1c546922015-04-13 01:56:19 +0000224@mixin light-noise {
225 background-image:url('#{$img-path}/noise.png');
226}
Nils Diewalda944fab2015-04-08 21:02:04 +0000227
Nils Diewald652e5f42015-05-10 18:11:45 +0000228/**
229 * Mixin for no-appearance rules
230 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000231// https://css-tricks.com/almanac/properties/a/appearance/
232@mixin no-appearance {
233 -webkit-appearance:none;
234 -moz-appearance:none;
235 appearance:none;
236}
Nils Diewald2488d052015-04-09 21:46:02 +0000237
hebasta94f8ba62018-12-11 15:29:10 +0100238/**
239* Mixin for the appearance of inactive elements in the vcinfo panel
240*/
241@mixin vcinfo-inactive{
242 background-color: $grey-green;
243 color: $semilight-grey;
244 border-color: $semilight-grey;
245 text-shadow: none;
246}
Nils Diewald2488d052015-04-09 21:46:02 +0000247/**
Nils Diewald652e5f42015-05-10 18:11:45 +0000248 * Font Awesome symbol table
Nils Diewald2488d052015-04-09 21:46:02 +0000249 */
Akron88d1ccc2018-08-14 17:22:05 +0200250$fa-bars: "\f0c9";
251$fa-extlink: "\f08e";
252$fa-up: "\f0d8";
253$fa-down: "\f0d7";
Akronec6bb8e2018-08-29 13:07:56 +0200254$fa-minimize: "\f0d8";
Akron88d1ccc2018-08-14 17:22:05 +0200255$fa-close: "\f00d";
256$fa-download: "\f019";
257$fa-info: "\f05a";
258$fa-elipsis: "\f141";
259$fa-previous: "\f0d9";
260$fa-next: "\f0da";
261$fa-search: "\f002";
262$fa-rewrite: "\f040";
263$fa-login: "\f090";
264$fa-logout: "\f08b";
265$fa-tutorial: "\f19d";
266$fa-left-align: "\f036";
267$fa-right-align: "\f038";
268$fa-center-align: "\f037";
269$fa-question: "\f128";
270$fa-checked: "\f046";
271$fa-check: "\f096";
272$fa-code: "\f121";
273$fa-marked: "\f005";
Akron04905352018-01-24 02:06:32 +0100274// $fa-metadata: "\f067";
Akron88d1ccc2018-08-14 17:22:05 +0200275$fa-metadata: "\f055";
276$fa-to-query: "\f102";
277$fa-cut: "\f0c4";
Akron3ad46942018-08-22 16:47:14 +0200278$fa-plugin: "\f1e6";
hebasta94f8ba62018-12-11 15:29:10 +0100279$fa-referto: "\f0c5";
280$fa-redo: "\f01e";