123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- *{
- box-sizing: border-box;
- }
- html, body{
- background: #f9f9f9fe;
- }
- body{
- #start{
- width: $Wi80;
- margin: $marg auto auto $marg;
- #text_figli{
- p {
- a{
- // position: relative;
- &.marg{
- margin-right: $marg;
- }
- }
- }
- #item_list{
- width: 80vw;
- margin-top: 0.5rem;
- position: relative;
- .card{
- width: calc((100% / 5) - ( #{$marg} * 2) );
- display: inline-block;
- vertical-align: top;
- position: relative;
- margin: 0 $marg $marg 0;
- height: 100%;
- & > .card-image{
- &.open{
- a{
- img{
- filter: grayscale(0);
- transition: filter 0.3s ease;
- }
- }
- }
- }
- a{
- display: block;
- border-radius: 5px;
- overflow: auto;
- img{
- filter: grayscale(1);
- transition: filter 0.3s ease;
- }
- }
- .card-header{
- width: 100%;
- padding: $marg;
- flex-wrap: wrap;
- display: none;
- border-bottom-left-radius: 5px;
- border-bottom-right-radius: 5px;
- & > *{
- font-size: 0.8rem;
- line-height: 1rem;
- margin-right: $marg;
- }
- }
- &:hover{
- a{
- display: block;
- img{
- filter: grayscale(0);
- transition: filter 0.3s ease;
- }
- }
- .card-header{
- display: inline-flex;
- position: absolute;
- // transform: translateY(-100%);
- bottom: 0;
- }
- }
- &:last-of-type{
- vertical-align: baseline!important;
- }
- #item{
- width: calc( 500% + ( #{$marg} * 4) );
- padding: 2rem;
- margin-top: $marg;
- border-radius: 5px;
- .content-title{
- margin: 0 auto 0 auto;
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- align-items: baseline;
- a{
- display: block;
- }
- }
- .e-content{
- margin: 1rem auto 2rem auto;
- p{
- font-size: 1rem;
- line-height: 1.2rem;
- }
- }
- &.publique{
- background: $color_publique;
- }
- &.sociale{
- background: $color_sociale;
- }
- &.culturelle{
- background: $color_culturelle;
- }
- }
- }
- &.publique{
- .card{
- &:hover{
- .card-header{
- background: $color_publique;
- }
- }
- }
- }
- &.sociale{
- .card{
- &:hover{
- .card-header{
- background: $color_sociale;
- }
- }
- }
- }
- &.culturelle{
- .card{
- &:hover{
- .card-header{
- background: $color_culturelle;
- }
- }
- }
- }
- &.commanditaires{
- flex-direction: column;
- }
- }
- }
- }
- &:not(.home){
- #start{
- margin-top: calc( 2rem + #{$Flhome});
- }
- }
- }
- #icone_list{
- z-index: 999;
- position: absolute;
- top: -60px;
- right: 20px;
- .hamburger{
- padding: 0.8rem;
- padding-right: 2rem;
- .hamburger-box{
- width: 30px;
- .hamburger-inner{
- height: 2px;
- width: 30px;
- &::before{
- width: 20px;
- height: inherit;
- }
- &::after{
- height: inherit;
- width: inherit;
- }
- }
- }
- }
- }
|