début de l'intégration design desktop

This commit is contained in:
Valentin
2023-12-14 09:38:25 +01:00
parent 6c4cf6f696
commit cb35336870
8 changed files with 442 additions and 101 deletions

View File

@@ -5,75 +5,105 @@
box-shadow: 0px -4px 4px rgba(0, 0, 0, 0.2);
margin-top: 50px;
padding: 0 $x_margin;
#footer_left div {
margin-top: 5px;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: nowrap;
#block-erabletheme-logorep {
max-width: 30vw;
img {
width: 100%;
height: auto;
}
}
#block-erabletheme-logoepau {
max-width: 50vw;
img {
width: 100%;
height: auto;
}
}
}
#footer_section {
display: flex;
width: 100%;
justify-content: space-between;
align-items: center;
margin-top: 10px;
margin-bottom: 20px;
position: relative;
#footer_center {
padding-left: 2vw;
width: 50%;
nav ul {
display: flex;
justify-content: space-between;
li a {
color: $dark_green;
font-size: $sm_font_size;
font-family: 'Marianne', sans-serif;
font-weight: 800;
text-decoration: underline;
#footer_middle {
#footer_left > div {
margin-top: 5px;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: nowrap;
#block-erabletheme-logorep {
width: 30vw;
img {
width: 100%;
height: auto;
}
@media (min-width: $breakpoint_tablet) {
width: 10vw;
}
}
}
#footer_right {
width: 30%;
#block-erabletheme-socialmedialinks-2 ul {
display: flex;
justify-content: space-between;
li a {
span {
font-weight: lighter;
font-size: 1.4rem;
width: 2.2rem;
height: 2.2rem;
padding: 0.4rem;
border-radius: 1.1rem;
color: white;
background-color: $teal;
}
svg.ext {
background-color: red;
display: none;
}
#block-erabletheme-logoepau {
width: 50vw;
img {
width: 100%;
height: auto;
}
@media (min-width: $breakpoint_tablet) {
width: 15vw;
padding-left: 2vw;
}
}
@media (min-width: $breakpoint_tablet) {
width: 25vw;
padding-left: $x_margin;
}
}
#footer_section {
display: flex;
width: 100%;
justify-content: space-between;
align-items: center;
margin-top: 10px;
margin-bottom: 20px;
position: relative;
#footer_center {
padding-left: 2vw;
width: 50%;
nav ul {
display: flex;
justify-content: space-between;
li a {
color: $dark_green;
font-size: $sm_font_size;
font-family: 'Marianne', sans-serif;
font-weight: 800;
text-decoration: underline;
}
@media (min-width: $breakpoint_tablet) {
width: 50vw;
padding: 0 15vw;
}
}
@media (min-width: $breakpoint_tablet) {
padding-left: 0;
width: auto;
}
}
#footer_right {
width: 30%;
#block-erabletheme-socialmedialinks-2 ul {
display: flex;
justify-content: space-between;
li a {
span {
font-weight: lighter;
font-size: 1.4rem;
width: 2.2rem;
height: 2.2rem;
padding: 0.4rem;
border-radius: 1.1rem;
color: white;
background-color: $teal;
}
svg.ext {
display: none;
}
}
}
@media (min-width: $breakpoint_tablet) {
width: 25vw;
padding-left: 15vw;
padding-right: $x_margin;
}
}
}
@media (min-width: $breakpoint_tablet) {
display: flex;
}
}
@media (min-width: $breakpoint_tablet) {
padding: 0;
}
}

View File

@@ -17,7 +17,7 @@
flex-wrap: nowrap;
justify-content: space-between;
#block-erabletheme-logorepublique {
max-width: 15vw;
width: 15vw;
a {
display: flex;
align-items: center;
@@ -25,31 +25,102 @@
padding-left: $x_margin;
height: auto;
width: 100%;
@media (min-width: $breakpoint_desktop) {
padding-right: 1.5vw;
}
}
}
@media (min-width: $breakpoint_desktop) {
width: 10vw;
}
}
#block-erabletheme-logoerable {
max-width: 30vw;
a {
display: flex;
align-items: center;
img {
height: auto;
max-height: 100%;
width: 20vw;
> div {
width: auto;
a {
width: 100%;
padding-top: 3px;
padding-bottom: 3px;
display: flex;
align-items: center;
justify-content: center;
img {
height: 100%;
width: auto;
padding-top: 3px;
padding-bottom: 3px;
}
}
}
@media (min-width: $breakpoint_desktop) {
width: 10vw;
}
}
#block-erabletheme-navigationprincipale {
display: none;
ul {
width: 60vw;
display: flex;
height: 100%;
align-items: center;
justify-content: space-around;
padding: 0 5vw;
li {
font-family: 'Marianne', sans-serif;
font-size: $m_font_size;
a {
font-weight: 800;
padding: 4px 6px;
color: black;
background-color: rgba(255, 255, 255, 0);
transition: background-color 0.3s ease;
}
a:hover {
background-color: $fluo_green;
}
a.is-active {
font-weight: 400;
background-color: $fluo_green;
}
}
}
@media (min-width: $breakpoint_desktop) {
display: block;
}
}
#block-erabletheme-socialmedialinks {
width: 7vw;
margin: 0 calc((20vw - (7vw + 7vh)) / 2);
display: none;
ul {
height: 100%;
display: flex;
align-items: center;
justify-content: space-between;
li a {
span {
font-weight: lighter;
font-size: 1.4rem;
width: 2.2rem;
height: 2.2rem;
padding: 0.4rem;
border-radius: 1.1rem;
color: white;
background-color: $teal;
}
svg.ext {
display: none;
}
}
}
@media (min-width: $breakpoint_desktop) {
display: block;
}
}
#block-erabletheme-header {
#hamburger {
width: 4rem;
cursor: pointer;
width: 7vh;
height: 100%;
background-color: $fluo_green;
display: flex;
@@ -114,6 +185,12 @@
font-family: 'Marianne', sans-serif;
font-weight: 800;
padding: 4px 6px;
background-color: rgba(255, 255, 255, 0);
transition: background-color 0.3s ease, color 0.3s ease;
}
a:hover {
background-color: white;
color: $dark_green;
}
a.is-active {
background-color: white;
@@ -123,6 +200,11 @@
li.visible {
opacity: 1;
}
@media (min-width: $breakpoint_desktop) {
width: 25vw;
right: 0;
left: auto;
}
}
ul.active {
padding: 30px 0;