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