blob: dcf6f7bfb9930a00348a2a44fe69cefe6252a502 (
plain) (
blame)
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
84
85
86
87
88
89
90
|
// stylelint-disable selector-max-type
// Close button
//
// Typically used with an octicon-x
.close-button {
padding: 0;
background: transparent;
border: 0;
outline: none;
}
// Hidden text button
//
// Use `.hidden-text-expander` to indicate and expand hidden text.
.hidden-text-expander {
display: block;
&.inline {
position: relative;
top: -1px;
display: inline-block;
// stylelint-disable-next-line primer/spacing
margin-left: 5px;
line-height: 0;
}
}
.hidden-text-expander a,
.ellipsis-expander {
display: inline-block;
height: 12px;
// stylelint-disable-next-line primer/spacing
padding: 0 5px 5px;
font-size: $font-size-small;
font-weight: $font-weight-bold;
// stylelint-disable-next-line primer/typography
line-height: 6px;
// stylelint-disable-next-line primer/colors
color: $gray-700;
text-decoration: none;
vertical-align: middle;
// stylelint-disable-next-line primer/colors
background: lighten($gray-300, 5%);
border: 0;
// stylelint-disable-next-line primer/borders
border-radius: 1px;
&:hover {
text-decoration: none;
// stylelint-disable-next-line primer/colors
background-color: darken($gray-300, 4%);
}
&:active {
color: $text-white;
// stylelint-disable-next-line primer/colors
background-color: $blue-400;
}
}
// Social count bubble
//
// A container that is used for social bubbles counts.
.social-count {
float: left;
// stylelint-disable-next-line primer/spacing
padding: 3px 10px;
font-size: $font-size-small;
font-weight: $font-weight-bold;
// stylelint-disable-next-line primer/typography
line-height: 20px;
color: $text-gray-dark;
vertical-align: middle;
background-color: $bg-white;
border: $border-width $border-style $border-color-button;
border-left: 0;
border-top-right-radius: $border-radius;
border-bottom-right-radius: $border-radius;
&:hover,
&:active {
text-decoration: none;
}
&:hover {
color: $text-blue;
cursor: pointer;
}
}
|