gestiojeux/mainsite/scss/style.scss
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

348 lines
5.7 KiB
SCSS

@charset "utf-8";
@import "fonts.css";
@import "mixins";
@import "params";
@import "header";
@import "forms";
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
body {
background-color: $page_bg_color;
font-size: $font_size;
font-family: $font_family;
color: $page_text_color;
margin: 0;
display: flex;
flex-direction: column;
min-height: 100vh;
width: 100%;
@media (max-width: 700px) {
font-size: $small_screen_font_size;
}
}
main {
display: flex;
justify-content: center;
flex: 1 0 auto;
}
#main_content {
width: $page_width;
padding: 20px;
margin-bottom: 50px;
text-align: justify;
&.small_page {
width: $small_page_width;
}
}
footer {
background-color: $footer_bg_color;
font-size: 0.7em;
text-align: center;
padding: 10px;
}
.help_bubble {
@media (min-width: 700px) {
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 lighten($header_border_color, 40%);
color: $page_link_color;
border-radius: 3px;
&:hover {
text-decoration-color: $page_link_color;
}
}
:focus {
outline: none;
box-shadow: 0 0 1.5px 1px $page_link_color;
}
::-moz-focus-inner {
border: none;
}
em {
font-style: italic;
font-weight: normal;
}
hr {
border: 1px solid lighten($header_border_color, 40%);
margin: 30px 60px;
}
.btn_row {
display: flex;
align-items: stretch;
justify-content: space-evenly;
flex-direction: column;
}
button, .btn_row a {
@include button;
margin: 10px 0;
p {
margin: 0;
}
}
.messages {
list-style-type: none;
margin: 10px 0;
padding: 0;
font-size: 0.8em;
li {
margin: 8px 0;
}
}
.error { @include error_box; }
.info { @include info_box; }
.warning { @include warning_box; }
.success { @include success_box; }
.tooltip {
position: relative;
display: inline-block;
opacity: 0.75;
border-radius: 3px;
.tooltiptext {
visibility: hidden;
display: block;
background-color: black;
color: rgba(white, 0.80);
text-align: justify;
padding: 10px;
border-radius: 6px;
font-size: 0.8em;
width: 250px;
@media (max-width: 400px) {
width: 150px;
position: absolute;
left: -75px;
}
/* Position the tooltip text - see examples below! */
position: absolute;
left: -75px;
z-index: 1;
ul {
margin: 0;
padding-left: 15px;
color: inherit;
}
}
&:hover, &:focus {
opacity: 1;
.tooltiptext {
visibility: visible;
}
}
}
.antispam {
unicode-bidi: bidi-override;
direction: rtl;
}
table {
border-collapse: collapse;
width: 100%;
border: 2px solid $header_border_color;
td, th {
border: 1px solid $header_border_color;
padding: 5px;
text-align: left;
}
th {
border-bottom-width: 2px;
}
}
iframe {
width: 100%;
height: 400px;
border: 2px solid $header_border_color;
}
/*.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) {
flex-direction: column;
}
img {
width: 50%;
border: solid $indexbar_bg_color_1;
border-radius: 10px;
@media (max-width: 500px) {
width: 75%;
}
}
#details {
flex: 1 0 auto;
text-align: left;
max-width: 50%;
@media (max-width: 500px) {
max-width: 100%;
}
p {
margin: 1ex;
}
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;
.title {
text-decoration: underline lighten($header_border_color, 40%);
}
.details {
font-size: 0.7em;
display: flex;
flex-wrap: wrap;
margin: 5px;
gap: 5px 20px;
p {
margin: 0;
}
}
&:hover {
border-color: $header_border_color;
background-color: white;
.title {
text-decoration-color: currentColor;
}
}
&:focus {
border-color: $header_border_color;
background-color: white;
box-shadow: 0 0 1.5px 1px $header_bg_color;
}
}
li.comment {
@include box(white, $indexbar_bg_color_1);
margin: 1em 0;
font-size: 0.7em;
.author {
font-weight: bold;
}
.date {
font-size: 0.7em;
}
p {
margin: 0.5em;
}
}