File size: 2,737 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
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
@import "@wordpress/base-styles/breakpoints";
@import "@wordpress/base-styles/mixins";

.blank-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	min-height: 100vh;
	background: #fdfdfd;
	overflow: auto;
	overscroll-behavior: contain;

	// Hide masterbar behind.
	z-index: z-index("root", ".masterbar");

	.formatted-header {
		margin-top: 0;
		margin-bottom: 3rem;
		text-align: left;

		@include break-small {
			text-align: center;
		}

		.formatted-header__title {
			color: var(--studio-gray-100);
			font-size: 2.25rem;
			padding: 0;
			margin-top: 0;
			margin-bottom: 1rem;
		}

		.formatted-header__subtitle {
			color: var(--studio-gray-60);
			font-size: 1rem;
			padding: 0;
			margin-bottom: 0;
		}
	}

	.components-base-control .components-base-control__field {
		.components-input-control__label,
		.components-base-control__label,
		.components-select-control__input,
		.components-textarea-control__input,
		.components-text-control__input {
			font-size: 0.875rem;
		}

		.components-select-control__input,
		.components-text-control__input,
		.components-textarea-control__input {
			background-color: var(--studio-white);
			padding: 0 1rem;
			box-sizing: border-box;
		}

		.components-select-control__input,
		.components-text-control__input {
			height: 2.5rem;
		}

		.components-textarea-control__input {
			padding: 1rem;
		}
	}
}

.blank-canvas__header {
	height: 4rem;
	display: flex;
	align-items: center;
	padding: 0 1.5rem;
	margin-bottom: 2.5rem;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);

	@include break-small {
		box-shadow: none;
	}

	.wordpress-logo {
		width: 1.5rem;
		height: 1.5rem;
		fill: var(--color-text);
		margin: 0 1.5rem 0 0;
	}
}

.blank-canvas__content {
	padding: 0 1.5rem 4rem;

	@include break-small {
		padding-bottom: 0;
	}
}

.blank-canvas__footer {
	position: fixed;
	bottom: 0;
	box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05);
	padding: 0.75rem 1rem;
	background: #fdfdfd;
	width: 100%;
	box-sizing: border-box;

	@include break-small {
		box-shadow: none;
		position: relative;
		bottom: auto;
	}
}

.blank-canvas__back {
	color: var(--color-text);
	font-size: 0;
	padding: 0;

	&.has-icon.has-text svg {
		margin-right: 0.25rem;
	}

	@include break-small {
		font-size: inherit;
	}
}

.blank-canvas__header-title {
	position: absolute;
	right: 1rem;
	font-size: 0.875rem;
	color: var(--studio-gray-30);
	z-index: -1;

	@include break-small {
		right: 0;
		left: 0;
		text-align: center;
	}
}

.has-blank-canvas {
	overscroll-behavior: none;
	touch-action: none;

	.global-notices {
		// we need to show the global notices above the blank canvas
		z-index: z-index( "root", ".masterbar" ) + 1;
	}
}
.has-blank-canvas .layout {
	max-height: 100vh;
	overflow: hidden;
}