File size: 2,742 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
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
@import "./styles/theme";
@import "./styles/layout";
@import "./styles/wp-admin";
@import "./styles/typography";
@import "@wordpress/base-styles/breakpoints";

.wp-admin {
	.card {
		border: 0;
		max-width: initial;
		min-width: initial;
	}

	.subscribers-count {
		display: none;
	}

	.form-checkbox:checked::before {
		// Increase Calypso styles specificity.
		content: url(calypso/assets/images/checkbox-icons/checkmark-primary.svg);
		width: 12px;
		height: 12px;
		margin: 3px auto;
		display: inline-block;

		// Override WP-Admin styles.
		float: none;
	}

	// Jetpack custom styles.
	.stats > .jp-dashboard-footer {
		padding-top: 32px;
		padding-bottom: 32px;
	}

	.stats .jetpack-header {
		padding-bottom: 12px;

		// Align with navigation.
		@media (max-width: 660px) {
			padding-left: 16px;
		}
	}

	.stats-navigation.stats-navigation--modernized .section-nav__panel {

		// align with header
		@media (min-width: 661px) {
			padding: 0;
		}
	}

	.stats-navigation.stats-navigation--modernized .section-nav-tab .section-nav-tab__link {
		@media (min-width: $break-mobile) {
			padding-left: 0;
			padding-right: 0;
		}

		&:focus {
			box-shadow: none;
		}
	}

	.stats-navigation.stats-navigation--modernized .section-nav-tab:not(:first-child) {

		// No need for dropdown nav to have margins.
		@media (min-width: 480px) {
			margin-left: 32px;
		}
	}

	// Disable focus box-shadow from links.
	// The box shadow is set to admin color which does not match the jetpack green.
	a:focus {
		box-shadow: none;
	}

	// Use base component styling of `@automattic/components/Button`
	.inner-notice-container .banner__action a.button,
	.button.jetpack-emerald-button {
		padding: 0.5em 1.5em;
		font-size: 1rem;
		line-height: 1.375;
		align-content: center;

		&:focus {
			box-shadow: none;
		}

		&.is-primary {
			color: var(--studio-white);
			background: var(--studio-black);
		}

		// Use `transparent` styling as secondary styles
		&.is-transparent {
			color: var(--studio-black);
			background: inset 0 0 0 1.5px var(--studio-white);

			&:hover:not(.is-busy) {
				color: var(--studio-black);
				background: var(--studio-gray-0);
			}

			&.is-busy {
				background: #dcdcde;
				color: var(--studio-gray-20);
				border: 1px solid transparent;
			}
		}
	}

	.inner-notice-container .banner__action a.button.is-compact {
		font-size: 12px;
		line-height: 1;
		padding: 7px;
	}
}

.inner-notice-container .card.banner.is-jetpack {
	border-left: 3px solid var(--color-jetpack);
}

// Force any JITM from Jetpack to be hidden and it is removed in https://github.com/Automattic/jetpack/pull/39714.
// We manage our own CTAs, including JITM, across Stats pages.
.jetpack-jitm-message,
.jitm-card.jitm-banner {
	display: none;
}