From d36f8f53de8fdfff701dda54402afefb8cadecac Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Tue, 22 Oct 2019 11:40:31 +0300 Subject: [PATCH] Demo update --- src/sass/App.scss | 63 ++++++++++++++++++++++++--- src/showcase/dataview/DataViewDemo.js | 55 +++++++++-------------- 2 files changed, 76 insertions(+), 42 deletions(-) diff --git a/src/sass/App.scss b/src/sass/App.scss index 9f25ed626f..e6c0d303f9 100644 --- a/src/sass/App.scss +++ b/src/sass/App.scss @@ -34,6 +34,12 @@ border-top-right-radius: $val; } +@mixin flex() { + display: -webkit-box; + display: -ms-flexbox; + display: flex; +} + body { margin: 0px; height: 100%; @@ -1213,19 +1219,50 @@ pre[class*="language-"] { /* Demos */ .dataview-demo { - .ui-button { - margin-top: 3em; - } + .p-dataview { + .car-details { + @include flex(); + justify-content: space-between; + align-items: center; + padding: 2em; + border-bottom: 1px solid #d9dad9; - .filter-container { - text-align: center; + & > div { + display: flex; + align-items: center; + + img { + margin-right: 14px; + } + } + } + + .car-detail { + padding: 0 1em 1em 1em; + border-bottom: 1px solid #d9dad9; + margin: 1em; + } + + .p-panel-content { + padding: 1em; + } } +} - .car-data > div { - padding: .429em; +@media (max-width: 1024px) { + .dataview-demo { + .p-dataview { + .car-details { + + img { + width: 75px; + } + } + } } } + .loading-text { display: block; background-color: #f1f1f1; @@ -1570,5 +1607,17 @@ pre[class*="language-"] { } } } + + .dataview-demo { + .p-dataview { + .car-details { + border-bottom-color: #191919; + } + + .car-detail { + border-bottom: 1px solid #191919; + } + } + } } } \ No newline at end of file diff --git a/src/showcase/dataview/DataViewDemo.js b/src/showcase/dataview/DataViewDemo.js index 5a1de8acdb..a428ae0ddb 100644 --- a/src/showcase/dataview/DataViewDemo.js +++ b/src/showcase/dataview/DataViewDemo.js @@ -51,21 +51,18 @@ export class DataViewDemo extends Component { renderListItem(car) { return ( -
-
-
+
+
+
{car.brand}/ +
+
Vin: {car.vin}
+
Year: {car.year}
+
Brand: {car.brand}
+
Color: {car.color}
+
-
-
Vin: {car.vin}
-
Year: {car.year}
-
Brand: {car.brand}
-
Color: {car.color}
-
- -
- -
+
); @@ -77,7 +74,6 @@ export class DataViewDemo extends Component { {car.brand}
{car.year} - {car.color}
-
@@ -667,27 +663,17 @@ export class DataViewDemo extends Component { renderListItem(car) { return ( -
-
- {car.brand}/ -
-
-
-
Vin:
-
{car.vin}
- -
Year:
-
{car.year}
- -
Brand:
-
{car.brand}
- -
Color:
-
{car.color}
+
+
+
+ {car.brand}/ +
+
Vin: {car.vin}
+
Year: {car.year}
+
Brand: {car.brand}
+
Color: {car.color}
+
-
- -
@@ -700,7 +686,6 @@ export class DataViewDemo extends Component { {car.brand}
{car.year} - {car.color}
-