File size: 1,051 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
@import "@automattic/onboarding/styles/mixins";

.theme-preview__frame-wrapper {
	flex-grow: 1;
	position: relative;

	.theme-preview__frame-message {
		bottom: 0;
		color: var(--color-text-subtle);
		display: none;
		font-size: $font-body;
		left: 0;
		position: absolute;
		right: 0;
		top: 0;
		z-index: 1;

		strong {
			color: var(--color-text-subtle);
			display: block;
			font-size: $font-title-medium;
			margin-bottom: 5px;
		}
	}

	.theme-preview__frame {
		border: none;
		height: 100%;
		transform-origin: 0 0;
		transition: opacity 0.2s ease-in-out, max-width 0.2s ease-out;
		width: 100%;
	}
}

.theme-preview__container {
	bottom: 0;
	display: flex;
	flex-direction: column;
	left: 0;
	overflow: hidden;
	position: absolute;
	right: 0;
	top: 0;

	&--loading {
		.theme-preview__frame-wrapper {
			@include onboarding-placeholder;

			.theme-preview__frame-message {
				align-items: center;
				display: flex;
				flex-direction: column;
				justify-content: center;

				svg {
					height: 20px;
					width: 20px;
				}
			}
		}
	}
}