blob: 88eaaaeab65bd8f18e0480738dbc278b77462b14 [file] [log] [blame]
Akronbaba3b62021-11-22 17:24:48 +01001@use 'sass:math';
Akron7e5afce2020-08-25 15:50:19 +02002@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;
Akronff7de692021-09-30 14:12:21 +020011 font-size: 1px;
Akron7e5afce2020-08-25 15:50:19 +020012}
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;
Akronbaba3b62021-11-22 17:24:48 +010068 width: math.div($left-width, 2);
Akronff7de692021-09-30 14:12:21 +020069}