You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

271 lines
4.5 KiB
CSS

@font-face {
font-family: Pirelli;
src: url("./font/pirelli-regular.woff");
}
@font-face {
font-family: Pirelli;
src: url("./font/pirelli-bolditalic.woff");
font-weight: bold;
}
@font-face {
font-family: Necto-Mono;
src: url("./font/Necto-Mono.woff");
}
:root {
--red: tomato;
--background: rgb(233, 233, 233);
--textcolor: rgb(39, 39, 39);
--blue: #9edae2;
--pink: #f7d8e8;
--orange: #ffc496;
--yellow: #f9f5b0;
--green: #9fd3a8;
--content-width: 1440px;
--radius: 12px;
--font: "Pirelli";
--title: 36px;
--text: 24px;
--app-margin: 30px;
}
html {
scroll-behavior: smooth;
overflow-x: hidden;
}
body {
font-family: Pirelli;
background-color: var(--background);
color: var(--textcolor);
margin: 0;
}
* {
box-sizing: border-box;
}
a.goto-archive {
position: fixed;
top: 16px;
right: 16px;
color: var(--red);
font-size: 1.2em;
z-index: 1;
}
.page--header {
top: 0;
width: 100%;
margin: 8vh 0;
padding: 0 16px;
display: flex;
flex-direction: row;
column-gap: 8px;
align-items: stretch;
justify-content: center;
position: fixed;
z-index: 1;
}
.page--header > * {
border: solid 1px var(--red);
border-radius: 8px;
padding: 12px;
background-color: var(--background);
}
header {
flex-grow: 1;
}
nav {
cursor: pointer;
}
h1 {
font-size: 36px;
color: var(--red);
margin: 0;
font-weight: normal;
}
.question {
display: flex;
font-size: 1.2em;
flex-direction: column;
flex-grow: 1;
justify-content: space-between;
align-items: flex-start;
row-gap: 24px;
width: 100%;
margin-top: 28vh;
padding: 0 16px;
}
.info {
/*background-color: white;*/
display: none;
padding: 16px;
border: solid 1px var(--red);
border-radius: 8px;
color: var(--red);
font-size: 1em;
flex-basis: 35%;
}
.show {
display: block;
}
.q-text {
margin-bottom: 1em;
flex-basis: 65%;
}
/*styling of form*/
form {
padding: 16px;
display: flex;
flex-flow: wrap;
column-gap: 24px;
row-gap: 16px;
align-items: flex-start;
}
.form-box {
display: flex;
flex-direction: column;
row-gap: 8px;
flex-basis: 30%;
flex-grow: 1;
}
.form-box#apply {
align-self: flex-end;
}
textarea {
resize: none;
/* font-family: Necto-mono; */
border-radius: 4px;
border: solid 1px grey;
transition: border-radius 70ms ease-in-out;
}
/* when the cursor is iside the text area*/
textarea:focus {
border: solid 2px var(--red);
outline: none;
border-radius: 16px;
}
input {
font-family: Pirelli;
width: 100%;
font-size: 1.2em;
margin: 0;
}
input:hover {
color: var(--red);
}
/*to pick the exact type of input you wanna style use "[]"*/
input[type="radio"] {
font-family: Pirelli;
background-color: var(--red);
}
label {
font-size: 0.9em;
}
/*custom radio button*/
/* The container */
.radio-label {
display: block;
position: relative;
padding-left: 35px;
margin-bottom: 12px;
cursor: pointer;
font-size: 1.2em;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
/* Hide the browser's default radio button */
.radio-label input {
position: absolute;
opacity: 0;
cursor: pointer;
}
/* Create a custom radio button */
.checkmark {
position: absolute;
top: 0;
left: 0;
height: 24px;
width: 24px;
background-color: rgb(255, 255, 255);
border: solid 2px var(--red);
border-radius: 50%;
}
/* On mouse-over change color */
.radio-label:hover {
color: var(--red);
}
/* When the radio button is checked, add a blue background */
.radio-label input:checked ~ .checkmark {
background-color: var(--red);
}
/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
content: "";
position: absolute;
display: none;
}
.lbl-result {
color: grey;
font-size: 0.8em;
}
.result {
font-family: Courier;
}
.form-end {
margin: 16px;
display: flex;
flex-direction: row;
flex-flow: nowrap;
align-items: center;
align-content: stretch;
column-gap: 8px;
}
.form-end > * {
flex-grow: 1;
flex-basis: 50%;
margin: 0;
padding: 0;
}
a.goto-form {
border: solid 1px rgb(107, 107, 107);
border-radius: 4px;
font-family: Pirelli;
width: 100%;
font-size: 1.2em;
text-decoration: none;
color: var(--textcolor);
text-align: center;
padding: 2px;
}
.goto-form:hover {
color: var(--red);
background-color: rgb(216, 216, 216);
}
.save-btn {
height: 100%;
}
@media (max-width: 991.98px) {
:root {
--app-margin: 18px;
--text: 21px;
}
.title,
nav.h1 {
font-size: 1.5em;
}
}