début du thème, footer et header en mobile
This commit is contained in:
43
web/themes/erabletheme/scss/global/_fonts.scss
Normal file
43
web/themes/erabletheme/scss/global/_fonts.scss
Normal file
@@ -0,0 +1,43 @@
|
||||
/* Marianne */
|
||||
|
||||
@font-face {
|
||||
font-family: 'Marianne';
|
||||
src: url('../fonts/Marianne/Marianne-Light.woff2') format('woff2'),
|
||||
url('../fonts/Marianne/Marianne-Light.woff') format('woff');
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Marianne';
|
||||
src: url('../fonts/Marianne/Marianne-Light_Italic.woff2') format('woff2'),
|
||||
url('../fonts/Marianne/Marianne-Light_Italic.woff') format('woff');
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Marianne';
|
||||
src: url('../fonts/Marianne/Marianne-Medium.woff2') format('woff2'),
|
||||
url('../fonts/Marianne/Marianne-Medium.woff') format('woff');
|
||||
font-weight: 800;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Marianne';
|
||||
src: url('../fonts/Marianne/Marianne-Medium_Italic.woff2') format('woff2'),
|
||||
url('../fonts/Marianne/Marianne-Medium_Italic.woff') format('woff');
|
||||
font-weight: 800;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Barlow */
|
||||
|
||||
@font-face {
|
||||
font-family: 'Barlow';
|
||||
src: url('../fonts/Barlow/barlow-light.woff2') format('woff2'),
|
||||
url('../fonts/Barlow/barlow_light.woff') format('woff');
|
||||
font-weight: 300;
|
||||
font-style: normal;
|
||||
}
|
3
web/themes/erabletheme/scss/global/_typography.scss
Normal file
3
web/themes/erabletheme/scss/global/_typography.scss
Normal file
@@ -0,0 +1,3 @@
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
$fluo_green: #00ff80;
|
||||
$teal: #038788;
|
||||
$beige: #fcf9ee;
|
||||
$dark_green: #314e41;
|
@@ -0,0 +1,2 @@
|
||||
$x_margin: 3vw;
|
||||
$y_margins: 2vh;
|
@@ -0,0 +1,2 @@
|
||||
/* SIZES */
|
||||
$sm_font_size: 0.8rem;
|
79
web/themes/erabletheme/scss/partials/_footer.scss
Normal file
79
web/themes/erabletheme/scss/partials/_footer.scss
Normal file
@@ -0,0 +1,79 @@
|
||||
.layout-container > footer {
|
||||
width: 100vw;
|
||||
background-color: white;
|
||||
z-index: 99;
|
||||
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_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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
99
web/themes/erabletheme/scss/partials/_header.scss
Normal file
99
web/themes/erabletheme/scss/partials/_header.scss
Normal file
@@ -0,0 +1,99 @@
|
||||
|
||||
.layout-container {
|
||||
width: 100vw;
|
||||
overflow: hidden;
|
||||
header {
|
||||
width: 100vw;
|
||||
background: white;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
|
||||
z-index: 99;
|
||||
div {
|
||||
max-width: 100%;
|
||||
max-height: 7vh;
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: space-between;
|
||||
#block-erabletheme-logorepublique {
|
||||
max-width: 15vw;
|
||||
a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
img {
|
||||
padding-left: $x_margin;
|
||||
height: auto;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
#block-erabletheme-logoerable {
|
||||
max-width: 30vw;
|
||||
a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
img {
|
||||
height: auto;
|
||||
width: 100%;
|
||||
padding-top: 3px;
|
||||
padding-bottom: 3px;
|
||||
}
|
||||
}
|
||||
}
|
||||
#block-erabletheme-navigationprincipale {
|
||||
display: none;
|
||||
}
|
||||
#block-erabletheme-socialmedialinks {
|
||||
display: none;
|
||||
}
|
||||
#block-erabletheme-header {
|
||||
#hamburger {
|
||||
width: 4rem;
|
||||
height: 100%;
|
||||
background-color: $fluo_green;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
h2 {
|
||||
font-size: $sm_font_size;
|
||||
font-family: 'Marianne', sans-serif;
|
||||
font-weight: 800;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
ul {
|
||||
display: none;
|
||||
}
|
||||
ul.active {
|
||||
display: block;
|
||||
position: fixed;
|
||||
background-color: $dark_green;
|
||||
top: 7vh;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
z-index: 0;
|
||||
padding: 30px 0;
|
||||
li {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: 6px 0;
|
||||
a {
|
||||
color: white;
|
||||
font-family: 'Marianne', sans-serif;
|
||||
font-weight: 800;
|
||||
padding: 4px 6px;
|
||||
}
|
||||
a.is-active {
|
||||
background-color: white;
|
||||
color: $dark_green;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1,3 +1,10 @@
|
||||
body{
|
||||
// background-color: red;
|
||||
}
|
||||
/* GLOBAL */
|
||||
@import "global/_fonts";
|
||||
@import "global/variables/_colors";
|
||||
@import "global/variables/_layout";
|
||||
@import "global/variables/_typography";
|
||||
@import "global/_typography";
|
||||
|
||||
/* PARTIALS */
|
||||
@import "partials/_header";
|
||||
@import "partials/_footer";
|
Reference in New Issue
Block a user