ChasseTresorPange/style.css

196 lines
2.9 KiB
CSS
Raw Normal View History

2023-06-27 14:31:55 +02:00
:root {
--bg: #27232a;
--bg-dark: #4b4b4b;
--bg-light: #a4a4a4;
--fg: #ffffff;
--hl: #8080ff;
--hl-light: #aeaeff;
2023-06-27 14:31:55 +02:00
}
body {
background: var(--bg);
margin: 0px;
padding: 0px;
font-family: "ubuntu", sans-serif;
color: var(--fg);
}
h1, h2, h3, h4 {
font-weight: lighter;
}
h1 {
font-size: 36px;
}
h2 {
font-size: 20px;
2023-06-27 14:31:55 +02:00
}
p {
text-align: justify;
font-size: 16px;
}
a {
color: var(--hl);
}
form {
display: flex;
flex-direction: column;
gap: 15px;
}
input {
background: var(--bg-dark);
}
input[type="submit"], button {
font-size: 14px;
2023-06-27 14:31:55 +02:00
background: var(--hl);
border-style: none;
2023-06-27 14:31:55 +02:00
padding: 20px;
border-radius: 10px;
transition: background 0.1s;
color: var(--fg);
align-self: center;
}
input[type="submit"]:hover, button:hover {
background: var(--hl-light);
2023-06-27 14:31:55 +02:00
}
article a {
align-self: center;
2023-06-27 14:31:55 +02:00
}
input[type="text"], input[type="email"], input[type="number"], textarea {
2023-06-27 14:31:55 +02:00
font: inherit;
background: var(--bg-dark);
border-style: solid;
border-width: 1px;
border-color: var(--bg);
padding: 20px;
border-radius: 10px;
margin: 10px;
color: var(--fg);
}
header {
width: 100%;
font-weight: lighter;
text-align: center;
}
header nav {
background-color: var(--bg-dark);
padding: 20px;
align-items: center;
display: flex;
flex-direction: row;
justify-content: space-between;
}
header nav p:first-of-type {
font-weight: bold;
}
header nav ul {
margin: 0;
padding: 0;
display: flex;
gap: 15px;
list-style-type: none;
}
header a {
padding: 5px;
text-decoration: none;
color: var(--fg);
transition: color 0.1s;
}
header a:hover {
color: var(--hl);
2023-06-27 14:31:55 +02:00
}
header p:first-of-type {
2023-06-27 14:31:55 +02:00
text-align: center;
font-weight: bold;
2023-06-27 14:31:55 +02:00
}
main {
padding: 15px;
padding-left: 100px;
padding-right: 100px;
display: flex;
flex-direction: column;
line-height: 1.7;
gap: 20px;
}
main img {
align-self: center;
}
main article {
2023-06-27 14:31:55 +02:00
display: flex;
2023-06-28 17:41:57 +02:00
flex-direction: column;
2023-06-27 14:31:55 +02:00
gap: 15px;
}
main article img {
2023-09-02 07:01:27 +02:00
max-width: 100%;
2023-09-02 07:00:38 +02:00
max-height: 600px;
2023-06-27 14:31:55 +02:00
}
main header section {
display: flex;
flex-direction: row;
2023-06-27 14:31:55 +02:00
justify-content: center;
align-items: center;
gap: 15px;
2023-06-28 17:41:57 +02:00
}
2023-06-27 14:31:55 +02:00
footer {
border-style: dashed;
border-color: var(--bg-light);
border-width: 2px 0px 0px 0px;
color: var(--fg);
text-align: center;
}
footer p {
2023-06-27 14:31:55 +02:00
text-align: center;
font-size: smaller;
}
2023-06-28 17:41:57 +02:00
video {
2023-06-29 18:42:43 +02:00
max-height: 300px;
2023-06-28 17:41:57 +02:00
}
2023-06-27 14:31:55 +02:00
.error {
background: #cc0000 !important;
}
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (max-width: 768px) {
main {
padding: 25px;
}
main article {
2023-06-27 14:31:55 +02:00
display: flex;
flex-direction: column;
gap: 15px;
}
main header section {
flex-direction: row;
2023-06-27 14:31:55 +02:00
}
video {
width: 100%;
}
2023-06-27 14:31:55 +02:00
}