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