archive
This commit is contained in:
+475
@@ -0,0 +1,475 @@
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
transition: all ease-in-out 0.2s;
|
||||
color: var(--color-secondary);
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
html {
|
||||
font-size: 10px;
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-size: 10px;
|
||||
padding: 3.75rem;
|
||||
padding-bottom: 0 !important;
|
||||
height: calc(100vh - 3.75rem);
|
||||
overflow-x: hidden;
|
||||
max-width: 100vw;
|
||||
background: var(--color-primary);
|
||||
}
|
||||
|
||||
#root {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.app-container {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
header {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.logo-container {
|
||||
display: flex;
|
||||
width: fit-content;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
.logo {
|
||||
background-size: 100%;
|
||||
width: 5rem;
|
||||
height: 5rem;
|
||||
display: inline-block;
|
||||
background-image: url("/logo512.png");
|
||||
}
|
||||
.logo-text-container {
|
||||
justify-content: center;
|
||||
vertical-align: middle;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
margin-top: 3.5rem;
|
||||
}
|
||||
.logo-text-container p {
|
||||
font-size: 2.4rem;
|
||||
}
|
||||
|
||||
.header {
|
||||
font-size: 10rem;
|
||||
letter-spacing: 1rem;
|
||||
}
|
||||
|
||||
.subheader {
|
||||
font-size: 2.5rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.overline {
|
||||
font-size: 2rem;
|
||||
letter-spacing: 0.1rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.overline[data-button] {
|
||||
border-bottom: 1px solid;
|
||||
width: fit-content;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.overline[data-button] a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.intro {
|
||||
margin: 4.5rem 0;
|
||||
display: inline-block;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
.question-container {
|
||||
margin: 3.5rem 0;
|
||||
}
|
||||
|
||||
.question {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.answers-container {
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
.answer {
|
||||
display: inline-flex;
|
||||
font-size: 1.8rem;
|
||||
padding: 1.2rem 1.5rem;
|
||||
margin-right: 0.75rem;
|
||||
margin-bottom: 0.75rem;
|
||||
border-radius: 24rem;
|
||||
background-color: var(--color-secondary);
|
||||
color: var(--color-primary);
|
||||
outline: none !important;
|
||||
border: none !important;
|
||||
letter-spacing: 0.2rem;
|
||||
text-transform: uppercase;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.answer.selected {
|
||||
background-color: var(--color-bright);
|
||||
}
|
||||
.answer.unselected {
|
||||
background-color: var(--color-dim);
|
||||
}
|
||||
|
||||
.symptom-container.subheader {
|
||||
margin-top: 5rem;
|
||||
margin-bottom: 2.5rem;
|
||||
display: block !important;
|
||||
}
|
||||
.symptom-container.subheader .overline {
|
||||
margin: 1rem 0;
|
||||
}
|
||||
.symptom-container {
|
||||
margin-bottom: 5rem;
|
||||
}
|
||||
.symptom {
|
||||
max-width: 100%;
|
||||
padding: 1.5rem;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 1rem;
|
||||
transition: border-color ease-in-out 0.4s;
|
||||
transition: box-shadow ease-in-out 0.3s;
|
||||
}
|
||||
.symptom.at-site {
|
||||
background-color: var(--color-dim);
|
||||
border-radius: 0;
|
||||
}
|
||||
.symptom.at-site:first-of-type {
|
||||
border-top-left-radius: 1rem;
|
||||
border-top-right-radius: 1rem;
|
||||
}
|
||||
.symptom.at-site:nth-of-type(3) {
|
||||
border-bottom-left-radius: 1rem;
|
||||
border-bottom-right-radius: 1rem;
|
||||
}
|
||||
|
||||
.symptom-emoji {
|
||||
text-align: center;
|
||||
font-size: 3rem;
|
||||
padding: 0.75rem;
|
||||
display: block;
|
||||
}
|
||||
.symptom-name {
|
||||
font-size: 2rem;
|
||||
text-align: center;
|
||||
display: block;
|
||||
}
|
||||
.symptom-chance {
|
||||
font-size: 1.8rem;
|
||||
text-align: center;
|
||||
display: block;
|
||||
}
|
||||
.symptom-chance:before {
|
||||
content: "EXPERIENCED BY";
|
||||
font-size: 1rem;
|
||||
display: block;
|
||||
text-align: center;
|
||||
letter-spacing: 0.1rem;
|
||||
}
|
||||
.symptom-chance:after {
|
||||
content: "PEOPLE";
|
||||
font-size: 1rem;
|
||||
display: block;
|
||||
text-align: center;
|
||||
letter-spacing: 0.1rem;
|
||||
}
|
||||
|
||||
footer {
|
||||
padding: 5rem 3.75rem;
|
||||
width: calc(100vw - 7.5rem);
|
||||
margin-left: -3.75rem;
|
||||
background-color: var(--color-secondary-light);
|
||||
}
|
||||
.link-container {
|
||||
font-size: 1.2rem;
|
||||
transition: none !important;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.link-container > div {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.link-container > div > .overline {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.link-container > div:not(:first-of-type) {
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--color);
|
||||
margin-top: 0.75rem;
|
||||
max-width: fit-content;
|
||||
|
||||
}
|
||||
|
||||
.link-container a {
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
|
||||
footer .by {
|
||||
color: var(--color-primary);
|
||||
margin-top: 4rem;
|
||||
}
|
||||
|
||||
@keyframes slideUp {
|
||||
0% {
|
||||
transform: translateY(300%);
|
||||
}
|
||||
100% {
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.input-popup {
|
||||
position: sticky;
|
||||
background-color: var(--color-secondary-light);
|
||||
bottom: 1rem;
|
||||
height: 13.5rem;
|
||||
margin-bottom: 7.5rem;
|
||||
transition: height ease-in-out 0.3s;
|
||||
overflow: hidden;
|
||||
border-radius: 2rem;
|
||||
max-height: 85vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
animation: 0.5s ease-out 0s 1 slideUp;
|
||||
animation-delay: 0.5s;
|
||||
animation-fill-mode: forwards;
|
||||
transform: translateY(200%);
|
||||
}
|
||||
.input-popup * {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
.input-popup.expanded {
|
||||
height: 80vh;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.input-popup .input-popup-header-icon {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
.input-popup.expanded .input-popup-header-icon {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
.input-popup-header {
|
||||
padding: 2.5rem;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: var(--color-secondary-light);
|
||||
border-bottom: 1px solid transparent;
|
||||
}
|
||||
.input-popup.expanded .input-popup-header {
|
||||
border-bottom: 1px solid var(--color-tertiary);
|
||||
}
|
||||
.input-popup-header-text {
|
||||
flex: 1;
|
||||
}
|
||||
.input-popup-header-icon {
|
||||
cursor: pointer;
|
||||
background-color: var(--color-primary);
|
||||
outline: none;
|
||||
color: var(--color-secondary);
|
||||
border: 1px solid transparent;
|
||||
border-radius: 10rem;
|
||||
height: 5rem;
|
||||
width: 5rem;
|
||||
}
|
||||
|
||||
.input-popup-body {
|
||||
padding: 2.5rem 2.5rem;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.input-popup-body .question-container .answers-container .answer {
|
||||
background-color: var(--color-tertiary);
|
||||
}
|
||||
.input-popup-body .question-container .answers-container .answer.selected {
|
||||
background-color: var(--color-secondary);
|
||||
}
|
||||
|
||||
.input-popup-submit {
|
||||
padding: 2.5rem;
|
||||
text-align: center;
|
||||
font-size: 2rem;
|
||||
letter-spacing: 0.3rem;
|
||||
background-color: var(--color-secondary);
|
||||
cursor: pointer;
|
||||
}
|
||||
.input-popup.expanded .input-popup-submit {
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
}
|
||||
.input-popup-submit.submitted {
|
||||
background-color: #55c16c;
|
||||
}
|
||||
.input-popup-submit.errored {
|
||||
background-color: #c43d34;
|
||||
}
|
||||
|
||||
.input-popup.expanded::-webkit-scrollbar {
|
||||
width: 1.5rem;
|
||||
background-color: var(--color-tertiary);
|
||||
border-radius: 0 4rem 4rem 0;
|
||||
}
|
||||
.input-popup.expanded::-webkit-scrollbar-thumb {
|
||||
width: 1rem;
|
||||
background-color: var(--color-dim);
|
||||
border-radius: 0 4rem 4rem 0;
|
||||
}
|
||||
|
||||
.tip-container {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
padding: 2rem 0;
|
||||
margin: 2rem 0;
|
||||
border-radius: 1rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
.tip-icon {
|
||||
font-size: 3rem;
|
||||
}
|
||||
.tip .overline {
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
.tip .subheader {
|
||||
font-size: 2rem;
|
||||
letter-spacing: 0.2rem;
|
||||
margin-top: 0.4rem;
|
||||
}
|
||||
.tip .header {
|
||||
font-size: 6rem;
|
||||
letter-spacing: 0.5rem;
|
||||
}
|
||||
.tip-container .overline[data-button] {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
.tip-container .overline[data-button]:first-of-type {
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
@keyframes loading {
|
||||
0% {
|
||||
width: 0%;
|
||||
}
|
||||
100% {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.loading-bar-container {
|
||||
min-height: 2rem;
|
||||
background-color: var(--color-secondary-light);
|
||||
border-radius: 1rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
.loading-bar {
|
||||
position: relative;
|
||||
width: 1rem;
|
||||
min-height: 2rem;
|
||||
background-color: #25d255;
|
||||
border-radius: 1rem;
|
||||
animation: 2s ease-out 0s infinite loading;
|
||||
}
|
||||
|
||||
.result-header-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 5rem;
|
||||
flex-direction: column;
|
||||
margin-bottom: 2rem;
|
||||
border: 1px solid var(--color-secondary);
|
||||
border-radius: 1rem;
|
||||
padding: 3rem 2rem;
|
||||
}
|
||||
|
||||
.result-header-container .symptom-container {
|
||||
margin: 0;
|
||||
flex: 1;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.result-header-select {
|
||||
width: 100%;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.result-header-select .overline {
|
||||
font-size: 1.6rem;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
|
||||
.result-header-select .overline.errored {
|
||||
margin-bottom: 0;
|
||||
margin-top: 0.75rem;
|
||||
color: #c43d34;
|
||||
}
|
||||
.result-header-select .overline.success {
|
||||
margin-bottom: 0;
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
.result-header-select select {
|
||||
background-color: var(--color-tertiary);
|
||||
border-radius: 1rem;
|
||||
padding: 1rem 2rem;
|
||||
outline: none;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@media (hover: hover) and (pointer: fine) {
|
||||
.answer:hover,
|
||||
.answer.unselected:hover {
|
||||
background-color: var(--color-secondary-light);
|
||||
}
|
||||
.symptom:hover {
|
||||
box-shadow: 0px 0px 100px var(--color-tertiary);
|
||||
background-color: var(--color-primary);
|
||||
}
|
||||
.symptom.at-site:hover {
|
||||
box-shadow: 0px 0px 100px var(--color-dim);
|
||||
background-color: var(--color-secondary-light);
|
||||
color: var(--color-primary);
|
||||
}
|
||||
.symptom.at-site:hover p {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
.input-popup-header-icon:hover {
|
||||
background-color: var(--color-tertiary);
|
||||
}
|
||||
.input-popup-body .question-container .answers-container .answer:hover {
|
||||
background-color: var(--color-bright);
|
||||
}
|
||||
.input-popup-submit:hover {
|
||||
background-color: var(--color-tertiary);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user