blob: 55bd6b985916ac78736fa608cda277533b73958e [file] [log] [blame]
Akronbec4a6a2018-07-10 14:45:15 +02001@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;
Akronbec4a6a2018-07-10 14:45:15 +020010 }
Akron52ed22d2018-07-11 17:05:19 +020011
Akron858cbc82019-12-05 16:53:13 +010012 span.button-icon {
13 font-family: 'FontAwesome';
14 > span {
15 @include blind;
16 }
17 }
18
Akrone6538cd2018-07-16 17:52:33 +020019 &.button-panel, &.operators {
Akron1a9d5be2020-03-19 17:28:33 +010020 > span, a {
Akron4d926f12018-07-16 15:30:25 +020021 box-shadow: $choose-box-shadow;
22 font-size: 9pt;
Akron1a9d5be2020-03-19 17:28:33 +010023 font-weight: normal;
Akron4d926f12018-07-16 15:30:25 +020024 line-height: 1.5em;
25 padding: 0 4px;
26 display: inline-block;
27 @include choose-item;
28 border-style: solid;
29 border-width: $border-size 0;
30 &:hover {
31 @include choose-hover;
32 }
33 &:first-child {
34 border: {
35 left-width: $border-size;
36 top-left-radius: $standard-border-radius;
37 bottom-left-radius: $standard-border-radius;
38 }
39 }
40 &:last-child {
41 border: {
42 right-width: $border-size;
43 top-right-radius: $standard-border-radius;
44 bottom-right-radius: $standard-border-radius;
45 }
46 }
47 }
Akron537bc522018-07-13 19:06:27 +020048 }
Akron858cbc82019-12-05 16:53:13 +010049
50 &.button-panel {
Akron1a9d5be2020-03-19 17:28:33 +010051 > span, a {
52 > span.check {
53 font-family: 'FontAwesome';
54 width: 1.2em;
55 display: inline-block;
56 text-align: left;
57 &:not(.checked)::after {
58 content: $fa-check;
59 }
60 &.checked::after {
61 content: $fa-checked;
62 }
63 > span {
64 @include blind;
65 }
Akron858cbc82019-12-05 16:53:13 +010066 }
67 }
68 }
69
Akron4d926f12018-07-16 15:30:25 +020070 &.button-view {
71 display: block;
72 position: absolute;
73 right: 0;
74 top: 0;
75 z-index: 20;
76 margin: 0;
77 padding: 0;
Akronfc8dbae2019-02-15 13:16:20 +010078 width: $right-view-distance;
Akron4d926f12018-07-16 15:30:25 +020079 > span:first-child {
80 margin-top: $border-size
81 }
82 > span {
Akronbfe912c2018-07-17 19:30:52 +020083 display: block !important;
Akron4d926f12018-07-16 15:30:25 +020084 border-width: 0;
85 text-decoration:none;
86 text-align: center;
87 font-style: normal;
88
89 &.download::after {
Akron4d926f12018-07-16 15:30:25 +020090 content: $fa-download;
91 }
92
93 &.close::after {
Akron4d926f12018-07-16 15:30:25 +020094 content: $fa-close;
95 }
Akrone1c27f62018-07-20 11:42:59 +020096
Akronec6bb8e2018-08-29 13:07:56 +020097 &.minimize::after {
98 content: $fa-minimize;
99 }
100
Akrone1c27f62018-07-20 11:42:59 +0200101 &.plugin::after {
102 content: $fa-plugin;
103 }
Akron537bc522018-07-13 19:06:27 +0200104 }
105 }
106}
Akron4d926f12018-07-16 15:30:25 +0200107
Akronbfe912c2018-07-17 19:30:52 +0200108.button-group.button-view {
109 font-size: 10pt;
110 color: $nearly-white;
111}
112
hebasta1ec2ec42018-07-24 12:35:17 +0200113
Akron1801c5c2018-07-16 18:15:48 +0200114ul.menu.button-group-list {
Akron52ed22d2018-07-11 17:05:19 +0200115 border-top-right-radius: 8px;
Akron52ed22d2018-07-11 17:05:19 +0200116 font-size: 10pt;
117 position: fixed;
118 left: 0;
119 text-align: left;
120 margin: -1 * $border-size;
121 margin-top: 0;
122 > li:first-of-type {
123 border-top-right-radius: 5px;
124 }
125}
Akron537bc522018-07-13 19:06:27 +0200126