blob: acd30941aef6a1f9ccc039fa230e536f944f96de [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 &.button-icon {
11 font-family: 'FontAwesome';
12 > span {
13 @include blind;
14 }
15 }
16 }
17}
Akron52ed22d2018-07-11 17:05:19 +020018
Akron537bc522018-07-13 19:06:27 +020019.button-group:not(.view) > span {
20 box-shadow: $choose-box-shadow;
21 font-size: 9pt;
22 line-height: 1.5em;
23 padding: 0 4px;
24 display: inline-block;
25 @include choose-item;
26 border-style: solid;
27 border-width: $border-size 0;
28 &:hover {
29 @include choose-hover;
30 }
31 &:first-child {
32 border: {
33 left-width: $border-size;
34 top-left-radius: $standard-border-radius;
35 bottom-left-radius: $standard-border-radius;
36 }
37 }
38 &:last-child {
39 border: {
40 right-width: $border-size;
41 top-right-radius: $standard-border-radius;
42 bottom-right-radius: $standard-border-radius;
43 }
44 }
45}
46
Akron52ed22d2018-07-11 17:05:19 +020047ul.button-group-list {
48 border-top-right-radius: 8px;
49 z-index: 150;
50 font-size: 10pt;
51 position: fixed;
52 left: 0;
53 text-align: left;
54 margin: -1 * $border-size;
55 margin-top: 0;
56 > li:first-of-type {
57 border-top-right-radius: 5px;
58 }
59}
Akron537bc522018-07-13 19:06:27 +020060
61
62.button-group.view {
63 display: block;
64 position: absolute;
65 right: 0;
66 top: 0;
67 z-index: 20;
68 margin: 0;
69 padding: 0;
70 width: $right-match-distance;
71 > span {
72 border-width: 0;
73 text-decoration:none;
74 text-align: center;
75 font-style: normal;
76
77 &.download::after {
78 font-family: 'FontAwesome';
79 content: $fa-download;
80 }
81
82 &.close::after {
83 font-family: 'FontAwesome';
84 content: $fa-close;
85 }
86 }
87}