Fixed #6822 - Better compat with CSS libraires like Tailwind, Bootstrap
parent
70f90968c6
commit
0fb5e0a504
|
@ -2,6 +2,7 @@ html {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-family: "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
font-family: "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
||||||
font-feature-settings: "cv02", "cv03", "cv04", "cv11";
|
font-feature-settings: "cv02", "cv03", "cv04", "cv11";
|
||||||
|
line-height: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.material {
|
.material {
|
||||||
|
@ -33,7 +34,12 @@ a {
|
||||||
color: var(--selection-text-color);
|
color: var(--selection-text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
margin-block: 1.5rem 1rem;
|
margin-block: 1.5rem 1rem;
|
||||||
margin-inline: 0;
|
margin-inline: 0;
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
|
@ -86,13 +92,6 @@ button {
|
||||||
font-feature-settings: inherit;
|
font-feature-settings: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
*,
|
|
||||||
::before,
|
|
||||||
::after {
|
|
||||||
border-width: 0;
|
|
||||||
border-style: solid;
|
|
||||||
}
|
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
resize: none;
|
resize: none;
|
||||||
}
|
}
|
|
@ -21,7 +21,7 @@
|
||||||
tableStyle="min-width: 50rem"
|
tableStyle="min-width: 50rem"
|
||||||
>
|
>
|
||||||
<template #groupheader="slotProps">
|
<template #groupheader="slotProps">
|
||||||
<img :alt="slotProps.data.representative.name" :src="`https://primefaces.org/cdn/primevue/images/avatar/${slotProps.data.representative.image}`" width="32" style="vertical-align: middle" class="ml-2" />
|
<img :alt="slotProps.data.representative.name" :src="`https://primefaces.org/cdn/primevue/images/avatar/${slotProps.data.representative.image}`" width="32" style="vertical-align: middle; display: inline-block" class="ml-2" />
|
||||||
<span class="align-middle ml-2 font-bold leading-normal">{{ slotProps.data.representative.name }}</span>
|
<span class="align-middle ml-2 font-bold leading-normal">{{ slotProps.data.representative.name }}</span>
|
||||||
</template>
|
</template>
|
||||||
<Column field="representative.name" header="Representative"></Column>
|
<Column field="representative.name" header="Representative"></Column>
|
||||||
|
@ -64,7 +64,7 @@ export default {
|
||||||
expandableRowGroups rowGroupMode="subheader" groupRowsBy="representative.name" @rowgroup-expand="onRowGroupExpand" @rowgroup-collapse="onRowGroupCollapse"
|
expandableRowGroups rowGroupMode="subheader" groupRowsBy="representative.name" @rowgroup-expand="onRowGroupExpand" @rowgroup-collapse="onRowGroupCollapse"
|
||||||
sortMode="single" sortField="representative.name" :sortOrder="1">
|
sortMode="single" sortField="representative.name" :sortOrder="1">
|
||||||
<template #groupheader="slotProps">
|
<template #groupheader="slotProps">
|
||||||
<img :alt="slotProps.data.representative.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${slotProps.data.representative.image}\`" width="32" style="vertical-align: middle" class="ml-2" />
|
<img :alt="slotProps.data.representative.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${slotProps.data.representative.image}\`" width="32" style="vertical-align: middle; display: inline-block" class="ml-2" />
|
||||||
<span class="align-middle ml-2 font-bold leading-normal">{{ slotProps.data.representative.name }}</span>
|
<span class="align-middle ml-2 font-bold leading-normal">{{ slotProps.data.representative.name }}</span>
|
||||||
</template>
|
</template>
|
||||||
<Column field="representative.name" header="Representative"></Column>
|
<Column field="representative.name" header="Representative"></Column>
|
||||||
|
@ -96,7 +96,7 @@ export default {
|
||||||
expandableRowGroups rowGroupMode="subheader" groupRowsBy="representative.name" @rowgroup-expand="onRowGroupExpand" @rowgroup-collapse="onRowGroupCollapse"
|
expandableRowGroups rowGroupMode="subheader" groupRowsBy="representative.name" @rowgroup-expand="onRowGroupExpand" @rowgroup-collapse="onRowGroupCollapse"
|
||||||
sortMode="single" sortField="representative.name" :sortOrder="1">
|
sortMode="single" sortField="representative.name" :sortOrder="1">
|
||||||
<template #groupheader="slotProps">
|
<template #groupheader="slotProps">
|
||||||
<img :alt="slotProps.data.representative.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${slotProps.data.representative.image}\`" width="32" style="vertical-align: middle" class="ml-2" />
|
<img :alt="slotProps.data.representative.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${slotProps.data.representative.image}\`" width="32" style="vertical-align: middle; display: inline-block" class="ml-2" />
|
||||||
<span class="align-middle ml-2 font-bold leading-normal">{{ slotProps.data.representative.name }}</span>
|
<span class="align-middle ml-2 font-bold leading-normal">{{ slotProps.data.representative.name }}</span>
|
||||||
</template>
|
</template>
|
||||||
<Column field="representative.name" header="Representative"></Column>
|
<Column field="representative.name" header="Representative"></Column>
|
||||||
|
@ -186,7 +186,7 @@ export default {
|
||||||
expandableRowGroups rowGroupMode="subheader" groupRowsBy="representative.name" @rowgroup-expand="onRowGroupExpand" @rowgroup-collapse="onRowGroupCollapse"
|
expandableRowGroups rowGroupMode="subheader" groupRowsBy="representative.name" @rowgroup-expand="onRowGroupExpand" @rowgroup-collapse="onRowGroupCollapse"
|
||||||
sortMode="single" sortField="representative.name" :sortOrder="1">
|
sortMode="single" sortField="representative.name" :sortOrder="1">
|
||||||
<template #groupheader="slotProps">
|
<template #groupheader="slotProps">
|
||||||
<img :alt="slotProps.data.representative.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${slotProps.data.representative.image}\`" width="32" style="vertical-align: middle" class="ml-2" />
|
<img :alt="slotProps.data.representative.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${slotProps.data.representative.image}\`" width="32" style="vertical-align: middle; display: inline-block" class="ml-2" />
|
||||||
<span class="align-middle ml-2 font-bold leading-normal">{{ slotProps.data.representative.name }}</span>
|
<span class="align-middle ml-2 font-bold leading-normal">{{ slotProps.data.representative.name }}</span>
|
||||||
</template>
|
</template>
|
||||||
<Column field="representative.name" header="Representative"></Column>
|
<Column field="representative.name" header="Representative"></Column>
|
||||||
|
|
|
@ -33,7 +33,6 @@
|
||||||
<Tag :value="slotProps.data.status" :severity="getSeverity(slotProps.data.status)" />
|
<Tag :value="slotProps.data.status" :severity="getSeverity(slotProps.data.status)" />
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="date" header="Date" style="min-width: 100px"></Column>
|
|
||||||
</DataTable>
|
</DataTable>
|
||||||
</div>
|
</div>
|
||||||
</DeferredDemo>
|
</DeferredDemo>
|
||||||
|
@ -79,7 +78,6 @@ export default {
|
||||||
<Tag :value="slotProps.data.status" :severity="getSeverity(slotProps.data.status)" />
|
<Tag :value="slotProps.data.status" :severity="getSeverity(slotProps.data.status)" />
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="date" header="Date" style="min-width: 100px"></Column>
|
|
||||||
</DataTable>
|
</DataTable>
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
|
@ -114,7 +112,6 @@ export default {
|
||||||
<Tag :value="slotProps.data.status" :severity="getSeverity(slotProps.data.status)" />
|
<Tag :value="slotProps.data.status" :severity="getSeverity(slotProps.data.status)" />
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="date" header="Date" style="min-width: 100px"></Column>
|
|
||||||
</DataTable>
|
</DataTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -186,7 +183,6 @@ export default {
|
||||||
<Tag :value="slotProps.data.status" :severity="getSeverity(slotProps.data.status)" />
|
<Tag :value="slotProps.data.status" :severity="getSeverity(slotProps.data.status)" />
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="date" header="Date" style="min-width: 100px"></Column>
|
|
||||||
</DataTable>
|
</DataTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2,9 +2,6 @@
|
||||||
const primeui = require('tailwindcss-primeui');
|
const primeui = require('tailwindcss-primeui');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
corePlugins: {
|
|
||||||
preflight: false
|
|
||||||
},
|
|
||||||
darkMode: ['selector', '[class="p-dark"]'],
|
darkMode: ['selector', '[class="p-dark"]'],
|
||||||
content: ['./pages/**/*.vue', './layouts/**/*.vue', './components/**/*.{js,vue,ts}', './doc/**/*.{js,vue,ts}', './error.vue'],
|
content: ['./pages/**/*.vue', './layouts/**/*.vue', './components/**/*.{js,vue,ts}', './doc/**/*.{js,vue,ts}', './error.vue'],
|
||||||
plugins: [primeui],
|
plugins: [primeui],
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
"build:showcase": "pnpm --filter showcase build",
|
"build:showcase": "pnpm --filter showcase build",
|
||||||
"build:apidoc": "pnpm --filter themes build:tokens && pnpm --filter showcase build:apidoc",
|
"build:apidoc": "pnpm --filter themes build:tokens && pnpm --filter showcase build:apidoc",
|
||||||
"dev": "pnpm --filter showcase dev",
|
"dev": "pnpm --filter showcase dev",
|
||||||
|
"preview": "pnpm --filter showcase preview",
|
||||||
"hot:dev": "DEV_ENV=hot pnpm --filter showcase dev",
|
"hot:dev": "DEV_ENV=hot pnpm --filter showcase dev",
|
||||||
"module:dev": "pnpm --filter @primevue/nuxt-module dev",
|
"module:dev": "pnpm --filter @primevue/nuxt-module dev",
|
||||||
"security:check": "pnpm audit --prod --audit-level high",
|
"security:check": "pnpm audit --prod --audit-level high",
|
||||||
|
|
|
@ -3,7 +3,9 @@ import { isNotEmpty, minifyCSS, resolve } from '@primeuix/utils/object';
|
||||||
import { useStyle } from '@primevue/core/usestyle';
|
import { useStyle } from '@primevue/core/usestyle';
|
||||||
|
|
||||||
const theme = ({ dt }) => `
|
const theme = ({ dt }) => `
|
||||||
* {
|
*,
|
||||||
|
::before,
|
||||||
|
::after {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ const theme = ({ dt }) => `
|
||||||
|
|
||||||
.p-datatable-table {
|
.p-datatable-table {
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
|
border-collapse: separate;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -68,6 +68,7 @@ const theme = ({ dt }) => `
|
||||||
inset-inline-end: ${dt('form.field.padding.x')};
|
inset-inline-end: ${dt('form.field.padding.x')};
|
||||||
margin-block-start: calc(-1 * (${dt('icon.size')} / 2));
|
margin-block-start: calc(-1 * (${dt('icon.size')} / 2));
|
||||||
color: ${dt('datepicker.input.icon.color')};
|
color: ${dt('datepicker.input.icon.color')};
|
||||||
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-datepicker-fluid {
|
.p-datepicker-fluid {
|
||||||
|
|
|
@ -7,6 +7,7 @@ const theme = ({ dt }) => `
|
||||||
|
|
||||||
.p-treetable-table {
|
.p-treetable-table {
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
|
border-collapse: separate;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -90,21 +90,21 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-checkbox {
|
.p-checkbox {
|
||||||
|
--p-md-check-icon-t: 10px;
|
||||||
|
--p-md-check-icon-w: 6px;
|
||||||
|
--p-md-check-icon-h: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.p-checkbox-sm {
|
||||||
--p-md-check-icon-t: 8px;
|
--p-md-check-icon-t: 8px;
|
||||||
--p-md-check-icon-w: 4px;
|
--p-md-check-icon-w: 4px;
|
||||||
--p-md-check-icon-h: 10px;
|
--p-md-check-icon-h: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-checkbox-sm {
|
|
||||||
--p-md-check-icon-t: 6px;
|
|
||||||
--p-md-check-icon-w: 2px;
|
|
||||||
--p-md-check-icon-h: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.p-checkbox-lg {
|
.p-checkbox-lg {
|
||||||
--p-md-check-icon-t: 10px;
|
--p-md-check-icon-t: 12px;
|
||||||
--p-md-check-icon-w: 6px;
|
--p-md-check-icon-w: 8px;
|
||||||
--p-md-check-icon-h: 14px;
|
--p-md-check-icon-h: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes p-md-check {
|
@keyframes p-md-check {
|
||||||
|
|
Loading…
Reference in New Issue