2020-11-05 14:14:55 +01:00
|
|
|
// HEADER
|
|
|
|
|
|
|
|
.header
|
2020-11-09 12:36:28 +01:00
|
|
|
height: 40vh
|
2020-11-05 14:14:55 +01:00
|
|
|
position: relative
|
2024-04-02 23:18:38 +02:00
|
|
|
|
|
|
|
&.actu
|
|
|
|
background-color: var(--color-green)
|
|
|
|
height: calc(106px + 4rem + 2rem)
|
|
|
|
.nav
|
|
|
|
top: 2rem
|
|
|
|
|
|
|
|
@media screen and (max-width: $size-md)
|
|
|
|
height: calc(86px + 4rem + 2rem)
|
|
|
|
|
|
|
|
@media screen and (max-width: $size-sm)
|
|
|
|
height: calc(86px + 3rem + 2rem)
|
|
|
|
.nav
|
|
|
|
top: 1.5rem
|
2020-11-05 14:14:55 +01:00
|
|
|
|
2020-11-09 12:36:28 +01:00
|
|
|
&.home
|
2023-06-05 16:16:20 +02:00
|
|
|
height: 60vh
|
2020-11-23 11:31:02 +01:00
|
|
|
.hero
|
2023-06-05 16:16:20 +02:00
|
|
|
height: 60vh
|
2020-11-09 12:36:28 +01:00
|
|
|
|
2020-11-05 14:14:55 +01:00
|
|
|
.hero
|
|
|
|
position: absolute
|
|
|
|
top: 0
|
|
|
|
bottom: 0
|
|
|
|
left: 0
|
|
|
|
right: 0
|
|
|
|
z-index: -1
|
|
|
|
object-fit: cover
|
|
|
|
width: 100%
|
2020-11-23 11:31:02 +01:00
|
|
|
height: 40vh
|
2023-06-05 16:16:20 +02:00
|
|
|
background-color: var(--color-orange)
|
2020-11-05 14:14:55 +01:00
|
|
|
|
2020-11-23 11:31:02 +01:00
|
|
|
$nav-height: 70px
|
2020-11-05 14:14:55 +01:00
|
|
|
.nav
|
|
|
|
position: absolute
|
|
|
|
top: 50px
|
|
|
|
bottom: 0
|
|
|
|
left: 0
|
|
|
|
right: 0
|
2023-06-05 16:16:20 +02:00
|
|
|
background-color: var(--color-secondary)
|
2020-11-23 11:31:02 +01:00
|
|
|
height: $nav-height
|
2024-04-03 09:00:15 +02:00
|
|
|
z-index: 50
|
2020-11-05 14:14:55 +01:00
|
|
|
|
|
|
|
@media screen and (max-width: $size-md)
|
|
|
|
top: 30px
|
|
|
|
height: 50px
|
|
|
|
|
2023-06-05 16:16:20 +02:00
|
|
|
.viemunicipale a
|
|
|
|
color: var(--color-green)!important
|
|
|
|
|
2020-11-05 14:14:55 +01:00
|
|
|
.container
|
|
|
|
display: flex
|
|
|
|
align-items: center
|
2020-11-23 11:31:02 +01:00
|
|
|
justify-content: space-between
|
2020-11-05 14:14:55 +01:00
|
|
|
|
|
|
|
.logo
|
|
|
|
position: relative
|
|
|
|
z-index: 20
|
2023-05-04 23:42:11 +02:00
|
|
|
margin: -1rem 1rem -1rem 0
|
|
|
|
background: white
|
2023-06-05 16:16:20 +02:00
|
|
|
box-shadow: 0px 8px 17px 2px rgba(0,0,0,0.14) , 0px 3px 14px 2px rgba(0,0,0,0.12) , 0px 5px 5px -3px rgba(0,0,0,0.2)
|
2020-11-05 14:14:55 +01:00
|
|
|
|
|
|
|
a
|
2023-05-04 23:42:11 +02:00
|
|
|
margin: 1rem
|
2020-11-05 14:14:55 +01:00
|
|
|
display: block
|
|
|
|
|
|
|
|
img
|
|
|
|
position: relative
|
2020-11-23 11:31:02 +01:00
|
|
|
height: $nav-height
|
|
|
|
width: 214px
|
2020-11-05 14:14:55 +01:00
|
|
|
z-index: 30
|
2020-11-23 11:31:02 +01:00
|
|
|
text-align: center
|
2020-11-05 14:14:55 +01:00
|
|
|
|
|
|
|
@media screen and (max-width: $size-md)
|
|
|
|
height: 50px
|
2020-11-23 11:31:02 +01:00
|
|
|
width: 154px
|
2020-11-05 14:14:55 +01:00
|
|
|
|
|
|
|
#menu
|
|
|
|
list-style-type: none
|
|
|
|
display: flex
|
|
|
|
align-items: center
|
|
|
|
padding: 0
|
|
|
|
margin: 0
|
2020-11-23 11:31:02 +01:00
|
|
|
height: $nav-height
|
2020-11-05 14:14:55 +01:00
|
|
|
|
2024-04-02 23:18:38 +02:00
|
|
|
li
|
|
|
|
padding-bottom: 0
|
|
|
|
|
2023-06-05 16:16:20 +02:00
|
|
|
.viemunicipale, .viemunicipale a
|
|
|
|
color: var(--color-green)
|
|
|
|
font-weight: bold
|
|
|
|
.cadredevie, .cadredevie a
|
|
|
|
color: var(--color-blue)
|
|
|
|
font-weight: bold
|
|
|
|
.economie, .economie a
|
|
|
|
color: var(--color-orange)
|
|
|
|
font-weight: bold
|
|
|
|
.associations, .associations a
|
|
|
|
color: var(--color-purple)
|
|
|
|
font-weight: bold
|
|
|
|
|
2020-11-05 14:14:55 +01:00
|
|
|
@media screen and (max-width: $size-xl)
|
|
|
|
font-size: .95rem
|
|
|
|
|
2020-11-23 11:31:02 +01:00
|
|
|
.submenu
|
|
|
|
list-style-type: none
|
2020-11-05 14:14:55 +01:00
|
|
|
display: none
|
2020-11-23 11:31:02 +01:00
|
|
|
position: absolute
|
|
|
|
background: white
|
|
|
|
top: $nav-height
|
2020-11-05 14:14:55 +01:00
|
|
|
flex-direction: column
|
2020-11-23 11:31:02 +01:00
|
|
|
margin: 0
|
|
|
|
padding: 1rem
|
|
|
|
width: max-content
|
|
|
|
box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 3px 0px
|
2023-05-04 23:42:11 +02:00
|
|
|
z-index: 10
|
2020-11-05 14:14:55 +01:00
|
|
|
|
2020-11-23 11:31:02 +01:00
|
|
|
a
|
|
|
|
padding: 10px 0 0
|
2020-11-05 14:14:55 +01:00
|
|
|
|
2020-11-23 11:31:02 +01:00
|
|
|
.menu:hover .submenu
|
|
|
|
display: flex
|
2020-11-05 14:14:55 +01:00
|
|
|
|
2020-11-23 11:31:02 +01:00
|
|
|
.menu.withSubmenu:hover::after
|
|
|
|
content: ''
|
|
|
|
display: block
|
|
|
|
position: absolute
|
|
|
|
left: calc(50% - 7.5px)
|
|
|
|
top: 100%
|
|
|
|
width: 0
|
|
|
|
height: 0
|
2023-06-05 16:16:20 +02:00
|
|
|
border-top: 15px solid var(--color-green)
|
2020-11-23 11:31:02 +01:00
|
|
|
border-right: 15px solid transparent
|
|
|
|
border-bottom: 0 solid transparent
|
|
|
|
border-left: 15px solid transparent
|
|
|
|
z-index: 10000
|
|
|
|
|
|
|
|
.menu
|
2020-11-05 14:14:55 +01:00
|
|
|
display: flex
|
|
|
|
align-items: center
|
2020-11-23 11:31:02 +01:00
|
|
|
position: relative
|
|
|
|
height: 100%
|
2020-11-05 14:14:55 +01:00
|
|
|
|
2020-11-23 11:31:02 +01:00
|
|
|
&:first-child::before
|
2020-11-05 14:14:55 +01:00
|
|
|
content: none
|
|
|
|
|
|
|
|
a
|
|
|
|
color: white
|
|
|
|
display: flex
|
|
|
|
align-items: center
|
2020-11-23 11:31:02 +01:00
|
|
|
padding: 0 10px
|
|
|
|
height: 100%
|
2020-11-05 14:14:55 +01:00
|
|
|
text-decoration: none
|
|
|
|
|
|
|
|
&:hover
|
2020-11-26 17:22:00 +01:00
|
|
|
transform: scale(1.05)
|
2020-11-05 14:14:55 +01:00
|
|
|
|
|
|
|
img
|
2020-11-25 18:00:03 +01:00
|
|
|
margin: 0 10px 0 0
|
2020-11-05 14:14:55 +01:00
|
|
|
|
|
|
|
@media screen and (max-width: $size-lg) and (min-width: $size-md)
|
|
|
|
display: none
|
|
|
|
|
|
|
|
span
|
|
|
|
white-space: nowrap
|
|
|
|
|
2020-11-23 11:31:02 +01:00
|
|
|
@media screen and (max-width: $size-md)
|
|
|
|
display: none
|
|
|
|
position: fixed
|
|
|
|
top: 0
|
|
|
|
bottom: 0
|
|
|
|
left: 0
|
|
|
|
right: 0
|
|
|
|
height: 100vh
|
|
|
|
z-index: 100
|
2023-06-05 16:16:20 +02:00
|
|
|
background: white
|
2020-11-23 11:31:02 +01:00
|
|
|
justify-content: center
|
2023-06-07 10:55:33 +02:00
|
|
|
flex-wrap: wrap
|
|
|
|
align-items: last baseline
|
|
|
|
align-content: center
|
|
|
|
|
|
|
|
.viemunicipale
|
|
|
|
order: 1
|
|
|
|
.economie
|
|
|
|
order: 2
|
|
|
|
.cadredevie
|
|
|
|
order: 3
|
|
|
|
.associations
|
|
|
|
order: 4
|
2023-02-22 14:22:34 +01:00
|
|
|
|
2020-11-23 11:31:02 +01:00
|
|
|
img
|
|
|
|
display: inherit
|
|
|
|
|
|
|
|
.menu
|
|
|
|
height: auto
|
2023-06-07 10:55:33 +02:00
|
|
|
width: 200px
|
2020-11-23 11:31:02 +01:00
|
|
|
flex-direction: column
|
2023-06-07 10:55:33 +02:00
|
|
|
margin: .7rem
|
|
|
|
padding: .7rem
|
2023-06-05 16:16:20 +02:00
|
|
|
box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 3px 0px
|
2020-11-23 11:31:02 +01:00
|
|
|
|
|
|
|
.submenu
|
|
|
|
display: flex
|
|
|
|
position: relative
|
|
|
|
top: 0
|
|
|
|
padding: 0
|
|
|
|
margin-top: 1rem
|
|
|
|
border-radius: 6px
|
2023-06-05 16:16:20 +02:00
|
|
|
box-shadow: none
|
2020-11-23 11:31:02 +01:00
|
|
|
|
|
|
|
a
|
|
|
|
padding: 2px 10px
|
|
|
|
|
|
|
|
.menu:before
|
|
|
|
content: none
|
|
|
|
|
2023-06-07 10:55:33 +02:00
|
|
|
@media screen and (max-width: 320px)
|
|
|
|
font-size: .9rem
|
|
|
|
flex-direction: row
|
|
|
|
flex-wrap: wrap;
|
|
|
|
align-items: center;
|
|
|
|
align-content: center;
|
|
|
|
.menu
|
|
|
|
width: 150px
|
|
|
|
a
|
|
|
|
padding: 0
|
|
|
|
.submenu
|
|
|
|
font-size: .8rem
|
|
|
|
img
|
|
|
|
display: none
|
|
|
|
|
2020-11-05 14:14:55 +01:00
|
|
|
.open-button
|
|
|
|
display: none
|
|
|
|
white-space: nowrap
|
|
|
|
|
|
|
|
.close-button
|
|
|
|
white-space: nowrap
|
|
|
|
display: none
|
|
|
|
z-index: 200
|
2020-12-20 00:59:40 +01:00
|
|
|
|
|
|
|
@media screen and (max-width: $size-md)
|
|
|
|
.nav[data-open="true"]
|
|
|
|
.open-button
|
|
|
|
display: none
|
|
|
|
.close-button, #menu
|
|
|
|
display: inherit
|
|
|
|
.nav[data-open="false"]
|
|
|
|
.open-button
|
|
|
|
display: inherit
|
|
|
|
.close-button, #menu
|
|
|
|
display: none
|