gestiojeux/website/static/css/style.css
Sylvain Gay 00148cd5ca Add loan tables
Add two views for loans :
- inventory:ongoing_loans
- inventory:all_loans (permission inventory.can_see_loan_details required)
2024-05-06 16:24:16 +02:00

511 lines
12 KiB
CSS

@import url(fonts.css);
header {
display: flex;
align-content: stretch;
background-color: #6bb8c4;
color: #f6fbfd;
padding: 0 30px;
gap: 20px;
border-bottom: 4px solid #51808c; }
@media (max-width: 800px) {
header {
padding: 0 10px;
flex-direction: column;
gap: 0; } }
@media (max-width: 500px) {
header {
padding: 0; } }
header h1 {
display: flex;
align-items: center;
justify-content: center;
margin: 0;
padding: 5px 20px;
color: #f6fbfd;
font-size: 1em; }
@media (max-width: 700px) {
header h1 {
font-size: 1.25em; } }
header #mobile_nav_trigger {
display: none;
text-align: center;
border-top: 4px solid #51808c;
padding: 5px 10px; }
header nav {
display: flex;
justify-content: space-between;
flex: 1 1 auto; }
@media (max-width: 500px) {
header nav {
flex-direction: column; } }
header nav div {
display: flex; }
@media (max-width: 500px) {
header nav div {
flex-direction: column; } }
header .links {
display: flex;
flex: 1 0 auto; }
header a {
display: flex;
padding: 10px 20px; }
header a, header #mobile_nav_trigger {
align-items: center;
margin: 0;
border-radius: 0;
color: #f6fbfd;
text-decoration: none; }
header a:hover, header #mobile_nav_trigger:hover {
background-color: #48a6b4;
color: #1e464c; }
header a.current, header #mobile_nav_trigger.current {
background-color: #51808c; }
header a:focus, header #mobile_nav_trigger:focus {
background-color: #48a6b4;
box-shadow: none;
color: #1e464c; }
header #account {
flex-direction: row;
justify-content: end; }
header #account a {
padding: 10px; }
header #account .username {
font-size: 0.7em; }
form {
display: flex;
align-items: stretch;
flex-direction: column; }
form p {
margin: 5px 0;
width: 100%; }
form button {
margin: 10px 0; }
form .errorlist {
list-style-type: none;
margin: 5px 0 0 0;
padding: 0;
font-size: 0.7em; }
form .errorlist li {
border-radius: 10px;
padding: 10px;
border: 1px solid #ff79a3;
background-color: #ffdfe9;
border-bottom: none;
border-radius: 0; }
form .errorlist :first-child {
border-radius: 10px 10px 0 0; }
form .errorlist.nonfield {
margin: 0 0 10px; }
form .errorlist.nonfield :last-child {
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
border-bottom: 1px solid #ff79a3; }
form .errorfield {
padding: 10px;
border: solid 1px #ff79a3;
border-radius: 0 0 10px 10px;
margin-top: 0; }
.helptext {
display: block;
font-size: 0.7em;
color: rgba(37, 15, 45, 0.65); }
.requiredfield label::after {
content: " *";
color: #51808c;
vertical-align: text-top;
font-size: 0.7em; }
input, select, textarea {
display: block;
width: 100%;
font: inherit;
font-size: 0.9em;
color: black; }
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
select[multiple],
textarea {
background-color: white;
border: solid 1px rgba(37, 15, 45, 0.65);
padding: 5px 10px;
border-radius: 5px;
box-shadow: none; }
input[type="text"]:optional,
input[type="email"]:optional,
input[type="password"]:optional,
input[type="search"]:optional,
input[type="url"]:optional,
input[type="number"]:optional,
select[multiple]:optional,
textarea:optional {
border-color: rgba(37, 15, 45, 0.4); }
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
select[multiple]:focus,
textarea:focus {
border-color: #6bb8c4;
box-shadow: 0 0 1.5px 1px #6bb8c4; }
input[type="text"]:-moz-ui-invalid,
input[type="email"]:-moz-ui-invalid,
input[type="password"]:-moz-ui-invalid,
input[type="search"]:-moz-ui-invalid,
input[type="url"]:-moz-ui-invalid,
input[type="number"]:-moz-ui-invalid,
select[multiple]:-moz-ui-invalid,
textarea:-moz-ui-invalid {
border-color: #ff79a3;
box-shadow: 0 0 1.5px 1px #ff79a3; }
textarea {
font-family: "Open Sans";
font-size: 1em;
resize: vertical;
min-height: 120px; }
input[type="checkbox"],
input[type="radio"] {
width: auto;
margin: 5px 10px; }
input[type="submit"] {
display: block;
text-decoration: none;
text-align: center;
color: #250f2d;
border-radius: 10px;
padding: 10px;
border: 1px solid #51808c;
background-color: #c9dbe0; }
input[type="submit"]:hover {
background-color: #a9c6cd; }
input[type="submit"]:focus {
background-color: #89b0ba;
box-shadow: 0 0 1.5px 1px #6bb8c4; }
select {
-webkit-appearance: none;
appearance: none; }
select:not([multiple]) {
display: block;
text-decoration: none;
text-align: center;
color: #250f2d;
border-radius: 10px;
padding: 10px;
border: 1px solid #51808c;
background-color: #c9dbe0;
margin: 0;
padding: 5px 25px 5px 10px;
border-radius: 5px;
text-align: left;
background-image: url("/static/img/select_arrow.svg");
background-repeat: no-repeat;
background-position: right .7em top 50%, 0 0;
background-size: .65em auto, 100%; }
select:not([multiple]):hover {
background-color: #a9c6cd; }
select:not([multiple]):focus {
background-color: #89b0ba;
box-shadow: 0 0 1.5px 1px #6bb8c4; }
select[multiple] {
padding: 0; }
select[multiple] option {
color: black;
background-color: #e9f1f3;
padding: 2px 10px; }
select[multiple] option:hover {
background-color: #a9c6cd; }
form.search {
flex-direction: row; }
form.search input[type="search"] {
border-radius: 10px 0 0 10px;
border-right: 0; }
form.search button {
margin: 0;
border-radius: 0 10px 10px 0; }
form.comment {
padding: 0;
border: none; }
form.comment textarea {
border-radius: 10px 10px 0 0;
border-bottom: none;
margin: 0; }
form.comment button {
border-radius: 0 0 10px 10px;
margin: 0; }
form#edited_comment .meta {
padding: 10px;
padding-bottom: 5px;
border-radius: 10px 10px 0 0;
border: 1px solid rgba(107, 184, 196, 0.75);
border-bottom: none; }
form#edited_comment textarea {
border-radius: 0; }
html {
box-sizing: border-box; }
*, *:before, *:after {
box-sizing: inherit; }
body {
background-color: #f6fbfd;
font-size: 16pt;
font-family: "Open Sans";
color: #250f2d;
margin: 0;
display: flex;
flex-direction: column;
min-height: 100vh;
width: 100%; }
@media (max-width: 700px) {
body {
font-size: 12pt; } }
main {
width: 100%;
padding: 20px 40px;
margin: 0 auto 50px;
text-align: justify;
flex: 1 0 auto; }
@media (max-width: 700px) {
main {
padding: 15px 30px; } }
main.small_page {
max-width: 550px; }
main:not(.wide-main) {
max-width: 850px; }
footer {
background-color: #6bb8c4;
font-size: 0.7em;
text-align: center;
padding: 10px; }
h1 {
font-size: 1.5em;
font-weight: bold; }
h2 {
font-size: 1.25em;
font-weight: bold; }
h3 {
font-size: 1em;
font-weight: bold; }
a {
color: #1e464c;
border-radius: 3px;
text-decoration: underline #c9dbe0; }
a:hover {
text-decoration-color: #1e464c; }
a:not([href]) {
color: #3b8995;
text-decoration: none; }
:focus {
outline: none;
box-shadow: 0 0 1.5px 1px #1e464c; }
::-moz-focus-inner {
border: none; }
em {
font-style: italic;
font-weight: normal; }
hr {
border: 1px solid #c9dbe0;
margin: 30px 60px; }
ul, ol {
padding: 0;
list-style-position: inside; }
button, .button {
display: block;
text-decoration: none;
text-align: center;
color: #250f2d;
border-radius: 10px;
padding: 10px;
border: 1px solid #51808c;
background-color: #c9dbe0;
font: inherit;
margin: 20px 0; }
button:hover, .button:hover {
background-color: #a9c6cd; }
button:focus, .button:focus {
background-color: #89b0ba;
box-shadow: 0 0 1.5px 1px #6bb8c4; }
button .helptext, .button .helptext {
margin: 0; }
.messages {
list-style-type: none;
margin: 10px 0;
padding: 0;
font-size: 0.8em; }
.messages li {
margin: 8px 0; }
.error {
border-radius: 10px;
padding: 10px;
border: 1px solid #ff79a3;
background-color: #ffdfe9; }
.info {
border-radius: 10px;
padding: 10px;
border: 1px solid #7d79ff;
background-color: #e0dfff; }
.warning {
border-radius: 10px;
padding: 10px;
border: 1px solid #ffd255;
background-color: #ffedbb; }
.success {
border-radius: 10px;
padding: 10px;
border: 1px solid #84ff72;
background-color: #ddffd8; }
.antispam {
unicode-bidi: bidi-override;
direction: rtl; }
table {
border-collapse: collapse;
width: 100%;
border: 2px solid #51808c; }
table td, table th {
border: 1px solid #51808c;
padding: 5px;
text-align: left; }
table th {
border-bottom-width: 2px; }
table th.asc::before {
display: inline;
font-family: FontAwesome;
content: '\f0de'; }
table th.desc::before {
display: inline;
font-family: FontAwesome;
content: '\f0dd'; }
table th.orderable:not(.asc, .desc)::before {
display: inline;
font-family: FontAwesome;
content: '\f0dc'; }
iframe {
width: 100%;
height: 400px;
border: 2px solid #51808c; }
.pagination {
width: 100%;
display: flex;
justify-content: center;
align-items: stretch; }
.pagination a, .pagination div {
display: block;
text-align: center;
flex: 1 1 0;
border-radius: 0; }
.pagination a:first-child, .pagination div:first-child {
border-radius: 10px 0 0 10px; }
.pagination a:nth-child(odd), .pagination div:nth-child(odd) {
background-color: rgba(107, 184, 196, 0.75); }
.pagination a:nth-child(even), .pagination div:nth-child(even) {
background-color: rgba(107, 184, 196, 0.6); }
.pagination a:last-child, .pagination div:last-child {
border-radius: 0 10px 10px 0; }
#game_infos {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px; }
@media (max-width: 500px) {
#game_infos {
flex-direction: column; } }
#game_infos img {
width: 50%;
max-height: 20em;
object-fit: contain;
background-color: white;
border: solid rgba(107, 184, 196, 0.75);
border-radius: 10px; }
@media (max-width: 500px) {
#game_infos img {
width: 75%; } }
#game_infos #details {
flex: 1 0 auto;
text-align: left;
max-width: 50%; }
@media (max-width: 500px) {
#game_infos #details {
max-width: 100%; } }
#game_infos #details p {
margin: 1ex; }
#game_infos #details hr {
margin: 1ex; }
a.inventory_item {
display: block;
padding: 15px;
margin: 10px 5px;
border-radius: 10px;
border: 1px solid transparent;
text-decoration: none; }
a.inventory_item .title {
text-decoration: underline #c9dbe0; }
a.inventory_item .details {
font-size: 0.7em;
display: flex;
flex-wrap: wrap;
margin: 5px;
gap: 5px 20px; }
a.inventory_item:hover {
border-color: #51808c;
background-color: white; }
a.inventory_item:hover .title {
text-decoration-color: currentColor; }
a.inventory_item:focus {
border-color: #51808c;
background-color: white;
box-shadow: 0 0 1.5px 1px #6bb8c4; }
.comment {
border-radius: 10px;
padding: 10px;
border: 1px solid rgba(107, 184, 196, 0.75);
background-color: white;
margin: 1em 0;
font-size: 0.7em; }
.comment .author {
font-weight: bold; }
.comment .date {
font-size: 0.7em; }
.comment p {
margin: 0.5em; }