blob: 42dfbdbb9502c31426229e73c0b9c910cba08c4e [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 {
Akronb29c51f2021-07-27 17:23:35 +020029 @include choose-hover;
30 transition: none;
Akron4d926f12018-07-16 15:30:25 +020031 }
Akron7e5afce2020-08-25 15:50:19 +020032
Akron4d926f12018-07-16 15:30:25 +020033 &:first-child {
34 border: {
Akron7e5afce2020-08-25 15:50:19 +020035 left-width: $border-size;
36 top-left-radius: $standard-border-radius;
37 bottom-left-radius: $standard-border-radius;
38 }
Akron4d926f12018-07-16 15:30:25 +020039 }
Akron7e5afce2020-08-25 15:50:19 +020040
Akron4d926f12018-07-16 15:30:25 +020041 &:last-child {
42 border: {
Akron7e5afce2020-08-25 15:50:19 +020043 right-width: $border-size;
44 top-right-radius: $standard-border-radius;
45 bottom-right-radius: $standard-border-radius;
46 }
Akron4d926f12018-07-16 15:30:25 +020047 }
48 }
Akron537bc522018-07-13 19:06:27 +020049 }
Akron858cbc82019-12-05 16:53:13 +010050
51 &.button-panel {
Akron7e5afce2020-08-25 15:50:19 +020052 > span,
Akron62f3a032021-06-09 10:20:03 +020053 input[type=submit],
Akron7e5afce2020-08-25 15:50:19 +020054 a {
Akron62f3a032021-06-09 10:20:03 +020055 margin-top: 0;
56 width: auto;
57 min-width: auto;
Akron7e5afce2020-08-25 15:50:19 +020058
Akron1a9d5be2020-03-19 17:28:33 +010059 > span.check {
Akron7e5afce2020-08-25 15:50:19 +020060 @include icon-font;
Akrondbf7bae2020-10-07 10:44:24 +020061 width: 1em;
Akron7e5afce2020-08-25 15:50:19 +020062 display: inline-block;
Akron1a9d5be2020-03-19 17:28:33 +010063 text-align: left;
Akron7e5afce2020-08-25 15:50:19 +020064
Akron1a9d5be2020-03-19 17:28:33 +010065 &:not(.checked)::after {
66 content: $fa-check;
67 }
Akron7e5afce2020-08-25 15:50:19 +020068
Akron1a9d5be2020-03-19 17:28:33 +010069 &.checked::after {
70 content: $fa-checked;
71 }
Akron7e5afce2020-08-25 15:50:19 +020072
Akron1a9d5be2020-03-19 17:28:33 +010073 > span {
74 @include blind;
75 }
Akron858cbc82019-12-05 16:53:13 +010076 }
77 }
78 }
79
Akron4d926f12018-07-16 15:30:25 +020080 &.button-view {
Akron7e5afce2020-08-25 15:50:19 +020081 position: absolute;
82 display: block;
83 right: 0;
84 top: 0;
85 z-index: 20;
86 margin: 0;
87 padding: 0;
88 width: $right-view-distance;
89 font-size: 10pt;
90 color: $nearly-white;
91
Akron4d926f12018-07-16 15:30:25 +020092 > span:first-child {
93 margin-top: $border-size
94 }
Akron7e5afce2020-08-25 15:50:19 +020095
Akron4d926f12018-07-16 15:30:25 +020096 > span {
Akron7e5afce2020-08-25 15:50:19 +020097 display: block !important;
98 border-width: 0;
99 text-decoration: none;
100 text-align: center;
101 font-style: normal;
Akron4d926f12018-07-16 15:30:25 +0200102
103 &.download::after {
Akron4d926f12018-07-16 15:30:25 +0200104 content: $fa-download;
105 }
106
107 &.close::after {
Akron4d926f12018-07-16 15:30:25 +0200108 content: $fa-close;
109 }
Akrone1c27f62018-07-20 11:42:59 +0200110
Akronec6bb8e2018-08-29 13:07:56 +0200111 &.minimize::after {
112 content: $fa-minimize;
113 }
114
Akrone1c27f62018-07-20 11:42:59 +0200115 &.plugin::after {
116 content: $fa-plugin;
117 }
Akron537bc522018-07-13 19:06:27 +0200118 }
119 }
120}
Akron4d926f12018-07-16 15:30:25 +0200121
hebasta1ec2ec42018-07-24 12:35:17 +0200122
Akron1801c5c2018-07-16 18:15:48 +0200123ul.menu.button-group-list {
Akron52ed22d2018-07-11 17:05:19 +0200124 border-top-right-radius: 8px;
Akron7e5afce2020-08-25 15:50:19 +0200125 position: fixed;
126 font-size: 10pt;
127 left: 0;
Akron52ed22d2018-07-11 17:05:19 +0200128 text-align: left;
Akron7e5afce2020-08-25 15:50:19 +0200129 margin: -1 * $border-size;
Akron52ed22d2018-07-11 17:05:19 +0200130 margin-top: 0;
Akron7e5afce2020-08-25 15:50:19 +0200131
Akron52ed22d2018-07-11 17:05:19 +0200132 > li:first-of-type {
133 border-top-right-radius: 5px;
134 }
135}
Akron537bc522018-07-13 19:06:27 +0200136
Akron7e5afce2020-08-25 15:50:19 +0200137.button-icon {
138 @include icon-font;
Akron36353052020-10-12 17:50:35 +0200139 line-height: 1.3;
Akron7e5afce2020-08-25 15:50:19 +0200140 > span {
141 @include blind;
142 }
hebasta40a85cf2020-07-15 18:10:08 +0200143 &[data-icon]::after {
144 content: attr(data-icon);
145 }
Akron7e5afce2020-08-25 15:50:19 +0200146}
Akron36353052020-10-12 17:50:35 +0200147
148.button-panel .button-icon {
149 line-height: .7;
Akron62f3a032021-06-09 10:20:03 +0200150}