blob: e0d2cba9b4663bb1554751d858587f9d230d1ec5 [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
13 span.button-icon {
14 font-family: 'FontAwesome';
15 > span {
16 @include blind;
17 }
18 }
19
Akrone6538cd2018-07-16 17:52:33 +020020 &.button-panel, &.operators {
Akron4d926f12018-07-16 15:30:25 +020021 > span {
22 box-shadow: $choose-box-shadow;
23 font-size: 9pt;
24 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 {
51 > span > span.check {
52 font-family: 'FontAwesome';
53 width: 1.2em;
54 display: inline-block;
55 &:not(.checked)::after {
56 content: $fa-check;
57 }
58 &.checked::after {
59 content: $fa-checked;
60 }
61 > span {
62 @include blind;
63 }
64 }
65 }
66
Akron4d926f12018-07-16 15:30:25 +020067 &.button-view {
68 display: block;
69 position: absolute;
70 right: 0;
71 top: 0;
72 z-index: 20;
73 margin: 0;
74 padding: 0;
Akronfc8dbae2019-02-15 13:16:20 +010075 width: $right-view-distance;
Akron4d926f12018-07-16 15:30:25 +020076 > span:first-child {
77 margin-top: $border-size
78 }
79 > span {
Akronbfe912c2018-07-17 19:30:52 +020080 display: block !important;
Akron4d926f12018-07-16 15:30:25 +020081 border-width: 0;
82 text-decoration:none;
83 text-align: center;
84 font-style: normal;
85
86 &.download::after {
Akron4d926f12018-07-16 15:30:25 +020087 content: $fa-download;
88 }
89
90 &.close::after {
Akron4d926f12018-07-16 15:30:25 +020091 content: $fa-close;
92 }
Akrone1c27f62018-07-20 11:42:59 +020093
Akronec6bb8e2018-08-29 13:07:56 +020094 &.minimize::after {
95 content: $fa-minimize;
96 }
97
Akrone1c27f62018-07-20 11:42:59 +020098 &.plugin::after {
99 content: $fa-plugin;
100 }
Akron537bc522018-07-13 19:06:27 +0200101 }
102 }
103}
Akron4d926f12018-07-16 15:30:25 +0200104
Akronbfe912c2018-07-17 19:30:52 +0200105.button-group.button-view {
106 font-size: 10pt;
107 color: $nearly-white;
108}
109
hebasta1ec2ec42018-07-24 12:35:17 +0200110
Akron1801c5c2018-07-16 18:15:48 +0200111ul.menu.button-group-list {
Akron52ed22d2018-07-11 17:05:19 +0200112 border-top-right-radius: 8px;
Akron52ed22d2018-07-11 17:05:19 +0200113 font-size: 10pt;
114 position: fixed;
115 left: 0;
116 text-align: left;
117 margin: -1 * $border-size;
118 margin-top: 0;
119 > li:first-of-type {
120 border-top-right-radius: 5px;
121 }
122}
Akron537bc522018-07-13 19:06:27 +0200123