blob: 85b2527296f59664b41c231294f5dcd349ee47ef [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,
Akron62f3a032021-06-09 10:20:03 +020016 input[type=submit],
Akron7e5afce2020-08-25 15:50:19 +020017 a {
Akron4d926f12018-07-16 15:30:25 +020018 @include choose-item;
Akron7e5afce2020-08-25 15:50:19 +020019 box-shadow: $choose-box-shadow;
20 font-size: 9pt;
21 font-weight: normal;
22 line-height: 1.5em;
23 padding: 0 4px;
24 display: inline-block;
Akron4d926f12018-07-16 15:30:25 +020025 border-style: solid;
26 border-width: $border-size 0;
Akron7e5afce2020-08-25 15:50:19 +020027
Akron4d926f12018-07-16 15:30:25 +020028 &:hover {
29 @include choose-hover;
30 }
Akron7e5afce2020-08-25 15:50:19 +020031
Akron4d926f12018-07-16 15:30:25 +020032 &:first-child {
33 border: {
Akron7e5afce2020-08-25 15:50:19 +020034 left-width: $border-size;
35 top-left-radius: $standard-border-radius;
36 bottom-left-radius: $standard-border-radius;
37 }
Akron4d926f12018-07-16 15:30:25 +020038 }
Akron7e5afce2020-08-25 15:50:19 +020039
Akron4d926f12018-07-16 15:30:25 +020040 &:last-child {
41 border: {
Akron7e5afce2020-08-25 15:50:19 +020042 right-width: $border-size;
43 top-right-radius: $standard-border-radius;
44 bottom-right-radius: $standard-border-radius;
45 }
Akron4d926f12018-07-16 15:30:25 +020046 }
47 }
Akron537bc522018-07-13 19:06:27 +020048 }
Akron858cbc82019-12-05 16:53:13 +010049
50 &.button-panel {
Akron7e5afce2020-08-25 15:50:19 +020051 > span,
Akron62f3a032021-06-09 10:20:03 +020052 input[type=submit],
Akron7e5afce2020-08-25 15:50:19 +020053 a {
Akron62f3a032021-06-09 10:20:03 +020054 margin-top: 0;
55 width: auto;
56 min-width: auto;
Akron7e5afce2020-08-25 15:50:19 +020057
Akron1a9d5be2020-03-19 17:28:33 +010058 > span.check {
Akron7e5afce2020-08-25 15:50:19 +020059 @include icon-font;
Akrondbf7bae2020-10-07 10:44:24 +020060 width: 1em;
Akron7e5afce2020-08-25 15:50:19 +020061 display: inline-block;
Akron1a9d5be2020-03-19 17:28:33 +010062 text-align: left;
Akron7e5afce2020-08-25 15:50:19 +020063
Akron1a9d5be2020-03-19 17:28:33 +010064 &:not(.checked)::after {
65 content: $fa-check;
66 }
Akron7e5afce2020-08-25 15:50:19 +020067
Akron1a9d5be2020-03-19 17:28:33 +010068 &.checked::after {
69 content: $fa-checked;
70 }
Akron7e5afce2020-08-25 15:50:19 +020071
Akron1a9d5be2020-03-19 17:28:33 +010072 > span {
73 @include blind;
74 }
Akron858cbc82019-12-05 16:53:13 +010075 }
76 }
77 }
78
Akron4d926f12018-07-16 15:30:25 +020079 &.button-view {
Akron7e5afce2020-08-25 15:50:19 +020080 position: absolute;
81 display: block;
82 right: 0;
83 top: 0;
84 z-index: 20;
85 margin: 0;
86 padding: 0;
87 width: $right-view-distance;
88 font-size: 10pt;
89 color: $nearly-white;
90
Akron4d926f12018-07-16 15:30:25 +020091 > span:first-child {
92 margin-top: $border-size
93 }
Akron7e5afce2020-08-25 15:50:19 +020094
Akron4d926f12018-07-16 15:30:25 +020095 > span {
Akron7e5afce2020-08-25 15:50:19 +020096 display: block !important;
97 border-width: 0;
98 text-decoration: none;
99 text-align: center;
100 font-style: normal;
Akron4d926f12018-07-16 15:30:25 +0200101
102 &.download::after {
Akron4d926f12018-07-16 15:30:25 +0200103 content: $fa-download;
104 }
105
106 &.close::after {
Akron4d926f12018-07-16 15:30:25 +0200107 content: $fa-close;
108 }
Akrone1c27f62018-07-20 11:42:59 +0200109
Akronec6bb8e2018-08-29 13:07:56 +0200110 &.minimize::after {
111 content: $fa-minimize;
112 }
113
Akrone1c27f62018-07-20 11:42:59 +0200114 &.plugin::after {
115 content: $fa-plugin;
116 }
Akron537bc522018-07-13 19:06:27 +0200117 }
118 }
119}
Akron4d926f12018-07-16 15:30:25 +0200120
hebasta1ec2ec42018-07-24 12:35:17 +0200121
Akron1801c5c2018-07-16 18:15:48 +0200122ul.menu.button-group-list {
Akron52ed22d2018-07-11 17:05:19 +0200123 border-top-right-radius: 8px;
Akron7e5afce2020-08-25 15:50:19 +0200124 position: fixed;
125 font-size: 10pt;
126 left: 0;
Akron52ed22d2018-07-11 17:05:19 +0200127 text-align: left;
Akron7e5afce2020-08-25 15:50:19 +0200128 margin: -1 * $border-size;
Akron52ed22d2018-07-11 17:05:19 +0200129 margin-top: 0;
Akron7e5afce2020-08-25 15:50:19 +0200130
Akron52ed22d2018-07-11 17:05:19 +0200131 > li:first-of-type {
132 border-top-right-radius: 5px;
133 }
134}
Akron537bc522018-07-13 19:06:27 +0200135
Akron7e5afce2020-08-25 15:50:19 +0200136.button-icon {
137 @include icon-font;
Akron36353052020-10-12 17:50:35 +0200138 line-height: 1.3;
Akron7e5afce2020-08-25 15:50:19 +0200139 > span {
140 @include blind;
141 }
hebasta40a85cf2020-07-15 18:10:08 +0200142 &[data-icon]::after {
143 content: attr(data-icon);
144 }
Akron7e5afce2020-08-25 15:50:19 +0200145}
Akron36353052020-10-12 17:50:35 +0200146
147.button-panel .button-icon {
148 line-height: .7;
Akron62f3a032021-06-09 10:20:03 +0200149}