refonte page d'accueil nouveau design, sans images pour l'instant
This commit is contained in:
@@ -1,155 +1,123 @@
|
||||
$header_height: 4.5rem; // 72px maquette
|
||||
|
||||
.layout-container {
|
||||
header[role="banner"] {
|
||||
width: 100%;
|
||||
background-color: white;
|
||||
@media (min-width: $breakpoint_desktop) {
|
||||
position: sticky;
|
||||
top: -12vh;
|
||||
box-shadow: none;
|
||||
}
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 99;
|
||||
box-shadow: none;
|
||||
|
||||
> div:first-of-type {
|
||||
z-index: 99;
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(16, 1fr);
|
||||
> div{
|
||||
height: 12vh;
|
||||
grid-row: 1;
|
||||
max-height: 100%;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: $header_height;
|
||||
|
||||
// Conteneurs Drupal des blocs logos / burger
|
||||
> div {
|
||||
height: $header_height;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
> div {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
|
||||
> div {
|
||||
height: 12vh;
|
||||
height: 100%;
|
||||
a {
|
||||
display: block;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
}
|
||||
img {
|
||||
width: auto;
|
||||
height: auto;
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
max-height: calc($header_height - 1rem);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#block-erabletheme-logorep-2 {
|
||||
img {
|
||||
padding-top: 0.8rem;
|
||||
padding-bottom: 0.8rem;
|
||||
}
|
||||
grid-column: 1 / 5;
|
||||
@media (min-width: $breakpoint_tablet) {
|
||||
grid-column: 0 / 4;
|
||||
}
|
||||
@media (min-width: $breakpoint_desktop) {
|
||||
grid-column: 1 / 3;
|
||||
}
|
||||
}
|
||||
#block-erabletheme-logoepau-2 {
|
||||
grid-column: 5 / 9;
|
||||
> div {
|
||||
align-items: flex-start;
|
||||
justify-content: flex-start;
|
||||
> div > a > img {
|
||||
transform: translateX(-20px);
|
||||
padding-top: 1.2rem;
|
||||
padding-bottom: 1.2rem;
|
||||
}
|
||||
}
|
||||
@media (min-width: $breakpoint_tablet) {
|
||||
grid-column: 4 / 7;
|
||||
> div > div > a > img {
|
||||
padding-top: 1.5rem;
|
||||
padding-bottom: 1.5rem;
|
||||
}
|
||||
}
|
||||
@media (min-width: $breakpoint_desktop) {
|
||||
grid-column: 3 / 8;
|
||||
}
|
||||
@media (min-width: $breakpoint_desktop_large) {
|
||||
grid-column: 3 / 6;
|
||||
> div > div > a > img {
|
||||
transform: translateX(-40px);
|
||||
padding-top: 30px;
|
||||
padding-bottom: 30px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#block-erabletheme-logorep-2,
|
||||
#block-erabletheme-logoepau-2,
|
||||
#block-erabletheme-logoerable {
|
||||
grid-column: 10 / 15;
|
||||
@media (min-width: $breakpoint_desktop) {
|
||||
grid-column: 14 / 16;
|
||||
}
|
||||
img {
|
||||
padding-right: 1rem;
|
||||
padding-top: 0.8rem;
|
||||
padding-bottom: 0.8rem;
|
||||
}
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
#block-erabletheme-logorep-2 {
|
||||
padding-left: 1.25rem;
|
||||
}
|
||||
|
||||
#block-erabletheme-logoerable {
|
||||
margin-left: auto; // pousse le burger à droite
|
||||
}
|
||||
|
||||
#block-erabletheme-socialmedialinks {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#block-erabletheme-header {
|
||||
grid-column: 15 / 17;
|
||||
@media (min-width: $breakpoint_desktop) {
|
||||
grid-column: 16 / 17;
|
||||
}
|
||||
height: $header_height;
|
||||
|
||||
#hamburger {
|
||||
cursor: pointer;
|
||||
width: auto;
|
||||
height: 100%;
|
||||
width: $header_height; // carré 72x72
|
||||
height: $header_height;
|
||||
background-color: $fluo_green;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
padding: 0.5rem 0;
|
||||
h2 {
|
||||
font-size: $sm_font_size;
|
||||
font-family: 'Marianne', sans-serif;
|
||||
font-weight: 800;
|
||||
text-align: center;
|
||||
}
|
||||
justify-content: center;
|
||||
|
||||
.burger-icon {
|
||||
width: 2rem;
|
||||
height: 1.5rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
padding-bottom: 0.5rem;
|
||||
position: relative;
|
||||
width: 1.75rem;
|
||||
height: 1rem;
|
||||
$bar_thickness: 2px;
|
||||
$bar_transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), top 0.35s cubic-bezier(0.4, 0, 0.2, 1), bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
|
||||
|
||||
div {
|
||||
border-bottom: solid 1px black;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: $bar_thickness;
|
||||
background-color: black;
|
||||
opacity: 1;
|
||||
transition: opacity 0.2s ease-out, transform 0.4s ease-out;
|
||||
transform: none;
|
||||
border-radius: 1px;
|
||||
transform-origin: center center;
|
||||
transition: $bar_transition;
|
||||
}
|
||||
div:nth-of-type(1) { top: 0; }
|
||||
div:nth-of-type(2) {
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
opacity: 1;
|
||||
}
|
||||
div:nth-of-type(3) { bottom: 0; }
|
||||
}
|
||||
|
||||
.burger-icon.open {
|
||||
div:first-of-type {
|
||||
transform: translate(0rem, 0.5rem) rotate(-45deg);
|
||||
div:nth-of-type(1) {
|
||||
top: 50%;
|
||||
transform: translateY(-50%) rotate(45deg);
|
||||
}
|
||||
div:nth-of-type(2) {
|
||||
opacity: 0;
|
||||
}
|
||||
div:last-of-type {
|
||||
transform: translate(0rem, -0.5rem) rotate(45deg);
|
||||
div:nth-of-type(3) {
|
||||
bottom: 50%;
|
||||
transform: translateY(50%) rotate(-45deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul:not(.social-media-links--platforms) {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: $header_height;
|
||||
z-index: -1;
|
||||
display: none;
|
||||
height: auto;
|
||||
@@ -172,7 +140,7 @@
|
||||
text-align: center;
|
||||
line-height: 1.2;
|
||||
color: white;
|
||||
font-family: 'Marianne', sans-serif;
|
||||
font-family: $marianne;
|
||||
font-weight: 800;
|
||||
padding: 4px 6px;
|
||||
background-color: rgba(255, 255, 255, 0);
|
||||
@@ -205,8 +173,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
> li.visible {
|
||||
@@ -237,86 +203,90 @@
|
||||
ul.active {
|
||||
padding: 30px 0;
|
||||
padding-top: 3rem;
|
||||
max-height: 100vh;
|
||||
max-height: calc(100vh - #{$header_height});
|
||||
overflow-y: scroll;
|
||||
}
|
||||
}
|
||||
|
||||
#block-erabletheme-navigationprincipale {
|
||||
margin-top: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
> div:nth-of-type(2) {
|
||||
z-index: 98;
|
||||
position: relative;
|
||||
z-index: 98;
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
||||
#block-erabletheme-navigationprincipale {
|
||||
background: linear-gradient(to bottom, white, rgba(255, 255, 255, 0.8) 50%, transparent);
|
||||
width: 100%;
|
||||
display: none;
|
||||
position: absolute;
|
||||
padding-top: 1rem;
|
||||
@media (min-width: $breakpoint_desktop) {
|
||||
display: block;
|
||||
}
|
||||
ul {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
padding: 1rem 10vw;
|
||||
justify-content: space-around;
|
||||
li {
|
||||
font-family: 'Marianne', sans-serif;
|
||||
font-size: $m_font_size;
|
||||
padding: 9px 16px;
|
||||
background-color: white;
|
||||
transition: background-color 0.3s ease;
|
||||
&:first-of-type {
|
||||
display: flex;
|
||||
justify-items: center;
|
||||
&::after {
|
||||
content: url(../assets/icons/arrow-down-s-line.svg);
|
||||
display: inline-block;
|
||||
height: 1rem;
|
||||
width: 1rem;
|
||||
margin-left: 0.2rem;
|
||||
}
|
||||
}
|
||||
&:hover, &.submenu-open {
|
||||
background-color: $fluo_green;
|
||||
}
|
||||
a {
|
||||
font-weight: 800;
|
||||
color: black;
|
||||
&:is-active {
|
||||
background-color: $fluo_green;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#block-erabletheme-leprogramme {
|
||||
position: fixed;
|
||||
background-color: white;
|
||||
max-height: 0vh;
|
||||
overflow: hidden;
|
||||
display: none;
|
||||
transition: max-height 0.6s ease;
|
||||
> h2 {
|
||||
background: linear-gradient(to bottom, white, rgba(255, 255, 255, 0.8) 50%, transparent);
|
||||
width: 100%;
|
||||
display: none;
|
||||
}
|
||||
ul {
|
||||
padding: 1rem 1.5rem;
|
||||
li {
|
||||
font-family: 'Marianne', sans-serif;
|
||||
font-size: $m_font_size;
|
||||
margin: 0.5rem 0;
|
||||
a {
|
||||
color: black;
|
||||
&:hover, &.is-active {
|
||||
font-weight: 800;
|
||||
}
|
||||
}
|
||||
position: absolute;
|
||||
padding-top: 1rem;
|
||||
@media (min-width: $breakpoint_desktop) {
|
||||
display: block;
|
||||
}
|
||||
ul {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
padding: 1rem 10vw;
|
||||
justify-content: space-around;
|
||||
li {
|
||||
font-family: $marianne;
|
||||
font-size: $fs_sm;
|
||||
padding: 9px 16px;
|
||||
background-color: white;
|
||||
transition: background-color 0.3s ease;
|
||||
&:first-of-type {
|
||||
display: flex;
|
||||
justify-items: center;
|
||||
&::after {
|
||||
content: url(../assets/icons/arrow-down-s-line.svg);
|
||||
display: inline-block;
|
||||
height: 1rem;
|
||||
width: 1rem;
|
||||
margin-left: 0.2rem;
|
||||
}
|
||||
}
|
||||
&:hover, &.submenu-open {
|
||||
background-color: $fluo_green;
|
||||
}
|
||||
a {
|
||||
font-weight: 800;
|
||||
color: black;
|
||||
&:is-active {
|
||||
background-color: $fluo_green;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#block-erabletheme-leprogramme {
|
||||
position: fixed;
|
||||
background-color: white;
|
||||
max-height: 0vh;
|
||||
overflow: hidden;
|
||||
display: none;
|
||||
transition: max-height 0.6s ease;
|
||||
> h2 {
|
||||
display: none;
|
||||
}
|
||||
ul {
|
||||
padding: 1rem 1.5rem;
|
||||
li {
|
||||
font-family: $marianne;
|
||||
font-size: $fs_sm;
|
||||
margin: 0.5rem 0;
|
||||
a {
|
||||
color: black;
|
||||
&:hover, &.is-active {
|
||||
font-weight: 800;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user