From 68a89c7903d563c9040292765802eb26e9718927 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Tue, 30 Jun 2020 15:32:48 +0300 Subject: [PATCH] Templating demo --- .../datatable/DataTableTemplatingDemo.vue | 172 +++++++++++++----- 1 file changed, 130 insertions(+), 42 deletions(-) diff --git a/src/views/datatable/DataTableTemplatingDemo.vue b/src/views/datatable/DataTableTemplatingDemo.vue index 829d678d8..d3a730d56 100755 --- a/src/views/datatable/DataTableTemplatingDemo.vue +++ b/src/views/datatable/DataTableTemplatingDemo.vue @@ -9,35 +9,42 @@
- + - - - - @@ -126,4 +185,33 @@ export default { align-items: center; justify-content: space-between; } + +.product-badge { + border-radius: 2px; + padding: .25em .5rem; + text-transform: uppercase; + font-weight: 700; + font-size: 12px; + letter-spacing: .3px; + + &.status-instock { + background: #C8E6C9; + color: #256029; + } + + &.status-outofstock { + background: #FFCDD2; + color: #C63737; + } + + &.status-lowstock { + background: #FEEDAF; + color: #8A5340; + } +} + +.product-image { + width: 100px; + box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23) +} \ No newline at end of file