Sha256: a5249333008fa1e2717b5a09ccc7111b70fb0e7c6cf4254dbde6e634b000802b

Contents?: true

Size: 788 Bytes

Versions: 4

Compression:

Stored size: 788 Bytes

Contents

.avatar {
  display: inline-block;
  position: relative;

  width: 40px;
  height: 40px;

  background: #ccc;
  border-radius: 50%;
  box-shadow: rgba(black, 0.25) 0 1px 0;

  img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    border-radius: 50%;

    position: relative;
    z-index: 1;
  }

  .avatar-fallback {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    border-radius: 50%;

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 0.8rem;
    font-weight: 500;
  }
}

.avatar-sm {
  width: 24px !important;
  height: 24px !important;
}

.avatar-lg {
  width: 64px !important;
  height: 64px !important;

  .avatar-fallback {
    font-size: 1.5rem;
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
trestle-0.10.0.pre frontend/css/components/_avatar.scss
trestle-0.9.8 frontend/css/components/_avatar.scss
trestle-0.9.7 frontend/css/components/_avatar.scss
trestle-0.9.6 frontend/css/components/_avatar.scss