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