/*
Copyright 2022 New Vector Ltd

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

.avatar {
  position: relative;
  color: var(--primary-content);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-weight: 600;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar svg * {
  fill: var(--primary-content);
}

.avatar span {
  padding-top: 1px;
}

.xs {
  width: 22px;
  height: 22px;
  border-radius: 22px;
  font-size: 14px;
}

.sm {
  width: 32px;
  height: 32px;
  border-radius: 32px;
  font-size: 15px;
}

.md {
  width: 36px;
  height: 36px;
  border-radius: 36px;
  font-size: 20px;
}

.lg {
  width: 42px;
  height: 42px;
  border-radius: 42px;
  font-size: 24px;
}

.xl {
  width: 90px;
  height: 90px;
  border-radius: 90px;
  font-size: 48px;
}
