blob: db3462a00817c059df6745611da7e5f78ecd3265 [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 }
Akron858cbc82019-12-05 16:53:13 +010011
Akron7e5afce2020-08-25 15:50:19 +020012 &.button-panel,
13 &.operators {
14 > span,
15 a {
Akron4d926f12018-07-16 15:30:25 +020016 @include choose-item;
Akron7e5afce2020-08-25 15:50:19 +020017 box-shadow: $choose-box-shadow;
18 font-size: 9pt;
19 font-weight: normal;
20 line-height: 1.5em;
21 padding: 0 4px;
22 display: inline-block;
Akron4d926f12018-07-16 15:30:25 +020023 border-style: solid;
24 border-width: $border-size 0;
Akron7e5afce2020-08-25 15:50:19 +020025
Akron4d926f12018-07-16 15:30:25 +020026 &:hover {
27 @include choose-hover;
28 }
Akron7e5afce2020-08-25 15:50:19 +020029
Akron4d926f12018-07-16 15:30:25 +020030 &:first-child {
31 border: {
Akron7e5afce2020-08-25 15:50:19 +020032 left-width: $border-size;
33 top-left-radius: $standard-border-radius;
34 bottom-left-radius: $standard-border-radius;
35 }
Akron4d926f12018-07-16 15:30:25 +020036 }
Akron7e5afce2020-08-25 15:50:19 +020037
Akron4d926f12018-07-16 15:30:25 +020038 &:last-child {
39 border: {
Akron7e5afce2020-08-25 15:50:19 +020040 right-width: $border-size;
41 top-right-radius: $standard-border-radius;
42 bottom-right-radius: $standard-border-radius;
43 }
Akron4d926f12018-07-16 15:30:25 +020044 }
45 }
Akron537bc522018-07-13 19:06:27 +020046 }
Akron858cbc82019-12-05 16:53:13 +010047
48 &.button-panel {
Akron7e5afce2020-08-25 15:50:19 +020049 > span,
50 a {
51
Akron1a9d5be2020-03-19 17:28:33 +010052 > span.check {
Akron7e5afce2020-08-25 15:50:19 +020053 @include icon-font;
Akrondbf7bae2020-10-07 10:44:24 +020054 width: 1em;
Akron7e5afce2020-08-25 15:50:19 +020055 display: inline-block;
Akron1a9d5be2020-03-19 17:28:33 +010056 text-align: left;
Akron7e5afce2020-08-25 15:50:19 +020057
Akron1a9d5be2020-03-19 17:28:33 +010058 &:not(.checked)::after {
59 content: $fa-check;
60 }
Akron7e5afce2020-08-25 15:50:19 +020061
Akron1a9d5be2020-03-19 17:28:33 +010062 &.checked::after {
63 content: $fa-checked;
64 }
Akron7e5afce2020-08-25 15:50:19 +020065
Akron1a9d5be2020-03-19 17:28:33 +010066 > span {
67 @include blind;
68 }
Akron858cbc82019-12-05 16:53:13 +010069 }
70 }
71 }
72
Akron4d926f12018-07-16 15:30:25 +020073 &.button-view {
Akron7e5afce2020-08-25 15:50:19 +020074 position: absolute;
75 display: block;
76 right: 0;
77 top: 0;
78 z-index: 20;
79 margin: 0;
80 padding: 0;
81 width: $right-view-distance;
82 font-size: 10pt;
83 color: $nearly-white;
84
Akron4d926f12018-07-16 15:30:25 +020085 > span:first-child {
86 margin-top: $border-size
87 }
Akron7e5afce2020-08-25 15:50:19 +020088
Akron4d926f12018-07-16 15:30:25 +020089 > span {
Akron7e5afce2020-08-25 15:50:19 +020090 display: block !important;
91 border-width: 0;
92 text-decoration: none;
93 text-align: center;
94 font-style: normal;
Akron4d926f12018-07-16 15:30:25 +020095
96 &.download::after {
Akron4d926f12018-07-16 15:30:25 +020097 content: $fa-download;
98 }
99
100 &.close::after {
Akron4d926f12018-07-16 15:30:25 +0200101 content: $fa-close;
102 }
Akrone1c27f62018-07-20 11:42:59 +0200103
Akronec6bb8e2018-08-29 13:07:56 +0200104 &.minimize::after {
105 content: $fa-minimize;
106 }
107
Akrone1c27f62018-07-20 11:42:59 +0200108 &.plugin::after {
109 content: $fa-plugin;
110 }
Akron537bc522018-07-13 19:06:27 +0200111 }
112 }
113}
Akron4d926f12018-07-16 15:30:25 +0200114
hebasta1ec2ec42018-07-24 12:35:17 +0200115
Akron1801c5c2018-07-16 18:15:48 +0200116ul.menu.button-group-list {
Akron52ed22d2018-07-11 17:05:19 +0200117 border-top-right-radius: 8px;
Akron7e5afce2020-08-25 15:50:19 +0200118 position: fixed;
119 font-size: 10pt;
120 left: 0;
Akron52ed22d2018-07-11 17:05:19 +0200121 text-align: left;
Akron7e5afce2020-08-25 15:50:19 +0200122 margin: -1 * $border-size;
Akron52ed22d2018-07-11 17:05:19 +0200123 margin-top: 0;
Akron7e5afce2020-08-25 15:50:19 +0200124
Akron52ed22d2018-07-11 17:05:19 +0200125 > li:first-of-type {
126 border-top-right-radius: 5px;
127 }
128}
Akron537bc522018-07-13 19:06:27 +0200129
Akron7e5afce2020-08-25 15:50:19 +0200130.button-icon {
131 @include icon-font;
Akron36353052020-10-12 17:50:35 +0200132 line-height: 1.3;
Akron7e5afce2020-08-25 15:50:19 +0200133 > span {
134 @include blind;
135 }
hebasta40a85cf2020-07-15 18:10:08 +0200136 &[data-icon]::after {
137 content: attr(data-icon);
138 }
Akron7e5afce2020-08-25 15:50:19 +0200139}
Akron36353052020-10-12 17:50:35 +0200140
141.button-panel .button-icon {
142 line-height: .7;
143}