gestiojeux/mainsite/scss/style.scss

275 lines
4.5 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 {
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: $footer_font_size;
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;
}
a {
text-decoration: underline;
color: $page_link_color;
border-radius: 3px;
&:hover {
color: $page_link_hover_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 5px;
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 {
max-width: 50%;
border: solid $indexbar_bg_color_1;
border-radius: 10px;
}
#details {
flex: 1 0 auto;
text-align: left;
max-width: 50%;
@media (max-width: 500px) {
max-width: 100%;
}
p {
margin: 1ex;
}
hr {
margin: 1ex;
}
}
}