2023-02-28 08:29:30 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
2023-03-03 07:02:10 +00:00
|
|
|
<p>Scoped CSS allows overriding the styles of a particular PrimeVue component using <i>scoped</i> SFC style and <i>:deep</i>.</p>
|
2023-02-28 08:29:30 +00:00
|
|
|
</DocSectionText>
|
|
|
|
<div class="card">
|
2023-03-03 07:02:10 +00:00
|
|
|
<Panel header="Scoped Panel">
|
2023-02-28 08:29:30 +00:00
|
|
|
<p class="m-0">
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
|
|
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
|
|
</p>
|
|
|
|
</Panel>
|
|
|
|
</div>
|
2023-02-28 17:40:48 +00:00
|
|
|
<DocSectionCode :code="code1" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
|
2023-03-29 10:45:02 +00:00
|
|
|
<DocSectionCode :code="code2" hideToggleCode hideCodeSandbox hideStackBlitz />
|
2023-02-28 08:29:30 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code1: {
|
2023-09-22 12:54:14 +00:00
|
|
|
basic: `
|
|
|
|
<style scoped>
|
2023-03-03 07:02:10 +00:00
|
|
|
:deep(.p-panel .p-panel-header) {
|
|
|
|
background-color: var(--teal-500);
|
|
|
|
border-color: var(--teal-500);
|
2023-02-28 08:29:30 +00:00
|
|
|
color: #ffffff;
|
|
|
|
}
|
2023-03-03 07:02:10 +00:00
|
|
|
|
|
|
|
:deep(.p-panel .p-panel-content) {
|
|
|
|
border-color: var(--teal-500);
|
|
|
|
}
|
2023-02-28 08:29:30 +00:00
|
|
|
</style>
|
|
|
|
`
|
|
|
|
},
|
|
|
|
|
|
|
|
code2: {
|
2023-09-22 12:54:14 +00:00
|
|
|
basic: `
|
|
|
|
<template>
|
2023-03-03 07:02:10 +00:00
|
|
|
<Panel header="Scoped Panel">
|
2023-02-28 08:29:30 +00:00
|
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
|
|
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
|
|
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
|
|
|
|
cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
|
|
</Panel>
|
2023-03-02 12:23:54 +00:00
|
|
|
</template>`
|
2023-02-28 08:29:30 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
2023-03-03 07:02:10 +00:00
|
|
|
:deep(.p-panel .p-panel-header) {
|
|
|
|
background-color: var(--teal-500);
|
|
|
|
border-color: var(--teal-500);
|
2023-02-28 08:29:30 +00:00
|
|
|
color: #ffffff;
|
|
|
|
}
|
2023-03-03 07:02:10 +00:00
|
|
|
|
|
|
|
:deep(.p-panel .p-panel-content) {
|
|
|
|
border-color: var(--teal-500);
|
|
|
|
}
|
2023-02-28 08:29:30 +00:00
|
|
|
</style>
|