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; |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 37 | // $middle-green: lighten($ids-green-1, 5%); |
| 38 | $middle-green: lighten($ids-green-1, 9%); |
Nils Diewald | 7148c6f | 2015-05-04 15:07:53 +0000 | [diff] [blame] | 39 | $light-green: lighten($ids-green-1, 13%); // #7ba400; |
Akron | fc8dbae | 2019-02-15 13:16:20 +0100 | [diff] [blame] | 40 | $lightest-green: desaturate(lighten($light-green, 35%), 20%); // #d8e38c; |
| 41 | $grey-green: darken(desaturate($lightest-green, 25%), 12%); // #bcc387; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 42 | |
| 43 | /** |
| 44 | * Blue Colors |
| 45 | */ |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 46 | $light-blue: $ids-blue-2; |
| 47 | $dark-blue: $ids-blue-1; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 48 | $darkest-blue: darken($dark-blue, 40%); |
| 49 | |
Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame] | 50 | /** |
| 51 | * Grey Colors |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 52 | */ |
| 53 | $middle-grey: $ids-grey-1; // #999; |
Akron | fc8dbae | 2019-02-15 13:16:20 +0100 | [diff] [blame] | 54 | // $semilight-grey: #8d8d8d; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 55 | $light-grey: $ids-grey-2; // #ddd; |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 56 | $dark-grey: darken($middle-grey, 15%); |
| 57 | $nearly-white: #fefefe; |
Akron | fc8dbae | 2019-02-15 13:16:20 +0100 | [diff] [blame] | 58 | |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 59 | /** |
| 60 | * Red Colors (no IDS relation) |
| 61 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 62 | $middle-red: #c1002b; |
| 63 | $light-red: lighten($middle-red, 40%); |
| 64 | $dark-red: darken($middle-red, 40%); |
| 65 | |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 66 | |
| 67 | /** |
| 68 | * Basic shadows |
| 69 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 70 | $dark-shadow: 1px 1px 1px rgba(0,0,0,0.3); |
| 71 | $light-shadow: 1px 1px rgba(255,255,255,0.5); |
| 72 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 73 | /** |
| 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; |
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 95 | $button-width: 30px; |
| 96 | $base-padding: 8px; |
Akron | bec4a6a | 2018-07-10 14:45:15 +0200 | [diff] [blame] | 97 | $border-size: 2px; |
| 98 | $result-border-size: 1px; |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 99 | $total-results: $light-green; |
| 100 | |
Akron | 49f88cc | 2018-09-11 11:06:19 +0200 | [diff] [blame] | 101 | $left-width: 176px; |
| 102 | $border-size: 2px; |
| 103 | $left-distance: $left-width + ($border-size * 2); |
| 104 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 105 | /** |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 106 | * Path information - relative to css! |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 107 | */ |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 108 | $img-path: '../img'; |
Nils Diewald | ce32811 | 2015-04-08 22:48:18 +0000 | [diff] [blame] | 109 | $font-path: '../font'; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 110 | |
| 111 | /** |
| 112 | * Margins |
| 113 | */ |
Nils Diewald | 4347ee9 | 2015-05-04 20:32:48 +0000 | [diff] [blame] | 114 | $standard-margin: 40px; |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 115 | $right-distance: $standard-margin; |
Akron | fc8dbae | 2019-02-15 13:16:20 +0100 | [diff] [blame] | 116 | $right-view-distance: $standard-margin / 2; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 117 | $logo-left-distance: 230px; |
| 118 | |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 119 | /** |
| 120 | * Mixin for blind elements |
| 121 | * (e.g., spans in elements with an icon background) |
| 122 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 123 | @mixin blind { |
| 124 | position: absolute; |
| 125 | margin-left: -3000px; |
| 126 | } |
| 127 | |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 128 | |
| 129 | /** |
| 130 | * Chooseable items (default) |
| 131 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 132 | @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 Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 139 | /** |
| 140 | * Chooseable items (mouse over) |
| 141 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 142 | @mixin choose-hover { |
| 143 | color: $nearly-white; |
| 144 | text-shadow: none; |
| 145 | background-color: $dark-orange; |
| 146 | border-color: $darker-orange; |
| 147 | } |
| 148 | |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 149 | /** |
| 150 | * Chooseable items (not available) |
| 151 | */ |
Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame] | 152 | @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 Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 159 | /** |
| 160 | * Chooseable items (active) |
| 161 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 162 | @mixin choose-active { |
| 163 | color: $dark-green; |
| 164 | text-shadow: none; |
| 165 | background-color: $light-green; |
| 166 | border-color: $dark-green; |
| 167 | } |
| 168 | |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 169 | /** |
| 170 | * Chooseable items (action: remove something) |
| 171 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 172 | @mixin choose-remove { |
| 173 | color: $nearly-white; |
| 174 | text-shadow: none; |
| 175 | background-color: $middle-red; |
| 176 | border-color: $dark-red; |
| 177 | } |
| 178 | |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 179 | @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 Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 188 | /** |
| 189 | * Mixin for basic color transition |
| 190 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 191 | @mixin color-transition { |
| 192 | transition: color 0.3s ease 0s; |
| 193 | } |
| 194 | |
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 195 | @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 Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 203 | /** |
| 204 | * Mixing for basic text padding |
| 205 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 206 | @mixin standard-text-padding { |
| 207 | padding-left: .4em; |
| 208 | padding-right: .4em; |
| 209 | } |
| 210 | |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 211 | |
| 212 | /** |
| 213 | * Mixing for correct box sizing (probably not necessary) |
Akron | 308db38 | 2016-05-30 22:34:07 +0200 | [diff] [blame] | 214 | * DEPRECATED |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 215 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 216 | @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 Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 222 | /** |
Akron | 67b5181 | 2017-05-01 14:10:55 +0200 | [diff] [blame] | 223 | * Noisy background |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 224 | */ |
Nils Diewald | 1c54692 | 2015-04-13 01:56:19 +0000 | [diff] [blame] | 225 | @mixin light-noise { |
| 226 | background-image:url('#{$img-path}/noise.png'); |
| 227 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 228 | |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 229 | /** |
| 230 | * Mixin for no-appearance rules |
| 231 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 232 | // 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 Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 238 | |
hebasta | 94f8ba6 | 2018-12-11 15:29:10 +0100 | [diff] [blame] | 239 | /** |
| 240 | * Mixin for the appearance of inactive elements in the vcinfo panel |
| 241 | */ |
| 242 | @mixin vcinfo-inactive{ |
| 243 | background-color: $grey-green; |
Akron | fc8dbae | 2019-02-15 13:16:20 +0100 | [diff] [blame] | 244 | color: $dark-green; // $semilight-grey; |
| 245 | // border-color: $semilight-grey; |
hebasta | 94f8ba6 | 2018-12-11 15:29:10 +0100 | [diff] [blame] | 246 | text-shadow: none; |
| 247 | } |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 248 | /** |
Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 249 | * Font Awesome symbol table |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 250 | */ |
Akron | 88d1ccc | 2018-08-14 17:22:05 +0200 | [diff] [blame] | 251 | $fa-bars: "\f0c9"; |
| 252 | $fa-extlink: "\f08e"; |
| 253 | $fa-up: "\f0d8"; |
| 254 | $fa-down: "\f0d7"; |
Akron | ec6bb8e | 2018-08-29 13:07:56 +0200 | [diff] [blame] | 255 | $fa-minimize: "\f0d8"; |
Akron | 88d1ccc | 2018-08-14 17:22:05 +0200 | [diff] [blame] | 256 | $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"; |
Akron | 0490535 | 2018-01-24 02:06:32 +0100 | [diff] [blame] | 275 | // $fa-metadata: "\f067"; |
Akron | 88d1ccc | 2018-08-14 17:22:05 +0200 | [diff] [blame] | 276 | $fa-metadata: "\f055"; |
| 277 | $fa-to-query: "\f102"; |
| 278 | $fa-cut: "\f0c4"; |
Akron | 3ad4694 | 2018-08-22 16:47:14 +0200 | [diff] [blame] | 279 | $fa-plugin: "\f1e6"; |
hebasta | 94f8ba6 | 2018-12-11 15:29:10 +0100 | [diff] [blame] | 280 | $fa-referto: "\f0c5"; |
| 281 | $fa-redo: "\f01e"; |