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