pop in pour biographies

This commit is contained in:
2021-03-31 16:19:21 +02:00
parent 9466b09c0f
commit d7bbc3395d
15 changed files with 584 additions and 131 deletions
@@ -15,3 +15,279 @@
#body > script:first-child + .grav-lightslider {
margin-top: -3rem;
}
.programme p {
font-family: $font-family-default;
font-weight: 500;
font-style: italic;
}
#header #navbar ul.navigation li a {
font-family: "Sarabun", sans-serif;
font-weight: 400;
text-transform: uppercase;
font-size: 1rem;
display: inline-block;
padding: 0.3rem 0.8rem;
-webkit-backface-visibility: hidden;
}
#header.scrolled #navbar ul.navigation li a {
color: black !important;
font-size: 0.95rem;
transition:0.6s ease-in-out;
}
.callout {
padding-top: 0.5rem;
}
.callout h1, h2, h3, p {
text-align: left !important;
}
.callout h1 {
padding-bottom: 5rem;
}
// h2 {
// font-size: 30px;
// font-weight: lighter;
// line-height: 35px;
// }
.titre_bsn {
display: block;
margin-left: 40%;
margin-right: 15%;
}
.titre_bsn h1 {
text-align: left;
padding-bottom: 3rem;
}
.programmes {
display: flex;
flex-wrap: wrap;
background-color: #d5d2d1;
justify-content: center;
padding-left: 15%;
padding-right: 15%;
padding-top: 8rem;
padding-bottom: 8rem;
}
.programme {
max-width: 45%;
padding: 1.5rem;
background-color: white;
margin: 0.4rem;
}
.programme h4 {
text-transform: uppercase;
}
.programme img {
max-width: 30%;
}
.programmes :hover {
background-color: #000;
color: #ffffff;
transition:0.2s ease-in-out;
}
//
// /* .titre_nsb {
// display: block;
// position: absolute;
// margin-right: 39%;
// } */
//
//
// /* .ressources {
// display: flex;
// flex-wrap: wrap;
// justify-content: space-between;
// background-color: #ffffff;
// padding-top: 8rem;
// padding-right: 5rem;
// padding-left: 5rem;
// } */
//
// /* .ressource {
// max-width: 20%;
// margin-block: 5rem;
// flex-wrap: wrap;
// flex: 0 1 15%;
// } */
//
//
// /*
// .ressources h1 {
// text-transform: uppercase;
// background-color: #fff;
// color: #000;
// padding-top: 5rem;
// padding-bottom: 6rem;
// } */
//
// /* .ressources {
// display: grid;
// grid-template-columns: repeat(4, 1fr);
// grid-gap: 3rem;
// grid-auto-rows: auto;
// background-color: #ffffff;
// padding-top: 18rem;
// justify-items: center;
// position: relative;
// margin-right: 10%;
// margin-bottom: 6rem;
// margin-left: 10%;
// } */
//
// /* .ressources img {
// max-width: 50%;
// } */
//
// /* .ressource h1 h2 h3 h4 {
// margin: 0.2rem;
// } */
.gouvernance {
background-color: #000;
color: #ffffff;
text-transform: uppercase;
padding-bottom: 6rem;
padding-top: 2rem;
}
.mozaique_personnes {
background-color: #d5d2d1
}
.mozaique_personnes h3 {
margin-top: 0px !important;
padding-top: 3rem;
padding-left: 15%;
padding-right: 15%;
font-family: "Sarabun";
font-weight: 800;
font-size: 1rem;
line-height: 20px;
}
.mozaique {
// background-color: #fff;
display: flex;
justify-items: center;
position: relative;
margin-right: 10%;
// margin-bottom: 6rem;
margin-left: 10%;
}
// .mozaique :hover {
// background-color: #000;
// color: #fff;
// }
.info {
background-color: #fff;
display:flex;
flex-direction: column;
}
.info:hover {
background-color: #000;
color: #fff;
}
.portrait img {
max-width:15rem !important;
background: transparent !important;
}
.bouton {
margin: 0 30rem;
border: solid;
background-color: transparent;
text-transform: uppercase;
}
//
// .bouton :hover {
// background-color: #000;
// }
// pop in biographie
#modal{
position: fixed;
z-index: 1;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: none;
}
#modal.open{
display: block;
}
#modal .mask{
background: none !important;
opacity: 1;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
// #body .grey {
// opacity: 0.5;
// }
#modal .container{
position: relative;
background: white !important;
top: 50%;
left: 25%;
transform: translateX(-50%) translateY(-50%);
width: 50%;
height: content;
min-height: 50px;
border: solid;
}
#modal .container .message{
padding: 5% 10% 5% 5%;
}
#modal .container a.close{
position: absolute;
right: 5%;
top:5%;
color: black;
font-size: 30px;
}
#modal .container a.close:hover{
color: black;
}
@@ -72,17 +72,17 @@ h3 {
h1 + h2 {
margin: -2rem 0 2rem 0;
font-size: 2rem;
font-size: 1.2rem;
@include breakpoint(tablet-range) {
font-size: 1.6rem;
}
}
@include breakpoint(mobile-only) {
font-size: 1.5rem;
}
line-height: 1;
line-height: 1.3;
text-align: center;
font-family: $font-family-default;
font-weight: 300;
font-weight: 100;
}
h2 + h3 {
@@ -2,6 +2,7 @@
@import "features";
@import "text";
.modular {
.modular-row:last-child {
margin-bottom: 2rem;
@@ -1,10 +1,17 @@
// Modular Showcase styling
.modular {
.features {
padding: 6rem 0;
padding: 2rem 8rem;
text-align: center;
@include clearfix;
.titre_nsb h1 {
text-transform: uppercase;
}
h2 {
margin: 0;
line-height: 100%;
@@ -20,6 +27,7 @@
.feature-items {
margin-top: 2rem;
@supports not (flex-wrap: wrap) {
overflow: hidden;
}
@@ -28,10 +36,12 @@
.feature {
display:block;
float: left;
width: 25%;
width: 20%;
vertical-align: top;
margin-top: 2rem;
margin-right: 3rem;
margin-bottom: 1rem;
@include breakpoint(large-mobile-range) {
margin-top: 1rem;
width: 50%;
@@ -49,13 +59,20 @@
h4 {
margin: 0;
font-size: 1.1rem;
text-align: left;
}
p {
display: inline-block;
font-size: $core-font-size;
font-size: $core-font-size - 0.20;
margin: 0.2rem 0 1rem;
}
img {
width: 45%;
display: block;
}
}
&.big {
@@ -1,12 +1,13 @@
// variables
$text-bg: #f6f6f6;
$text-padding: 6rem;
$text-bg: #000;
$text-padding: 4rem;
$image-margin: 2rem;
// styling
.callout {
background: $text-bg;
color: #fff;
padding: $text-padding $content-padding;
@include breakpoint(desktop-only) {
text-align: center;