Browse Source

bandeau devis home + packs

ouidade 3 years ago
parent
commit
c8f59ec4b1

+ 8 - 6
user/themes/lecampus/css-compiled/theme.css

@@ -2611,6 +2611,9 @@ header nav.dropmenu > ul {
       #item .content .icones .icon p, #item-article .content .icones .icon p {
         text-align: center; }
 
+#devis.home .title {
+  visibility: hidden; }
+
 #devis {
   display: -webkit-inline-box;
   display: -ms-inline-flexbox;
@@ -2623,7 +2626,6 @@ header nav.dropmenu > ul {
   background-repeat: repeat;
   width: 100%; }
   #devis .title {
-    visibility: hidden;
     width: 200px;
     height: 200px;
     background: #9e0027;
@@ -2668,13 +2670,13 @@ header nav.dropmenu > ul {
         width: 100%;
         height: 100%; }
 
-#devis.item, #devis.sublog, #devis.item-article {
+#devis.item, #devis.sublog, #devis.item-article, #devis.nos-offres, #devis.nos-packs {
   background: #9e0027;
   height: auto;
   padding: 20px 0; }
-  #devis.item a, #devis.sublog a, #devis.item-article a {
+  #devis.item a, #devis.sublog a, #devis.item-article a, #devis.nos-offres a, #devis.nos-packs a {
     color: white; }
-    #devis.item a .title, #devis.sublog a .title, #devis.item-article a .title {
+    #devis.item a .title, #devis.sublog a .title, #devis.item-article a .title, #devis.nos-offres a .title, #devis.nos-packs a .title {
       vertical-align: baseline;
       border-radius: 30px;
       border: 1px solid white;
@@ -2683,9 +2685,9 @@ header nav.dropmenu > ul {
       width: auto;
       -webkit-transform: translateX(0);
       transform: translateX(0); }
-    #devis.item a:hover, #devis.sublog a:hover, #devis.item-article a:hover {
+    #devis.item a:hover, #devis.sublog a:hover, #devis.item-article a:hover, #devis.nos-offres a:hover, #devis.nos-packs a:hover {
       color: black; }
-      #devis.item a:hover .title, #devis.sublog a:hover .title, #devis.item-article a:hover .title {
+      #devis.item a:hover .title, #devis.sublog a:hover .title, #devis.item-article a:hover .title, #devis.nos-offres a:hover .title, #devis.nos-packs a:hover .title {
         background: white;
         transition: background 0.3s ease; }
 

+ 8 - 2
user/themes/lecampus/scss/theme/_blog.scss

@@ -1142,6 +1142,13 @@
     }
   }
 }
+#devis {
+  &.home{
+    .title{
+      visibility: hidden;
+    }
+  }
+}
 
 #devis{
   @include inlineflex();
@@ -1152,7 +1159,6 @@
   width: 100%;
   // height: 300px;
   .title{
-    visibility: hidden;
     width: 200px;
     height: 200px;
     background: $red;
@@ -1204,7 +1210,7 @@
 }
 
 #devis{
-  &.item, &.sublog, &.item-article{
+  &.item, &.sublog, &.item-article, &.nos-offres, &.nos-packs{
     background: $red;
     height: auto;
     padding: 20px 0;

+ 3 - 3
user/themes/lecampus/templates/partials/devis.html.twig

@@ -1,7 +1,7 @@
-{% set options = { items: {'@page.self': '/demande-de-devis'}, 'limit': 1 } %}
+{% set options = { items: {'@page.self': '/organisez-vos-evenements/demande-de-devis'}, 'limit': 1 } %}
 
 
-  {% for p in page.collection(options) %}
+  {% for p in page.collection(options)%}
     {% set image = p.media.images|first %}
     {% set h4 = h4 ?: 'h4' %}
 
@@ -20,7 +20,7 @@
           {% include 'partials/blog/block_devis.html.twig' %}
         </div>
       {% else %}
-      <a href="/demande-de-devis">
+      <a href="/organisez-vos-evenements/demande-de-devis">
         <div class="title">
           Faire une demande de devis en ligne
         </div>