]> git.parisson.com Git - mezzo.git/commitdiff
Event cart fix
authorPhilippe Barbosa <contact@philippebarbosa.com>
Mon, 11 Apr 2016 15:31:57 +0000 (17:31 +0200)
committerPhilippe Barbosa <contact@philippebarbosa.com>
Mon, 11 Apr 2016 15:31:57 +0000 (17:31 +0200)
app/festival/static/scss/modules/event-card.scss
app/festival/static/scss/modules/share-links.scss
app/templates/includes/share_buttons.html

index 5200ffe15427ab4bd7294b76eab54acca3623671..363830391174d4fb49afb67d26e69c83e1723b76 100644 (file)
@@ -2,20 +2,21 @@
   padding: 0.5rem;
   background: $white;
   margin-bottom: 1rem;
-  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.4);
   transition: .3s;
   box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.4);
-  @extend .row;
+  display: block;
+  float: left;
+  width: 100%;
   &--alt {
     @extend .event__card;
     background: $main_color_alt;
     color: white;
   }
 
-  @media (min-width : $desktop ) {
-      float: left;
-      width: 31%;
-      margin: 0 .5rem 1rem .5rem;
+  @media (min-width : $tablet ) {
+      // float: left;
+      // width: 31%;
+      // margin: 0 .5rem 1rem .5rem;
       &:hover {
         box-shadow: 0px 1px 15px 0px rgba(0, 0, 0, 0.8);
         transform: scale(1.01);
index 7d0c9e4fd021b26184e2453d964936bfa515ceed..84225a323ed744d6ad246b4ad43e32e32c365c91 100644 (file)
@@ -7,11 +7,25 @@
   // border-top: 1px solid darken($main_color, 25);
   // border-bottom: 1px solid darken($main_color, 25);
   list-style: none;
+  @media (min-width : $desktop ) {
+    display: block;
+    padding: 0;
+    li {
+        display: inline-block;
+        *display: inline;
+        *zoom: 1;
+        text-align: center;
+        vertical-align: middle;
+        padding: 0 ($base_font_size / 2);
+        margin-left: -0.33333em;
+    }
+  }
 }
 
 .share__link__item {
   text-transform: uppercase;
   margin-right: 1rem;
+  display: block;
   .icon {
     color: darken($main_color, 25);
     font-size: 1.1rem;
index 81d1856c6b6f6fd8142dc4405ba918c0324599c3..96b499e25cd224de8c772fa91e08b4ae635d4a9e 100644 (file)
@@ -1,6 +1,6 @@
 {% load i18n %}
 
-<ul class="share__links list-inline">
+<ul class="share__links">
     <li>
         <a class="share__link__item  share-facebook" target="_blank" href="http://facebook.com/sharer.php?u={{ request.build_absolute_uri }}&amp;t={{ object.title|urlencode }}"><i class="icon icon__facebook"></i> {% trans "Share on Facebook" %}</a>
     </li>