blob: 6a892973d3033526912259ae5b0a25ea66afdcf5 [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 {
Akron83209f72021-01-29 17:54:15 +01008 font-size: 0;
Akronbec4a6a2018-07-10 14:45:15 +02009 > span {
10 cursor: pointer;
Akronbec4a6a2018-07-10 14:45:15 +020011 }
Akron858cbc82019-12-05 16:53:13 +010012
Akron7e5afce2020-08-25 15:50:19 +020013 &.button-panel,
14 &.operators {
15 > span,
16 a {
Akron4d926f12018-07-16 15:30:25 +020017 @include choose-item;
Akron7e5afce2020-08-25 15:50:19 +020018 box-shadow: $choose-box-shadow;
19 font-size: 9pt;
20 font-weight: normal;
21 line-height: 1.5em;
22 padding: 0 4px;
23 display: inline-block;
Akron4d926f12018-07-16 15:30:25 +020024 border-style: solid;
25 border-width: $border-size 0;
Akron7e5afce2020-08-25 15:50:19 +020026
Akron4d926f12018-07-16 15:30:25 +020027 &:hover {
28 @include choose-hover;
29 }
Akron7e5afce2020-08-25 15:50:19 +020030
Akron4d926f12018-07-16 15:30:25 +020031 &:first-child {
32 border: {
Akron7e5afce2020-08-25 15:50:19 +020033 left-width: $border-size;
34 top-left-radius: $standard-border-radius;
35 bottom-left-radius: $standard-border-radius;
36 }
Akron4d926f12018-07-16 15:30:25 +020037 }
Akron7e5afce2020-08-25 15:50:19 +020038
Akron4d926f12018-07-16 15:30:25 +020039 &:last-child {
40 border: {
Akron7e5afce2020-08-25 15:50:19 +020041 right-width: $border-size;
42 top-right-radius: $standard-border-radius;
43 bottom-right-radius: $standard-border-radius;
44 }
Akron4d926f12018-07-16 15:30:25 +020045 }
46 }
Akron537bc522018-07-13 19:06:27 +020047 }
Akron858cbc82019-12-05 16:53:13 +010048
49 &.button-panel {
Akron7e5afce2020-08-25 15:50:19 +020050 > span,
51 a {
52
Akron1a9d5be2020-03-19 17:28:33 +010053 > span.check {
Akron7e5afce2020-08-25 15:50:19 +020054 @include icon-font;
Akrondbf7bae2020-10-07 10:44:24 +020055 width: 1em;
Akron7e5afce2020-08-25 15:50:19 +020056 display: inline-block;
Akron1a9d5be2020-03-19 17:28:33 +010057 text-align: left;
Akron7e5afce2020-08-25 15:50:19 +020058
Akron1a9d5be2020-03-19 17:28:33 +010059 &:not(.checked)::after {
60 content: $fa-check;
61 }
Akron7e5afce2020-08-25 15:50:19 +020062
Akron1a9d5be2020-03-19 17:28:33 +010063 &.checked::after {
64 content: $fa-checked;
65 }
Akron7e5afce2020-08-25 15:50:19 +020066
Akron1a9d5be2020-03-19 17:28:33 +010067 > span {
68 @include blind;
69 }
Akron858cbc82019-12-05 16:53:13 +010070 }
71 }
72 }
73
Akron4d926f12018-07-16 15:30:25 +020074 &.button-view {
Akron7e5afce2020-08-25 15:50:19 +020075 position: absolute;
76 display: block;
77 right: 0;
78 top: 0;
79 z-index: 20;
80 margin: 0;
81 padding: 0;
82 width: $right-view-distance;
83 font-size: 10pt;
84 color: $nearly-white;
85
Akron4d926f12018-07-16 15:30:25 +020086 > span:first-child {
87 margin-top: $border-size
88 }
Akron7e5afce2020-08-25 15:50:19 +020089
Akron4d926f12018-07-16 15:30:25 +020090 > span {
Akron7e5afce2020-08-25 15:50:19 +020091 display: block !important;
92 border-width: 0;
93 text-decoration: none;
94 text-align: center;
95 font-style: normal;
Akron4d926f12018-07-16 15:30:25 +020096
97 &.download::after {
Akron4d926f12018-07-16 15:30:25 +020098 content: $fa-download;
99 }
100
101 &.close::after {
Akron4d926f12018-07-16 15:30:25 +0200102 content: $fa-close;
103 }
Akrone1c27f62018-07-20 11:42:59 +0200104
Akronec6bb8e2018-08-29 13:07:56 +0200105 &.minimize::after {
106 content: $fa-minimize;
107 }
108
Akrone1c27f62018-07-20 11:42:59 +0200109 &.plugin::after {
110 content: $fa-plugin;
111 }
Akron537bc522018-07-13 19:06:27 +0200112 }
113 }
114}
Akron4d926f12018-07-16 15:30:25 +0200115
hebasta1ec2ec42018-07-24 12:35:17 +0200116
Akron1801c5c2018-07-16 18:15:48 +0200117ul.menu.button-group-list {
Akron52ed22d2018-07-11 17:05:19 +0200118 border-top-right-radius: 8px;
Akron7e5afce2020-08-25 15:50:19 +0200119 position: fixed;
120 font-size: 10pt;
121 left: 0;
Akron52ed22d2018-07-11 17:05:19 +0200122 text-align: left;
Akron7e5afce2020-08-25 15:50:19 +0200123 margin: -1 * $border-size;
Akron52ed22d2018-07-11 17:05:19 +0200124 margin-top: 0;
Akron7e5afce2020-08-25 15:50:19 +0200125
Akron52ed22d2018-07-11 17:05:19 +0200126 > li:first-of-type {
127 border-top-right-radius: 5px;
128 }
129}
Akron537bc522018-07-13 19:06:27 +0200130
Akron7e5afce2020-08-25 15:50:19 +0200131.button-icon {
132 @include icon-font;
Akron36353052020-10-12 17:50:35 +0200133 line-height: 1.3;
Akron7e5afce2020-08-25 15:50:19 +0200134 > span {
135 @include blind;
136 }
hebasta40a85cf2020-07-15 18:10:08 +0200137 &[data-icon]::after {
138 content: attr(data-icon);
139 }
Akron7e5afce2020-08-25 15:50:19 +0200140}
Akron36353052020-10-12 17:50:35 +0200141
142.button-panel .button-icon {
143 line-height: .7;
144}