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