File size: 1,781 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
@import '@wordpress/base-styles/variables';
@import '@wordpress/dataviews/build-style/style.css';

// Should be implemented differently once v2 is not loaded via the v1 stack
// I'm tempted to even just replace all this with a display:none on the logo
@import './loading-screen';

// Hacks that shouldn't be necessary.
.environment-badge {
	display: none;
}

// BaseControl currently has an override for the label to accommodate the use case where the label is shown next to the control.
// In site settings forms, the label is above the control for regular fields so we need to override this override for UI consistency.
.dataforms-layouts-regular__field .components-base-control__label {
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
}

// We manually compose the UI of the dataview without including the view actions, which results in extra padding and a border.
.components-card__header + .components-card__body:has( > .dataviews-wrapper ):not( :has( .dataviews__view-actions ) ) {
	padding-top: 0;

	.dataviews-view-list div[role="row"]:first-child {
		border-top: none;
	}
}

// Global Styles
html,
body,
#wpcom {
	height: 100%;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell,
		'Helvetica Neue', sans-serif;
	background: var( --dashboard__background-color );
	color: var( --dashboard__text-color );
	line-height: $font-line-height-small;

	/* stylelint-disable-next-line unit-allowed-list */
	@media ( -webkit-min-device-pixel-ratio: 1.25 ), ( min-resolution: 120dpi ) {
		text-rendering: optimizeLegibility;
		-moz-osx-font-smoothing: grayscale;
		-webkit-font-smoothing: antialiased;
	}
}

a {
	color: var( --wp-admin-theme-color );
}

#wpcom {
	font-size: $font-size-medium;
}