-
Notifications
You must be signed in to change notification settings - Fork 874
/
admin-global.scss
511 lines (433 loc) · 10.3 KB
/
admin-global.scss
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
@import "menu";
@import "../../node_modules/yoastseo/css/tooltips";
@import "yoastcom/0-settings/color";
@import "icons";
@import "yoastcom/0-settings/_type";
/* General typography */
.yoast-measure {
max-width: 600px;
}
/* Thickbox */
#TB_window .wpseo_content_wrapper p {
font-size: 14px;
font-style: normal;
}
#TB_window .wpseo_content_wrapper label {
margin: 0 10px 0 0;
font-size: 14px;
font-weight: 600;
}
.wpseo-help-center-sub-title,
.wpseo-premium-popup-title {
// Using !important to override WP styles.
margin: 1em 0 !important;
padding: 0 !important;
font-size: 1.3em !important;
font-weight: 600 !important;
}
.wpseo-premium-popup-icon {
margin: 10px;
}
.edit-tags-php .column-description img {
max-width: 100%;
height: auto;
}
/* Select2 specific fixes for WordPress */
.select2-search__field {
margin: 0;
}
.select2-results__option,
.select2-selection__choice,
.select2-search--inline {
margin-bottom: 0;
}
.select2-container .select2-search--inline .select2-search__field {
margin-top: 6px !important;
line-height: inherit;
}
.yoast-label-strong {
font-weight: 600;
}
// Responsive videos.
// Other common aspect ratios: 75% = 4:3, 66.66% = 3:2, 62.5% = 8:5.
.yoast-video-container-max-width {
max-width: 560px;
}
.yoast-video-container {
position: relative;
padding-bottom: 56.25%; // 16:9.
height: 0;
overflow: hidden;
}
.yoast-video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
// Forms.
.yoast-settings {
margin-bottom: 2em;
// Mimic the WordPress table layout.
padding-left: 220px;
}
.yoast-settings h2 {
margin-bottom: 0;
margin-left: -220px;
}
// By default, labels are left aligned to mimic the WordPress table layout.
.yoast-settings label {
display: inline-block;
width: 200px;
padding-top: 4px;
padding-right: 10px;
margin-right: 6px;
margin-left: -220px;
font-size: 14px;
line-height: 1.3;
font-weight: 600;
color: #23282d;
vertical-align: top;
}
// Default vertical spacing between blocks of controls.
.yoast-settings label,
.yoast-settings fieldset,
.yoast-settings input[type="text"],
.yoast .yoast-settings__checkbox, // Needs higher specificity.
.yoast .yoast-settings__radio, // Needs higher specificity.
.yoast-settings textarea,
.yoast-settings select {
margin-top: 2em;
margin-bottom: 0.5em;
}
// Max-width for some elements.
.yoast-settings__textarea--medium {
width: 100%;
max-width: 600px;
}
// Checkboxes and radio buttons need selectors with higher specificity.
.yoast .yoast-settings__checkbox,
.yoast .yoast-settings__radio {
vertical-align: top;
// Ideally, checkboxes and radio buttons should have the same height of a
// line of text. We fix the vertical alignment by other means.
position: relative;
top: 1px;
}
// Fieldsets for checkboxes and radio buttons.
.yoast-settings__group--checkbox,
.yoast-settings__group--radio {
padding-top: 1em;
}
// Checkboxes and radio buttons within a fieldset need smaller vertical margins.
.yoast-settings__group--checkbox .yoast-settings__checkbox,
.yoast-settings__group--radio .yoast-settings__radio {
margin: 0 4px 10px 0;
}
// Labels for checkboxes and radio buttons.
.yoast-settings__checkbox + label,
.yoast-settings__radio + label {
width: auto;
margin-left: 0;
margin-right: 0;
padding: 0;
max-width: calc( 100% - 25px );
}
// Labels for checkboxes and radio buttons within a fieldset.
.yoast-settings__group--checkbox .yoast-settings__checkbox + label,
.yoast-settings__group--radio .yoast-settings__radio + label {
margin-top: 0;
margin-bottom: 10px;
font-weight: 400;
}
// Other form elements.
.yoast-settings legend {
font-size: 14px;
font-weight: 600;
color: #23282d;
}
.yoast-settings .description {
margin-top: 0;
font-size: 14px;
}
/* Icons in the posts and taxonomies table cells. */
td .wpseo-score-icon {
display: inline-block;
width: 12px;
height: 12px;
margin-left: 5px;
border-radius: 50%;
background: #888;
line-height: 16px;
}
/* Adjust vertical alignment of the icons in the table cells. */
td .wpseo-score-icon {
margin-top: 3px;
}
/* Table internal links, SEO, and Readability columns tooltips. */
.fixed th.column-wpseo-score,
.fixed th.column-wpseo-score-readability,
.fixed th.column-wpseo-links,
.fixed th.column-wpseo-linked {
/* 42px */
width: 3em;
padding: 0;
}
/* Don't use selectors related to classes added with JavaScript to avoid flickering. */
th.column-wpseo-links a,
th.column-wpseo-linked a,
th.column-wpseo-score .yoast-tooltip,
th.column-wpseo-score-readability .yoast-tooltip {
overflow: visible; /* Override WP property to make tooltips visible. */
display: inline-block; /* To contain floats instead of using overflow. */
vertical-align: middle;
padding: 8px 0;
}
th.column-wpseo-score .yoast-tooltip,
th.column-wpseo-score-readability .yoast-tooltip {
/* 11+20+11=42px */
padding: 8px 11px;
}
.column-wpseo-links .yoast-tooltip-multiline::after {
/* Edge doesn't support width: max-content; */
width: 999px;
max-width: 160px;
}
.column-wpseo-linked .yoast-tooltip-multiline::after {
/* Edge doesn't support width: max-content; */
width: 999px;
max-width: 170px;
}
.yoast-column-header-has-tooltip {
position: relative;
}
/* Generate the icons in the table columns, exclude Screen Options. */
.manage-column .yoast-column-header-has-tooltip:before {
content: "";
display: inline-block;
width: 20px;
height: 20px;
padding: 0;
vertical-align: top;
text-decoration: none !important;
color: #444;
}
.manage-column .yoast-linked-to:before {
background: transparent url( "../../images/link-out-icon.svg" ) no-repeat 0 0;
background-size: 20px;
}
.manage-column .yoast-linked-from:before {
background: transparent url( "../../images/link-in-icon.svg" ) no-repeat 0 0;
background-size: 20px;
}
.manage-column .yoast-column-seo-score:before {
background: transparent url( "../../images/Yoast_SEO_negative_icon.svg" ) no-repeat 0 0;
background-size: 20px;
}
.manage-column .yoast-column-readability:before {
background: transparent url( "../../images/readability-icon.svg" ) no-repeat 0 0;
background-size: 20px;
}
/* Do not allow link numbers to break in the table cells. */
td.column-wpseo-links,
td.column-wpseo-linked {
word-wrap: normal;
}
/* Make the checkboxes lable in the Screen Options visible. */
#screen-meta .yoast-column-header-has-tooltip .screen-reader-text {
position: static;
width: auto;
height: auto;
visibility: visible;
}
@media screen and ( max-width: 782px ) {
.yoast-settings {
padding-left: 0;
}
.yoast-settings h2 {
margin-left: 0;
}
.yoast-settings label {
width: auto;
padding: 0;
margin-right: 0;
margin-left: 0;
}
.yoast .yoast-settings__radio,
.yoast-settings__radio + label {
margin-bottom: 1em;
}
.yoast-settings__checkbox + label,
.yoast-settings__radio + label {
max-width: calc( 100% - 35px );
padding-top: 8px;
}
.yoast-settings__group--checkbox .yoast-settings__checkbox + label,
.yoast-settings__group--radio .yoast-settings__radio + label {
padding-top: 4px;
}
.yoast-settings input[type="text"],
.yoast-settings textarea,
.yoast-settings select {
display: block;
width: 100%;
margin-top: 0;
margin-bottom: 0;
padding: 7px 10px;
max-width: none;
line-height: 1.5;
box-sizing: border-box;
}
}
/* Help Center */
#yoast-help-center-container {
margin: 16px 0 24px;
}
.react-tabs__tab-panel {
max-width: 900px;
margin: 0 auto;
li {
max-width: none !important;
}
}
.yoast-help-center-open #sidebar-container {
display: none;
}
.contact-premium-support {
text-align: center;
&__content {
margin: 0 auto 1.5em;
font-size: 0.9375rem;
line-height: 1.4;
&:nth-child( 2 ) {
max-width: 610px;
}
&:nth-child( 3 ) {
max-width: 560px;
}
}
// Higher specificity.
& &__button {
margin-bottom: 48px;
}
}
.wpseo-premium-description {
margin-top: 0.5em;
}
.wpseo-premium-advantages-list {
list-style: disc;
padding-left: 1.5em;
}
.yoast_help.yoast-help-button {
overflow: visible;
position: relative;
width: 20px;
height: 20px;
margin: 0;
padding: 0;
border: 0;
outline: none;
color: #72777c;
background: transparent;
box-shadow: none;
vertical-align: top;
/* IE 11 */
cursor: pointer;
}
.yoast-section .yoast_help.yoast-help-button {
float: right;
}
.help-button-inline .yoast_help.yoast-help-button {
margin-top: -4px;
}
.yoast-section .yoast_help.yoast-help-button {
margin-top: -44px;
}
.wpseo-admin-page .yoast_help.yoast-help-button {
margin-right: 6px;
}
.yoast_help .yoast-help-icon::before {
position: absolute;
top: 0;
left: 0;
padding: 4px;
content: "\f223";
}
.yoast_help.yoast-help-button:hover,
.yoast_help.yoast-help-button:focus {
color: #0073aa;
}
.yoast_help.yoast-help-button:focus .yoast-help-icon::before,
.assessment-results__mark:focus {
border-radius: 100%;
box-shadow: 0 0 0 1px #5b9dd9,
0 0 2px 1px rgba(30, 140, 190, 0.8);
}
.yoast-help-panel {
display: none;
clear: both;
max-width: 30em !important;
padding: 0 0 1em;
font-weight: normal;
white-space: normal;
}
.wpseo-admin-page .yoast-help-panel {
max-width: 600px !important;
}
.copy-home-meta-description .yoast-help-panel {
max-width: 400px !important;
}
.yoast-modal_is-open {
overflow: hidden;
}
.yoast-alert .yoast-seo-icon {
float: left;
margin: 20px 10px;
}
.yoast-alert .yoast-seo-icon-wrap {
margin: 0 0 0 85px;
}
.yoast-button-upsell {
font-size: 16px;
font-family: $font-stack-default;
color: $color-black;
border-radius: 4px;
box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2);
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
min-height: 48px;
text-transform: initial;
padding-left: 1em;
// Make space for the caret background image.
padding-right: 1.5em;
background: $color-button-upsell url(svg-icon-caret-right()) 97% 45% no-repeat;
display: inline-block;
text-decoration: none;
line-height: 42px;
&:hover,
&:focus,
&:active {
color: $color-black;
background-color: $color-button-upsell-hover;
}
// Keep grey inset and add blue focus style.
&:focus {
box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2), 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
}
&:active {
transform: translateY( 1px );
box-shadow: none;
filter: none;
}
// Only needed for IE 10+. Don't add spaces within brackets for this to work.
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
::after {
display: inline-block;
content: "";
min-height: 32px;
}
}
&#wpseo-premium-button {
color: $color-black;
}
}