blob: a8a1568213b2a2a464a256dca700ed4564a97b3e (
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
// ==========================================================================
// 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;
user-select: none;
text-shadow: none;
color: @gray;
}
// Buttons
.button {
padding-left: @spacing-base;
padding-right: @spacing-base;
transition: all 0.2s ease;
font-weight: @font-weight-bold;
&:hover,
&:focus {
color: @gray-dark;
// Remove the underline/border
&::after {
display: none;
}
}
&:hover {
transform: translateY(-1px);
box-shadow: 0 2px 2px fade(#000, 10%);
}
&:focus {
outline: 0;
}
&.tab-focus {
.tab-focus();
}
&:active {
transform: translateY(1px);
}
}
// Button group
.button--with-count {
display: inline-flex;
.button .icon {
flex-shrink: 0;
}
}
// Count bubble
.button__count {
margin-left: (@spacing-base / 2);
animation: fadein 0.2s ease;
&::before {
content: '';
position: absolute;
width: 0;
height: 0;
right: 100%;
top: 50%;
transform: translateY(-50%);
border: @arrow-size solid transparent;
border-right-color: #fff;
border-left-width: 0;
}
}
|