-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathstyle.css
More file actions
127 lines (113 loc) · 3.46 KB
/
style.css
File metadata and controls
127 lines (113 loc) · 3.46 KB
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
/**
* PWA Install Prompt 1.0.2
* Prompt users to add your PWA to their home screen, since Apple won’t.
* https://github.com/JacobDB/pwa-install-prompt/
*
* Copyright 2018 Jacob Bearce
*
* Released under the MIT License
*
* Released on: November 6, 2018
*/
.pwa-install-prompt__container {
align-items: center;
box-sizing: border-box;
display: flex;
height: 100%;
justify-content: center;
left: -999em;
padding: 30px;
position: fixed;
top: -999em;
transition: left 0s 0.15s, top 0s 0.15s, visibility 0s 0.15s;
visibility: hidden;
width: 100%;
z-index: 100000;
}
.pwa-install-prompt__container.is-active {
left: 0;
top: 0;
transition: none;
visibility: visible;
}
.pwa-install-prompt__overlay {
background: rgba(0,0,0,0.5);
border: 0;
height: 100%;
left: 0;
opacity: 0;
position: absolute;
text-indent: -999em;
top: 0;
transition: opacity 0.15s;
width: 100%;
z-index: 0;
}
.pwa-install-prompt__container.is-active .pwa-install-prompt__overlay {
opacity: 1;
}
.pwa-install-prompt {
background: #FFF;
border-radius: 2px;
box-shadow: 0px 4px 8px rgba(0,0,0,0.125);
box-sizing: border-box;
color: #424242;
font-family: sans-serif;
max-width: 320px;
opacity: 0;
position: relative;
text-align: center;
transform: translateY(25%);
transition: opacity 0.15s, transform 0.15s ease-in-out;
z-index: 1;
}
.pwa-install-prompt__container.is-active .pwa-install-prompt {
opacity: 1;
transform: translateY(0%);
}
.pwa-install-prompt::before {
background: url("data:image/svg+xml,%3Csvg viewBox='0 0 128 128' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23FFFFFF' d='M64.197,50.47C79.696,34.95 95.259,19.502 110.597,3.824C114.411,0.182 114.565,1.022 117.707,1.24C124.299,2.167 127.723,10.687 123.435,16.078C108.453,32.47 92.997,48.399 77.387,64.174C92.571,80.01 107.685,95.917 123.024,111.595C129.195,118.349 120.432,132.527 111.035,124.716C94.992,109.403 79.408,93.611 63.979,77.65C48.485,93.169 32.917,108.618 17.584,124.296C10.837,130.734 -2.411,121.031 4.747,112.042C19.728,95.65 35.179,79.716 50.795,63.945C35.605,48.11 20.491,32.198 5.157,16.525C0.085,10.976 2.912,0.586 12.267,1.24C14.069,1.491 15.723,2.227 17.141,3.404C33.184,18.717 48.768,34.509 64.197,50.47Z' /%3E%3C/svg%3E%0A") center center no-repeat;
border: 0;
bottom: 100%;
content: "";
display: block;
height: 16px;
margin: 0 0 16px;
pointer-events: none;
position: absolute;
right: 0;
width: 16px;
}
.pwa-install-prompt__icon__container {
background: url("data:image/svg+xml,%3Csvg viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23F0F0F0' d='M65,17C65,10.377 59.623,5 53,5L17,5C10.377,5 5,10.377 5,17L5,53C5,59.623 10.377,65 17,65L53,65C59.623,65 65,59.623 65,53L65,17Z' /%3E%3C/svg%3E%0A") center center / 70px 70px repeat-x;
margin: 40px 0 0;
}
.pwa-install-prompt__icon {
border-radius: 12px;
display: block;
margin: 0 auto;
width: 60px;
}
.pwa-install-prompt__content {
padding: 10px 35px;
}
.pwa-install-prompt__title {
font-size: 24px;
margin: 0 0 20px;
}
.pwa-install-prompt__text {
font-size: 16px;
line-height: 20px;
margin: 0 0 46px;
}
.pwa-install-prompt__guide {
align-items: center;
display: flex;
font-size: 12px;
justify-content: center;
margin: 0;
}
.pwa-install-prompt__guide__icon {
margin: 0 2px 6px;
width: 20px;
}