blob: fc9c6a61ef7ac914bcc41edeeb716d6cfb04b382 [file] [log] [blame]
Akronbec4a6a2018-07-10 14:45:15 +02001@charset "utf-8";
Akron7636edf2025-11-04 12:44:53 +01002@use "../util";
3@use "choose";
4@use "colors";
5@use "icons";
6@use "lengths";
7@use "mixins";
Akronbec4a6a2018-07-10 14:45:15 +02008
9/*
10 * Define the base layout of horizontal button groups
11 */
12.button-group {
Akron83209f72021-01-29 17:54:15 +010013 font-size: 0;
Akronbec4a6a2018-07-10 14:45:15 +020014 > span {
15 cursor: pointer;
Akronbec4a6a2018-07-10 14:45:15 +020016 }
Akron858cbc82019-12-05 16:53:13 +010017
Akron7e5afce2020-08-25 15:50:19 +020018 &.button-panel,
19 &.operators {
20 > span,
Akron62f3a032021-06-09 10:20:03 +020021 input[type=submit],
Akron7e5afce2020-08-25 15:50:19 +020022 a {
Akron7636edf2025-11-04 12:44:53 +010023 @include choose.choose-item;
24 box-shadow: choose.$choose-box-shadow;
Akron7e5afce2020-08-25 15:50:19 +020025 font-size: 9pt;
26 font-weight: normal;
27 line-height: 1.5em;
28 padding: 0 4px;
29 display: inline-block;
Akron4d926f12018-07-16 15:30:25 +020030 border-style: solid;
Akron7636edf2025-11-04 12:44:53 +010031 border-width: lengths.$border-size 0;
Akron7e5afce2020-08-25 15:50:19 +020032
Akrona4b17f72021-11-04 15:37:02 +010033 &:not(.inactive):hover {
Akron7636edf2025-11-04 12:44:53 +010034 @include choose.choose-hover;
Akronb29c51f2021-07-27 17:23:35 +020035 transition: none;
Akron4d926f12018-07-16 15:30:25 +020036 }
Akron7e5afce2020-08-25 15:50:19 +020037
Akron4d926f12018-07-16 15:30:25 +020038 &:first-child {
39 border: {
Akron7636edf2025-11-04 12:44:53 +010040 left-width: lengths.$border-size;
41 top-left-radius: lengths.$standard-border-radius;
42 bottom-left-radius: lengths.$standard-border-radius;
Akron7e5afce2020-08-25 15:50:19 +020043 }
Akron4d926f12018-07-16 15:30:25 +020044 }
Akron7e5afce2020-08-25 15:50:19 +020045
Akron4d926f12018-07-16 15:30:25 +020046 &:last-child {
47 border: {
Akron7636edf2025-11-04 12:44:53 +010048 right-width: lengths.$border-size;
49 top-right-radius: lengths.$standard-border-radius;
50 bottom-right-radius: lengths.$standard-border-radius;
Akron7e5afce2020-08-25 15:50:19 +020051 }
Akron4d926f12018-07-16 15:30:25 +020052 }
53 }
Akron537bc522018-07-13 19:06:27 +020054 }
Akron858cbc82019-12-05 16:53:13 +010055
56 &.button-panel {
Akron7e5afce2020-08-25 15:50:19 +020057 > span,
Akron62f3a032021-06-09 10:20:03 +020058 input[type=submit],
Akron7e5afce2020-08-25 15:50:19 +020059 a {
Akron62f3a032021-06-09 10:20:03 +020060 margin-top: 0;
61 width: auto;
62 min-width: auto;
Akron7e5afce2020-08-25 15:50:19 +020063
Akron1a9d5be2020-03-19 17:28:33 +010064 > span.check {
Akron7636edf2025-11-04 12:44:53 +010065 @include mixins.icon-font;
Akrondbf7bae2020-10-07 10:44:24 +020066 width: 1em;
Akron7e5afce2020-08-25 15:50:19 +020067 display: inline-block;
Akron1a9d5be2020-03-19 17:28:33 +010068 text-align: left;
Akron7e5afce2020-08-25 15:50:19 +020069
Akron1a9d5be2020-03-19 17:28:33 +010070 &:not(.checked)::after {
Akron7636edf2025-11-04 12:44:53 +010071 content: icons.$fa-check;
Akron1a9d5be2020-03-19 17:28:33 +010072 }
Akron7e5afce2020-08-25 15:50:19 +020073
Akron1a9d5be2020-03-19 17:28:33 +010074 &.checked::after {
Akron7636edf2025-11-04 12:44:53 +010075 content: icons.$fa-checked;
Akron1a9d5be2020-03-19 17:28:33 +010076 }
Akron7e5afce2020-08-25 15:50:19 +020077
Akron1a9d5be2020-03-19 17:28:33 +010078 > span {
Akron7636edf2025-11-04 12:44:53 +010079 @include mixins.blind;
Akron1a9d5be2020-03-19 17:28:33 +010080 }
Akron858cbc82019-12-05 16:53:13 +010081 }
82 }
83 }
84
Akron4d926f12018-07-16 15:30:25 +020085 &.button-view {
Akron7e5afce2020-08-25 15:50:19 +020086 position: absolute;
87 display: block;
88 right: 0;
89 top: 0;
90 z-index: 20;
91 margin: 0;
92 padding: 0;
Akron7636edf2025-11-04 12:44:53 +010093 width: lengths.$right-view-distance;
Akron7e5afce2020-08-25 15:50:19 +020094 font-size: 10pt;
Akron7636edf2025-11-04 12:44:53 +010095 color: colors.$nearly-white;
Akron7e5afce2020-08-25 15:50:19 +020096
Akron4d926f12018-07-16 15:30:25 +020097 > span:first-child {
Akron7636edf2025-11-04 12:44:53 +010098 margin-top: lengths.$border-size
Akron4d926f12018-07-16 15:30:25 +020099 }
Akron7e5afce2020-08-25 15:50:19 +0200100
Akron4d926f12018-07-16 15:30:25 +0200101 > span {
Akron7e5afce2020-08-25 15:50:19 +0200102 display: block !important;
103 border-width: 0;
104 text-decoration: none;
105 text-align: center;
106 font-style: normal;
Akron4d926f12018-07-16 15:30:25 +0200107
108 &.download::after {
Akron7636edf2025-11-04 12:44:53 +0100109 content: icons.$fa-download;
Akron4d926f12018-07-16 15:30:25 +0200110 }
111
112 &.close::after {
Akron7636edf2025-11-04 12:44:53 +0100113 content: icons.$fa-close;
Akron4d926f12018-07-16 15:30:25 +0200114 }
Akrone1c27f62018-07-20 11:42:59 +0200115
Akronec6bb8e2018-08-29 13:07:56 +0200116 &.minimize::after {
Akron7636edf2025-11-04 12:44:53 +0100117 content: icons.$fa-minimize;
Akronec6bb8e2018-08-29 13:07:56 +0200118 }
119
Akrone1c27f62018-07-20 11:42:59 +0200120 &.plugin::after {
Akron7636edf2025-11-04 12:44:53 +0100121 content: icons.$fa-plugin;
Akrone1c27f62018-07-20 11:42:59 +0200122 }
Akron537bc522018-07-13 19:06:27 +0200123 }
124 }
125}
Akron4d926f12018-07-16 15:30:25 +0200126
hebasta1ec2ec42018-07-24 12:35:17 +0200127
Akron1801c5c2018-07-16 18:15:48 +0200128ul.menu.button-group-list {
Akron52ed22d2018-07-11 17:05:19 +0200129 border-top-right-radius: 8px;
Akron7e5afce2020-08-25 15:50:19 +0200130 position: fixed;
131 font-size: 10pt;
132 left: 0;
Akron52ed22d2018-07-11 17:05:19 +0200133 text-align: left;
Akron7636edf2025-11-04 12:44:53 +0100134 margin: -1 * lengths.$border-size;
Akron52ed22d2018-07-11 17:05:19 +0200135 margin-top: 0;
Akron7e5afce2020-08-25 15:50:19 +0200136
Akron52ed22d2018-07-11 17:05:19 +0200137 > li:first-of-type {
138 border-top-right-radius: 5px;
139 }
140}
Akron537bc522018-07-13 19:06:27 +0200141
Akron7e5afce2020-08-25 15:50:19 +0200142.button-icon {
Akron7636edf2025-11-04 12:44:53 +0100143 @include mixins.icon-font;
Akron36353052020-10-12 17:50:35 +0200144 line-height: 1.3;
Akron7e5afce2020-08-25 15:50:19 +0200145 > span {
Akron7636edf2025-11-04 12:44:53 +0100146 @include mixins.blind;
Akron7e5afce2020-08-25 15:50:19 +0200147 }
hebasta40a85cf2020-07-15 18:10:08 +0200148 &[data-icon]::after {
149 content: attr(data-icon);
150 }
Akron7e5afce2020-08-25 15:50:19 +0200151}
Akron36353052020-10-12 17:50:35 +0200152
153.button-panel .button-icon {
154 line-height: .7;
Akron62f3a032021-06-09 10:20:03 +0200155}