blob: ed605086ab0a5b131757126b99a4e80b7584ba08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
// ==========================================================================
// Buttons
// ==========================================================================
// Shared
.button,
.button__count {
position: relative;
display: inline-flex;
vertical-align: middle;
align-items: center;
padding: (@spacing-base * 0.75);
border-radius: @border-radius-base;
box-shadow: 0 1px 1px fade(#000, 10%);
background: #fff;
border: 0;
color: @gray;
user-select: none;
font-weight: @font-weight-bold;
text-shadow: none;
}
// Buttons
.button {
padding-left: @spacing-base;
padding-right: @spacing-base;
transition: all 0.2s ease;
&:hover,
&:focus {
color: @gray-dark;
outline: 0;
&::after {
display: none;
}
}
&.tab-focus {
.tab-focus();
}
}
// Count bubble
.button__count {
margin-left: (@spacing-base / 2);
animation: fadein 0.2s ease;
&::before {
content: '';
position: absolute;
display: block;
width: @arrow-size;
height: @arrow-size;
left: 1px;
top: 50%;
margin-top: -(@arrow-size / 2);
background: inherit;
border: inherit;
border-width: 1px 0 0 1px;
transform: rotate(-45deg) translate(-50%, -50%);
}
}
|