blob: 4fdc06a9f1558f4c63c5d1b79f0f784920269e35 [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
20/**
21 * Orange Colors
22 */
23$light-orange: #f4eebb; // #ffe56a;
24$middle-orange: #ffd080;
25$dark-orange: $ids-orange-1; // #ffa500;
26$darker-orange: #ff8000;
Nils Diewald0e6992a2015-04-14 20:13:52 +000027$darkest-orange: #e55d00;
Nils Diewalda944fab2015-04-08 21:02:04 +000028// $light-orange-2: #f4eebb;, #ffd080;
29// Yellow: #fff48d
30
31/**
32 * Green Colors
33 */
Nils Diewald7148c6f2015-05-04 15:07:53 +000034$dark-green: $ids-green-1; // #496000;
35$middle-green: lighten($ids-green-1, 5%); // $ids-green-1; // #688704;
36$light-green: lighten($ids-green-1, 13%); // #7ba400;
37$lightest-green: lighten($ids-green-1, 26%);
Nils Diewalda944fab2015-04-08 21:02:04 +000038
39/**
40 * Blue Colors
41 */
Nils Diewald652e5f42015-05-10 18:11:45 +000042$light-blue: $ids-blue-2;
43$dark-blue: $ids-blue-1;
Nils Diewalda944fab2015-04-08 21:02:04 +000044$darkest-blue: darken($dark-blue, 40%);
45
Nils Diewalda1228622015-04-25 01:59:10 +000046/**
47 * Grey Colors
Nils Diewalda944fab2015-04-08 21:02:04 +000048 */
49$middle-grey: $ids-grey-1; // #999;
50$light-grey: $ids-grey-2; // #ddd;
Nils Diewald652e5f42015-05-10 18:11:45 +000051$dark-grey: darken($middle-grey, 15%);
52$nearly-white: #fefefe;
Nils Diewalda944fab2015-04-08 21:02:04 +000053
Nils Diewald652e5f42015-05-10 18:11:45 +000054/**
55 * Red Colors (no IDS relation)
56 */
Nils Diewalda944fab2015-04-08 21:02:04 +000057$middle-red: #c1002b;
58$light-red: lighten($middle-red, 40%);
59$dark-red: darken($middle-red, 40%);
60
Nils Diewald652e5f42015-05-10 18:11:45 +000061
62/**
63 * Basic shadows
64 */
Nils Diewalda944fab2015-04-08 21:02:04 +000065$dark-shadow: 1px 1px 1px rgba(0,0,0,0.3);
66$light-shadow: 1px 1px rgba(255,255,255,0.5);
67
Nils Diewalda944fab2015-04-08 21:02:04 +000068/**
69 * KWIC colors
70 */
71$kwic-border: $middle-grey;
72$kwic-line-noneven: $light-grey;
73$kwic-line-even: $nearly-white;
74$kwic-match-color: $dark-grey;
75$kwic-match-shadow: $light-shadow;
76
77$kwic-highlight-1: $middle-red;
78$kwic-highlight-2: $dark-blue; // #009ee0;
79$kwic-highlight-3: $dark-orange; // #f29400;
80$kwic-highlight-4: $light-green;
81
82$choose-bg: $light-grey;
83$choose-border-color: $middle-grey;
84$choose-border: 2px solid $choose-border-color;
85$choose-color: $dark-grey;
86$choose-blind-color: $middle-grey;
87$choose-box-shadow: 2px 2px 2px rgba(0,0,0,0.2);
88$standard-border-radius: 6px;
89$item-padding: 3pt 6pt;
Akron07c720e2016-01-04 20:56:46 +010090$button-width: 30px;
91$base-padding: 8px;
Nils Diewalda944fab2015-04-08 21:02:04 +000092
Nils Diewald652e5f42015-05-10 18:11:45 +000093$total-results: $light-green;
94
Nils Diewalda944fab2015-04-08 21:02:04 +000095/**
Nils Diewald652e5f42015-05-10 18:11:45 +000096 * Path information - relative to css!
Nils Diewalda944fab2015-04-08 21:02:04 +000097 */
Nils Diewald652e5f42015-05-10 18:11:45 +000098$img-path: '../img';
Nils Diewaldce328112015-04-08 22:48:18 +000099$font-path: '../font';
Nils Diewalda944fab2015-04-08 21:02:04 +0000100
101/**
102 * Margins
103 */
Nils Diewald4347ee92015-05-04 20:32:48 +0000104$standard-margin: 40px;
Nils Diewald652e5f42015-05-10 18:11:45 +0000105$right-distance: $standard-margin;
Nils Diewald4347ee92015-05-04 20:32:48 +0000106$right-match-distance: $standard-margin / 2;
Nils Diewalda944fab2015-04-08 21:02:04 +0000107$logo-left-distance: 230px;
108
Nils Diewald652e5f42015-05-10 18:11:45 +0000109/**
110 * Mixin for blind elements
111 * (e.g., spans in elements with an icon background)
112 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000113@mixin blind {
114 position: absolute;
115 margin-left: -3000px;
116}
117
Nils Diewald652e5f42015-05-10 18:11:45 +0000118
119/**
120 * Chooseable items (default)
121 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000122@mixin choose-item {
123 color: $choose-color;
124 background-color: $choose-bg;
125 border-color: $choose-border-color;
126 text-shadow: $light-shadow;
127}
128
Nils Diewald652e5f42015-05-10 18:11:45 +0000129/**
130 * Chooseable items (mouse over)
131 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000132@mixin choose-hover {
133 color: $nearly-white;
134 text-shadow: none;
135 background-color: $dark-orange;
136 border-color: $darker-orange;
137}
138
Nils Diewald652e5f42015-05-10 18:11:45 +0000139/**
140 * Chooseable items (not available)
141 */
Nils Diewalda1228622015-04-25 01:59:10 +0000142@mixin choose-inactive {
143 color: lighten($choose-color, 20%);
144 background-color: lighten($choose-bg, 20%);
145 border-color: transparent;
146 text-shadow: none;
147}
148
Nils Diewald652e5f42015-05-10 18:11:45 +0000149/**
150 * Chooseable items (active)
151 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000152@mixin choose-active {
153 color: $dark-green;
154 text-shadow: none;
155 background-color: $light-green;
156 border-color: $dark-green;
157}
158
Nils Diewald652e5f42015-05-10 18:11:45 +0000159/**
160 * Chooseable items (action: remove something)
161 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000162@mixin choose-remove {
163 color: $nearly-white;
164 text-shadow: none;
165 background-color: $middle-red;
166 border-color: $dark-red;
167}
168
Nils Diewald652e5f42015-05-10 18:11:45 +0000169/**
170 * Mixin for basic color transition
171 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000172@mixin color-transition {
173 transition: color 0.3s ease 0s;
174}
175
Akron07c720e2016-01-04 20:56:46 +0100176@mixin input-field {
177 outline: none;
178 font-size: 11pt;
179 border: $border-size solid $nearly-white;
180 padding: 2px;
181 margin: 0;
182}
183
Nils Diewald652e5f42015-05-10 18:11:45 +0000184/**
185 * Mixing for basic text padding
186 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000187@mixin standard-text-padding {
188 padding-left: .4em;
189 padding-right: .4em;
190}
191
Nils Diewald652e5f42015-05-10 18:11:45 +0000192
193/**
194 * Mixing for correct box sizing (probably not necessary)
195 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000196@mixin box-sizing-box() {
197 -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
198 -moz-box-sizing: border-box; /* Firefox, other Gecko */
199 box-sizing: border-box; /* Opera/IE 8+ */
200}
201
Nils Diewald652e5f42015-05-10 18:11:45 +0000202/**
203 * Noisy background (probably not necessary)
204 */
Nils Diewald1c546922015-04-13 01:56:19 +0000205@mixin light-noise {
206 background-image:url('#{$img-path}/noise.png');
207}
Nils Diewalda944fab2015-04-08 21:02:04 +0000208
Nils Diewald652e5f42015-05-10 18:11:45 +0000209/**
210 * Mixin for no-appearance rules
211 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000212// https://css-tricks.com/almanac/properties/a/appearance/
213@mixin no-appearance {
214 -webkit-appearance:none;
215 -moz-appearance:none;
216 appearance:none;
217}
Nils Diewald2488d052015-04-09 21:46:02 +0000218
219
220/**
Nils Diewald652e5f42015-05-10 18:11:45 +0000221 * Font Awesome symbol table
Nils Diewald2488d052015-04-09 21:46:02 +0000222 */
Nils Diewald7c8ced22015-04-15 19:21:00 +0000223$fa-bars: "\f0c9";
224$fa-extlink: "\f08e";
225$fa-up: "\f0d8";
226$fa-down: "\f0d7";
227$fa-close: "\f00d";
228$fa-info: "\f05a";
229$fa-elipsis: "\f141";
230$fa-previous: "\f0d9";
231$fa-next: "\f0da";
232$fa-search: "\f002";
Nils Diewald652e5f42015-05-10 18:11:45 +0000233$fa-rewrite: "\f040";
Nils Diewald7c8ced22015-04-15 19:21:00 +0000234$fa-login: "\f090";
235$fa-logout: "\f08b";
236$fa-tutorial: "\f19d";
237$fa-left-align: "\f036";
238$fa-right-align: "\f038";
Nils Diewald652e5f42015-05-10 18:11:45 +0000239$fa-question: "\f128";
Nils Diewaldfccfbcb2015-04-29 20:48:19 +0000240$fa-checked: "\f046";
Nils Diewald845282c2015-05-14 07:53:03 +0000241$fa-check: "\f096";
Akron0669f2f2015-05-28 20:27:09 +0200242$fa-code: "\f121";
243$fa-marked: "\f005";