This repository has been archived on 2023-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
bluesky-bootstrap-theme/scss/_global.scss

141 lines
2.3 KiB
SCSS
Raw Normal View History

2019-11-05 12:49:13 +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 :
2019-11-06 16:11:27 +01:00
$background-color: get-color("skyblue");
$sidebar-size:300px;
$max-size: 1600px;
$wrapper-padding: $baselinerem * 3;
2019-11-05 12:49:13 +01:00
2019-11-06 16:11:27 +01:00
// Mixins
2019-11-05 12:49:13 +01:00
2019-11-06 16:11:27 +01:00
@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 */
2019-11-06 12:18:15 +01:00
2019-11-05 12:49:13 +01:00
#wrapper {
2019-11-06 12:18:15 +01:00
background: $background-color url('img/background.png') center bottom repeat-x;
2019-11-06 16:11:27 +01:00
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";
}
2019-11-05 12:49:13 +01:00
}
/* 02.1 - Header */
2019-11-06 16:11:27 +01:00
#page-header {
@include row();
}
2019-11-05 12:49:13 +01:00
header h1 {
border-style:none !important;
color:#FFF;
font-weight:700;
2019-11-05 14:24:23 +01:00
font-size:5.4rem;
2019-11-05 12:49:13 +01:00
font-style:oblique;
padding-bottom:0px;
margin:auto;
text-align:center;
2019-11-05 14:24:23 +01:00
line-height: 7.5rem;
margin-bottom: 1.5rem;
2019-11-05 12:49:13 +01:00
}
.navbar {
box-shadow: $large-shadow;
@include borders();
border-left: 0;
border-right: 0;
ul {
padding-bottom:0;
}
@include li-no-margin();
2019-11-05 13:58:49 +01:00
&.navbar-transparent {
border: none;
box-shadow: none;
background-color:transparent;
}
2019-11-05 12:49:13 +01:00
}
.dropdown-menu {
box-shadow: $narrow-shadow, $inset-shadow;
}
2019-11-06 16:11:27 +01:00
/* 02.2 - Main Area */
#page-main {
max-width:100%;
}
/* 02.3 - Footer */
2019-11-05 12:49:13 +01:00
2019-11-06 16:11:27 +01:00
#page-footer {
2019-11-05 14:24:23 +01:00
margin-top: $baselinerem;
2019-11-06 16:11:27 +01:00
@include row();
padding-left:$wrapper-padding;
padding-right:$wrapper-padding;
2019-11-05 12:49:13 +01:00
}
/* social media */
ul.social {
2019-11-05 14:24:23 +01:00
font-size:1.5em;
padding:0;
margin:auto;
margin-bottom: $baselinerem;
text-align:center;
2019-11-05 12:49:13 +01:00
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
}
}
}
}