about summary refs log tree commit diff
path: root/app/javascript/styles/mastodon/_mixins.scss
blob: 67d768a6c6e34413babf9a12a61ec0d8ea6dd209 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
@mixin avatar-radius() {
  border-radius: 4px;
  background: transparent no-repeat;
  background-position: 50%;
  background-clip: padding-box;
}

@mixin avatar-size($size:48px) {
  width: $size;
  height: $size;
  background-size: $size $size;
}