simulation.wikibac.fr/res/style.css

220 lines
3.1 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 {
margin: 10px 0;
text-align: center;
}
2023-07-16 09:20:36 +02:00
p {
margin-bottom: 1em;
}
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 {
2023-07-15 00:38:33 +02:00
width: clamp(400px, 70%, 1200px);
margin: 30px auto;
}
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 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
}
2023-07-15 14:57:25 +02:00
@media screen and (max-width: 1000px) {
main {
width: 100vw;
}
2023-07-16 09:09:08 +02:00
#resultat, .choix-appli-wrapper {
2023-07-15 14:57:25 +02:00
position: static;
flex-direction: column;
align-items: center;
}
2023-07-16 09:09:08 +02:00
#resultat div, .choix-appli-wrapper a {
2023-07-15 14:57:25 +02:00
width: clamp(300px, 60%, 700px);
}
div.table_wrapper {
width: calc(100vw - 50px);
}
fieldset {
width: calc(100vw - 40px);
}
}
2023-07-15 00:38:33 +02:00
.info {
padding: 10px;
background-color: lightyellow;
margin: 10px 10px;
border: 1px solid #ddd;
}
form {
margin: 10px;
}
fieldset {
padding: 10px;
margin: 20px 0;
2023-07-15 14:57:25 +02:00
overflow: auto;
}
div.table_wrapper {
overflow-x: auto;
white-space: nowrap;
2023-07-15 00:38:33 +02:00
}
table {
border-collapse: collapse;
}
td, th {
padding: 5px;
}
th, tr.total td {
border: 2px solid black;
}
td {
border-top: 1px solid #bbb;
border-bottom: 1px solid #bbb;
border-left: 2px solid black;
border-right: 2px solid black;
}
td.null {
background-color: #bbb
}
tr.total {
font-weight: bold;
text-align: center;
}
tr:hover {
background-color: #ffffdd;
}
.note {
width: 60px;
padding: 5px;
border: none;
background-color: #eee;
font: large monospace;
}
.note:invalid, .note[value=""] {
background-color: #ffdddd;
}
label {
display: none;
}
footer {
margin-top: 20px;
padding: 10px;
text-align: center;
}
del {
2023-07-15 17:00:43 +02:00
color: #888;
2023-07-15 00:38:33 +02:00
}