]> _ Git - pmi.git/commitdiff
Done #3006 @0.25
authorStephen Cameron <stephen@cubedesigners.com>
Mon, 9 Sep 2019 08:21:30 +0000 (10:21 +0200)
committerStephen Cameron <stephen@cubedesigners.com>
Mon, 9 Sep 2019 08:21:30 +0000 (10:21 +0200)
resources/styles/components/product-details.styl
resources/views/pages/product-detail.blade.php
webpack.mix.js

index 23da0601f7b3e976388c3766aaf441c44bfacb0d..5b2ef4c4fc630b2f20657caa323f40da4a040f46 100644 (file)
@@ -1,24 +1,20 @@
-.template-product-detail {
-  dl {
-    display: block;
+.product-detail
+
+  &-specifications
+    display: block
     width: 100%
 
-    div {
-      display: block;
-      line-height: 2.3;
+    div
+      display: block
+      line-height: 2.3
+
+      dt, dd
+        display: inline-block
 
-      dt, dd {
-        display: inline-block;
-      }
-      dt {
-        width: 60%;
-        max-width: 400px;
-      }
+      dt
+        width: 60%
+        max-width: 400px
 
-      dd {
-        width: 40%;
-        max-width: 400px;
-      }
-    }
-  }
-}
+      dd
+        width: 40%
+        max-width: 400px
index 2dac6ff6f69cef56ac2199b579a5949c9ccc7b37..605c2ab8a660284a5945db55883b37c48ebc3536 100644 (file)
@@ -67,7 +67,7 @@
 
             @if ($product->specifications)
                 <tab name="{{ __('Spécifications') }}">
-                    <dl>
+                    <dl class="product-detail-specifications">
                         @foreach($product->getEntity()->getSpecificationsValues() as $title => $value)
                             <div>
                                 <dt>{{ $title }}</dt>
index 08cff7342ac5b9c31ceefbddc3315edb1c807dd0..3f9b8088d32e26ae7e5a93443c44e759dbc61b73 100644 (file)
@@ -47,8 +47,8 @@ mix.js('resources/js/app.js', 'public/js')
             path.join(__dirname, 'vendor/cubist/**/*.php'), // Some classes (eg. nav) might be present only here
         ],
         // Don't purge the grid-* custom classes since they can be used dynamically
-        // Also protect MMenu classes
-        whitelistPatterns: [/mm.*/, /grid-.*/],
+        // Also protect dynamic page template and MMenu classes
+        whitelistPatterns: [/template-.*/, /mm.*/, /grid-.*/],
     });
 
 mix.js('resources/js/mailform.js', 'public/js');