summaryrefslogtreecommitdiff
blob: 854a83b1d891f2db6137d84c1f9a6b08a739d9c3 (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
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
/* Do not modify this file directly.  It is concatenated from individual module CSS files. */
#adminmenu {
	margin: 0;
}

/**
 * Menu width
 */
#wpcontent,
#wpfooter {
	margin-right: 272px;
}

#adminmenuback,
#adminmenuwrap,
#adminmenu,
#adminmenu .wp-submenu {
	width: 272px;
}

#adminmenu .wp-submenu {
	right: 272px;
}

#adminmenu .wp-not-current-submenu .wp-submenu,
.folded #adminmenu .wp-has-current-submenu .wp-submenu {
	min-width: 272px;
}

/**
 * Fixes Gutenberg in not fullscreen mode.
 */
 @media (min-width: 783px) {
	.interface-interface-skeleton,
	.edit-post-layout .components-editor-notices__snackbar {
		right: 272px;
	}
}

@media (min-width: 961px) {
	.auto-fold .interface-interface-skeleton,
	.auto-fold .edit-post-layout .components-editor-notices__snackbar,
	.jp-dialogue-modern-full__container {
		right: 272px;
	}

	.global-notices {
		max-width: calc( 100% - 48px - 272px );
	}
}

/**
 * Jetpack logo
 */
#adminmenu [class*="activity-log"] .wp-menu-image img {
	padding-top: 7px;
}

/**
 * Site Card
 */
#adminmenu .toplevel_page_site-card .wp-menu-name {
	margin-right: 40px; /* icon width (32) + padding (8). */
	padding: 0;
}

#adminmenu li.toplevel_page_site-card a {
	padding: 10px 8px 10px 0;
}

/**
 * Site Notices
 */
#adminmenu a.toplevel_page_site-notices:hover,
#adminmenu a.toplevel_page_site-notices:focus,
#adminmenu li.toplevel_page_site-notices:hover,
#adminmenu li.toplevel_page_site-notices:focus {
	background-color: inherit !important;
	color: inherit !important;
}

#adminmenu li.toplevel_page_site-notices .wp-menu-image {
	display: none;
}

#adminmenu .toplevel_page_site-notices .wp-menu-image {
	border-radius: 2px;
	background-color: #fff;
}

#adminmenu .toplevel_page_site-notices .wp-menu-image:before {
	content: '\f534';
	font-family: 'dashicons';
	font-size: 20px;
	line-height: 20px;
	background-color: #a7aaad;
	color: white;
	border-radius: 50%;
	margin: 5px;
	padding: 0;
}

#adminmenu .toplevel_page_site-notices:hover .wp-menu-image:before {
	color: #fff;
}

#adminmenu .toplevel_page_site-notices .upsell_banner {
	display: flex;
	flex-grow: 1;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	position: relative;
	width: 100%;
	padding: 7px 12px;
	right: -28px;
	border-radius: 2px;
	font-size: 12px;
	line-height: 1.4;
	-webkit-hyphens: none;
	        hyphens: none;
}

#adminmenu .toplevel_page_site-notices .upsell_banner .banner__info {
	margin-left: 12px;
}

#adminmenu .toplevel_page_site-notices .upsell_banner .button {
	font-size: 12px;
	line-height: 12px;
	padding: 0 7px;
	border: 0;
	min-height: 26px;
}

#adminmenu .toplevel_page_site-notices .upsell_banner svg.dismissible-card__close-icon {
	height: 24px;
	width: 24px;
	margin-right: 10px;
}

@media screen and (min-width: 782px) {
	.folded #adminmenu .toplevel_page_site-notices .wp-menu-image {
		display: block;
		width: 30px;
	}

	.folded #adminmenu .toplevel_page_site-notices {
		height: 50px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

@media screen and (min-width: 782px) and (max-width: 960px){
	.auto-fold #adminmenu .toplevel_page_site-notices .wp-menu-image {
		display: block;
		width: 30px;
	}

	.auto-fold #adminmenu .toplevel_page_site-notices {
		height: 50px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

/* Prevent box-shadow at the top of the sidebar */
#adminmenu .site-switcher:hover,
#adminmenu .toplevel_page_site-card:hover,
#adminmenu .toplevel_page_site-notices:hover {
	box-shadow: none;
}

/**
 * Site icon inline-styles for height and width are defined in set_site_icon_inline_styles
 */
#adminmenu .toplevel_page_site-card .wp-menu-image {
	background-image: none;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 18px 18px;
	transform: translateZ(0);
	transition-property: background-image,background-color;
	transition-duration: .2s;
}

#adminmenu a.toplevel_page_site-card:hover,
#adminmenu li.toplevel_page_site-card:hover {
	background-color: inherit;
}

#adminmenu .toplevel_page_site-card img {
	opacity: initial;
}

#adminmenu .toplevel_page_site-card.has-site-icon img {
	padding: 0;
}

#adminmenu .toplevel_page_site-card:hover div.wp-menu-image,
#adminmenu .toplevel_page_site-card a:focus div.wp-menu-image {
	background-image: url("data:image/svg+xml,%3Csvg class='gridicon gridicons-house' height='24' width='24' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg%3E%3Cpath fill='%23fff' d='M22 9L12 1 2 9v2h2v10h5v-4c0-1.657 1.343-3 3-3s3 1.343 3 3v4h5V11h2V9z'/%3E%3C/g%3E%3C/svg%3E%0A");
}

#adminmenu .toplevel_page_site-card:not(.has-site-icon) .wp-menu-image {
	background-color: #c3c4c7;
}

#adminmenu .toplevel_page_site-card:not(.has-site-icon) .wp-menu-image img[src^="data:image/svg"] {
	height: auto;
	padding-top: 7px;
	width: 18px;
}

#adminmenu .toplevel_page_site-card:hover div.wp-menu-image img,
#adminmenu .toplevel_page_site-card a:focus div.wp-menu-image img {
	display: none;
}

.site__info .site__title {
	display: block;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
}

.site__info .site__domain {
	display: block;
	max-width: 95%;
	font-size: 12px;
	line-height: 1.4;
	margin-top: 2px;
}

.site__info .site__title,
.site__info .site__domain {
	overflow: hidden;
	white-space: nowrap;
}
.site__info .site__title::after,
.site__info .site__domain::after {
	content: "";
	display: block;
	position: absolute;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
	pointer-events: none;
	top: 0;
	bottom: 0;
	left: 0;
	right: auto;
	width: 20%;
	height: auto;
}

.site__info > .site__badge {
	font-size: 12px;
	border-radius: 12px;
	clear: both;
	display: inline-block;
	margin-top: 6px;
	margin-left: 3px;
	padding: 1px 10px;
}

/**
 * Inline text in a menu title
 */
.inline-text {
	display: block !important;
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY( -50% );
	opacity: 0.8;
}

/**
 * Stats
 */
[class*="toplevel_page_https://wordpress.com/stats/day"] .sidebar-unified__sparkline {
	float: left;
	margin-left: 8px;
}

/**
 * Folded State
 */
.folded #adminmenu a.menu-top {
	height: 31px;
}

.folded #adminmenu li.toplevel_page_site-card a {
	padding-right: 0;
}

/* Auto-folding of the admin menu */
@media only screen and (max-width: 960px) {
	#adminmenu,
	#adminmenuwrap,
	#adminmenuback {
		width: 272px;
	}

	.auto-fold #adminmenu a[class*="toplevel_page_http"].wp-first-item {
		height: auto;
	}

	.wp-responsive-open #adminmenu a.menu-top {
		height: auto;
	}

	.auto-fold #adminmenu div.wp-menu-image {
		width: 36px;
	}
}

@media screen and (min-width: 782px) and (max-width: 960px) {
	.auto-fold #adminmenu a.menu-top {
		height: 34px;
	}

	.auto-fold #adminmenu li.toplevel_page_site-card a {
		height: 36px;
		padding-right: 1px;
	}
}

@media screen and (max-width: 782px) {
	#adminmenu li.menu-top .wp-submenu>li>a,
	.auto-fold #adminmenu li.menu-top .wp-submenu>li>a {
		padding-right: 42px;
	}

	.wp-responsive-open #wpbody {
		left: inherit;
	}

	.wp-responsive-open #wpcontent {
		margin-right: 272px;
	}

	.auto-fold #adminmenu, .auto-fold #adminmenuback, .auto-fold #adminmenuwrap {
		width: 272px;
	}

	.auto-fold #adminmenu a.site-switcher,
	#adminmenu a.site-switcher {
		font-size: 14px;
	}
}

@media only screen and (max-width: 660px) {
	#adminmenuback,
	#adminmenuwrap,
	#adminmenu,
	#adminmenu .wp-submenu,
	.auto-fold #adminmenu,
	.auto-fold #adminmenuback,
	.auto-fold #adminmenuwrap {
		width: 100%;
		z-index: 171;
	}

	.wp-responsive-open #wpcontent {
		margin-right: 0;
	}

	ul#adminmenu a.wp-has-current-submenu:after,
	ul#adminmenu>li.current>a.current:after,
	ul#adminmenu li:hover a.wp-has-current-submenu:after,
	.auto-fold ul#adminmenu li:hover a.wp-has-current-submenu:after {
		display: none;
	}

	.auto-fold #adminmenu li.toplevel_page_site-card a {
		padding: 18px 12px 18px 0;
	}
}

/*
 * Styles for the nav-unification prototype (see pbAPfg-O2)
 * TODO: depending on project outcome move or delete styles
 */
#wpadminbar #wp-admin-bar-notes #wpnt-notes-unread-count.wpn-unread {
	top: 50%;
	right: 50%;
	transform: translate( 10px, -13px );

}

#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar {
	transform: translateX( -1px );
}

#wpadminbar #wp-admin-bar-notes.active .noticon-bell:before {
	background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cmVjdCB4PSIwIiBmaWxsPSJub25lIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiLz48Zz48cGF0aCBmaWxsPSIjZmZmZmZmIiBkPSJNNi4xNCAxNC45N2wyLjgyOCAyLjgyN2MtLjM2Mi4zNjItLjg2Mi41ODYtMS40MTQuNTg2LTEuMTA1IDAtMi0uODk1LTItMiAwLS41NTIuMjI0LTEuMDUyLjU4Ni0xLjQxNHptOC44NjcgNS4zMjRMMTQuMyAyMSAzIDkuN2wuNzA2LS43MDcgMS4xMDIuMTU3Yy43NTQuMTA4IDEuNjktLjEyMiAyLjA3Ny0uNTFsMy44ODUtMy44ODRjMi4zNC0yLjM0IDYuMTM1LTIuMzQgOC40NzUgMHMyLjM0IDYuMTM1IDAgOC40NzVsLTMuODg1IDMuODg2Yy0uMzg4LjM4OC0uNjE4IDEuMzIzLS41MSAyLjA3N2wuMTU3IDEuMXoiLz48L2c+PC9zdmc+") !important;
}

#wpadminbar > #wp-toolbar .wpnt-show span.noticon,
#wpadminbar #wp-admin-bar-notes.wpnt-show .noticon {
	color: #ffffff;
}

#wpadminbar .quicklinks ul#wp-admin-bar-root-default {
	padding-right: 0 !important;
}

#wpadminbar #wp-admin-bar-menu-toggle {
	display: none;
}

@media screen and (max-width: 782px) {
	#wpadminbar #wp-toolbar > ul > li {
		display: block;
	}

	#wpadminbar .ab-top-menu > li > .ab-item {
		box-sizing: border-box;
		line-height: 32px;
	}

	#wpadminbar #wp-admin-bar-ab-new-post > .ab-item {
		box-sizing: inherit !important;
	}

	#wpadminbar #wp-admin-bar-my-account > .ab-item {
		padding: 7px 15px;
		width: auto;
	}

	#wpadminbar #wp-toolbar.quicklinks li#wp-admin-bar-my-account.with-avatar > a img {
		display: block;
		left: auto;
		right: auto;
		position: static;
		margin-top: 3px;
		top: 13px;
	}

	/* Hide debug bar. */
	#wpadminbar #wp-toolbar.quicklinks li#wp-admin-bar-debug-bar {
		display: none;
	}
}

@media screen and  (max-width: 480px) {
	#wpadminbar #wp-toolbar.quicklinks li#wp-admin-bar-my-account.with-avatar > a {
		width: auto;
	}

	#wpadminbar #wp-toolbar.quicklinks li#wp-admin-bar-my-account.with-avatar > a img {
		margin-top: 12px;
	}
}

/* Fixes the order of screen options,
 * showing the dashboard switcher button always first.
*/
#adv-settings {
	display: flex;
	flex-direction: column;
}

/* Switcher should always be in the top */
#adv-settings #dashboard-switcher {
	order: 0;
}

#adv-settings .dashboard-switcher-text {
	margin-top: 0;
}

#adv-settings .dashboard-switcher-button {
	padding: 3px 16px;
}

/* Core registered options should be after the switcher */
#adv-settings fieldset {
	order: 1;
}

/* Submit button should always be in the bottom */
#adv-settings .submit {
	order: 2;
}