GrandTabernacleAutoVI/public_html/css/style.css

242 lines
3.9 KiB
CSS
Raw Normal View History

2023-11-29 15:38:23 +01:00
@font-face {
font-family: "SpeedBeast";
src:
2023-12-07 17:43:16 +01:00
local("SpeedBeast"),
url("./SpeedBeast.ttf") format("truetype");
2023-11-29 15:38:23 +01:00
}
2023-12-07 17:43:16 +01:00
2023-11-29 15:38:23 +01:00
body {
display: flex;
2023-12-07 17:43:16 +01:00
flex-direction: column;
justify-content: space-between;
2023-11-14 18:16:08 +01:00
align-items: center;
width: 100%;
height: 100%;
2023-12-07 17:43:16 +01:00
font-size: 0.8em;
2023-11-29 15:38:23 +01:00
place-items: center;
2023-12-07 17:43:16 +01:00
}
footer{
color: rgb(180, 167, 167);
font-weight: bold;
}
2023-11-29 15:38:23 +01:00
2023-12-07 17:43:16 +01:00
header{
display: block;
width: 100vw;
2023-11-14 18:16:08 +01:00
}
2023-11-29 15:38:23 +01:00
h1 {
2023-12-07 17:43:16 +01:00
font-size: 7vw;
color: #ffffff;
2023-11-29 15:38:23 +01:00
}
2023-12-07 17:43:16 +01:00
h2{
display: none;
}
#logo{
display:none;
}
@media screen and (min-width: 1200px) {
#logo {
display: block;
width: 100px;
margin: 10px;
}
h2 {
display: block;
/*background-color: rgba(255, 255, 255, 0.466);*/
color: lightgrey;
padding: 10px;
border-radius: 8px;
}
.container {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
text-align: center;
max-width: 50%;
}
}
.container {
2023-11-29 17:53:48 +01:00
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
2023-12-07 17:43:16 +01:00
2023-11-29 15:38:23 +01:00
main {
2023-12-07 17:43:16 +01:00
font-family: Speedbeast, Trebuchet, sans-serif, calibiri;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
2023-11-14 18:16:08 +01:00
}
2023-12-07 17:43:16 +01:00
2023-11-14 18:16:08 +01:00
#background-image {
2023-11-29 15:38:23 +01:00
background-image: url('../assets/bg.webp');
2023-12-07 17:43:16 +01:00
width: 100vw;
height: 100vh;
margin: 0px;
background-position: center;
background-repeat: no-repeat;
background-clip: content-box;
2023-11-29 15:38:23 +01:00
}
#checkbox {
display: none;
2023-12-07 18:03:08 +01:00
cursor: pointer;
2023-11-29 15:38:23 +01:00
}
2023-12-07 17:43:16 +01:00
#checkbox:checked+#formcontainer #form {
2023-11-29 15:38:23 +01:00
width: 37.5em;
}
2023-12-07 17:43:16 +01:00
#checkbox:checked+#formcontainer #form_toggle {
2023-11-29 15:38:23 +01:00
visibility: hidden;
opacity: 0;
transform: scale(0.7);
}
2023-12-07 17:43:16 +01:00
#checkbox:checked+#formcontainer #form_input,
#checkbox:checked+#formcontainer #form_buttonLabel {
2023-11-29 15:38:23 +01:00
transition: 0.2s 0.1s;
visibility: visible;
opacity: 1;
transform: scale(1);
}
2023-11-29 17:53:48 +01:00
2023-12-07 17:43:16 +01:00
#checkbox:not(:checked)+#formcontainer #form_input:required:valid~#form_toggle {
2023-11-29 15:38:23 +01:00
pointer-events: none;
cursor: default;
}
2023-12-07 17:43:16 +01:00
#formcontainer,
#form,
#form_toggle {
2023-11-29 15:38:23 +01:00
width: 20em;
height: 6.25em;
2023-12-07 17:43:16 +01:00
max-width: 80vw;
2023-11-29 15:38:23 +01:00
}
2023-12-07 17:43:16 +01:00
#formcontainer {
2023-11-29 15:38:23 +01:00
position: relative;
font-weight: 700;
}
2023-12-07 17:43:16 +01:00
#form,
#form_toggle {
2023-11-29 15:38:23 +01:00
position: absolute;
border-radius: 6.25em;
background-color: #fff;
transition: 0.2s;
}
2023-12-07 17:43:16 +01:00
2023-11-29 15:38:23 +01:00
#form {
left: 50%;
transform: translateX(-50%);
padding: 0.6em;
box-sizing: border-box;
box-shadow: 0 0.125em 0.3125em rgba(0, 0, 0, 0.3);
display: flex;
justify-content: center;
}
2023-12-07 17:43:16 +01:00
2023-11-29 15:38:23 +01:00
#form_toggle {
color: #7e2722;
top: 0;
cursor: pointer;
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
}
2023-12-07 17:43:16 +01:00
2023-11-29 15:38:23 +01:00
#form_toggle::before {
font-size: 1.75em;
content: attr(data-title);
}
2023-12-07 17:43:16 +01:00
#form_input,
#form_button {
2023-11-29 15:38:23 +01:00
font: inherit;
border: 0;
outline: 0;
border-radius: 5em;
box-sizing: border-box;
}
2023-12-07 17:43:16 +01:00
#form_input,
#form_buttonLabel {
2023-11-29 15:38:23 +01:00
font-size: 1.75em;
opacity: 0;
visibility: hidden;
transform: scale(0.7);
transition: 0s;
}
2023-12-07 17:43:16 +01:00
2023-11-29 15:38:23 +01:00
#form_input {
color: rgb(31, 24, 134);
height: 100%;
width: 100%;
padding: 0 0.714em;
}
2023-12-07 17:43:16 +01:00
2023-11-29 15:38:23 +01:00
#form_input::placeholder {
color: currentColor;
}
2023-12-07 17:43:16 +01:00
2023-11-29 15:38:23 +01:00
#form_input:required:valid {
color: #1b5228;
}
2023-12-07 17:43:16 +01:00
#form_input:required:valid+.c-form__buttonLabel {
2023-11-29 15:38:23 +01:00
color: #fff;
}
2023-12-07 17:43:16 +01:00
#form_input:required:valid+.c-form__buttonLabel::before {
2023-11-29 15:38:23 +01:00
pointer-events: initial;
}
2023-12-07 17:43:16 +01:00
2023-11-29 15:38:23 +01:00
#form_buttonLabel {
color: #ffaea9;
height: 100%;
width: auto;
}
2023-12-07 17:43:16 +01:00
2023-11-29 15:38:23 +01:00
#form_buttonLabel::before {
content: '';
position: absolute;
width: 100%;
height: 100%;
pointer-events: none;
cursor: pointer;
}
2023-12-07 17:43:16 +01:00
2023-11-29 15:38:23 +01:00
#form_button {
color: inherit;
padding: 0;
height: 100%;
width: 5em;
background-color: #7e2722;
2023-12-07 18:03:08 +01:00
}
#form_button:hover {
color: #ffffff;
cursor: pointer;
2023-12-07 17:43:16 +01:00
}