375 lines
No EOL
5.9 KiB
CSS
375 lines
No EOL
5.9 KiB
CSS
@font-face {
|
|
font-family: "SpeedBeast";
|
|
src:
|
|
local("SpeedBeast"),
|
|
url("./SpeedBeast.ttf") format("truetype");
|
|
}
|
|
|
|
body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
font-size: 0.8em;
|
|
place-items: center;
|
|
}
|
|
|
|
|
|
|
|
|
|
footer {
|
|
color: rgb(180, 167, 167);
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
header {
|
|
display: block;
|
|
width: 100vw;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 7vw;
|
|
color: #ffffff;
|
|
}
|
|
|
|
h2 {
|
|
display: none;
|
|
}
|
|
|
|
#logo {
|
|
display: none;
|
|
}
|
|
|
|
#about{
|
|
color: rgb(255, 255, 255);
|
|
font-weight: bold;
|
|
font-family:sans-serif,calibri;
|
|
}
|
|
|
|
|
|
@media screen and (max-width: 700px) { /*petit*/
|
|
|
|
|
|
nav {
|
|
height: 60px;
|
|
background: #00000050;
|
|
}
|
|
|
|
#toggle {
|
|
display: none;
|
|
}
|
|
|
|
.menu {
|
|
display: none;
|
|
flex-direction: column;
|
|
background: #00000050;
|
|
height: 10vh;
|
|
margin-top: 1.29vh;
|
|
}
|
|
|
|
nav a {
|
|
margin: 0.8vh;
|
|
font-size: 1.5em;
|
|
color: white;
|
|
text-decoration: none;
|
|
}
|
|
|
|
nav a:hover {
|
|
color: #dadd0f;
|
|
}
|
|
|
|
.lab {
|
|
width: 30px;
|
|
display: flex;
|
|
margin: 0 auto;
|
|
font-size: 40px;
|
|
color: white;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#toggle:checked+.menu {
|
|
display: flex;
|
|
font-weight: bold;
|
|
}
|
|
.box{
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
}
|
|
|
|
@media screen and (min-width: 700px) { /*grand*/
|
|
|
|
.box{
|
|
font-size: 2.5em;
|
|
}
|
|
.lab {
|
|
display: none;
|
|
}
|
|
|
|
#toggle {
|
|
display: none;
|
|
}
|
|
|
|
nav {
|
|
|
|
margin: 0;
|
|
width: 100%;
|
|
height: 9.5vh;
|
|
display: flex;
|
|
background: #00000050;
|
|
}
|
|
|
|
|
|
|
|
nav a {
|
|
width: 15%;
|
|
margin-left: 1vw;
|
|
margin-right: 1vw;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100px;
|
|
text-decoration: none;
|
|
font-size: 1.5em;
|
|
font-weight: bold;
|
|
color: white;
|
|
}
|
|
|
|
nav a:hover {
|
|
color: #dadd0f;
|
|
}
|
|
|
|
nav .menu {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
|
|
#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 {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
}
|
|
|
|
main {
|
|
font-family: Speedbeast, Trebuchet, sans-serif, calibiri;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
|
|
ul{
|
|
color:rgb(255, 255, 255);
|
|
font-weight: bold;
|
|
list-style-type: none;
|
|
font-family: sans-serif,calibri;
|
|
}
|
|
|
|
h3{
|
|
color: rgb(255, 255, 255);
|
|
font-weight: bold ;
|
|
text-decoration: underline;
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
.box {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 60vw;
|
|
height: 60vh;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
border-radius: 20px;
|
|
margin: 10px;
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
#background-image {
|
|
background-image: url('../assets/bg.webp');
|
|
width: 100vw;
|
|
height: 100vh;
|
|
margin: 0px;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-clip: content-box;
|
|
|
|
|
|
}
|
|
|
|
#checkbox {
|
|
display: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#checkbox:checked+#formcontainer #form {
|
|
width: 37.5em;
|
|
}
|
|
|
|
#checkbox:checked+#formcontainer #form_toggle {
|
|
visibility: hidden;
|
|
opacity: 0;
|
|
transform: scale(0.7);
|
|
}
|
|
|
|
#checkbox:checked+#formcontainer #form_input,
|
|
#checkbox:checked+#formcontainer #form_buttonLabel {
|
|
transition: 0.2s 0.1s;
|
|
visibility: visible;
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
|
|
#checkbox:not(:checked)+#formcontainer #form_input:required:valid~#form_toggle {
|
|
pointer-events: none;
|
|
cursor: default;
|
|
}
|
|
|
|
#formcontainer,
|
|
#form,
|
|
#form_toggle {
|
|
width: 20em;
|
|
height: 6.25em;
|
|
max-width: 80vw;
|
|
}
|
|
|
|
#formcontainer {
|
|
position: relative;
|
|
font-weight: 700;
|
|
}
|
|
|
|
#form,
|
|
#form_toggle {
|
|
position: absolute;
|
|
border-radius: 6.25em;
|
|
background-color: #fff;
|
|
transition: 0.2s;
|
|
}
|
|
|
|
#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;
|
|
}
|
|
|
|
#form_toggle {
|
|
color: #7e2722;
|
|
top: 0;
|
|
cursor: pointer;
|
|
z-index: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
#form_toggle::before {
|
|
font-size: 1.75em;
|
|
content: attr(data-title);
|
|
}
|
|
|
|
#form_input,
|
|
#form_button {
|
|
font: inherit;
|
|
border: 0;
|
|
outline: 0;
|
|
border-radius: 5em;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
#form_input,
|
|
#form_buttonLabel {
|
|
font-size: 1.75em;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transform: scale(0.7);
|
|
transition: 0s;
|
|
}
|
|
|
|
#form_input {
|
|
color: rgb(31, 24, 134);
|
|
height: 100%;
|
|
width: 100%;
|
|
padding: 0 0.714em;
|
|
}
|
|
|
|
#form_input::placeholder {
|
|
color: currentColor;
|
|
}
|
|
|
|
#form_input:required:valid {
|
|
color: #1b5228;
|
|
}
|
|
|
|
#form_input:required:valid+.c-form__buttonLabel {
|
|
color: #fff;
|
|
}
|
|
|
|
#form_input:required:valid+.c-form__buttonLabel::before {
|
|
pointer-events: initial;
|
|
}
|
|
|
|
#form_buttonLabel {
|
|
color: #ffaea9;
|
|
height: 100%;
|
|
width: auto;
|
|
}
|
|
|
|
#form_buttonLabel::before {
|
|
content: '';
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#form_button {
|
|
color: inherit;
|
|
padding: 0;
|
|
height: 100%;
|
|
width: 5em;
|
|
background-color: #7e2722;
|
|
}
|
|
|
|
#form_button:hover {
|
|
color: #ffffff;
|
|
cursor: pointer;
|
|
} |