Refactor on dataview demo and doc
parent
2f23827e25
commit
ff1dcbabfc
|
@ -40,7 +40,6 @@
|
|||
<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>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
</CodeHighlight>
|
||||
</TabPanel>
|
||||
</TabView>
|
||||
|
|
Loading…
Reference in New Issue