mobile header & home

This commit is contained in:
2023-11-30 10:41:05 +01:00
parent 3ddf51ece0
commit e6d1cab224
4 changed files with 202 additions and 77 deletions
@@ -34,6 +34,10 @@ $width-menu-slidedown : 550px;
padding-bottom: 6rem;
width: 70%;
margin: auto;
@media(max-width: 891px){
width: 90%;
}
}
aside{
width: 20%;
+33 -5
View File
@@ -8,20 +8,32 @@
font-style: normal;
h4{
font-size: 5rem;
font-weight: normal;
margin: 0;
font-weight: normal;
margin: 0;
@media(max-width: 891px){
font-size: 4rem;
}
}
h5{
font-size: 5rem;
font-weight: 900;
margin: 0;
line-height: 0.6;
font-weight: 900;
margin: 0;
line-height: 0.6;
@media(max-width: 891px){
font-size: 4rem;
line-height: 0.9;
}
}
.block-region-content{
display: grid;
grid-column: repeat(2, 1fr);
@media(max-width: 891px){
display: flex;
flex-direction: column;
}
.block-views-blockhome-block-1{
grid-column: 1 /span 2;
grid-row: 1;
@@ -39,6 +51,9 @@
font-weight: 800;
padding: 2rem;
margin-right: 1rem;
@media(max-width: 891px){
margin-bottom: 1rem;
}
h2{
margin-top: 0;
@@ -74,6 +89,7 @@
}
.block-block-content5ae07b35-3c0b-48f5-b51b-f0f0e4c1765f:hover{
background-color: $yellow-puca;
.field--type-link{
.field__item {
::after{
@@ -94,9 +110,15 @@
display: flex;
justify-content: flex-end;
align-items: center;
@media(max-width: 891px){
width: 100%;
}
.field--type-file{
width: 80%;
margin: 0;
@media(max-width: 891px){
width: 100%;
}
}
:hover{
background-color: $yellow-puca;
@@ -109,9 +131,15 @@
display: flex;
justify-content: flex-end;
align-items: center;
@media(max-width: 891px){
width: 100%;
}
.field--type-file{
width: 80%;
margin: 0;
@media(max-width: 891px){
width: 100%;
}
}
:hover{
background-color: $yellow-puca;
@@ -11,14 +11,21 @@ header{
position: sticky;
top: 0;
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
// @media (max-width:800px) {
// height: 100px;
@media (max-width:800px) {
height: 100px;
width: 800px;
// }
}
.region-header{
display: inline-grid;
align-items: center;
grid-template-columns: repeat(10, 1fr) ;
@media (max-width:891px) {
display: flex;
flex-direction: row;
justify-content: space-between;
}
#block-reha-logoministere{
grid-column: 1;
@@ -68,6 +75,10 @@ header{
.bouton-connexion{
padding-right: 3rem;
// @media (max-width:891px) {
// font-size: 0.1rem;
// color: white;
// }
:before{
content: url(../images/noun-contact-2495375.svg);
padding-right: 1rem;
@@ -90,6 +101,9 @@ header{
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
clip-path: inset(0px -10px -10px -10px);
padding: 5% 10% 5% 5%;
@media (max-width:891px) {
top: 15px;
}
.titre{
width: 100%;
position: relative;
@@ -201,10 +215,24 @@ header{
height: 200vh;
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
clip-path: inset(0px -10px -10px -10px);
@media(max-width: 891px){
right: 0px;
top: 100%;
width: 100vw;
padding-left: 0;
padding-top: 1rem;
height: fit-content;
}
.titre{
padding-left:3rem ;
::after{
left: 320px;
@media(max-width: 891px){
left: 242px;
}
}
}
}
.field__item{
@@ -219,6 +247,7 @@ header{
grid-column: 9;
.bouton-connected{
padding-right: 3rem;
:before{
content: url(../images/noun-contact-2495375.svg);
padding-right: 1rem;
@@ -279,6 +308,11 @@ header{
.bouton{
align-self: flex-end;
width: fit-content;
@media (max-width:891px) {
font-size: 0.1rem;
color: white;
padding-right: 0 !important;
}
h2{
text-transform: lowercase;
display: inline-flex;
@@ -296,7 +330,7 @@ header{
position: relative;
left: 90px;
cursor: pointer;
}
}
}