primevue-mirror/components/lib/theme/aura/avatar/index.js

85 lines
1.4 KiB
JavaScript
Raw Normal View History

2024-02-07 21:06:00 +00:00
export default {
2024-02-12 15:03:19 +00:00
variables: {
colorScheme: {
light: {
root: {
background: '{surface.200}',
borderColor: '{surface.0}'
}
},
dark: {
root: {
background: '{surface.700}',
borderColor: '{surface.900}'
}
}
}
},
2024-02-07 21:06:00 +00:00
css: `
.p-avatar {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
font-size: 1rem;
2024-02-12 15:03:19 +00:00
background: var(--p-avatar-background);
border-radius: var(--p-rounded-base);
2024-02-07 21:06:00 +00:00
}
.p-avatar-image {
background-color: transparent;
}
.p-avatar-circle {
border-radius: 50%;
}
.p-avatar-circle img {
border-radius: 50%;
}
.p-avatar-icon {
font-size: 1rem;
}
.p-avatar img {
width: 100%;
height: 100%;
}
.p-avatar-lg {
width: 3rem;
height: 3rem;
font-size: 1.5rem;
}
.p-avatar-lg .p-avatar-icon {
font-size: 1.5rem;
}
.p-avatar-xl {
width: 4rem;
height: 4rem;
font-size: 2rem;
}
.p-avatar-xl .p-avatar-icon {
font-size: 2rem;
}
.p-avatar-group {
display: flex;
align-items: center;
}
.p-avatar-group .p-avatar + .p-avatar {
margin-left: -1rem;
}
.p-avatar-group .p-avatar {
2024-02-12 15:03:19 +00:00
border: 2px solid var(--p-avatar-border-color);
2024-02-10 08:57:04 +00:00
}
2024-02-07 21:06:00 +00:00
`
};