This repository has been archived on 2024-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
qdouze2-wordpress-theme/scss/custom/_global.scss

200 lines
3.4 KiB
SCSS
Raw Permalink Normal View History

2022-12-17 22:34:02 +01:00
/* --- 03. GLOBAL STYLING --- */
/*
* Les styles "globaux" touchant toute la page.
*
*/
@mixin li-no-margin() {
li {
margin: 0;
}
}
@mixin container-big() {
padding-left: $lineheight;
padding-right: $lineheight;
2022-12-18 13:48:49 +01:00
max-width: $container-size;
2022-12-17 22:34:02 +01:00
margin:auto;
}
.no-pills {
list-style:none;
}
.align {
&-center {text-align: center;}
&-left {text-align: left;}
&-right {text-align: right;}
}
/* ------------------ HEADERS ------------------- */
#page-header {
2022-12-18 09:46:44 +01:00
background: $color-primary url('img/background.png');
2022-12-18 10:42:34 +01:00
margin-bottom:1.5rem;
2022-12-18 15:17:25 +01:00
font-size: 0.8rem;
.fa {
font-size: 1rem;
}
2022-12-17 22:34:02 +01:00
}
header h1 {
border-style:none !important;
font-weight: $fontweight_hyper;
font-size:5.4em;
font-style:oblique;
2022-12-18 09:46:44 +01:00
padding:1.5rem;
line-height: 1rem;
2022-12-18 13:48:49 +01:00
max-width: $container-size;
2022-12-17 22:34:02 +01:00
margin: auto;
2022-12-18 09:46:44 +01:00
text-align:center;
2022-12-17 22:34:02 +01:00
img {
2022-12-18 16:41:18 +01:00
max-width: 800px;
2022-12-17 22:34:02 +01:00
height: auto;
margin-top:0rem;
2022-12-18 16:41:18 +01:00
width: 100%;
2022-12-17 22:34:02 +01:00
}
a, a:visited, a:hover {
background-color:transparent;
2023-04-24 20:14:42 +02:00
outline-color:white;
display: block;
2022-12-17 22:34:02 +01:00
}
}
2022-12-18 09:46:44 +01:00
.osd {
background-color:rgba(0,0,0,0.3);
2022-12-17 22:34:02 +01:00
}
.navbar {
border-left: 0;
border-right: 0;
padding: 0.75rem;
color: $color-font-light;
a {
color: $color-font-light;
}
@include li-no-margin();
}
2022-12-18 10:42:34 +01:00
.categories {
font-weight:800;
font-size:0.8rem;
}
2022-12-17 22:34:02 +01:00
.dropdown-menu {
box-shadow: $narrow-shadow, $inset-shadow;
}
/* ------------------ CONTAINERS ------------------- */
.container-big {
@include container-big();
}
.container-blog {
@include container-big();
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto;
row-gap: $lineheight;
2023-05-02 11:51:10 +02:00
column-gap: 1.5rem;
2022-12-17 22:34:02 +01:00
grid-template-areas:
"main"
"side";
2022-12-18 16:41:18 +01:00
@include lg() {
2023-05-02 11:51:10 +02:00
grid-template-columns: auto 300px;
2022-12-17 22:34:02 +01:00
grid-template-areas: "main side";
}
}
2022-12-18 10:53:58 +01:00
.fullwidth {
grid-column: span 2;
2022-12-17 22:34:02 +01:00
}
.sidebar {
grid-area: side;
2023-05-02 11:51:10 +02:00
font-size: 0.8rem;
2022-12-17 22:34:02 +01:00
}
ul.tag-list {
display:flex;
padding-bottom:0;
overflow: hidden;
height:auto;
flex-wrap: wrap;
li {
list-style: none;
margin:3px;
}
}
.container-preview {
@include container-big();
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto;
row-gap: $lineheight;
column-gap: 3rem;
grid-template-areas:
"main"
"side";
@include lg() {
grid-template-columns: 360px auto;
grid-template-areas: "side main";
}
}
.container-onecolumn {
max-width:1280px;
margin: auto;
padding-bottom: $lineheight;
}
/* ------------------ PAGE ------------------- */
#wrapper {
background-color: $color-background;
}
/* ------------------ FOOTER ------------------- */
2022-12-18 09:46:44 +01:00
$color-footer-back: get-color("dark");
$color-footer-text: get-color("light");
2022-12-17 22:34:02 +01:00
body {
// On colorise le background de la page complete de la même
// couleur que le fond du footer.
background-color: $color-footer-back;
}
footer {
color: $color-footer-text;
2023-11-20 10:05:50 +01:00
--link-color: $color-footer-text;
2022-12-17 22:34:02 +01:00
padding-bottom:1.5rem;
2022-12-18 10:42:34 +01:00
.columns {
font-size:0.8rem;
2023-11-20 10:05:50 +01:00
margin-top: 1.5rem;
@include md() {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-gap: $lineheight;
}
.col {
margin-bottom: $lineheight;
}
2022-12-17 22:34:02 +01:00
}
}
2022-12-18 16:41:18 +01:00
.home-toast {
max-width:800px;
width:100%;
margin:auto;
}