blob: 6edd3e7299ad1f4b2516a8594305d4d92370a6a5 [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;
Akronfc8dbae2019-02-15 13:16:20 +010040$lightest-green: desaturate(lighten($light-green, 35%), 20%); // #d8e38c;
41$grey-green: darken(desaturate($lightest-green, 25%), 12%); // #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;
Akronfc8dbae2019-02-15 13:16:20 +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;
Akronfc8dbae2019-02-15 13:16:20 +010058
Nils Diewald652e5f42015-05-10 18:11:45 +000059/**
60 * Red Colors (no IDS relation)
61 */
Nils Diewalda944fab2015-04-08 21:02:04 +000062$middle-red: #c1002b;
63$light-red: lighten($middle-red, 40%);
64$dark-red: darken($middle-red, 40%);
65
Nils Diewald652e5f42015-05-10 18:11:45 +000066
67/**
68 * Basic shadows
69 */
Nils Diewalda944fab2015-04-08 21:02:04 +000070$dark-shadow: 1px 1px 1px rgba(0,0,0,0.3);
71$light-shadow: 1px 1px rgba(255,255,255,0.5);
72
Nils Diewalda944fab2015-04-08 21:02:04 +000073/**
74 * KWIC colors
75 */
76$kwic-border: $middle-grey;
77$kwic-line-noneven: $light-grey;
78$kwic-line-even: $nearly-white;
79$kwic-match-color: $dark-grey;
80$kwic-match-shadow: $light-shadow;
81
82$kwic-highlight-1: $middle-red;
83$kwic-highlight-2: $dark-blue; // #009ee0;
84$kwic-highlight-3: $dark-orange; // #f29400;
85$kwic-highlight-4: $light-green;
86
87$choose-bg: $light-grey;
88$choose-border-color: $middle-grey;
89$choose-border: 2px solid $choose-border-color;
90$choose-color: $dark-grey;
91$choose-blind-color: $middle-grey;
92$choose-box-shadow: 2px 2px 2px rgba(0,0,0,0.2);
93$standard-border-radius: 6px;
94$item-padding: 3pt 6pt;
Akron189b3592016-01-04 20:56:46 +010095$button-width: 30px;
96$base-padding: 8px;
Akronbec4a6a2018-07-10 14:45:15 +020097$border-size: 2px;
98$result-border-size: 1px;
Nils Diewald652e5f42015-05-10 18:11:45 +000099$total-results: $light-green;
100
Akron49f88cc2018-09-11 11:06:19 +0200101$left-width: 176px;
102$border-size: 2px;
103$left-distance: $left-width + ($border-size * 2);
104
Nils Diewalda944fab2015-04-08 21:02:04 +0000105/**
Nils Diewald652e5f42015-05-10 18:11:45 +0000106 * Path information - relative to css!
Nils Diewalda944fab2015-04-08 21:02:04 +0000107 */
Nils Diewald652e5f42015-05-10 18:11:45 +0000108$img-path: '../img';
Nils Diewaldce328112015-04-08 22:48:18 +0000109$font-path: '../font';
Nils Diewalda944fab2015-04-08 21:02:04 +0000110
111/**
112 * Margins
113 */
Nils Diewald4347ee92015-05-04 20:32:48 +0000114$standard-margin: 40px;
Nils Diewald652e5f42015-05-10 18:11:45 +0000115$right-distance: $standard-margin;
Akronfc8dbae2019-02-15 13:16:20 +0100116$right-view-distance: $standard-margin / 2;
Nils Diewalda944fab2015-04-08 21:02:04 +0000117$logo-left-distance: 230px;
118
Nils Diewald652e5f42015-05-10 18:11:45 +0000119/**
120 * Mixin for blind elements
121 * (e.g., spans in elements with an icon background)
122 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000123@mixin blind {
124 position: absolute;
125 margin-left: -3000px;
126}
127
Nils Diewald652e5f42015-05-10 18:11:45 +0000128
129/**
130 * Chooseable items (default)
131 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000132@mixin choose-item {
133 color: $choose-color;
134 background-color: $choose-bg;
135 border-color: $choose-border-color;
136 text-shadow: $light-shadow;
137}
138
Nils Diewald652e5f42015-05-10 18:11:45 +0000139/**
140 * Chooseable items (mouse over)
141 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000142@mixin choose-hover {
143 color: $nearly-white;
144 text-shadow: none;
145 background-color: $dark-orange;
146 border-color: $darker-orange;
147}
148
Nils Diewald652e5f42015-05-10 18:11:45 +0000149/**
150 * Chooseable items (not available)
151 */
Nils Diewalda1228622015-04-25 01:59:10 +0000152@mixin choose-inactive {
153 color: lighten($choose-color, 20%);
154 background-color: lighten($choose-bg, 20%);
155 border-color: transparent;
156 text-shadow: none;
157}
158
Nils Diewald652e5f42015-05-10 18:11:45 +0000159/**
160 * Chooseable items (active)
161 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000162@mixin choose-active {
163 color: $dark-green;
164 text-shadow: none;
165 background-color: $light-green;
166 border-color: $dark-green;
167}
168
Nils Diewald652e5f42015-05-10 18:11:45 +0000169/**
170 * Chooseable items (action: remove something)
171 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000172@mixin choose-remove {
173 color: $nearly-white;
174 text-shadow: none;
175 background-color: $middle-red;
176 border-color: $dark-red;
177}
178
Akron2f979122018-07-25 17:00:23 +0200179@mixin cell-info {
180 text-overflow: ellipsis;
181 white-space: nowrap;
182 max-width: 25em;
183 overflow: hidden;
184 padding: 1px 6px;
185 margin: 0px;
186}
187
Nils Diewald652e5f42015-05-10 18:11:45 +0000188/**
189 * Mixin for basic color transition
190 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000191@mixin color-transition {
192 transition: color 0.3s ease 0s;
193}
194
Akron189b3592016-01-04 20:56:46 +0100195@mixin input-field {
196 outline: none;
197 font-size: 11pt;
198 border: $border-size solid $nearly-white;
199 padding: 2px;
200 margin: 0;
201}
202
Nils Diewald652e5f42015-05-10 18:11:45 +0000203/**
204 * Mixing for basic text padding
205 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000206@mixin standard-text-padding {
207 padding-left: .4em;
208 padding-right: .4em;
209}
210
Nils Diewald652e5f42015-05-10 18:11:45 +0000211
212/**
213 * Mixing for correct box sizing (probably not necessary)
Akron308db382016-05-30 22:34:07 +0200214 * DEPRECATED
Nils Diewald652e5f42015-05-10 18:11:45 +0000215 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000216@mixin box-sizing-box() {
217 -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
218 -moz-box-sizing: border-box; /* Firefox, other Gecko */
219 box-sizing: border-box; /* Opera/IE 8+ */
220}
221
Nils Diewald652e5f42015-05-10 18:11:45 +0000222/**
Akron67b51812017-05-01 14:10:55 +0200223 * Noisy background
Nils Diewald652e5f42015-05-10 18:11:45 +0000224 */
Nils Diewald1c546922015-04-13 01:56:19 +0000225@mixin light-noise {
226 background-image:url('#{$img-path}/noise.png');
227}
Nils Diewalda944fab2015-04-08 21:02:04 +0000228
Nils Diewald652e5f42015-05-10 18:11:45 +0000229/**
230 * Mixin for no-appearance rules
231 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000232// https://css-tricks.com/almanac/properties/a/appearance/
233@mixin no-appearance {
234 -webkit-appearance:none;
235 -moz-appearance:none;
236 appearance:none;
237}
Nils Diewald2488d052015-04-09 21:46:02 +0000238
hebasta94f8ba62018-12-11 15:29:10 +0100239/**
240* Mixin for the appearance of inactive elements in the vcinfo panel
241*/
242@mixin vcinfo-inactive{
243 background-color: $grey-green;
Akronfc8dbae2019-02-15 13:16:20 +0100244 color: $dark-green; // $semilight-grey;
245 // border-color: $semilight-grey;
hebasta94f8ba62018-12-11 15:29:10 +0100246 text-shadow: none;
247}
Nils Diewald2488d052015-04-09 21:46:02 +0000248/**
Nils Diewald652e5f42015-05-10 18:11:45 +0000249 * Font Awesome symbol table
Nils Diewald2488d052015-04-09 21:46:02 +0000250 */
Akron88d1ccc2018-08-14 17:22:05 +0200251$fa-bars: "\f0c9";
252$fa-extlink: "\f08e";
253$fa-up: "\f0d8";
254$fa-down: "\f0d7";
Akronec6bb8e2018-08-29 13:07:56 +0200255$fa-minimize: "\f0d8";
Akron88d1ccc2018-08-14 17:22:05 +0200256$fa-close: "\f00d";
257$fa-download: "\f019";
258$fa-info: "\f05a";
259$fa-elipsis: "\f141";
260$fa-previous: "\f0d9";
261$fa-next: "\f0da";
262$fa-search: "\f002";
263$fa-rewrite: "\f040";
264$fa-login: "\f090";
265$fa-logout: "\f08b";
266$fa-tutorial: "\f19d";
267$fa-left-align: "\f036";
268$fa-right-align: "\f038";
269$fa-center-align: "\f037";
270$fa-question: "\f128";
271$fa-checked: "\f046";
272$fa-check: "\f096";
273$fa-code: "\f121";
274$fa-marked: "\f005";
Akron04905352018-01-24 02:06:32 +0100275// $fa-metadata: "\f067";
Akron88d1ccc2018-08-14 17:22:05 +0200276$fa-metadata: "\f055";
277$fa-to-query: "\f102";
278$fa-cut: "\f0c4";
Akron3ad46942018-08-22 16:47:14 +0200279$fa-plugin: "\f1e6";
hebasta94f8ba62018-12-11 15:29:10 +0100280$fa-referto: "\f0c5";
281$fa-redo: "\f01e";