gestiojeux/mainsite/static/css/style.css
Guillaume Bertholon ccd8ee9cc9 Add game comments and rework game models
Models are now more structured for number of players, and durations can
be omitted.
2020-12-13 00:12:06 +01:00

482 lines
10 KiB
CSS

@import url(fonts.css);
header {
display: flex;
justify-content: space-between;
align-items: center;
align-content: stretch;
background-color: #6bb8c4;
color: #f6fbfd;
padding: 0 30px;
border-bottom: 4px solid #51808c; }
header h1 {
margin: 0;
padding: 0 20px;
color: #f6fbfd;
font-size: 1em; }
header nav {
display: flex;
justify-content: left;
margin: 0 20px;
flex: 1 1 100px; }
header a {
display: block;
margin: 0;
padding: 10px 20px;
border-radius: 0;
color: #f6fbfd;
text-decoration: none; }
header a:hover {
background-color: #48a6b4;
color: #1e464c; }
header a.current {
background-color: #51808c; }
header a:focus {
background-color: #48a6b4;
box-shadow: none;
color: #1e464c; }
header .username {
font-size: 0.7em; }
form {
display: flex;
align-items: stretch;
flex-direction: column; }
form .errorlist {
list-style-type: none;
margin: 0;
padding: 0;
font-size: 0.7em; }
form .errorlist li {
border-radius: 10px;
padding: 10px;
border: 1px solid #ff79a3;
background-color: #ffdfe9;
margin-bottom: 10px; }
form p {
margin: 5px 0;
width: 100%; }
.helptext {
font-size: 0.7em;
color: rgba(37, 15, 45, 0.65); }
input, 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"],
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,
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,
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,
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;
font-size: 100%;
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;
display: block;
text-decoration: none;
text-align: center;
font-size: 100%;
color: #250f2d;
border-radius: 10px;
padding: 10px;
border: 1px solid #51808c;
background-color: #c9dbe0;
width: 100%;
font-size: 0.9em;
margin: 0;
padding: 5px 25px 5px 10px;
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:hover {
background-color: #a9c6cd; }
select:focus {
background-color: #89b0ba;
box-shadow: 0 0 1.5px 1px #6bb8c4; }
select:-moz-focusring {
color: transparent;
text-shadow: 0 0 0 #000; }
.formfield {
padding: 5px;
margin: 10px 0; }
.error_field {
border-radius: 10px;
background-color: rgba(255, 223, 233, 0.4); }
form.search {
flex-direction: row; }
form.search input[type="search"] {
border-radius: 5px 0 0 5px;
border-right: 0; }
form.search button {
margin: 0;
border-radius: 0 10px 10px 0; }
form.comment {
font-size: 0.7em; }
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; }
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 {
display: flex;
justify-content: center;
flex: 1 0 auto; }
#main_content {
width: 800px;
padding: 20px;
margin-bottom: 50px;
text-align: justify; }
#main_content.small_page {
width: 500px; }
footer {
background-color: #6bb8c4;
font-size: 0.7em;
text-align: center;
padding: 10px; }
@media (min-width: 700px) {
.help_bubble {
font-size: 0.7em;
position: relative;
bottom: 0.3ex;
left: 0.2ex; } }
h1 {
font-size: 1.5em;
font-weight: bold; }
h2 {
font-size: 1.25em;
font-weight: bold; }
h3 {
font-size: 1em;
font-weight: bold; }
a {
text-decoration: underline #c9dbe0;
color: #1e464c;
border-radius: 3px; }
a:hover {
text-decoration-color: #1e464c; }
: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; }
.btn_row {
display: flex;
align-items: stretch;
justify-content: space-evenly;
flex-direction: column; }
button, .btn_row a {
display: block;
text-decoration: none;
text-align: center;
font-size: 100%;
color: #250f2d;
border-radius: 10px;
padding: 10px;
border: 1px solid #51808c;
background-color: #c9dbe0;
margin: 10px 0; }
button:hover, .btn_row a:hover {
background-color: #a9c6cd; }
button:focus, .btn_row a:focus {
background-color: #89b0ba;
box-shadow: 0 0 1.5px 1px #6bb8c4; }
button p, .btn_row a p {
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; }
.tooltip {
position: relative;
display: inline-block;
opacity: 0.75;
border-radius: 3px; }
.tooltip .tooltiptext {
visibility: hidden;
display: block;
background-color: black;
color: rgba(255, 255, 255, 0.8);
text-align: justify;
padding: 10px;
border-radius: 6px;
font-size: 0.8em;
width: 250px;
/* Position the tooltip text - see examples below! */
position: absolute;
left: -75px;
z-index: 1; }
@media (max-width: 400px) {
.tooltip .tooltiptext {
width: 150px;
position: absolute;
left: -75px; } }
.tooltip .tooltiptext ul {
margin: 0;
padding-left: 15px;
color: inherit; }
.tooltip:hover, .tooltip:focus {
opacity: 1; }
.tooltip:hover .tooltiptext, .tooltip:focus .tooltiptext {
visibility: visible; }
.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; }
iframe {
width: 100%;
height: 400px;
border: 2px solid #51808c; }
/*.indexbar {
width: 100%;
display: flex;
justify-content: center;
align-items: stretch;
a {
text-align: center;
flex: 1 1 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: stretch;
color: $indexbar_text_color;
text-decoration: none;
border-radius: 0;
span {
margin: auto 5px;
}
&:first-child {
border-radius: 1ex 0 0 1ex;
}
&:nth-child(odd) {
background-color: $indexbar_bg_color_1;
}
&:nth-child(even) {
background-color: $indexbar_bg_color_2;
}
&:last-child {
border-radius: 0 1ex 1ex 0;
}
}
}*/
#game_infos {
display: flex;
align-items: center;
gap: 20px; }
@media (max-width: 500px) {
#game_infos {
flex-direction: column; } }
#game_infos img {
width: 50%;
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; }
ul {
padding: 0;
list-style-type: none; }
li > a {
display: block;
padding: 15px;
margin: 10px 5px;
border-radius: 10px;
border: 1px solid transparent;
text-decoration: none; }
li > a .title {
text-decoration: underline #c9dbe0; }
li > a .details {
font-size: 0.7em;
display: flex;
flex-wrap: wrap;
margin: 5px;
gap: 5px 20px; }
li > a .details p {
margin: 0; }
li > a:hover {
border-color: #51808c;
background-color: white; }
li > a:hover .title {
text-decoration-color: currentColor; }
li > a:focus {
border-color: #51808c;
background-color: white;
box-shadow: 0 0 1.5px 1px #6bb8c4; }
li.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; }
li.comment .author {
font-weight: bold; }
li.comment .date {
font-size: 0.7em; }
li.comment p {
margin: 0.5em; }