1
0
mirror of https://github.com/tabler/tabler.git synced 2026-07-17 02:51:41 +04:00
Files
tabler/scss/ui/_avatars.scss
T
2019-05-08 22:42:37 +02:00

72 lines
1.0 KiB
SCSS

.avatar {
position: relative;
display: inline-block;
width: 2rem;
height: 2rem;
font-size: .875rem;
font-weight: 400;
line-height: 2rem;
color: $text-muted-light;
text-align: center;
text-transform: uppercase;
vertical-align: bottom;
user-select: none;
background: $body-bg no-repeat center/cover;
border-radius: 50%;
.icon {
font-size: 1.25em;
}
.badge {
position: absolute;
right: 0;
bottom: 0;
border-radius: 50%;
box-shadow: 0 0 0 2px white;
}
@at-root a#{&} {
cursor: pointer;
}
}
@each $avatar-size, $size in $avatar-sizes {
.avatar-#{$avatar-size} {
width: $size;
height: $size;
font-size: $size / 2;
line-height: $size;
}
}
.avatar-list {
padding: 0;
margin: 0 0 -.5rem;
font-size: 0;
.avatar {
margin-bottom: .5rem;
&:not(:last-child) {
margin-right: .5rem;
}
}
a.avatar {
&:hover {
z-index: 1;
}
}
}
.avatar-list-stacked {
.avatar {
margin-right: -.5em !important;
box-shadow: 0 0 0 2px #fff;
}
}