jekyll-rtd-theme 1.1.8 → 2.0.0.pre.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +23 -65
- data/_includes/addons/analytics.liquid +4 -4
- data/_includes/addons/github.liquid +7 -10
- data/_includes/breadcrumbs.liquid +27 -0
- data/_includes/extend/list.liquid +2 -2
- data/_includes/{reset → extend}/tabs.liquid +0 -0
- data/_includes/extend/toctree.liquid +6 -5
- data/_includes/footer.liquid +36 -0
- data/_includes/reset/defaults.liquid +25 -60
- data/_includes/reset/workdir.liquid +1 -0
- data/_includes/safe/shortcodes.liquid +9 -0
- data/_includes/shortcodes/danger.liquid +3 -2
- data/_includes/shortcodes/note.liquid +3 -2
- data/_includes/shortcodes/tip.liquid +3 -2
- data/_includes/shortcodes/warning.liquid +3 -2
- data/_includes/{class/_toctree.liquid → toctree.liquid} +2 -2
- data/_layouts/default.liquid +182 -23
- data/_layouts/plugins/extension.liquid +6 -8
- data/_sass/@primer/base/base.scss +90 -0
- data/_sass/@primer/base/index.scss +6 -0
- data/_sass/@primer/base/kbd.scss +21 -0
- data/_sass/@primer/base/normalize.scss +423 -0
- data/_sass/@primer/base/typography-base.scss +100 -0
- data/_sass/@primer/breadcrumb/breadcrumb.scss +28 -0
- data/_sass/@primer/breadcrumb/index.scss +3 -0
- data/_sass/@primer/buttons/button-group.scss +91 -0
- data/_sass/@primer/buttons/button.scss +296 -0
- data/_sass/@primer/buttons/index.scss +4 -0
- data/_sass/@primer/buttons/misc.scss +205 -0
- data/_sass/@primer/forms/form-control.scss +278 -0
- data/_sass/@primer/forms/form-group.scss +279 -0
- data/_sass/@primer/forms/form-select.scss +38 -0
- data/_sass/@primer/forms/form-validation.scss +369 -0
- data/_sass/@primer/forms/index.scss +7 -0
- data/_sass/@primer/forms/input-group.scss +53 -0
- data/_sass/@primer/forms/radio-group.scss +43 -0
- data/_sass/@primer/markdown/blob-csv.scss +31 -0
- data/_sass/@primer/markdown/code.scss +73 -0
- data/_sass/@primer/markdown/headings.scss +72 -0
- data/_sass/@primer/markdown/images.scss +131 -0
- data/_sass/@primer/markdown/index.scss +8 -0
- data/_sass/@primer/markdown/lists.scss +76 -0
- data/_sass/@primer/markdown/markdown-body.scss +99 -0
- data/_sass/@primer/markdown/tables.scss +38 -0
- data/_sass/@primer/support/index.scss +11 -0
- data/_sass/@primer/support/mixins/buttons.scss +184 -0
- data/_sass/@primer/support/mixins/layout.scss +55 -0
- data/_sass/@primer/support/mixins/misc.scss +32 -0
- data/_sass/@primer/support/mixins/typography.scss +88 -0
- data/_sass/@primer/support/variables/color-system.scss +243 -0
- data/_sass/@primer/support/variables/colors.scss +55 -0
- data/_sass/@primer/support/variables/layout.scss +149 -0
- data/_sass/@primer/support/variables/misc.scss +42 -0
- data/_sass/@primer/support/variables/typography.scss +43 -0
- data/_sass/@primer/utilities/animations.scss +187 -0
- data/_sass/@primer/utilities/borders.scss +184 -0
- data/_sass/@primer/utilities/box-shadow.scss +25 -0
- data/_sass/@primer/utilities/colors.scss +185 -0
- data/_sass/@primer/utilities/details.scss +34 -0
- data/_sass/@primer/utilities/flexbox.scss +121 -0
- data/_sass/@primer/utilities/index.scss +14 -0
- data/_sass/@primer/utilities/layout.scss +134 -0
- data/_sass/@primer/utilities/margin.scss +68 -0
- data/_sass/@primer/utilities/padding.scss +59 -0
- data/_sass/@primer/utilities/typography.scss +325 -0
- data/_sass/@primer/utilities/visibility-display.scss +82 -0
- data/_sass/_font-face.scss +65 -0
- data/_sass/_icons.scss +53 -0
- data/_sass/_layout.scss +76 -0
- data/_sass/_reset.scss +21 -0
- data/_sass/_root.scss +9 -0
- data/_sass/_variables.scss +29 -0
- data/_sass/class/addons-wrap.scss +39 -0
- data/_sass/class/container.scss +11 -0
- data/_sass/class/content-wrap.scss +4 -0
- data/_sass/class/header.scss +10 -0
- data/_sass/{highlight.scss → class/highlight.scss} +0 -0
- data/_sass/class/markdown-body.scss +49 -0
- data/_sass/class/sidebar-wrap.scss +72 -0
- data/_sass/class/title.scss +13 -0
- data/_sass/theme.scss +26 -12
- data/assets/404.liquid +1 -3
- data/assets/css/theme.min.css +1 -4
- data/assets/css/theme.scss +4 -0
- data/assets/js/mermaid.min.js +6 -5
- data/assets/js/search.js +90 -0
- data/assets/js/theme.js +55 -121
- data/assets/js/theme.min.js +1 -1
- data/assets/search.liquid +9 -1
- metadata +74 -25
- data/_includes/assets/custom.js +0 -0
- data/_includes/assets/custom.scss +0 -0
- data/_includes/class/_breadcrumbs.liquid +0 -28
- data/_includes/class/_footer.liquid +0 -38
- data/_includes/class/rst-versions.liquid +0 -22
- data/_includes/class/wy-nav-content.liquid +0 -15
- data/_includes/class/wy-nav-side.liquid +0 -18
- data/_includes/class/wy-nav-top.liquid +0 -8
- data/_includes/extra/footer.html +0 -0
- data/_includes/extra/head.html +0 -0
- data/_includes/node/links.liquid +0 -24
- data/_includes/node/metadata.liquid +0 -21
- data/_includes/node/script.extension.liquid +0 -29
- data/_includes/node/script.liquid +0 -20
- data/_includes/node/script.schema.liquid +0 -27
- data/_includes/node/title.liquid +0 -1
- data/_includes/reset/i18n.liquid +0 -1
@@ -0,0 +1,296 @@
|
|
1
|
+
// stylelint-disable selector-max-type, block-opening-brace-space-before, no-duplicate-selectors
|
2
|
+
|
3
|
+
// Base button styles
|
4
|
+
.btn {
|
5
|
+
position: relative;
|
6
|
+
display: inline-block;
|
7
|
+
// stylelint-disable-next-line primer/spacing
|
8
|
+
padding: 5px $spacer-3;
|
9
|
+
font-size: $body-font-size;
|
10
|
+
font-weight: $font-weight-semibold;
|
11
|
+
// stylelint-disable-next-line primer/typography
|
12
|
+
line-height: 20px; // Specifically not inherit our `<body>` default
|
13
|
+
white-space: nowrap;
|
14
|
+
vertical-align: middle;
|
15
|
+
cursor: pointer;
|
16
|
+
user-select: none;
|
17
|
+
border: $border-width $border-style;
|
18
|
+
border-radius: $border-radius;
|
19
|
+
appearance: none; // Corrects inability to style clickable `input` types in iOS.
|
20
|
+
|
21
|
+
&:hover {
|
22
|
+
text-decoration: none;
|
23
|
+
}
|
24
|
+
|
25
|
+
&:disabled,
|
26
|
+
&.disabled,
|
27
|
+
&[aria-disabled="true"] {
|
28
|
+
cursor: default;
|
29
|
+
|
30
|
+
.octicon {
|
31
|
+
color: inherit;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
i {
|
36
|
+
font-style: normal;
|
37
|
+
font-weight: $font-weight-semibold;
|
38
|
+
opacity: 0.75;
|
39
|
+
}
|
40
|
+
|
41
|
+
.octicon {
|
42
|
+
margin-right: $spacer-1;
|
43
|
+
color: $text-gray-light;
|
44
|
+
vertical-align: text-bottom;
|
45
|
+
|
46
|
+
&:only-child {
|
47
|
+
margin-right: 0;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
.Counter {
|
52
|
+
// stylelint-disable-next-line primer/spacing
|
53
|
+
margin-left: 2px;
|
54
|
+
color: inherit;
|
55
|
+
text-shadow: none;
|
56
|
+
vertical-align: top;
|
57
|
+
// stylelint-disable-next-line primer/colors
|
58
|
+
background-color: rgba(
|
59
|
+
$black,
|
60
|
+
0.08
|
61
|
+
); // Darken for just a tad more contrast against the button background
|
62
|
+
}
|
63
|
+
|
64
|
+
.dropdown-caret {
|
65
|
+
margin-left: $spacer-1;
|
66
|
+
opacity: 0.8;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
// Default button
|
71
|
+
|
72
|
+
.btn {
|
73
|
+
$bg-default: $bg-gray-light;
|
74
|
+
$bg-hover: #f3f4f6; // custom gray
|
75
|
+
$bg-active: darken($bg-hover, 2%);
|
76
|
+
$bg-disabled: $bg-default;
|
77
|
+
|
78
|
+
color: $text-gray-dark;
|
79
|
+
background-color: $bg-default;
|
80
|
+
border-color: $border-color-button;
|
81
|
+
box-shadow: $box-shadow, $box-shadow-highlight;
|
82
|
+
transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
|
83
|
+
|
84
|
+
&:hover,
|
85
|
+
&.hover,
|
86
|
+
[open] > & {
|
87
|
+
background-color: $bg-hover;
|
88
|
+
transition-duration: 0.1s;
|
89
|
+
}
|
90
|
+
|
91
|
+
&:active,
|
92
|
+
&.selected,
|
93
|
+
&[aria-selected="true"] {
|
94
|
+
background-color: $bg-active;
|
95
|
+
box-shadow: $box-shadow-inset;
|
96
|
+
transition: none;
|
97
|
+
}
|
98
|
+
|
99
|
+
&:disabled,
|
100
|
+
&.disabled,
|
101
|
+
&[aria-disabled="true"] {
|
102
|
+
// stylelint-disable-next-line primer/colors
|
103
|
+
color: $gray-400;
|
104
|
+
background-color: $bg-disabled;
|
105
|
+
border-color: $border-color-button;
|
106
|
+
}
|
107
|
+
|
108
|
+
// Keep :focus after :disabled. Allows to see the focus ring even on disabled buttons
|
109
|
+
&:focus,
|
110
|
+
&.focus {
|
111
|
+
outline: 1px dotted transparent; // Support Firfox custom colors
|
112
|
+
outline-offset: 2px;
|
113
|
+
box-shadow: $box-shadow-focus;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
// Primary button
|
118
|
+
|
119
|
+
.btn-primary {
|
120
|
+
$bg-default: #2ea44f; // custom green
|
121
|
+
$bg-hover: #2c974b; // custom green
|
122
|
+
$bg-active: darken($bg-hover, 2%);
|
123
|
+
$bg-disabled: #94d3a2; // custom green
|
124
|
+
|
125
|
+
$shadow: $green-900;
|
126
|
+
$box-shadow: 0 1px 0 rgba($black, 0.1), inset 0 1px 0 rgba($white, 0.03);
|
127
|
+
|
128
|
+
color: $text-white;
|
129
|
+
background-color: $bg-default;
|
130
|
+
// stylelint-disable-next-line primer/borders
|
131
|
+
border-color: rgba($black, 0.15);
|
132
|
+
box-shadow: $box-shadow;
|
133
|
+
|
134
|
+
&:hover,
|
135
|
+
&.hover,
|
136
|
+
[open] > & {
|
137
|
+
background-color: $bg-hover;
|
138
|
+
}
|
139
|
+
|
140
|
+
&:active,
|
141
|
+
&.selected,
|
142
|
+
&[aria-selected="true"] {
|
143
|
+
background-color: $bg-active;
|
144
|
+
// stylelint-disable-next-line primer/box-shadow
|
145
|
+
box-shadow: inset 0 1px 0 rgba($shadow, 0.2);
|
146
|
+
}
|
147
|
+
|
148
|
+
&:disabled,
|
149
|
+
&.disabled,
|
150
|
+
&[aria-disabled="true"] {
|
151
|
+
// stylelint-disable-next-line primer/colors
|
152
|
+
color: rgba($text-white, 0.8);
|
153
|
+
background-color: $bg-disabled;
|
154
|
+
// stylelint-disable-next-line primer/borders
|
155
|
+
border-color: rgba($black, 0.1);
|
156
|
+
box-shadow: $box-shadow;
|
157
|
+
}
|
158
|
+
|
159
|
+
&:focus,
|
160
|
+
&.focus {
|
161
|
+
// stylelint-disable-next-line primer/box-shadow
|
162
|
+
box-shadow: 0 0 0 3px rgba($bg-default, 0.4);
|
163
|
+
}
|
164
|
+
|
165
|
+
.Counter {
|
166
|
+
color: inherit;
|
167
|
+
// stylelint-disable-next-line primer/colors
|
168
|
+
background-color: rgba($bg-white, 0.2);
|
169
|
+
}
|
170
|
+
|
171
|
+
.octicon {
|
172
|
+
// stylelint-disable-next-line primer/colors
|
173
|
+
color: rgba($text-white, 0.8);
|
174
|
+
}
|
175
|
+
}
|
176
|
+
|
177
|
+
// Mixin: btn-inverse-on-hover
|
178
|
+
|
179
|
+
@mixin btn-inverse-on-hover($color, $bg-hover, $bg-active, $shadow) {
|
180
|
+
color: $color;
|
181
|
+
transition: none;
|
182
|
+
|
183
|
+
&:hover,
|
184
|
+
[open] > & {
|
185
|
+
color: $text-white;
|
186
|
+
background-color: $bg-hover;
|
187
|
+
border-color: rgba($black, 0.15);
|
188
|
+
box-shadow: 0 1px 0 rgba($black, 0.1), inset 0 1px 0 rgba($white, 0.03);
|
189
|
+
|
190
|
+
.Counter {
|
191
|
+
background-color: rgba($bg-white, 0.2);
|
192
|
+
}
|
193
|
+
|
194
|
+
.octicon {
|
195
|
+
color: inherit;
|
196
|
+
}
|
197
|
+
}
|
198
|
+
|
199
|
+
&:active,
|
200
|
+
&.selected,
|
201
|
+
&[aria-selected="true"] {
|
202
|
+
color: $text-white;
|
203
|
+
background-color: $bg-active;
|
204
|
+
border-color: rgba($black, 0.15);
|
205
|
+
box-shadow: inset 0 1px 0 rgba($shadow, 0.2);
|
206
|
+
}
|
207
|
+
|
208
|
+
&:disabled,
|
209
|
+
&.disabled,
|
210
|
+
&[aria-disabled="true"] {
|
211
|
+
color: rgba($color, 0.5);
|
212
|
+
background-color: $bg-gray-light;
|
213
|
+
border-color: $border-color-button;
|
214
|
+
box-shadow: $box-shadow, $box-shadow-highlight;
|
215
|
+
|
216
|
+
.Counter {
|
217
|
+
background-color: rgba($color, 0.05);
|
218
|
+
}
|
219
|
+
}
|
220
|
+
|
221
|
+
&:focus {
|
222
|
+
box-shadow: 0 0 0 3px rgba($bg-hover, 0.4);
|
223
|
+
}
|
224
|
+
|
225
|
+
.Counter {
|
226
|
+
color: inherit;
|
227
|
+
background-color: rgba($color, 0.1);
|
228
|
+
}
|
229
|
+
}
|
230
|
+
|
231
|
+
// Danger button
|
232
|
+
|
233
|
+
.btn-danger {
|
234
|
+
@include btn-inverse-on-hover(
|
235
|
+
$color: $text-red,
|
236
|
+
$bg-hover: $red-600,
|
237
|
+
$bg-active: darken($red-600, 3%),
|
238
|
+
$shadow: $red-900
|
239
|
+
);
|
240
|
+
}
|
241
|
+
|
242
|
+
// Outline button
|
243
|
+
|
244
|
+
.btn-outline {
|
245
|
+
@include btn-inverse-on-hover(
|
246
|
+
$color: $blue-500,
|
247
|
+
$bg-hover: $blue-500,
|
248
|
+
$bg-active: darken($blue-500, 3%),
|
249
|
+
$shadow: $blue-900
|
250
|
+
);
|
251
|
+
}
|
252
|
+
|
253
|
+
// Solid buttons TODO: Deprecate?
|
254
|
+
//
|
255
|
+
//
|
256
|
+
.btn-blue {
|
257
|
+
@include btn-solid(
|
258
|
+
$text-white,
|
259
|
+
lighten($blue-500, 8%),
|
260
|
+
darken($blue-500, 2%)
|
261
|
+
);
|
262
|
+
}
|
263
|
+
|
264
|
+
// Sizes
|
265
|
+
//
|
266
|
+
// Tweak `line-height` to make them smaller.
|
267
|
+
.btn-sm {
|
268
|
+
// stylelint-disable-next-line primer/spacing
|
269
|
+
padding: 3px 12px;
|
270
|
+
font-size: $font-size-small;
|
271
|
+
// stylelint-disable-next-line primer/typography
|
272
|
+
line-height: 20px;
|
273
|
+
|
274
|
+
.octicon {
|
275
|
+
vertical-align: text-top;
|
276
|
+
}
|
277
|
+
}
|
278
|
+
|
279
|
+
// Large button adds more padding around text. Use font-size utils to increase font-size.. e.g, <p class="text-gamma"><button class="btn btn-large btn-primary" type="button">Big green button</button></p>
|
280
|
+
.btn-large {
|
281
|
+
padding: $em-spacer-6 1.5em;
|
282
|
+
font-size: inherit;
|
283
|
+
line-height: $lh-default;
|
284
|
+
|
285
|
+
// stylelint-disable-next-line primer/borders
|
286
|
+
border-radius: 0.5em;
|
287
|
+
}
|
288
|
+
|
289
|
+
// Full-width button
|
290
|
+
//
|
291
|
+
// These buttons expand to the full width of their parent container
|
292
|
+
.btn-block {
|
293
|
+
display: block;
|
294
|
+
width: 100%;
|
295
|
+
text-align: center;
|
296
|
+
}
|
@@ -0,0 +1,205 @@
|
|
1
|
+
// stylelint-disable selector-max-type
|
2
|
+
|
3
|
+
// Link-like buttons
|
4
|
+
//
|
5
|
+
// This class is for styling <button> and <input> elements to look like links
|
6
|
+
.btn-link {
|
7
|
+
display: inline-block;
|
8
|
+
padding: 0;
|
9
|
+
font-size: inherit;
|
10
|
+
color: $text-blue;
|
11
|
+
text-decoration: none;
|
12
|
+
white-space: nowrap;
|
13
|
+
cursor: pointer;
|
14
|
+
user-select: none;
|
15
|
+
background-color: transparent;
|
16
|
+
border: 0;
|
17
|
+
appearance: none; // Corrects inability to style clickable `input` types in iOS.
|
18
|
+
|
19
|
+
&:hover {
|
20
|
+
text-decoration: underline;
|
21
|
+
}
|
22
|
+
|
23
|
+
&:disabled,
|
24
|
+
&[aria-disabled="true"] {
|
25
|
+
&,
|
26
|
+
&:hover {
|
27
|
+
// stylelint-disable-next-line primer/colors
|
28
|
+
color: rgba($gray-600, 0.5);
|
29
|
+
cursor: default;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
// Invisible button
|
35
|
+
//
|
36
|
+
// Typically used as a "cancel" button next to a .btn
|
37
|
+
.btn-invisible {
|
38
|
+
color: $text-blue;
|
39
|
+
background-color: transparent; // Reset default gradient backgrounds and colors
|
40
|
+
border: 0;
|
41
|
+
border-radius: 0;
|
42
|
+
box-shadow: none;
|
43
|
+
|
44
|
+
&:hover,
|
45
|
+
&:active,
|
46
|
+
&:focus,
|
47
|
+
&.selected,
|
48
|
+
&[aria-selected="true"],
|
49
|
+
&.zeroclipboard-is-hover,
|
50
|
+
&.zeroclipboard-is-active {
|
51
|
+
color: $text-blue;
|
52
|
+
background: none;
|
53
|
+
outline: none;
|
54
|
+
box-shadow: none;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
// Octicon button
|
59
|
+
//
|
60
|
+
// Icon-only buttons
|
61
|
+
.btn-octicon {
|
62
|
+
display: inline-block;
|
63
|
+
// stylelint-disable-next-line primer/spacing
|
64
|
+
padding: 5px;
|
65
|
+
// stylelint-disable-next-line primer/spacing
|
66
|
+
margin-left: 5px;
|
67
|
+
line-height: $lh-condensed-ultra;
|
68
|
+
color: $text-gray;
|
69
|
+
vertical-align: middle;
|
70
|
+
|
71
|
+
// For `<button>` elements
|
72
|
+
background: transparent;
|
73
|
+
border: 0;
|
74
|
+
|
75
|
+
&:hover {
|
76
|
+
color: $text-blue;
|
77
|
+
}
|
78
|
+
|
79
|
+
&.disabled,
|
80
|
+
&[aria-disabled="true"] {
|
81
|
+
// stylelint-disable-next-line primer/colors
|
82
|
+
color: $gray-400;
|
83
|
+
cursor: default;
|
84
|
+
|
85
|
+
// stylelint-disable-next-line primer/colors
|
86
|
+
&:hover {
|
87
|
+
color: $gray-400;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
.btn-octicon-danger:hover {
|
93
|
+
color: $text-red;
|
94
|
+
}
|
95
|
+
|
96
|
+
// Close button
|
97
|
+
//
|
98
|
+
// Typically used with an octicon-x
|
99
|
+
.close-button {
|
100
|
+
padding: 0;
|
101
|
+
background: transparent;
|
102
|
+
border: 0;
|
103
|
+
outline: none;
|
104
|
+
}
|
105
|
+
|
106
|
+
// Hidden text button
|
107
|
+
//
|
108
|
+
// Use `.hidden-text-expander` to indicate and expand hidden text.
|
109
|
+
.hidden-text-expander {
|
110
|
+
display: block;
|
111
|
+
|
112
|
+
&.inline {
|
113
|
+
position: relative;
|
114
|
+
top: -1px;
|
115
|
+
display: inline-block;
|
116
|
+
// stylelint-disable-next-line primer/spacing
|
117
|
+
margin-left: 5px;
|
118
|
+
line-height: 0;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
.hidden-text-expander a,
|
123
|
+
.ellipsis-expander {
|
124
|
+
display: inline-block;
|
125
|
+
height: 12px;
|
126
|
+
// stylelint-disable-next-line primer/spacing
|
127
|
+
padding: 0 5px 5px;
|
128
|
+
font-size: $font-size-small;
|
129
|
+
font-weight: $font-weight-bold;
|
130
|
+
// stylelint-disable-next-line primer/typography
|
131
|
+
line-height: 6px;
|
132
|
+
// stylelint-disable-next-line primer/colors
|
133
|
+
color: $gray-700;
|
134
|
+
text-decoration: none;
|
135
|
+
vertical-align: middle;
|
136
|
+
// stylelint-disable-next-line primer/colors
|
137
|
+
background: lighten($gray-300, 5%);
|
138
|
+
border: 0;
|
139
|
+
// stylelint-disable-next-line primer/borders
|
140
|
+
border-radius: 1px;
|
141
|
+
|
142
|
+
&:hover {
|
143
|
+
text-decoration: none;
|
144
|
+
// stylelint-disable-next-line primer/colors
|
145
|
+
background-color: darken($gray-300, 4%);
|
146
|
+
}
|
147
|
+
|
148
|
+
&:active {
|
149
|
+
color: $text-white;
|
150
|
+
// stylelint-disable-next-line primer/colors
|
151
|
+
background-color: $blue-400;
|
152
|
+
}
|
153
|
+
}
|
154
|
+
|
155
|
+
// Social button count
|
156
|
+
// TODO: Deprecate? Use BtnGroup instead?
|
157
|
+
|
158
|
+
.btn-with-count {
|
159
|
+
float: left;
|
160
|
+
border-top-right-radius: 0;
|
161
|
+
border-bottom-right-radius: 0;
|
162
|
+
|
163
|
+
&:focus {
|
164
|
+
z-index: 1;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
|
168
|
+
// Social count bubble
|
169
|
+
//
|
170
|
+
// A container that is used for social bubbles counts.
|
171
|
+
|
172
|
+
.social-count {
|
173
|
+
position: relative;
|
174
|
+
float: left;
|
175
|
+
// stylelint-disable-next-line primer/spacing
|
176
|
+
padding: 3px 12px;
|
177
|
+
font-size: $font-size-small;
|
178
|
+
font-weight: $font-weight-bold;
|
179
|
+
// stylelint-disable-next-line primer/typography
|
180
|
+
line-height: 20px;
|
181
|
+
color: $text-gray-dark;
|
182
|
+
vertical-align: middle;
|
183
|
+
background-color: $bg-white;
|
184
|
+
border: $border-width $border-style $border-color-button;
|
185
|
+
border-left: 0;
|
186
|
+
border-top-right-radius: $border-radius;
|
187
|
+
border-bottom-right-radius: $border-radius;
|
188
|
+
box-shadow: $box-shadow, $box-shadow-highlight;
|
189
|
+
|
190
|
+
&:hover,
|
191
|
+
&:active {
|
192
|
+
text-decoration: none;
|
193
|
+
}
|
194
|
+
|
195
|
+
&:hover {
|
196
|
+
color: $text-blue;
|
197
|
+
cursor: pointer;
|
198
|
+
}
|
199
|
+
|
200
|
+
&:focus {
|
201
|
+
z-index: 1;
|
202
|
+
outline: 0;
|
203
|
+
box-shadow: $box-shadow-focus;
|
204
|
+
}
|
205
|
+
}
|