gestiojeux/mainsite/static/css/style.css
Guillaume Bertholon be99a76829 Simplify header and adapt auth pages style
Having a title in the header is worse than a normal title inside the
page. Restore the border to compensate.
2020-11-22 13:34:01 +01:00

412 lines
8.5 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: 16pt; }
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;
font-size: 18pt;
text-decoration: none; }
header a:hover {
background-color: #48a6b4;
color: #180c23; }
header a.current {
background-color: #51808c; }
header a:focus {
background-color: #48a6b4;
box-shadow: none;
color: #180c23; }
header .username {
font-size: 12pt; }
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 #ff6798;
background-color: #ffcddd;
color: #250f2d;
margin-bottom: 10px; }
form p {
margin: 5px 0;
width: 100%; }
.helptext {
font-size: 0.7em;
color: rgba(37, 15, 45, 0.65); }
input {
display: block;
width: 100%;
font: inherit;
font-size: 0.9em;
color: black; }
input[type="text"],
input[type="email"],
input[type="password"] {
background-color: white;
border: solid 1px rgba(37, 15, 45, 0.65);
padding: 5px 10px;
border-radius: 3px;
box-shadow: none; }
input[type="text"]:optional,
input[type="email"]:optional,
input[type="password"]:optional {
border-color: rgba(37, 15, 45, 0.4); }
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]: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 {
border-color: #ff6798;
box-shadow: 0 0 1.5px 1px #ff6798; }
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%;
border-radius: 10px;
padding: 10px;
border: 1px solid #51808c;
background-color: #c9dbe0;
color: #250f2d; }
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%;
border-radius: 10px;
padding: 10px;
border: 1px solid #51808c;
background-color: #c9dbe0;
color: #250f2d;
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, 205, 221, 0.4); }
.checkbox_input {
display: flex;
justify-content: space-evenly;
align-items: center; }
.checkbox_input .label_line {
order: 1;
flex: 1 1 500px; }
.checkbox_input input {
flex: 0 1 50px; }
.fieldgroup {
margin: 15px 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: 12pt;
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; }
a {
text-decoration: underline;
color: #2b153f;
border-radius: 3px; }
a:hover {
color: #180c23; }
:focus {
outline: none;
box-shadow: 0 0 1.5px 1px #2b153f; }
::-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%;
border-radius: 10px;
padding: 10px;
border: 1px solid #51808c;
background-color: #c9dbe0;
color: #250f2d;
margin: 10px 5px; }
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 #ff6798;
background-color: #ffcddd;
color: #250f2d; }
.info {
border-radius: 10px;
padding: 10px;
border: 1px solid #6562ff;
background-color: #c9c8ff;
color: #250f2d; }
.warning {
border-radius: 10px;
padding: 10px;
border: 1px solid #f6b500;
background-color: #ffd45d;
color: #250f2d; }
.success {
border-radius: 10px;
padding: 10px;
border: 1px solid #00d74c;
background-color: #a4ffc4;
color: #250f2d; }
.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 {
max-width: 50%;
border: solid rgba(107, 184, 196, 0.75);
border-radius: 10px; }
#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; }