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 | span.button-icon { |
13 | font-family: 'FontAwesome'; | ||||
14 | > span { | ||||
15 | @include blind; | ||||
16 | } | ||||
17 | } | ||||
18 | |||||
Akron | e6538cd | 2018-07-16 17:52:33 +0200 | [diff] [blame] | 19 | &.button-panel, &.operators { |
Akron | 1a9d5be | 2020-03-19 17:28:33 +0100 | [diff] [blame] | 20 | > span, a { |
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 21 | box-shadow: $choose-box-shadow; |
22 | font-size: 9pt; | ||||
Akron | 1a9d5be | 2020-03-19 17:28:33 +0100 | [diff] [blame] | 23 | font-weight: normal; |
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 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 { | ||||
Akron | 1a9d5be | 2020-03-19 17:28:33 +0100 | [diff] [blame] | 51 | > span, a { |
52 | > span.check { | ||||
53 | font-family: 'FontAwesome'; | ||||
54 | width: 1.2em; | ||||
55 | display: inline-block; | ||||
56 | text-align: left; | ||||
57 | &:not(.checked)::after { | ||||
58 | content: $fa-check; | ||||
59 | } | ||||
60 | &.checked::after { | ||||
61 | content: $fa-checked; | ||||
62 | } | ||||
63 | > span { | ||||
64 | @include blind; | ||||
65 | } | ||||
Akron | 858cbc8 | 2019-12-05 16:53:13 +0100 | [diff] [blame] | 66 | } |
67 | } | ||||
68 | } | ||||
69 | |||||
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 70 | &.button-view { |
71 | display: block; | ||||
72 | position: absolute; | ||||
73 | right: 0; | ||||
74 | top: 0; | ||||
75 | z-index: 20; | ||||
76 | margin: 0; | ||||
77 | padding: 0; | ||||
Akron | fc8dbae | 2019-02-15 13:16:20 +0100 | [diff] [blame] | 78 | width: $right-view-distance; |
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 79 | > span:first-child { |
80 | margin-top: $border-size | ||||
81 | } | ||||
82 | > span { | ||||
Akron | bfe912c | 2018-07-17 19:30:52 +0200 | [diff] [blame] | 83 | display: block !important; |
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 84 | border-width: 0; |
85 | text-decoration:none; | ||||
86 | text-align: center; | ||||
87 | font-style: normal; | ||||
88 | |||||
89 | &.download::after { | ||||
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 90 | content: $fa-download; |
91 | } | ||||
92 | |||||
93 | &.close::after { | ||||
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 94 | content: $fa-close; |
95 | } | ||||
Akron | e1c27f6 | 2018-07-20 11:42:59 +0200 | [diff] [blame] | 96 | |
Akron | ec6bb8e | 2018-08-29 13:07:56 +0200 | [diff] [blame] | 97 | &.minimize::after { |
98 | content: $fa-minimize; | ||||
99 | } | ||||
100 | |||||
Akron | e1c27f6 | 2018-07-20 11:42:59 +0200 | [diff] [blame] | 101 | &.plugin::after { |
102 | content: $fa-plugin; | ||||
103 | } | ||||
Akron | 537bc52 | 2018-07-13 19:06:27 +0200 | [diff] [blame] | 104 | } |
105 | } | ||||
106 | } | ||||
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 107 | |
Akron | bfe912c | 2018-07-17 19:30:52 +0200 | [diff] [blame] | 108 | .button-group.button-view { |
109 | font-size: 10pt; | ||||
110 | color: $nearly-white; | ||||
111 | } | ||||
112 | |||||
hebasta | 1ec2ec4 | 2018-07-24 12:35:17 +0200 | [diff] [blame] | 113 | |
Akron | 1801c5c | 2018-07-16 18:15:48 +0200 | [diff] [blame] | 114 | ul.menu.button-group-list { |
Akron | 52ed22d | 2018-07-11 17:05:19 +0200 | [diff] [blame] | 115 | border-top-right-radius: 8px; |
Akron | 52ed22d | 2018-07-11 17:05:19 +0200 | [diff] [blame] | 116 | font-size: 10pt; |
117 | position: fixed; | ||||
118 | left: 0; | ||||
119 | text-align: left; | ||||
120 | margin: -1 * $border-size; | ||||
121 | margin-top: 0; | ||||
122 | > li:first-of-type { | ||||
123 | border-top-right-radius: 5px; | ||||
124 | } | ||||
125 | } | ||||
Akron | 537bc52 | 2018-07-13 19:06:27 +0200 | [diff] [blame] | 126 |