Files
sondage/sondage.css
T
2026-11-06 18:44:01 +01:00

66 lines
5.2 KiB
CSS

:root { --terra: #8c3a1e; --terra2: #bb4f2a; --orange: #d9720f; --vert: #4c7a2e; }
* { box-sizing: border-box; }
.wrap { max-width: 62rem; margin: 0 auto; }
h1 { margin: 0 0 1.2rem; font-size: 1.7rem; color: var(--terra); }
.card { background: #fff; border: 1px solid #e2ddd9; border-radius: .6rem; padding: 1rem 1.2rem 1.2rem; margin-bottom: 1.2rem; box-shadow: 0 1px 4px rgba(0,0,0,.10); }
.card h2 { margin: 0 0 .8rem; font-size: 1.05rem; color: var(--terra); text-transform: uppercase; letter-spacing: .04em; }
input[type=text] { max-width: 100%; box-sizing: border-box; font-size: 1.05rem; padding: .45rem .7rem; border: 1px solid #bbb; border-radius: .4rem; background: #fff; }
ul.sondages { list-style: none; margin: 0; padding: 0; }
ul.sondages li { border-bottom: 1px solid #eee; }
ul.sondages li:last-child { border-bottom: none; }
ul.sondages a { display: block; padding: .7rem .2rem; color: #00358a; font-size: 1.15rem; text-decoration: none; }
ul.sondages a:hover { color: var(--terra); text-decoration: underline; }
ul.sondages small { display: block; color: #777; font-size: .85rem; }
p.vide { color: #777; margin: 0; }
a.retour { color: var(--terra); text-decoration: none; font-size: .95rem; }
a.retour:hover { text-decoration: underline; }
textarea.description: { width:100%; font-family:inherit; font-size:1rem; padding:.45rem .7rem; border:1px solid #bbb; border-radius:.4rem; resize:vertical; }
p.fil { margin: 0 0 .2rem; }
p.fil span.sep { color: #c4bdb8; margin: 0 .45rem; }
h1 { margin: .4rem 0 1.2rem; font-size: 1.7rem; color: var(--terra); }
.badge-admin { display: inline-block; background: var(--vert); color: #fff; font-size: .75rem; padding: .15rem .5rem; border-radius: 1rem; margin-left: .5rem; vertical-align: middle; }
.card { background: #fff; border: 1px solid #e2ddd9; border-radius: .6rem; padding: 1rem 1.2rem 1.2rem; margin-bottom: 1.2rem; box-shadow: 0 1px 4px rgba(0,0,0,.10); }
.card h2 { margin: 0 0 .8rem; font-size: 1.05rem; color: var(--terra); text-transform: uppercase; letter-spacing: .04em; }
.scroll { overflow: auto; max-height: 70vh; }
table.grille { border-collapse: separate; border-spacing: 0; width: 100%; }
table.grille th, table.grille td { padding: .5rem .6rem; text-align: center; border-bottom: 1px solid #eceae8; }
table.grille th:first-child { width: 15rem; min-width: 15rem; position: sticky; left: 0; z-index: 2; }
table.grille thead th { background: var(--terra); color: #fff; font-size: .9rem; line-height: 1.25; vertical-align: middle; border-bottom: none; position: sticky; top: 0; z-index: 3; }
table.grille thead th:first-child { background: var(--terra); z-index: 4; }
table.grille thead th.creneau { min-width: 7.5rem; border-left: 1px solid rgba(255,255,255,.25); }
table.grille thead th.creneau b { display: block; font-size: .95rem; }
table.grille thead th.creneau small { display: block; font-weight: normal; opacity: .85; }
table.grille tbody th { text-align: right; font-weight: bold; background: #faf9f8; }
td.oui { background: #dbeec6; color: #33521a; font-weight: bold; }
td.peut { background: #fae4c6; color: #7a5310; font-weight: bold; }
td.non { background: #f7cec7; }
tr.somme th, tr.somme td { border-top: 2px solid var(--terra); border-bottom: none; padding-top: .7rem; font-weight: bold; background: #fff; }
tr.somme td span.best { color: var(--terra); }
tr.somme td small, tr.somme th small { display: block; font-weight: normal; color: #7a5310; }
tr.saisie th, tr.saisie td { background: #f1f5ec; border-top: 2px solid #cfd9c2; }
tr.saisie label { display: block; cursor: pointer; font-size: .8rem; line-height: 1.5; text-align: left; }
tr.saisie input[type=radio] { margin: 0 .3rem 0 0; vertical-align: middle; }
input[type=text] { font-size: 1rem; padding: .4rem .6rem; border: 1px solid #bbb; border-radius: .4rem; width: 100%; }
input[type=date], input[type=time] { font-family: inherit; font-size: 1rem; padding: .4rem .6rem; border: 1px solid #bbb; border-radius: .4rem; background: #fff; }
button { font-family: inherit; font-size: .95rem; padding: .45rem .9rem; border: none; border-radius: .4rem; background: var(--terra); color: #fff; cursor: pointer; }
button:hover { background: var(--orange); }
button.mini { background: none; color: #e6cfc6; padding: .1rem .25rem; font-size: .9rem; }
button.mini:hover { background: none; color: #fff; }
p.aide { color: #777; font-size: .9rem; margin: .6rem 0 0; }
.ajout { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.ajout label { font-size: .9rem; color: #666; }
p.vide { color: #777; }
.ajout input[type=text] { width: auto; min-width: 13rem; }
table.grille thead th.creneau em.titre { display: block; font-style: normal; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; opacity: .8; margin-bottom: .15rem; }
.card.danger { border-color: #e6c9c2; }
.card.danger h2 { color: #a12a12; }
.card.danger label { font-size: .95rem; cursor: pointer; }
button.danger { background: #a12a12; }
button.danger:hover { background: #c9401f; }
@media (max-width: 600px) {
table.grille th:first-child { width: 6.5rem; min-width: 6.5rem; }
tr.saisie th input[type=text] { padding: .3rem .4rem; font-size: .85rem; }
tr.saisie label { font-size: .72rem; }
table.grille th, table.grille td { padding: .4rem .3rem; }
}