blob: 756ad58d4838086c9b096acf5607d2b5cfbc8689 [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;
Akronf4b2a332019-12-11 15:32:34 +010055 text-align: left;
Akron858cbc82019-12-05 16:53:13 +010056 &:not(.checked)::after {
57 content: $fa-check;
58 }
59 &.checked::after {
60 content: $fa-checked;
61 }
62 > span {
63 @include blind;
64 }
65 }
66 }
67
Akron4d926f12018-07-16 15:30:25 +020068 &.button-view {
69 display: block;
70 position: absolute;
71 right: 0;
72 top: 0;
73 z-index: 20;
74 margin: 0;
75 padding: 0;
Akronfc8dbae2019-02-15 13:16:20 +010076 width: $right-view-distance;
Akron4d926f12018-07-16 15:30:25 +020077 > span:first-child {
78 margin-top: $border-size
79 }
80 > span {
Akronbfe912c2018-07-17 19:30:52 +020081 display: block !important;
Akron4d926f12018-07-16 15:30:25 +020082 border-width: 0;
83 text-decoration:none;
84 text-align: center;
85 font-style: normal;
86
87 &.download::after {
Akron4d926f12018-07-16 15:30:25 +020088 content: $fa-download;
89 }
90
91 &.close::after {
Akron4d926f12018-07-16 15:30:25 +020092 content: $fa-close;
93 }
Akrone1c27f62018-07-20 11:42:59 +020094
Akronec6bb8e2018-08-29 13:07:56 +020095 &.minimize::after {
96 content: $fa-minimize;
97 }
98
Akrone1c27f62018-07-20 11:42:59 +020099 &.plugin::after {
100 content: $fa-plugin;
101 }
Akron537bc522018-07-13 19:06:27 +0200102 }
103 }
104}
Akron4d926f12018-07-16 15:30:25 +0200105
Akronbfe912c2018-07-17 19:30:52 +0200106.button-group.button-view {
107 font-size: 10pt;
108 color: $nearly-white;
109}
110
hebasta1ec2ec42018-07-24 12:35:17 +0200111
Akron1801c5c2018-07-16 18:15:48 +0200112ul.menu.button-group-list {
Akron52ed22d2018-07-11 17:05:19 +0200113 border-top-right-radius: 8px;
Akron52ed22d2018-07-11 17:05:19 +0200114 font-size: 10pt;
115 position: fixed;
116 left: 0;
117 text-align: left;
118 margin: -1 * $border-size;
119 margin-top: 0;
120 > li:first-of-type {
121 border-top-right-radius: 5px;
122 }
123}
Akron537bc522018-07-13 19:06:27 +0200124