File size: 2,454 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
.app-banner-overlay {
	position: fixed;
	height: 100vh;
	width: 100%;
	top: 0;
	left: 0;
	background: color-mix(in srgb, var(--studio-black) 60%, transparent);
	touch-action: none;

	/* Needed for banner to appear in front of notifications panel. */
	z-index: z-index("root", ".app-banner");
}

/* Prevent the body from scrolling when the app banner is visible */
body.app-banner-is-visible {
	position: fixed;
	height: 100%;
	width: 100%;
	overflow: hidden;
}

.card.app-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--color-surface);
	color: var(--color-neutral-100);
	padding: 30px 24px;
	margin-bottom: 0;
	box-shadow: 3px -2px 24px 4px rgba(0, 0, 0, 0.29);
	overflow: hidden;
	text-align: center;
	font-family: "SF Pro Text", $sans;
}

.app-banner__circle {
	position: absolute;
	border: 2px solid;
	border-radius: 50%;
	z-index: z-index("root", ".app-banner__circle");

	&.is-blue {
		border-color: var(--studio-blue-10);
		height: 102px;
		width: 102px;
		right: -60px;
		top: -40px;
	}

	&.is-red {
		border-color: var(--studio-red-10);
		height: 91px;
		width: 91px;
		right: 25px;
		bottom: -30px;
	}

	&.is-yellow {
		border-color: var(--studio-yellow-10);
		height: 48px;
		width: 48px;
		left: -24px;
		top: -24px;
	}
}

.app-banner__icon {
	height: 50px;
	width: 93px;
	margin: auto;
}

.app-banner__text-content {
	letter-spacing: -0.4px;
	margin: 36px auto 0;
}

.app-banner__title {
	font-size: rem(28px); //typography-exception
	line-height: 30px;
	font-weight: 500;
	max-width: 18em;
	margin-left: auto;
	margin-right: auto;
	-webkit-font-smoothing: auto;
	-moz-osx-font-smoothing: initial;
	text-rendering: auto;
	@extend .wp-brand-font;
}

.app-banner__copy {
	font-size: rem(16px); //typography-exception
	line-height: 21px;
	max-width: 18em;
	margin-left: auto;
	margin-right: auto;
	margin-top: 18px;
}

.app-banner__buttons {
	margin-top: 36px;

	.button {
		width: 100%;
		min-width: 110px;
		max-width: 366px;
		margin: auto;
		display: block;
		padding: 15px 18px;
		font-size: rem(18px); //typography-exception;
	}
}

.button.app-banner__open-button {
	background-color: var(--studio-jetpack-green-40);
	border: 0;
	border-radius: 4px;
	margin-bottom: 12px;

	&:hover,
	&:focus {
		background-color: var(--studio-jetpack-green-60);
		border-color: var(--studio-jetpack-green-60);
	}
}

.button.app-banner__no-thanks-button {
	background: none;
	border: 0;
	color: var(--color-text);
}