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