From cac87227272eb497906293d8eaf04cb6903a3b1c Mon Sep 17 00:00:00 2001 From: Stephen Cameron Date: Mon, 9 Sep 2019 10:21:30 +0200 Subject: [PATCH] Done #3006 @0.25 --- .../styles/components/product-details.styl | 36 +++++++++---------- .../views/pages/product-detail.blade.php | 2 +- webpack.mix.js | 4 +-- 3 files changed, 19 insertions(+), 23 deletions(-) diff --git a/resources/styles/components/product-details.styl b/resources/styles/components/product-details.styl index 23da060..5b2ef4c 100644 --- a/resources/styles/components/product-details.styl +++ b/resources/styles/components/product-details.styl @@ -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 diff --git a/resources/views/pages/product-detail.blade.php b/resources/views/pages/product-detail.blade.php index 2dac6ff..605c2ab 100644 --- a/resources/views/pages/product-detail.blade.php +++ b/resources/views/pages/product-detail.blade.php @@ -67,7 +67,7 @@ @if ($product->specifications) -
+
@foreach($product->getEntity()->getSpecificationsValues() as $title => $value)
{{ $title }}
diff --git a/webpack.mix.js b/webpack.mix.js index 08cff73..3f9b808 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -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'); -- 2.39.5