-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.less
More file actions
122 lines (122 loc) · 2.54 KB
/
style.less
File metadata and controls
122 lines (122 loc) · 2.54 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
:host {
font: bold 11px/14px 'Helvetica Neue', Helvetica, Arial, sans-serif;
height: 20px;
overflow: hidden;
&:after,
&:before {
content: ' ';
display: table;
}
&:after {
clear: both;
visibility: hidden;
font-size: 0;
height: 0;
}
::ng-deep {
.gh-btn,
.gh-count,
.gh-ico {
float: left;
}
.gh-btn,
.gh-count {
padding: 2px 5px 2px 4px;
color: #333;
text-decoration: none;
white-space: nowrap;
cursor: pointer;
border-radius: 3px;
}
.gh-btn {
background-color: #eee;
background-image: linear-gradient(to bottom, #fcfcfc 0, #eee 100%);
background-repeat: no-repeat;
border: 1px solid #d5d5d5;
&:hover,
&:focus {
text-decoration: none;
background-color: #ddd;
background-image: linear-gradient(to bottom, #eee 0, #ddd 100%);
border-color: #ccc;
}
&:active {
background-image: none;
background-color: #dcdcdc;
border-color: #b5b5b5;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}
}
.gh-ico {
width: 14px;
height: 14px;
margin-right: 4px;
}
.gh-count {
position: relative;
display: none;
/* hidden to start */
margin-left: 4px;
background-color: #fafafa;
border: 1px solid #d4d4d4;
&:hover,
&:focus {
color: #4183c4;
}
&:before,
&:after {
content: '';
position: absolute;
display: inline-block;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
}
&:before {
top: 50%;
left: -3px;
margin-top: -4px;
border-width: 4px 4px 4px 0;
border-right-color: #fafafa;
}
&:after {
top: 50%;
left: -4px;
z-index: -1;
margin-top: -5px;
border-width: 5px 5px 5px 0;
border-right-color: #d4d4d4;
}
}
}
&.github-btn-large {
height: 30px;
::ng-deep {
.gh-btn,
.gh-count {
padding: 3px 10px 3px 8px;
font-size: 16px;
line-height: 22px;
border-radius: 4px;
}
.gh-ico {
width: 20px;
height: 20px;
}
.gh-count {
margin-left: 6px;
&:before {
left: -5px;
margin-top: -6px;
border-width: 6px 6px 6px 0;
}
&:after {
left: -6px;
margin-top: -7px;
border-width: 7px 7px 7px 0;
}
}
}
}
}