accounts.scss 5.22 KB
Newer Older
Rob Colbert's avatar
Rob Colbert committed
1
.card {
mgabdev's avatar
mgabdev committed
2
  &>a {
Rob Colbert's avatar
Rob Colbert committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
    display: block;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);

    @media screen and (max-width: $no-gap-breakpoint) {
      box-shadow: none;
    }

    &:hover,
    &:active,
    &:focus {
      .card__bar {
        background: lighten($ui-base-color, 8%);
      }
    }
  }

  &__img {
    height: 130px;
    position: relative;
    background: darken($ui-base-color, 12%);
    border-radius: 4px 4px 0 0;

    img {
      display: block;
      margin: 0;
      object-fit: cover;
      border-radius: 4px 4px 0 0;
mgabdev's avatar
mgabdev committed
32 33

      @include size(100%);
Rob Colbert's avatar
Rob Colbert committed
34 35
    }

mgabdev's avatar
mgabdev committed
36
    @include breakpoint(sm) {
Rob Colbert's avatar
Rob Colbert committed
37 38 39 40 41 42 43 44 45 46 47 48 49 50
      height: 200px;
    }

    @media screen and (max-width: $no-gap-breakpoint) {
      display: none;
    }
  }

  &__bar {
    position: relative;
    padding: 15px;
    background: lighten($ui-base-color, 4%);
    border-radius: 0 0 4px 4px;

mgabdev's avatar
mgabdev committed
51 52
    @include flex(flex-start, center);

Rob Colbert's avatar
Rob Colbert committed
53 54 55 56 57 58 59 60
    @media screen and (max-width: $no-gap-breakpoint) {
      border-radius: 0;
    }

    .avatar {
      flex: 0 0 auto;
      padding-top: 2px;

mgabdev's avatar
mgabdev committed
61 62
      @include size(48px);

Rob Colbert's avatar
Rob Colbert committed
63 64 65 66 67 68
      img {
        display: block;
        margin: 0;
        border-radius: 4px;
        background: darken($ui-base-color, 8%);
        object-fit: cover;
mgabdev's avatar
mgabdev committed
69 70

        @include size(100%);
Rob Colbert's avatar
Rob Colbert committed
71 72 73 74 75 76 77 78 79
      }
    }

    .display-name {
      margin-left: 15px;
      text-align: left;

      strong {
        color: $primary-text-color;
mgabdev's avatar
mgabdev committed
80 81 82

        @include text-overflow;
        @include text-sizing(15px, 500);
Rob Colbert's avatar
Rob Colbert committed
83 84 85 86
      }

      span {
        display: block;
87
        color: $gab-secondary-text;
mgabdev's avatar
mgabdev committed
88 89 90

        @include text-overflow;
        @include text-sizing(14px, 400);
Rob Colbert's avatar
Rob Colbert committed
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
      }
    }
  }
}

.pagination {
  padding: 30px 0;
  text-align: center;
  overflow: hidden;

  a,
  .current,
  .newer,
  .older,
  .page,
  .gap {
    color: $primary-text-color;
    display: inline-block;
    padding: 6px 10px;
    text-decoration: none;
mgabdev's avatar
mgabdev committed
111 112

    @include text-sizing(14px, 500);
Rob Colbert's avatar
Rob Colbert committed
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
  }

  .current {
    background: $simple-background-color;
    border-radius: 100px;
    color: $inverted-text-color;
    cursor: default;
    margin: 0 10px;
  }

  .gap {
    cursor: default;
  }

  .older,
  .newer {
    text-transform: uppercase;
    color: $secondary-text-color;
  }

  .older {
    float: left;
    padding-left: 0;

    .fa {
      display: inline-block;
      margin-right: 5px;
    }
  }

  .newer {
    float: right;
    padding-right: 0;

    .fa {
      display: inline-block;
      margin-left: 5px;
    }
  }

  .disabled {
    cursor: default;
    color: lighten($inverted-text-color, 10%);
  }

  @media screen and (max-width: 700px) {
    padding: 30px 20px;

    .page {
      display: none;
    }

    .newer,
    .older {
      display: inline-block;
    }
  }
}

.nothing-here {
  background: $ui-base-color;
  box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
175
  color: $gab-secondary-text;
Rob Colbert's avatar
Rob Colbert committed
176 177 178 179 180
  cursor: default;
  border-radius: 4px;
  padding: 20px;
  min-height: 30vh;

mgabdev's avatar
mgabdev committed
181 182 183
  @include flex(center, center);
  @include text-sizing(14px, 500, 1, center);

Rob Colbert's avatar
Rob Colbert committed
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
  &--under-tabs {
    border-radius: 0 0 4px 4px;
  }

  &--flexible {
    box-sizing: border-box;
    min-height: 100%;
  }
}

.account-role {
  display: inline-block;
  padding: 4px 6px;
  cursor: default;
  color: $ui-secondary-color;
  background-color: rgba($ui-secondary-color, 0.1);
mgabdev's avatar
mgabdev committed
200 201 202

  @include text-sizing(12px, 500, 12px);
  @include border-design(rgba($ui-secondary-color, 0.5), 1px, 3px);
Rob Colbert's avatar
Rob Colbert committed
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222

  &.moderator {
    color: $success-green;
    background-color: rgba($success-green, 0.1);
    border-color: rgba($success-green, 0.5);
  }

  &.admin {
    color: lighten($error-red, 12%);
    background-color: rgba(lighten($error-red, 12%), 0.1);
    border-color: rgba(lighten($error-red, 12%), 0.5);
  }
}

.account__header__fields {
  padding: 0;
  margin: 15px -15px -15px;
  border: 0 none;
  border-top: 1px solid lighten($ui-base-color, 12%);
  border-bottom: 1px solid lighten($ui-base-color, 12%);
mgabdev's avatar
mgabdev committed
223 224

  @include text-sizing(14px, 400, 20px);
Rob Colbert's avatar
Rob Colbert committed
225 226 227 228 229 230 231 232 233 234

  dl {
    display: flex;
    border-bottom: 1px solid lighten($ui-base-color, 12%);
  }

  dt,
  dd {
    box-sizing: border-box;
    max-height: 48px;
mgabdev's avatar
mgabdev committed
235 236 237

    @include text-overflow(nowrap);
    @include text-sizing(14px, 400, 1, center);
Rob Colbert's avatar
Rob Colbert committed
238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282
  }

  dt {
    font-weight: 500;
    width: 120px;
    flex: 0 0 auto;
    color: $secondary-text-color;
    background: rgba(darken($ui-base-color, 8%), 0.5);
  }

  dd {
    flex: 1 1 auto;
    color: $darker-text-color;
  }

  a {
    color: $highlight-text-color;
    text-decoration: none;

    &:hover,
    &:focus,
    &:active {
      text-decoration: underline;
    }
  }

  .verified {
    border: 1px solid rgba($valid-value-color, 0.5);
    background: rgba($valid-value-color, 0.25);

    a {
      color: $valid-value-color;
      font-weight: 500;
    }

    &__mark {
      color: $valid-value-color;
    }
  }

  dl:last-child {
    border-bottom: 0;
  }
}

mgabdev's avatar
mgabdev committed
283
.directory__tag .trending-item__uses {
Rob Colbert's avatar
Rob Colbert committed
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310
  width: auto;
}

.pending-account {
  &__header {
    color: $darker-text-color;

    a {
      color: $ui-secondary-color;
      text-decoration: none;

      &:hover,
      &:active,
      &:focus {
        text-decoration: underline;
      }
    }

    strong {
      color: $primary-text-color;
      font-weight: 700;
    }
  }

  &__body {
    margin-top: 10px;
  }
mgabdev's avatar
mgabdev committed
311
}