gestiojeux/website/scss/style.scss

284 lines
4.7 KiB
SCSS
Raw Normal View History

@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 {
max-width: $page_width;
width: 100%;
padding: 20px 40px;
margin: 0 auto 50px;
text-align: justify;
flex: 1 0 auto;
@media (max-width: 700px) {
padding: 15px 30px;
}
&.small_page {
max-width: $small_page_width;
}
}
footer {
background-color: $footer_bg_color;
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: $page_link_color;
border-radius: 3px;
text-decoration: underline lighten($header_border_color, 40%);
&:hover {
text-decoration-color: $page_link_color;
}
&:not([href]) {
color: lighten($page_link_color, 20%);
text-decoration: none;
}
}
: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;
}
ul, ol {
padding: 0;
list-style-position: inside;
}
button, .button {
@include button;
font: inherit;
margin: 20px 0;
.helptext {
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; }
.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;
}
.pagination {
width: 100%;
display: flex;
justify-content: center;
align-items: stretch;
a, div {
display: block;
text-align: center;
flex: 1 1 0;
border-radius: 0;
&:first-child {
border-radius: 10px 0 0 10px;
}
&:nth-child(odd) {
background-color: $indexbar_bg_color_1;
}
&:nth-child(even) {
background-color: $indexbar_bg_color_2;
}
&: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) {
flex-direction: column;
}
img {
2020-11-22 19:01:21 +01:00
width: 50%;
max-height: 20em;
object-fit: contain;
background-color: white;
border: solid $indexbar_bg_color_1;
border-radius: 10px;
2020-11-22 19:01:21 +01:00
@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;
}
}
}
a.inventory_item {
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;
}
&: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;
}
}
.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;
}
}