1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-22 01:44:25 +04:00
Files
tabler/scss/ui/_avatars.scss
2019-04-30 11:10:01 +02:00

73 lines
1.1 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;
}
@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-status {
position: absolute;
right: -2px;
bottom: -2px;
width: .75rem;
height: .75rem;
background: #98a9bc;
border: 2px solid #fff;
border-radius: 50%;
}
.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;
}
}