simulation.wikibac.fr/res/style.css

243 lines
3.5 KiB
CSS
Raw Normal View History

2023-07-15 00:38:33 +02:00
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
}
a:link, a:visited {
color: #444;
}
h1 {
text-align: center;
}
h1, h2, h3, h4, h5, h6 {
margin-top: 15px;
}
2023-07-16 09:20:36 +02:00
p {
margin-bottom: 1em;
}
del {
color: #888;
}
2023-07-15 00:38:33 +02:00
header {
margin: 10px;
}
2023-07-15 14:18:08 +02:00
#logo {
margin: 20px 0;
text-align: center;
}
#logo a {
display: inline-flex;
justify-content: center;
align-items: center;
gap: 10px;
color: black;
text-decoration: none;
}
#logo img {
width: 3em;
height: 3em;
}
#logo span {
font-size: 2em;
}
2023-07-15 22:46:41 +02:00
.invite {
margin: 50px 0;
text-align: center;
}
.choix-appli-wrapper {
2023-07-16 08:51:05 +02:00
margin: 40px 0;
2023-07-15 22:46:41 +02:00
display: flex;
2023-07-16 08:51:05 +02:00
align-items: stretch;
2023-07-16 08:57:47 +02:00
justify-content: center;
2023-07-15 22:46:41 +02:00
gap: 10px;
}
.choix-appli-wrapper a:link, .choix-appli-wrapper a:visited {
text-decoration: none;
color: black;
2023-07-16 08:51:05 +02:00
max-width: 200px;
2023-07-15 22:46:41 +02:00
}
2023-07-16 11:20:39 +02:00
div.content {
width: clamp(800px, 55%, 1200px);
2023-07-15 00:38:33 +02:00
margin: 30px auto;
padding: 10px;
2023-07-15 00:38:33 +02:00
}
2023-07-16 09:09:08 +02:00
#resultat {
2023-07-15 00:38:33 +02:00
background-color: #ffffff;
position: sticky;
top: 0;
2023-07-16 10:18:34 +02:00
padding: 15px;
2023-07-15 00:38:33 +02:00
display: flex;
box-shadow: 0 5px 5px #ddd;
justify-content: center;
gap: 15px;
}
2023-07-16 11:30:08 +02:00
#resultat .decision {
width: 100%;
}
2023-07-16 09:09:08 +02:00
#resultat div, .choix-appli-wrapper div {
2023-07-15 00:38:33 +02:00
padding: 15px;
border: 1px solid #ddd;
text-align: center;
2023-07-16 11:25:19 +02:00
min-width: 15%;
2023-07-16 08:54:50 +02:00
}
.choix-appli-wrapper div {
2023-07-16 08:51:05 +02:00
height: 100%;
2023-07-15 00:38:33 +02:00
}
2023-07-15 22:46:41 +02:00
.choix-appli-wrapper div {
transition: background-color 200ms;
}
.choix-appli-wrapper div:hover {
background-color: #fafafa;
}
.choix-appli-wrapper div:active {
background-color: #eeeeee;
}
2023-07-16 09:09:08 +02:00
#resultat div span, .choix-appli-wrapper span {
2023-07-15 00:38:33 +02:00
font-size: 2em;
}
2023-07-16 09:09:08 +02:00
#resultat div p, .choix-appli-wrapper p {
2023-07-15 00:38:33 +02:00
margin-top: 15px;
2023-07-16 09:20:36 +02:00
margin-bottom: 0;
2023-07-15 00:38:33 +02:00
}
.info {
padding: 10px;
background-color: lightyellow;
margin: 20px 0;
2023-07-15 00:38:33 +02:00
}
form input[type="number"] {
width: 100%;
padding: 5px;
border: none;
background-color: #eee;
font: large monospace;
2023-07-15 00:38:33 +02:00
}
form input[type="number"]:invalid {
background-color: #fdebd0;
2023-07-15 14:57:25 +02:00
}
footer {
margin-top: 20px;
padding: 10px;
text-align: center;
2023-07-15 00:38:33 +02:00
}
div.ln {
margin: 5px 0;
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 5px;
2023-07-15 00:38:33 +02:00
}
div.head {
text-align: center;
font-weight: bold;
2023-07-15 00:38:33 +02:00
}
div.head div {
background-color: #eeeeee;
2023-07-15 00:38:33 +02:00
}
div.ln div {
padding: 5px;
2023-07-15 00:38:33 +02:00
}
div.ln div:nth-child(1) {
padding: 5px 0;
flex-grow: 1;
2023-07-15 00:38:33 +02:00
}
div.ln div:nth-child(2) {
2023-07-15 00:38:33 +02:00
font-weight: bold;
}
div.ln div:nth-child(2), div.ln div:nth-child(5) {
width: 5em;
text-align: center;
2023-07-15 00:38:33 +02:00
}
div.ln div:nth-child(3), div.ln div:nth-child(4) {
2023-07-15 00:38:33 +02:00
padding: 5px;
width: 6em;
align-self: stretch;
2023-07-15 00:38:33 +02:00
}
div.ln div:nth-child(3) {
background-color: #DBC4F0;
2023-07-15 00:38:33 +02:00
}
div.ln div:nth-child(4) {
background-color: #FFCACC;
2023-07-15 00:38:33 +02:00
}
div.ln div.null {
background-color: #eeeeee;
}
@media screen and (max-width: 800px) {
div.content {
width: 100%;
margin: 0;
}
#resultat, .choix-appli-wrapper {
position: static;
flex-direction: column;
align-items: center;
}
.choix-appli-wrapper a {
width: clamp(300px, 60%, 700px);
}
#resultat div {
width: 100%;
}
div.ln div {
flex-grow: 1;
}
div.ln {
margin-top: 10px;
}
div.ln div:nth-child(1) {
2023-07-19 01:42:58 +02:00
width: calc(64vw + 10px);
}
div.ln div:nth-child(3), div.ln div:nth-child(4) {
2023-07-19 01:42:58 +02:00
width: 32vw;
}
2023-07-15 00:38:33 +02:00
}