Skip to content
Extraits de code Groupes Projets
accounts.scss 9,24 ko
Newer Older
  • Learn to ignore specific revisions
  •   background-color: lighten($ui-base-color, 4%);
    
      background-position: center;
    
      box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
    
      overflow: hidden;
      position: relative;
    
      display: flex;
    
        background: rgba(darken($ui-base-color, 8%), 0.5);
    
        display: block;
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
      }
    
      @media screen and (max-width: 740px) {
        border-radius: 0;
        box-shadow: none;
      }
    
      .card__illustration {
        padding: 60px 0;
        position: relative;
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
        align-items: center;
      }
    
      .card__bio {
        max-width: 260px;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: rgba(darken($ui-base-color, 8%), 0.8);
        position: relative;
        z-index: 2;
      }
    
    
      &.compact {
        padding: 30px 0;
        border-radius: 4px;
    
        .avatar {
          margin-bottom: 0;
    
        font-size: 20px;
        line-height: 18px * 1.5;
    
        color: $primary-text-color;
    
        padding: 10px 15px;
        padding-bottom: 0;
    
        position: relative;
        z-index: 2;
    
        margin-bottom: 30px;
    
          color: $ui-highlight-color;
    
        position: relative;
        z-index: 2;
    
          box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
    
      .controls {
        position: absolute;
    
        top: 15px;
        left: 15px;
    
    
        .icon-button {
          color: rgba($white, 0.8);
          text-decoration: none;
          font-size: 13px;
          line-height: 13px;
          font-weight: 500;
    
          .fa {
            font-weight: 400;
            margin-right: 5px;
          }
    
          &:hover,
          &:active,
          &:focus {
            color: $white;
          }
        }
    
      .roles {
        margin-bottom: 30px;
        padding: 0 15px;
    
      }
    
      .details-counters {
    
        margin-top: 30px;
    
        display: flex;
        flex-direction: row;
    
        width: 100%;
    
        width: 33.3%;
        box-sizing: border-box;
        flex: 0 0 auto;
    
        color: $ui-primary-color;
    
        padding: 5px 10px 0;
    
        border-right: 1px solid lighten($ui-base-color, 4%);
    
        text-align: center;
    
        &:last-child {
          border-right: 0;
        }
    
    
          display: block;
          content: "";
          position: absolute;
          bottom: -10px;
          left: 0;
          width: 100%;
    
          border-bottom: 4px solid $ui-primary-color;
    
          transition: all 400ms ease;
    
            border-bottom: 4px solid $ui-highlight-color;
    
            transition-duration: 100ms;
    
          }
        }
    
        a {
          text-decoration: none;
          color: inherit;
        }
    
    
        .counter-label {
          font-size: 12px;
          display: block;
          margin-bottom: 5px;
        }
    
        .counter-number {
          font-weight: 500;
          font-size: 18px;
    
          color: $primary-text-color;
    
          font-family: 'mastodon-font-display', sans-serif;
    
        padding: 0 15px;
    
        color: $ui-secondary-color;
    
      @media screen and (max-width: 480px) {
    
        display: block;
    
        .card__bio {
          max-width: none;
    
        .name,
        .roles {
          text-align: center;
          margin-bottom: 15px;
    
        .bio {
          margin-bottom: 15px;
    
    
    .pagination {
      padding: 30px 0;
      text-align: center;
      overflow: hidden;
    
    
      a,
      .current,
      .next,
      .prev,
      .page,
      .gap {
    
        color: $primary-text-color;
    
        font-weight: 500;
        display: inline-block;
        padding: 6px 10px;
        text-decoration: none;
      }
    
      .current {
    
        background: $simple-background-color;
    
        color: $ui-base-color;
    
        margin: 0 10px;
    
        color: $ui-secondary-color;
    
        float: left;
        padding-left: 0;
    
        .fa {
          display: inline-block;
          margin-right: 5px;
        }
      }
    
    
        float: right;
        padding-right: 0;
    
        .fa {
          display: inline-block;
          margin-left: 5px;
        }
      }
    
      .disabled {
        cursor: default;
    
        color: lighten($ui-base-color, 10%);
    
    
      @media screen and (max-width: 360px) {
        padding: 30px 20px;
    
    
        a,
        .current,
        .next,
        .prev,
        .gap {
    
          display: none;
        }
    
    
        .prev,
        .next a,
        .prev a {
    
          display: inline-block;
        }
      }
    
      box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
    
      background: darken($simple-background-color, 8%);
    
      border-radius: 0 0 4px 4px;
    
      padding: 20px 5px;
    
      padding-bottom: 10px;
      overflow: hidden;
    
      display: flex;
      flex-wrap: wrap;
    
      z-index: 2;
      position: relative;
    
      @media screen and (max-width: 740px) {
    
      .account-grid-card {
        box-sizing: border-box;
        width: 335px;
    
        background: $simple-background-color;
    
        color: $ui-base-color;
    
        margin: 0 5px 10px;
    
        position: relative;
    
        @media screen and (max-width: 740px) {
          width: calc(100% - 10px);
    
        }
    
        .account-grid-card__header {
          overflow: hidden;
    
          height: 100px;
          border-radius: 4px 4px 0 0;
          background-color: lighten($ui-base-color, 4%);
          background-size: cover;
          background-position: center;
          position: relative;
    
          &::after {
            background: rgba(darken($ui-base-color, 8%), 0.5);
            display: block;
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
          }
        }
    
        .account-grid-card__avatar {
          box-sizing: border-box;
          padding: 15px;
          position: absolute;
          z-index: 2;
          top: 100px - (40px + 2px);
          left: -2px;
    
          width: 80px;
          height: 80px;
    
            width: 80px;
            height: 80px;
            border-radius: 80px;
            border: 2px solid $simple-background-color;
    
          padding: 15px;
    
          padding-left: 15px + 80px + 15px;
    
            color: $ui-base-color;
    
            text-decoration: none;
    
            text-overflow: ellipsis;
            overflow: hidden;
    
            font-weight: 500;
    
    
            &:hover {
              .display_name {
                text-decoration: underline;
              }
            }
          }
        }
    
        .display_name {
    
          font-size: 16px;
    
          text-overflow: ellipsis;
          overflow: hidden;
    
          color: lighten($ui-base-color, 34%);
          font-size: 14px;
          font-weight: 400;
    
          padding: 10px 15px;
    
          box-sizing: border-box;
          color: lighten($ui-base-color, 26%);
    
          min-height: 80px;
    
      width: 100%;
      display: block;
    
      color: $ui-primary-color;
    
      font-size: 14px;
      font-weight: 500;
      text-align: center;
    
      padding: 60px 0;
      padding-top: 55px;
    
    
    .account-card {
      padding: 14px 10px;
    
      background: $simple-background-color;
    
      border-radius: 4px;
      text-align: left;
    
      box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
    
    
      .detailed-status__display-name {
        display: block;
        overflow: hidden;
        margin-bottom: 15px;
    
    
        & > div {
          float: left;
          margin-right: 10px;
          width: 48px;
          height: 48px;
        }
    
        .avatar {
          display: block;
          border-radius: 4px;
        }
    
        .display-name {
          display: block;
          max-width: 100%;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          cursor: default;
    
          strong {
            font-weight: 500;
    
            color: $ui-base-color;
    
            color: $ui-primary-color;
    
          }
        }
    
        &:hover {
          .display-name {
            strong {
              text-decoration: none;
            }
          }
        }
      }
    
      .account__header__content {
        font-size: 14px;
    
        color: $ui-base-color;
    
    
    .activity-stream-tabs {
      background: $simple-background-color;
      border-bottom: 1px solid $ui-secondary-color;
      position: relative;
      z-index: 2;
    
      a {
        display: inline-block;
        padding: 15px;
        text-decoration: none;
        color: $ui-highlight-color;
        text-transform: uppercase;
        font-weight: 500;
    
        &:hover,
        &:active,
        &:focus {
          color: lighten($ui-highlight-color, 8%);
        }
    
        &.active {
          color: $ui-base-color;
          cursor: default;
        }
      }
    }
    
    .account-role {
      display: inline-block;
      padding: 4px 6px;
      cursor: default;
      border-radius: 3px;
      font-size: 12px;
      line-height: 12px;
      font-weight: 500;
      color: $success-green;
      background-color: rgba($success-green, 0.1);
      border: 1px solid rgba($success-green, 0.5);
    }