mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-28 17:13:31 +01:00
41 lines
643 B
SCSS
41 lines
643 B
SCSS
// user avatars
|
|
.avatar {
|
|
border-radius: 100%;
|
|
position: relative;
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
text-align: center;
|
|
overflow: hidden;
|
|
width: 50px;
|
|
height: 50px;
|
|
|
|
img {
|
|
position: absolute;
|
|
z-index: 2;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
border: 0;
|
|
}
|
|
|
|
&.small {
|
|
vertical-align: middle;
|
|
margin: 0 0.5em;
|
|
width: 25px;
|
|
height: 25px;
|
|
}
|
|
|
|
&.large {
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
|
|
&.square {
|
|
border-radius: 0;
|
|
|
|
&:before {
|
|
border-radius: 0;
|
|
}
|
|
}
|
|
}
|