This repository has been archived on 2022-11-22. You can view files and clone it, but cannot push or open issues or pull requests.
roleplay.css/scss/_global.scss

141 lines
2.3 KiB
SCSS
Raw Normal View History

2019-11-13 11:54:06 +01:00
/* --- 02. GLOBAL ELEMENTS --- */
/*
* Le style des "grandes parties".
* Cela permet de définir les différents éléments qui composeront la page totale
*
*/
// A modifier pour customiser le style facilement :
$background-color: get-color("skyblue");
$sidebar-size:300px;
$max-size: 1600px;
$wrapper-padding: $baselinerem * 3;
// Mixins
@mixin row() {
max-width: $max-size;
margin: auto;
}
@mixin row-grid() {
@include row();
@include xl {
display: grid;
grid-template-rows: auto;
row-gap: $baselinerem;
column-gap: $baselinerem * 2;
}
}
/* 02.1 - Wrapper et page totale */
#wrapper {
background: $background-color url('img/background.png') center bottom repeat-x;
padding-left:$wrapper-padding/2;
padding-right:$wrapper-padding/2;
@include rwd(1300px) {
padding-left:$wrapper-padding;
padding-right:$wrapper-padding;
}
}
#global-area {
@include row-grid();
&.index-layout {
grid-template-columns: auto $sidebar-size;
grid-template-areas: "main sidebar";
}
}
/* 02.1 - Header */
#page-header {
@include row();
}
header h1 {
border-style:none !important;
color:#FFF;
font-weight:700;
font-size:5.4rem;
font-style:oblique;
padding-bottom:0px;
margin:auto;
text-align:center;
line-height: 7.5rem;
margin-bottom: 1.5rem;
}
.navbar {
box-shadow: $large-shadow;
@include borders();
border-left: 0;
border-right: 0;
ul {
padding-bottom:0;
}
@include li-no-margin();
&.navbar-transparent {
border: none;
box-shadow: none;
background-color:transparent;
}
}
.dropdown-menu {
box-shadow: $narrow-shadow, $inset-shadow;
}
/* 02.2 - Main Area */
#page-main {
max-width:100%;
}
/* 02.3 - Footer */
#page-footer {
margin-top: $baselinerem;
@include row();
padding-left:$wrapper-padding;
padding-right:$wrapper-padding;
}
/* social media */
ul.social {
font-size:1.5em;
padding:0;
margin:auto;
margin-bottom: $baselinerem;
text-align:center;
li {
margin:0;
list-style: none;
display: inline;
a {
color:#FFFFFF;
background-color:#000000;
padding:0.3em;
padding-left:0.36em;
padding-right:0.36em;
vertical-align:middle;
border-radius:100%;
&:hover {
color:#000;
background-color:#FFF
}
}
}
}