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 { | ||||
Akron | 83209f7 | 2021-01-29 17:54:15 +0100 | [diff] [blame^] | 8 | font-size: 0; |
Akron | bec4a6a | 2018-07-10 14:45:15 +0200 | [diff] [blame] | 9 | > span { |
10 | cursor: pointer; | ||||
Akron | bec4a6a | 2018-07-10 14:45:15 +0200 | [diff] [blame] | 11 | } |
Akron | 858cbc8 | 2019-12-05 16:53:13 +0100 | [diff] [blame] | 12 | |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 13 | &.button-panel, |
14 | &.operators { | ||||
15 | > span, | ||||
16 | a { | ||||
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 17 | @include choose-item; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 18 | box-shadow: $choose-box-shadow; |
19 | font-size: 9pt; | ||||
20 | font-weight: normal; | ||||
21 | line-height: 1.5em; | ||||
22 | padding: 0 4px; | ||||
23 | display: inline-block; | ||||
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 24 | border-style: solid; |
25 | border-width: $border-size 0; | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 26 | |
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 27 | &:hover { |
28 | @include choose-hover; | ||||
29 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 30 | |
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 31 | &:first-child { |
32 | border: { | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 33 | left-width: $border-size; |
34 | top-left-radius: $standard-border-radius; | ||||
35 | bottom-left-radius: $standard-border-radius; | ||||
36 | } | ||||
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 37 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 38 | |
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 39 | &:last-child { |
40 | border: { | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 41 | right-width: $border-size; |
42 | top-right-radius: $standard-border-radius; | ||||
43 | bottom-right-radius: $standard-border-radius; | ||||
44 | } | ||||
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 45 | } |
46 | } | ||||
Akron | 537bc52 | 2018-07-13 19:06:27 +0200 | [diff] [blame] | 47 | } |
Akron | 858cbc8 | 2019-12-05 16:53:13 +0100 | [diff] [blame] | 48 | |
49 | &.button-panel { | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 50 | > span, |
51 | a { | ||||
52 | |||||
Akron | 1a9d5be | 2020-03-19 17:28:33 +0100 | [diff] [blame] | 53 | > span.check { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 54 | @include icon-font; |
Akron | dbf7bae | 2020-10-07 10:44:24 +0200 | [diff] [blame] | 55 | width: 1em; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 56 | display: inline-block; |
Akron | 1a9d5be | 2020-03-19 17:28:33 +0100 | [diff] [blame] | 57 | text-align: left; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 58 | |
Akron | 1a9d5be | 2020-03-19 17:28:33 +0100 | [diff] [blame] | 59 | &:not(.checked)::after { |
60 | content: $fa-check; | ||||
61 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 62 | |
Akron | 1a9d5be | 2020-03-19 17:28:33 +0100 | [diff] [blame] | 63 | &.checked::after { |
64 | content: $fa-checked; | ||||
65 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 66 | |
Akron | 1a9d5be | 2020-03-19 17:28:33 +0100 | [diff] [blame] | 67 | > span { |
68 | @include blind; | ||||
69 | } | ||||
Akron | 858cbc8 | 2019-12-05 16:53:13 +0100 | [diff] [blame] | 70 | } |
71 | } | ||||
72 | } | ||||
73 | |||||
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 74 | &.button-view { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 75 | position: absolute; |
76 | display: block; | ||||
77 | right: 0; | ||||
78 | top: 0; | ||||
79 | z-index: 20; | ||||
80 | margin: 0; | ||||
81 | padding: 0; | ||||
82 | width: $right-view-distance; | ||||
83 | font-size: 10pt; | ||||
84 | color: $nearly-white; | ||||
85 | |||||
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 86 | > span:first-child { |
87 | margin-top: $border-size | ||||
88 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 89 | |
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 90 | > span { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 91 | display: block !important; |
92 | border-width: 0; | ||||
93 | text-decoration: none; | ||||
94 | text-align: center; | ||||
95 | font-style: normal; | ||||
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 96 | |
97 | &.download::after { | ||||
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 98 | content: $fa-download; |
99 | } | ||||
100 | |||||
101 | &.close::after { | ||||
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 102 | content: $fa-close; |
103 | } | ||||
Akron | e1c27f6 | 2018-07-20 11:42:59 +0200 | [diff] [blame] | 104 | |
Akron | ec6bb8e | 2018-08-29 13:07:56 +0200 | [diff] [blame] | 105 | &.minimize::after { |
106 | content: $fa-minimize; | ||||
107 | } | ||||
108 | |||||
Akron | e1c27f6 | 2018-07-20 11:42:59 +0200 | [diff] [blame] | 109 | &.plugin::after { |
110 | content: $fa-plugin; | ||||
111 | } | ||||
Akron | 537bc52 | 2018-07-13 19:06:27 +0200 | [diff] [blame] | 112 | } |
113 | } | ||||
114 | } | ||||
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 115 | |
hebasta | 1ec2ec4 | 2018-07-24 12:35:17 +0200 | [diff] [blame] | 116 | |
Akron | 1801c5c | 2018-07-16 18:15:48 +0200 | [diff] [blame] | 117 | ul.menu.button-group-list { |
Akron | 52ed22d | 2018-07-11 17:05:19 +0200 | [diff] [blame] | 118 | border-top-right-radius: 8px; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 119 | position: fixed; |
120 | font-size: 10pt; | ||||
121 | left: 0; | ||||
Akron | 52ed22d | 2018-07-11 17:05:19 +0200 | [diff] [blame] | 122 | text-align: left; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 123 | margin: -1 * $border-size; |
Akron | 52ed22d | 2018-07-11 17:05:19 +0200 | [diff] [blame] | 124 | margin-top: 0; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 125 | |
Akron | 52ed22d | 2018-07-11 17:05:19 +0200 | [diff] [blame] | 126 | > li:first-of-type { |
127 | border-top-right-radius: 5px; | ||||
128 | } | ||||
129 | } | ||||
Akron | 537bc52 | 2018-07-13 19:06:27 +0200 | [diff] [blame] | 130 | |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 131 | .button-icon { |
132 | @include icon-font; | ||||
Akron | 3635305 | 2020-10-12 17:50:35 +0200 | [diff] [blame] | 133 | line-height: 1.3; |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 134 | > span { |
135 | @include blind; | ||||
136 | } | ||||
hebasta | 40a85cf | 2020-07-15 18:10:08 +0200 | [diff] [blame] | 137 | &[data-icon]::after { |
138 | content: attr(data-icon); | ||||
139 | } | ||||
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 140 | } |
Akron | 3635305 | 2020-10-12 17:50:35 +0200 | [diff] [blame] | 141 | |
142 | .button-panel .button-icon { | ||||
143 | line-height: .7; | ||||
144 | } |