mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #4530 - Export styles of all components
This commit is contained in:
parent
7b6d458067
commit
dc2913e887
463 changed files with 10696 additions and 9670 deletions
55
components/lib/avatar/style/AvatarStyle.js
Normal file
55
components/lib/avatar/style/AvatarStyle.js
Normal file
|
@ -0,0 +1,55 @@
|
|||
import BaseStyle from 'primevue/base/style';
|
||||
|
||||
const css = `
|
||||
@layer primevue {
|
||||
.p-avatar {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.p-avatar.p-avatar-image {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.p-avatar.p-avatar-circle {
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.p-avatar-circle img {
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.p-avatar .p-avatar-icon {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.p-avatar img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
const classes = {
|
||||
root: ({ props }) => [
|
||||
'p-avatar p-component',
|
||||
{
|
||||
'p-avatar-image': props.image != null,
|
||||
'p-avatar-circle': props.shape === 'circle',
|
||||
'p-avatar-lg': props.size === 'large',
|
||||
'p-avatar-xl': props.size === 'xlarge'
|
||||
}
|
||||
],
|
||||
label: 'p-avatar-text',
|
||||
icon: 'p-avatar-icon'
|
||||
};
|
||||
|
||||
export default BaseStyle.extend({
|
||||
name: 'avatar',
|
||||
css,
|
||||
classes
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue