Akron | baba3b6 | 2021-11-22 17:24:48 +0100 | [diff] [blame^] | 1 | @use 'sass:math'; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 2 | @import "colors"; |
| 3 | |
| 4 | /** |
| 5 | * Mixin for blind elements |
| 6 | * (e.g., spans in elements with an icon background) |
| 7 | */ |
| 8 | @mixin blind { |
| 9 | position: absolute; |
| 10 | margin-left: -3000px; |
Akron | ff7de69 | 2021-09-30 14:12:21 +0200 | [diff] [blame] | 11 | font-size: 1px; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 12 | } |
| 13 | |
| 14 | |
| 15 | @mixin cell-info { |
| 16 | text-overflow: ellipsis; |
| 17 | white-space: nowrap; |
| 18 | max-width: 25em; |
| 19 | overflow: hidden; |
| 20 | padding: 1px 6px; |
| 21 | margin: 0px; |
| 22 | } |
| 23 | |
| 24 | |
| 25 | /** |
| 26 | * Mixin for basic color transition |
| 27 | */ |
| 28 | @mixin input-field { |
| 29 | outline: none; |
| 30 | font-size: 11pt; |
| 31 | border: $border-size solid $nearly-white; |
| 32 | padding: 2px; |
| 33 | margin: 0; |
| 34 | } |
| 35 | |
| 36 | |
| 37 | /** |
| 38 | * Mixing for basic text padding |
| 39 | */ |
| 40 | @mixin standard-text-padding { |
| 41 | padding-left: .4em; |
| 42 | padding-right: .4em; |
| 43 | } |
| 44 | |
| 45 | |
| 46 | /** |
| 47 | * Mixing for icon fonts |
| 48 | */ |
| 49 | @mixin icon-font { |
| 50 | font-family: 'FontAwesome'; |
| 51 | white-space: nowrap; |
| 52 | } |
| 53 | |
| 54 | |
| 55 | /** |
| 56 | * Mixing for correct box sizing (probably not necessary) |
| 57 | * DEPRECATED |
| 58 | */ |
| 59 | @mixin box-sizing-box() { |
| 60 | -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ |
| 61 | -moz-box-sizing: border-box; /* Firefox, other Gecko */ |
| 62 | box-sizing: border-box; /* Opera/IE 8+ */ |
| 63 | } |
| 64 | |
| 65 | |
| 66 | @mixin matchinfo-head { |
| 67 | border-top: $border-size solid $darker-orange; // #ff8000; |
Akron | baba3b6 | 2021-11-22 17:24:48 +0100 | [diff] [blame^] | 68 | width: math.div($left-width, 2); |
Akron | ff7de69 | 2021-09-30 14:12:21 +0200 | [diff] [blame] | 69 | } |