Optimized for phones

This commit is contained in:
Profitroll 2022-12-22 12:59:50 +01:00
parent 0f1c6edf0f
commit 91d16dab6e

View File

@ -1,3 +1,5 @@
@import url('https://fonts.cdnfonts.com/css/google-sans');
/* Material Customization */ /* Material Customization */
:root { :root {
--pure-material-primary-rgb: 255, 191, 0; --pure-material-primary-rgb: 255, 191, 0;
@ -15,15 +17,15 @@ body {
.registration { .registration {
position: relative; position: relative;
border-radius: 8px; border-radius: 8px;
padding: 16px 48px; padding: 16px 48px 30px 30px;
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12); box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
overflow: hidden; overflow: hidden;
background-color: white; background-color: white;
} }
h1 { .registration h1 {
margin: 32px 0; margin: 32px 0;
font-family: "Roboto", "Segoe UI", BlinkMacSystemFont, system-ui, -apple-system; font-family: 'Product Sans', sans-serif;
font-weight: normal; font-weight: normal;
text-align: center; text-align: center;
} }
@ -35,114 +37,69 @@ h1 {
} }
p { p {
font-family: "Roboto", "Segoe UI", BlinkMacSystemFont, system-ui, -apple-system; font-family: 'Product Sans', sans-serif;
font-weight: normal; font-weight: normal;
text-align: center; text-align: center;
color: #2b2b2b;
} }
a.matter-button-contained { a.matter-button-contained {
font-family: 'Product Sans', sans-serif;
text-decoration: none; text-decoration: none;
} }
a { a {
color: rgb(var(--pure-material-primary-rgb)); color: rgb(var(--pure-material-primary-rgb));
font-family: 'Product Sans', sans-serif;
text-decoration: none; text-decoration: none;
} }
a:hover { a:hover {
text-decoration: underline;
}
button {
display: block !important;
margin: 32px auto;
}
.done,
.progress {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: white;
visibility: hidden;
}
.done {
transition: visibility 0s 1s;
}
.signed > .done {
visibility: visible;
}
.done > a {
display: inline-block;
text-decoration: none; text-decoration: none;
} }
.progress { .matter-button-contained {
opacity: 0; margin-top: 10px;
} }
.signed > .progress { @media only screen and (max-width: 980px) {
animation: loading 4s;
}
@keyframes loading { .registration {
0% {
visibility: visible;
}
12.5% {
opacity: 0;
}
25% {
opacity: 1;
}
87.5% {
opacity: 1;
}
100% {
opacity: 0;
}
}
.left-footer,
.right-footer {
position: fixed; position: fixed;
padding: 14px; border-radius: none;
bottom: 14px; padding: auto;
color: #555; box-shadow: none;
background-color: #eee; overflow: visible;
font-family: "Roboto", "Segoe UI", BlinkMacSystemFont, system-ui, -apple-system;
font-size: 14px;
line-height: 1.5;
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
} }
.left-footer { .registration {
left: 0; width: 95%;
border-radius: 0 4px 4px 0; height: auto;
text-align: left;
} }
.right-footer { .registration h1 {
right: 0; font-size: 64px;
border-radius: 4px 0 0 4px;
text-align: right;
} }
.left-footer > a, body {
.right-footer > a { background: none;
color: black; min-height: 85vh;
}
p {
font-size: 42px;
}
.matter-button-contained {
padding-top: 0.5em;
padding-bottom: 1.3em;
padding-left: 0.65em;
padding-right: 0.65em;
border-radius: 7px;
}
a.matter-button-contained {
font-size: 3.2em;
} }
.left-footer > a:hover,
.right-footer > a:hover {
text-decoration: underline;
} }