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