Sha256: 86a02798ccbfc3e04202dae9755d080cdeb8cc541c830e1ee70a166dc324b7e8

Contents?: true

Size: 621 Bytes

Versions: 1

Compression:

Stored size: 621 Bytes

Contents

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

  width: 40px;
  height: 40px;

  background: #fafafa;
  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%;

    background: #ccc;
    color: white;

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

    font-size: 11px;
    font-weight: 500;
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
trestle-0.8.8 app/assets/stylesheets/trestle/components/_avatar.scss