cas-eleves/cas_eleves/scss/style.scss

153 lines
2.7 KiB
SCSS

@charset "utf-8";
@import "fonts.css";
@import "_mixins";
@import "_params";
@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;
align-items: center;
min-height: 100vh;
@media (max-width: $responsive_mid_threshold) {
font-size: $mid_font_size;
}
@media (max-width: $responsive_small_threshold) {
font-size: $small_font_size;
display: flex;
align-items: center;
justify-content: space-evenly;
}
}
header {
display: flex;
justify-content: space-between;
align-items: stretch;
margin: 0;
margin-bottom: 50px;
padding: 20px 30px;
padding-bottom: 0;
width: $page_width;
@media (max-width: $responsive_mid_threshold) {
width: $page_mid_width;
}
@media (max-width: $responsive_small_threshold) {
display: none;
}
#headtext {
display: flex;
flex-direction: column;
align-items: end;
justify-content: space-evenly;
font-size: 1.2em;
color: $secondary_color;
font-weight: bold;
}
}
.logo {
height: $logo_height;
max-width: $logo_maxwidth;
}
#ens_logo_foot {
display: none;
@media (max-width: $responsive_small_threshold) {
display: block;
margin: 30px;
}
}
main {
background-color: $page_main_color;
border: 3px solid $main_border_color;
border-radius: $main_border_radius;
padding: 15px;
width: $page_width;
@media (max-width: $responsive_mid_threshold) {
width: $page_mid_width;
}
@media (max-width: $responsive_small_threshold) {
width: 90%;
}
h2 {
font-size: 1.2em;
@media (max-width: $responsive_small_threshold) {
font-size: 1.1em;
}
text-align: center;
color: $secondary_color;
}
}
a {
text-decoration: underline;
color: $page_link_color;
border-radius: 3px;
&:hover {
color: darken($page_link_color, 20%);
}
}
:focus {
outline: none;
box-shadow: 0 0 1.5px 1px $page_link_color;
}
::-moz-focus-inner {
border: none;
}
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; }
.antispam {
unicode-bidi: bidi-override;
direction: rtl;
}