]> _ Git - pmi.git/commitdiff
wip #2281 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 11 Jul 2019 15:56:59 +0000 (17:56 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 11 Jul 2019 15:56:59 +0000 (17:56 +0200)
resources/styles/components/product-details.styl [new file with mode: 0644]
resources/views/pages/product-detail.blade.php

diff --git a/resources/styles/components/product-details.styl b/resources/styles/components/product-details.styl
new file mode 100644 (file)
index 0000000..23da060
--- /dev/null
@@ -0,0 +1,24 @@
+.template-product-detail {
+  dl {
+    display: block;
+    width: 100%
+
+    div {
+      display: block;
+      line-height: 2.3;
+
+      dt, dd {
+        display: inline-block;
+      }
+      dt {
+        width: 60%;
+        max-width: 400px;
+      }
+
+      dd {
+        width: 40%;
+        max-width: 400px;
+      }
+    }
+  }
+}
index 5101d434b1e20dc6858d06893611e3b19035c585..4499bfda569ff72a063951e765789ea50831e0f2 100644 (file)
                 <tab name="{{ __('Spécifications') }}">
                     <dl>
                         @foreach($product->getEntity()->getSpecificationsValues() as $title=>$value)
-                            <dt>{{$title}}</dt>
-                            <dd>{{$value}}</dd>
+                            <div>
+                                <dt>{{$title}}</dt>
+                                <dd>{{$value}}</dd>
+                            </div>
                         @endforeach
                     </dl>
                 </tab>