File size: 1,833 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
// Override spinner styles
.stats-module__placeholder {
	.spinner {
		visibility: initial;
		background-image: none;
	}
}

.global-notices {
	.calypso-notice {
		margin: 0;
		padding: 0;
		border-left: 0;
	}
}

// Since the component `Notice` styles affect the WP Admin notice styles,
// we need to restore by overriding them except for `.wpcomsh-notice` on Atomic sites.
.calypso-notice:not(.wpcomsh-notice) {
	display: block;
	width: auto;
	background: var(--studio-white);
	color: var(--color-text);
	font-size: 13px;
	margin-bottom: 2px;

	// Avoid overriding hidden notices.
	&[aria-hidden="true"],
	&.hidden {
		display: none;
	}

	h2,
	h3 {
		color: var(--studio-gray-90);
		font-size: 1.3em;
		margin: 1em 0;
		font-weight: 600;
	}

	p {
		font-size: 13px;
		line-height: 1.5;
		margin: 0.5em 0;
		padding: 2px;
		color: var(--studio-gray-70);
	}

	code {
		padding: 3px 5px 2px;
		margin: 0 1px;
	}
}

// Overrides layout for WP Admin.
.wp-admin {
	// CSS variable overrides.
	--sidebar-width-max: 160px;
	--sidebar-width-min: 36px;

	& .layout__content,
	&.theme-default .focus-content .layout__content {
		padding-top: 32px;
		padding-left: 1px;
	}
	// Fixed header doesn't work well for WP-Admin, as the masterbar isn't fixed.
	& .is-section-stats .has-fixed-nav .fixed-navigation-header__header {
		@media (max-width: 600px) {
			position: absolute;
			width: 100%;
			left: 0;
		}
	}
	& .is-section-stats .has-fixed-nav {
		padding-top: 64px;
	}
	& .highlight-cards.has-odyssey-stats-bg-color,
	& .inner-notice-container.has-odyssey-stats-bg-color {
		background-color: var(--jetpack-white-off);
	}
	& .stats .navigation-header__main .jetpack-header {
		@media (max-width: 600px) {
			padding-left: 0;
		}
	}

	// Offset margin of menu items set in Calypso.
	ul.wp-submenu,
	ul.wp-submenu-wrap {
		margin-left: 0;
	}
}