blob: c8fa37fd563fc3be2a3392862657385e94fc5913 [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;
37$middle-green: lighten($ids-green-1, 5%); // $ids-green-1; // #688704;
38$light-green: lighten($ids-green-1, 13%); // #7ba400;
39$lightest-green: lighten($ids-green-1, 26%);
Nils Diewalda944fab2015-04-08 21:02:04 +000040
41/**
42 * Blue Colors
43 */
Nils Diewald652e5f42015-05-10 18:11:45 +000044$light-blue: $ids-blue-2;
45$dark-blue: $ids-blue-1;
Nils Diewalda944fab2015-04-08 21:02:04 +000046$darkest-blue: darken($dark-blue, 40%);
47
Nils Diewalda1228622015-04-25 01:59:10 +000048/**
49 * Grey Colors
Nils Diewalda944fab2015-04-08 21:02:04 +000050 */
51$middle-grey: $ids-grey-1; // #999;
52$light-grey: $ids-grey-2; // #ddd;
Nils Diewald652e5f42015-05-10 18:11:45 +000053$dark-grey: darken($middle-grey, 15%);
54$nearly-white: #fefefe;
Nils Diewalda944fab2015-04-08 21:02:04 +000055
Nils Diewald652e5f42015-05-10 18:11:45 +000056/**
57 * Red Colors (no IDS relation)
58 */
Nils Diewalda944fab2015-04-08 21:02:04 +000059$middle-red: #c1002b;
60$light-red: lighten($middle-red, 40%);
61$dark-red: darken($middle-red, 40%);
62
Nils Diewald652e5f42015-05-10 18:11:45 +000063
64/**
65 * Basic shadows
66 */
Nils Diewalda944fab2015-04-08 21:02:04 +000067$dark-shadow: 1px 1px 1px rgba(0,0,0,0.3);
68$light-shadow: 1px 1px rgba(255,255,255,0.5);
69
Nils Diewalda944fab2015-04-08 21:02:04 +000070/**
71 * KWIC colors
72 */
73$kwic-border: $middle-grey;
74$kwic-line-noneven: $light-grey;
75$kwic-line-even: $nearly-white;
76$kwic-match-color: $dark-grey;
77$kwic-match-shadow: $light-shadow;
78
79$kwic-highlight-1: $middle-red;
80$kwic-highlight-2: $dark-blue; // #009ee0;
81$kwic-highlight-3: $dark-orange; // #f29400;
82$kwic-highlight-4: $light-green;
83
84$choose-bg: $light-grey;
85$choose-border-color: $middle-grey;
86$choose-border: 2px solid $choose-border-color;
87$choose-color: $dark-grey;
88$choose-blind-color: $middle-grey;
89$choose-box-shadow: 2px 2px 2px rgba(0,0,0,0.2);
90$standard-border-radius: 6px;
91$item-padding: 3pt 6pt;
Akron189b3592016-01-04 20:56:46 +010092$button-width: 30px;
93$base-padding: 8px;
Nils Diewalda944fab2015-04-08 21:02:04 +000094
Nils Diewald652e5f42015-05-10 18:11:45 +000095$total-results: $light-green;
96
Nils Diewalda944fab2015-04-08 21:02:04 +000097/**
Nils Diewald652e5f42015-05-10 18:11:45 +000098 * Path information - relative to css!
Nils Diewalda944fab2015-04-08 21:02:04 +000099 */
Nils Diewald652e5f42015-05-10 18:11:45 +0000100$img-path: '../img';
Nils Diewaldce328112015-04-08 22:48:18 +0000101$font-path: '../font';
Nils Diewalda944fab2015-04-08 21:02:04 +0000102
103/**
104 * Margins
105 */
Nils Diewald4347ee92015-05-04 20:32:48 +0000106$standard-margin: 40px;
Nils Diewald652e5f42015-05-10 18:11:45 +0000107$right-distance: $standard-margin;
Nils Diewald4347ee92015-05-04 20:32:48 +0000108$right-match-distance: $standard-margin / 2;
Nils Diewalda944fab2015-04-08 21:02:04 +0000109$logo-left-distance: 230px;
110
Nils Diewald652e5f42015-05-10 18:11:45 +0000111/**
112 * Mixin for blind elements
113 * (e.g., spans in elements with an icon background)
114 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000115@mixin blind {
116 position: absolute;
117 margin-left: -3000px;
118}
119
Nils Diewald652e5f42015-05-10 18:11:45 +0000120
121/**
122 * Chooseable items (default)
123 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000124@mixin choose-item {
125 color: $choose-color;
126 background-color: $choose-bg;
127 border-color: $choose-border-color;
128 text-shadow: $light-shadow;
129}
130
Nils Diewald652e5f42015-05-10 18:11:45 +0000131/**
132 * Chooseable items (mouse over)
133 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000134@mixin choose-hover {
135 color: $nearly-white;
136 text-shadow: none;
137 background-color: $dark-orange;
138 border-color: $darker-orange;
139}
140
Nils Diewald652e5f42015-05-10 18:11:45 +0000141/**
142 * Chooseable items (not available)
143 */
Nils Diewalda1228622015-04-25 01:59:10 +0000144@mixin choose-inactive {
145 color: lighten($choose-color, 20%);
146 background-color: lighten($choose-bg, 20%);
147 border-color: transparent;
148 text-shadow: none;
149}
150
Nils Diewald652e5f42015-05-10 18:11:45 +0000151/**
152 * Chooseable items (active)
153 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000154@mixin choose-active {
155 color: $dark-green;
156 text-shadow: none;
157 background-color: $light-green;
158 border-color: $dark-green;
159}
160
Nils Diewald652e5f42015-05-10 18:11:45 +0000161/**
162 * Chooseable items (action: remove something)
163 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000164@mixin choose-remove {
165 color: $nearly-white;
166 text-shadow: none;
167 background-color: $middle-red;
168 border-color: $dark-red;
169}
170
Nils Diewald652e5f42015-05-10 18:11:45 +0000171/**
172 * Mixin for basic color transition
173 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000174@mixin color-transition {
175 transition: color 0.3s ease 0s;
176}
177
Akron189b3592016-01-04 20:56:46 +0100178@mixin input-field {
179 outline: none;
180 font-size: 11pt;
181 border: $border-size solid $nearly-white;
182 padding: 2px;
183 margin: 0;
184}
185
Nils Diewald652e5f42015-05-10 18:11:45 +0000186/**
187 * Mixing for basic text padding
188 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000189@mixin standard-text-padding {
190 padding-left: .4em;
191 padding-right: .4em;
192}
193
Nils Diewald652e5f42015-05-10 18:11:45 +0000194
195/**
196 * Mixing for correct box sizing (probably not necessary)
Akron308db382016-05-30 22:34:07 +0200197 * DEPRECATED
Nils Diewald652e5f42015-05-10 18:11:45 +0000198 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000199@mixin box-sizing-box() {
200 -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
201 -moz-box-sizing: border-box; /* Firefox, other Gecko */
202 box-sizing: border-box; /* Opera/IE 8+ */
203}
204
Nils Diewald652e5f42015-05-10 18:11:45 +0000205/**
Akron67b51812017-05-01 14:10:55 +0200206 * Noisy background
Nils Diewald652e5f42015-05-10 18:11:45 +0000207 */
Nils Diewald1c546922015-04-13 01:56:19 +0000208@mixin light-noise {
209 background-image:url('#{$img-path}/noise.png');
210}
Nils Diewalda944fab2015-04-08 21:02:04 +0000211
Nils Diewald652e5f42015-05-10 18:11:45 +0000212/**
213 * Mixin for no-appearance rules
214 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000215// https://css-tricks.com/almanac/properties/a/appearance/
216@mixin no-appearance {
217 -webkit-appearance:none;
218 -moz-appearance:none;
219 appearance:none;
220}
Nils Diewald2488d052015-04-09 21:46:02 +0000221
222
223/**
Nils Diewald652e5f42015-05-10 18:11:45 +0000224 * Font Awesome symbol table
Nils Diewald2488d052015-04-09 21:46:02 +0000225 */
Nils Diewald7c8ced22015-04-15 19:21:00 +0000226$fa-bars: "\f0c9";
227$fa-extlink: "\f08e";
228$fa-up: "\f0d8";
229$fa-down: "\f0d7";
230$fa-close: "\f00d";
Akronc56cf2d2016-11-09 22:02:38 +0100231$fa-download: "\f019";
Nils Diewald7c8ced22015-04-15 19:21:00 +0000232$fa-info: "\f05a";
233$fa-elipsis: "\f141";
234$fa-previous: "\f0d9";
235$fa-next: "\f0da";
236$fa-search: "\f002";
Nils Diewald652e5f42015-05-10 18:11:45 +0000237$fa-rewrite: "\f040";
Nils Diewald7c8ced22015-04-15 19:21:00 +0000238$fa-login: "\f090";
239$fa-logout: "\f08b";
240$fa-tutorial: "\f19d";
241$fa-left-align: "\f036";
242$fa-right-align: "\f038";
Nils Diewald652e5f42015-05-10 18:11:45 +0000243$fa-question: "\f128";
Nils Diewaldfccfbcb2015-04-29 20:48:19 +0000244$fa-checked: "\f046";
Nils Diewald845282c2015-05-14 07:53:03 +0000245$fa-check: "\f096";
Akron0669f2f2015-05-28 20:27:09 +0200246$fa-code: "\f121";
Akron9a5b1e12016-12-06 18:18:23 +0100247$fa-marked: "\f005";
Akron04905352018-01-24 02:06:32 +0100248// $fa-metadata: "\f067";
249$fa-metadata: "\f055";
Akronfbf3a782017-06-28 17:34:28 +0200250$fa-to-query: "\f102";