diff --git a/src/views/dataview/DataViewDemo.vue b/src/views/dataview/DataViewDemo.vue index 7fd7940b9..a2ea7ba44 100644 --- a/src/views/dataview/DataViewDemo.vue +++ b/src/views/dataview/DataViewDemo.vue @@ -40,7 +40,6 @@
{{slotProps.data.year}} - {{slotProps.data.color}}
-
@@ -123,15 +122,38 @@ export default { } } } + + .car-detail { + padding: 0 1em 1em 1em; + border-bottom: 1px solid #d9dad9; + margin: 1em; + } + + .p-panel-content { + padding: 1em; + } } + @media (max-width: 1024px) { .p-dataview { .car-details { - img { width: 75px; } } } } + +/* Dark Theme such as luna-amber, luna-blue, luna-green and luna-pink */ +.dark-theme { + .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/views/dataview/DataViewDoc.vue b/src/views/dataview/DataViewDoc.vue index 18a71cf5a..83bb54802 100644 --- a/src/views/dataview/DataViewDoc.vue +++ b/src/views/dataview/DataViewDoc.vue @@ -58,7 +58,6 @@ export default { <Panel :header="slotProps.data.vin" style="text-align: center"> <img :src="'demo/images/car/' + slotProps.data.brand + '.png'" :alt="slotProps.data.brand"/> <div class="car-detail">{{slotProps.data.year}} - {{slotProps.data.color}}</div> - <hr class="ui-widget-content" style="border-top: 0" /> <Button icon="pi pi-search"></Button> </Panel> </div> @@ -444,7 +443,6 @@ export default { <Panel :header="slotProps.data.vin" style="text-align: center"> <img :src="'demo/images/car/' + slotProps.data.brand + '.png'" :alt="slotProps.data.brand"/> <div class="car-detail">{{slotProps.data.year}} - {{slotProps.data.color}}</div> - <hr class="ui-widget-content" style="border-top: 0" /> <Button icon="pi pi-search"></Button> </Panel> </div> @@ -520,18 +518,40 @@ export default { } } } + + .car-detail { + padding: 0 1em 1em 1em; + border-bottom: 1px solid #d9dad9; + margin: 1em; + } + + .p-panel-content { + padding: 1em; + } } @media (max-width: 1024px) { .p-dataview { .car-details { - img { width: 75px; } } } } + +/* Dark Theme such as luna-amber, luna-blue, luna-green and luna-pink */ +.dark-theme { + .p-dataview { + .car-details { + border-bottom-color: #191919; + } + + .car-detail { + border-bottom: 1px solid #191919; + } + } +}