Akron | bec4a6a | 2018-07-10 14:45:15 +0200 | [diff] [blame] | 1 | @charset "utf-8"; |
2 | @import "../util"; | ||||
3 | |||||
4 | /* | ||||
5 | * Define the base layout of horizontal button groups | ||||
6 | */ | ||||
7 | .button-group { | ||||
8 | > span { | ||||
9 | cursor: pointer; | ||||
Akron | bec4a6a | 2018-07-10 14:45:15 +0200 | [diff] [blame] | 10 | } |
Akron | 52ed22d | 2018-07-11 17:05:19 +0200 | [diff] [blame] | 11 | |
Akron | 858cbc8 | 2019-12-05 16:53:13 +0100 | [diff] [blame] | 12 | |
13 | span.button-icon { | ||||
14 | font-family: 'FontAwesome'; | ||||
15 | > span { | ||||
16 | @include blind; | ||||
17 | } | ||||
18 | } | ||||
19 | |||||
Akron | e6538cd | 2018-07-16 17:52:33 +0200 | [diff] [blame] | 20 | &.button-panel, &.operators { |
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 21 | > span { |
22 | box-shadow: $choose-box-shadow; | ||||
23 | font-size: 9pt; | ||||
24 | line-height: 1.5em; | ||||
25 | padding: 0 4px; | ||||
26 | display: inline-block; | ||||
27 | @include choose-item; | ||||
28 | border-style: solid; | ||||
29 | border-width: $border-size 0; | ||||
30 | &:hover { | ||||
31 | @include choose-hover; | ||||
32 | } | ||||
33 | &:first-child { | ||||
34 | border: { | ||||
35 | left-width: $border-size; | ||||
36 | top-left-radius: $standard-border-radius; | ||||
37 | bottom-left-radius: $standard-border-radius; | ||||
38 | } | ||||
39 | } | ||||
40 | &:last-child { | ||||
41 | border: { | ||||
42 | right-width: $border-size; | ||||
43 | top-right-radius: $standard-border-radius; | ||||
44 | bottom-right-radius: $standard-border-radius; | ||||
45 | } | ||||
46 | } | ||||
47 | } | ||||
Akron | 537bc52 | 2018-07-13 19:06:27 +0200 | [diff] [blame] | 48 | } |
Akron | 858cbc8 | 2019-12-05 16:53:13 +0100 | [diff] [blame] | 49 | |
50 | &.button-panel { | ||||
51 | > span > span.check { | ||||
52 | font-family: 'FontAwesome'; | ||||
53 | width: 1.2em; | ||||
54 | display: inline-block; | ||||
Akron | f4b2a33 | 2019-12-11 15:32:34 +0100 | [diff] [blame] | 55 | text-align: left; |
Akron | 858cbc8 | 2019-12-05 16:53:13 +0100 | [diff] [blame] | 56 | &:not(.checked)::after { |
57 | content: $fa-check; | ||||
58 | } | ||||
59 | &.checked::after { | ||||
60 | content: $fa-checked; | ||||
61 | } | ||||
62 | > span { | ||||
63 | @include blind; | ||||
64 | } | ||||
65 | } | ||||
66 | } | ||||
67 | |||||
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 68 | &.button-view { |
69 | display: block; | ||||
70 | position: absolute; | ||||
71 | right: 0; | ||||
72 | top: 0; | ||||
73 | z-index: 20; | ||||
74 | margin: 0; | ||||
75 | padding: 0; | ||||
Akron | fc8dbae | 2019-02-15 13:16:20 +0100 | [diff] [blame] | 76 | width: $right-view-distance; |
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 77 | > span:first-child { |
78 | margin-top: $border-size | ||||
79 | } | ||||
80 | > span { | ||||
Akron | bfe912c | 2018-07-17 19:30:52 +0200 | [diff] [blame] | 81 | display: block !important; |
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 82 | border-width: 0; |
83 | text-decoration:none; | ||||
84 | text-align: center; | ||||
85 | font-style: normal; | ||||
86 | |||||
87 | &.download::after { | ||||
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 88 | content: $fa-download; |
89 | } | ||||
90 | |||||
91 | &.close::after { | ||||
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 92 | content: $fa-close; |
93 | } | ||||
Akron | e1c27f6 | 2018-07-20 11:42:59 +0200 | [diff] [blame] | 94 | |
Akron | ec6bb8e | 2018-08-29 13:07:56 +0200 | [diff] [blame] | 95 | &.minimize::after { |
96 | content: $fa-minimize; | ||||
97 | } | ||||
98 | |||||
Akron | e1c27f6 | 2018-07-20 11:42:59 +0200 | [diff] [blame] | 99 | &.plugin::after { |
100 | content: $fa-plugin; | ||||
101 | } | ||||
Akron | 537bc52 | 2018-07-13 19:06:27 +0200 | [diff] [blame] | 102 | } |
103 | } | ||||
104 | } | ||||
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 105 | |
Akron | bfe912c | 2018-07-17 19:30:52 +0200 | [diff] [blame] | 106 | .button-group.button-view { |
107 | font-size: 10pt; | ||||
108 | color: $nearly-white; | ||||
109 | } | ||||
110 | |||||
hebasta | 1ec2ec4 | 2018-07-24 12:35:17 +0200 | [diff] [blame] | 111 | |
Akron | 1801c5c | 2018-07-16 18:15:48 +0200 | [diff] [blame] | 112 | ul.menu.button-group-list { |
Akron | 52ed22d | 2018-07-11 17:05:19 +0200 | [diff] [blame] | 113 | border-top-right-radius: 8px; |
Akron | 52ed22d | 2018-07-11 17:05:19 +0200 | [diff] [blame] | 114 | font-size: 10pt; |
115 | position: fixed; | ||||
116 | left: 0; | ||||
117 | text-align: left; | ||||
118 | margin: -1 * $border-size; | ||||
119 | margin-top: 0; | ||||
120 | > li:first-of-type { | ||||
121 | border-top-right-radius: 5px; | ||||
122 | } | ||||
123 | } | ||||
Akron | 537bc52 | 2018-07-13 19:06:27 +0200 | [diff] [blame] | 124 |