Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 1 | /** |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 2 | * Some variables and mixins for Kalamar, |
| 3 | * other Sass styles will use. |
| 4 | */ |
| 5 | |
| 6 | /** |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 7 | * 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 | |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame] | 20 | $black: #333; |
| 21 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 22 | /** |
| 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 Diewald | 0e6992a | 2015-04-14 20:13:52 +0000 | [diff] [blame] | 29 | $darkest-orange: #e55d00; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 30 | // $light-orange-2: #f4eebb;, #ffd080; |
| 31 | // Yellow: #fff48d |
| 32 | |
| 33 | /** |
| 34 | * Green Colors |
| 35 | */ |
Nils Diewald | 7148c6f | 2015-05-04 15:07:53 +0000 | [diff] [blame] | 36 | $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 Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 40 | |
| 41 | /** |
| 42 | * Blue Colors |
| 43 | */ |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 44 | $light-blue: $ids-blue-2; |
| 45 | $dark-blue: $ids-blue-1; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 46 | $darkest-blue: darken($dark-blue, 40%); |
| 47 | |
Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame] | 48 | /** |
| 49 | * Grey Colors |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 50 | */ |
| 51 | $middle-grey: $ids-grey-1; // #999; |
| 52 | $light-grey: $ids-grey-2; // #ddd; |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 53 | $dark-grey: darken($middle-grey, 15%); |
| 54 | $nearly-white: #fefefe; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 55 | |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 56 | /** |
| 57 | * Red Colors (no IDS relation) |
| 58 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 59 | $middle-red: #c1002b; |
| 60 | $light-red: lighten($middle-red, 40%); |
| 61 | $dark-red: darken($middle-red, 40%); |
| 62 | |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 63 | |
| 64 | /** |
| 65 | * Basic shadows |
| 66 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 67 | $dark-shadow: 1px 1px 1px rgba(0,0,0,0.3); |
| 68 | $light-shadow: 1px 1px rgba(255,255,255,0.5); |
| 69 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 70 | /** |
| 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; |
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 92 | $button-width: 30px; |
| 93 | $base-padding: 8px; |
Akron | bec4a6a | 2018-07-10 14:45:15 +0200 | [diff] [blame^] | 94 | $border-size: 2px; |
| 95 | $result-border-size: 1px; |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 96 | $total-results: $light-green; |
| 97 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 98 | /** |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 99 | * Path information - relative to css! |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 100 | */ |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 101 | $img-path: '../img'; |
Nils Diewald | ce32811 | 2015-04-08 22:48:18 +0000 | [diff] [blame] | 102 | $font-path: '../font'; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 103 | |
| 104 | /** |
| 105 | * Margins |
| 106 | */ |
Nils Diewald | 4347ee9 | 2015-05-04 20:32:48 +0000 | [diff] [blame] | 107 | $standard-margin: 40px; |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 108 | $right-distance: $standard-margin; |
Nils Diewald | 4347ee9 | 2015-05-04 20:32:48 +0000 | [diff] [blame] | 109 | $right-match-distance: $standard-margin / 2; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 110 | $logo-left-distance: 230px; |
| 111 | |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 112 | /** |
| 113 | * Mixin for blind elements |
| 114 | * (e.g., spans in elements with an icon background) |
| 115 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 116 | @mixin blind { |
| 117 | position: absolute; |
| 118 | margin-left: -3000px; |
| 119 | } |
| 120 | |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 121 | |
| 122 | /** |
| 123 | * Chooseable items (default) |
| 124 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 125 | @mixin choose-item { |
| 126 | color: $choose-color; |
| 127 | background-color: $choose-bg; |
| 128 | border-color: $choose-border-color; |
| 129 | text-shadow: $light-shadow; |
| 130 | } |
| 131 | |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 132 | /** |
| 133 | * Chooseable items (mouse over) |
| 134 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 135 | @mixin choose-hover { |
| 136 | color: $nearly-white; |
| 137 | text-shadow: none; |
| 138 | background-color: $dark-orange; |
| 139 | border-color: $darker-orange; |
| 140 | } |
| 141 | |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 142 | /** |
| 143 | * Chooseable items (not available) |
| 144 | */ |
Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame] | 145 | @mixin choose-inactive { |
| 146 | color: lighten($choose-color, 20%); |
| 147 | background-color: lighten($choose-bg, 20%); |
| 148 | border-color: transparent; |
| 149 | text-shadow: none; |
| 150 | } |
| 151 | |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 152 | /** |
| 153 | * Chooseable items (active) |
| 154 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 155 | @mixin choose-active { |
| 156 | color: $dark-green; |
| 157 | text-shadow: none; |
| 158 | background-color: $light-green; |
| 159 | border-color: $dark-green; |
| 160 | } |
| 161 | |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 162 | /** |
| 163 | * Chooseable items (action: remove something) |
| 164 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 165 | @mixin choose-remove { |
| 166 | color: $nearly-white; |
| 167 | text-shadow: none; |
| 168 | background-color: $middle-red; |
| 169 | border-color: $dark-red; |
| 170 | } |
| 171 | |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 172 | /** |
| 173 | * Mixin for basic color transition |
| 174 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 175 | @mixin color-transition { |
| 176 | transition: color 0.3s ease 0s; |
| 177 | } |
| 178 | |
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 179 | @mixin input-field { |
| 180 | outline: none; |
| 181 | font-size: 11pt; |
| 182 | border: $border-size solid $nearly-white; |
| 183 | padding: 2px; |
| 184 | margin: 0; |
| 185 | } |
| 186 | |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 187 | /** |
| 188 | * Mixing for basic text padding |
| 189 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 190 | @mixin standard-text-padding { |
| 191 | padding-left: .4em; |
| 192 | padding-right: .4em; |
| 193 | } |
| 194 | |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 195 | |
| 196 | /** |
| 197 | * Mixing for correct box sizing (probably not necessary) |
Akron | 308db38 | 2016-05-30 22:34:07 +0200 | [diff] [blame] | 198 | * DEPRECATED |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 199 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 200 | @mixin box-sizing-box() { |
| 201 | -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ |
| 202 | -moz-box-sizing: border-box; /* Firefox, other Gecko */ |
| 203 | box-sizing: border-box; /* Opera/IE 8+ */ |
| 204 | } |
| 205 | |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 206 | /** |
Akron | 67b5181 | 2017-05-01 14:10:55 +0200 | [diff] [blame] | 207 | * Noisy background |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 208 | */ |
Nils Diewald | 1c54692 | 2015-04-13 01:56:19 +0000 | [diff] [blame] | 209 | @mixin light-noise { |
| 210 | background-image:url('#{$img-path}/noise.png'); |
| 211 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 212 | |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 213 | /** |
| 214 | * Mixin for no-appearance rules |
| 215 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 216 | // https://css-tricks.com/almanac/properties/a/appearance/ |
| 217 | @mixin no-appearance { |
| 218 | -webkit-appearance:none; |
| 219 | -moz-appearance:none; |
| 220 | appearance:none; |
| 221 | } |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 222 | |
| 223 | |
| 224 | /** |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 225 | * Font Awesome symbol table |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 226 | */ |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 227 | $fa-bars: "\f0c9"; |
| 228 | $fa-extlink: "\f08e"; |
| 229 | $fa-up: "\f0d8"; |
| 230 | $fa-down: "\f0d7"; |
| 231 | $fa-close: "\f00d"; |
Akron | c56cf2d | 2016-11-09 22:02:38 +0100 | [diff] [blame] | 232 | $fa-download: "\f019"; |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 233 | $fa-info: "\f05a"; |
| 234 | $fa-elipsis: "\f141"; |
| 235 | $fa-previous: "\f0d9"; |
| 236 | $fa-next: "\f0da"; |
| 237 | $fa-search: "\f002"; |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 238 | $fa-rewrite: "\f040"; |
Nils Diewald | 7c8ced2 | 2015-04-15 19:21:00 +0000 | [diff] [blame] | 239 | $fa-login: "\f090"; |
| 240 | $fa-logout: "\f08b"; |
| 241 | $fa-tutorial: "\f19d"; |
| 242 | $fa-left-align: "\f036"; |
| 243 | $fa-right-align: "\f038"; |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 244 | $fa-question: "\f128"; |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 245 | $fa-checked: "\f046"; |
Nils Diewald | 845282c | 2015-05-14 07:53:03 +0000 | [diff] [blame] | 246 | $fa-check: "\f096"; |
Akron | 0669f2f | 2015-05-28 20:27:09 +0200 | [diff] [blame] | 247 | $fa-code: "\f121"; |
Akron | 9a5b1e1 | 2016-12-06 18:18:23 +0100 | [diff] [blame] | 248 | $fa-marked: "\f005"; |
Akron | 0490535 | 2018-01-24 02:06:32 +0100 | [diff] [blame] | 249 | // $fa-metadata: "\f067"; |
| 250 | $fa-metadata: "\f055"; |
Akron | fbf3a78 | 2017-06-28 17:34:28 +0200 | [diff] [blame] | 251 | $fa-to-query: "\f102"; |
Akron | 09e7f1f | 2018-05-28 14:08:14 +0200 | [diff] [blame] | 252 | $fa-cut: "\f0c4"; |