_teams.scss 13.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
.view-teams {

  // resets for existing styles
  div.course-wrapper section.course-content {
    padding: 0;

    p {
      margin-bottom: ($baseline/4);
    }
  }

12 13 14 15 16
  p, span {
    color: inherit;
    font-weight: inherit;
  }

17 18
  .icon {
    font-family: "FontAwesome";
19
    color: inherit;
20 21
  }

22
  // layout
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
  .page-header {
    @include clearfix();
    border-bottom: 1px solid $gray-l3;
    padding: $baseline $baseline ($baseline/2) $baseline;

    .page-title {
      @extend %t-title4;
      margin-bottom: ($baseline/4);
      text-transform: none;
      color: $black;
    }

    .page-description {
      @extend %t-copy-sub1;
      margin-bottom: ($baseline/4);
      color: $gray;
    }
  }

  .page-header.has-secondary {

44 45 46 47
    .page-header-main {
      display: inline-block;
      width: flex-grid(8,12);
    }
48

49
    .page-header-secondary {
50
      @include text-align(right);
51 52 53 54
      display: inline-block;
      width: flex-grid(4,12);
      vertical-align: text-bottom;
    }
55 56
  }

57
  // ui bits
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
  .breadcrumbs {
    @extend %t-copy-sub1;

    .nav-item {
      @include margin-right($baseline/2);
      display: inline-block;
    }

    .icon {
      @include margin-right($baseline/4);
      display: inline-block;
      color: $gray-l2;

      @include rtl {
        @include transform(rotateY(180deg));
      }
    }
  }

  .page-header-search {

79 80 81 82 83 84
    .wrapper-search-input {
      display: inline-block;
      position: relative;
      vertical-align: middle;
    }

85
    .search-label {
86
      @extend %text-sr;
87 88 89
    }

    .search-field {
90 91 92 93 94 95
      transition: all $tmg-f2 ease-in-out;
      border: 1px solid $gray-l4;
      border-radius: 3px;
      padding: ($baseline/4) ($baseline/2);
      font-family: inherit;
      color: $gray;
96 97 98 99
    }

    .action-search {
      @extend %button-reset;
100
      background-color: $gray-l3;
101
      padding: ($baseline/5) ($baseline/2);
102
      text-shadow: none;
103
      vertical-align: middle;
104 105

      .icon {
106
        color: $white;
107 108
      }

109
      // STATE: hover and focus
110 111
      &:hover,
      &:focus {
112 113 114
        background-color: $blue;
      }
    }
115

116 117 118 119 120 121 122 123 124 125 126 127 128
    .action-clear {
      @include right(0);
      @include margin(0, ($baseline/4), 0, 0);
      @extend %button-reset;
      position: absolute;
      top: 0;
      padding: ($baseline/4);
      color: $gray-l3;

      // STATE: hover and focus
      &:hover,
      &:focus {
        color: $black;
129 130 131 132
      }
    }
  }

133
  // main content bits
134 135 136 137 138
  .page-content {
    padding: $baseline;
  }

  .page-content-nav {
139
    @extend %page-content-nav;
140 141 142 143 144 145
  }

  .intro {
    @extend %t-weight4;
  }

146 147 148 149
  .listing-tools {
    margin: ($baseline/10) $baseline;
  }

150 151 152 153 154 155
  // reset general ul styles
  .cards-list {
    margin: 0;
    padding: 0;
  }

156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210
  .card {
    @include clearfix();
    transition: all $tmg-f2 ease-in-out;
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: 30%; // TODO: susy grid
    margin: ($baseline) 1.2%;
    border: 1px solid $gray-l4;
    border-bottom: 2px solid $gray-l3;
    border-radius: 3px;
    background-color: $white;
    color: $black;

    // STATE: hover, active, and focus
    &:hover,
    &:active,
    &:focus {
      box-shadow: 0 0 5px 1px $m-blue-t1;

      .card-description {
        color: $base-font-color;
      }
    }

    .wrapper-card-core {
      @include clearfix();
      padding: ($baseline);
    }

    .card-type {
      @extend %t-copy-sub2;
      text-transform: uppercase;
      color: $gray;
    }

    .card-title {
      @extend %t-title5;
      @extend %t-strong;
      margin-bottom: rem(.5);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .card-description {
      @extend %t-copy-sub1;
      color: $gray;
    }

    .card-actions {
      @include clearfix();

      .action-view {
        @extend %btn-pl-default-base;
211
        @include float(right);
212 213 214 215 216 217 218 219
        margin: ($baseline/4) 0;
      }
    }

    .wrapper-card-meta {
      @include clearfix();
      @extend %t-copy-sub1;
      padding: ($baseline/2) $baseline;
220
      background-color: $gray-l6;
221 222 223
      color: $gray;

      .meta-detail {
224
        @include margin(($baseline/4) ($baseline*.75) ($baseline/4) 0);
225
        color: $gray-d1;
226

227 228 229 230 231
        abbr {
          border: 0;
          text-decoration: none;
        }

232
        .icon {
233
          @include margin-right ($baseline/4);
234 235 236
        }
      }

237 238 239 240 241 242
      .member-count {
        display: inline-block;
        vertical-align: middle;
        @include margin-right($baseline/4);
      }

243 244 245
      .list-member-thumbs {
        @extend %ui-no-list;
        display: inline-block;
246
        vertical-align: middle;
247 248 249

        .item-member-thumb {
          display: inline-block;
250
          margin: 0 ($baseline/4);
251 252 253 254 255
        }

        img {
          width: $baseline;
          height: $baseline;
256 257
          border-radius: ($baseline/5);
          border: 1px solid $gray-l4;
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 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297
        }
      }
    }

    &.square-card {

      .card-description { // replace with js or char limit
        height: 4rem;
        overflow: hidden;
      }

      .wrapper-card-meta {

        &.has-actions {
          .card-meta,
          .card-actions {
            display: inline-block;
            width: 48%; // TODO: susy grid
            vertical-align: middle;
          }
        }
      }
    }

    &.list-card {
      width: auto;
      display: block;

      .card-core {
        display: inline-block;
        vertical-align: middle;
        width: 84%; // TODO: susy grid
      }

      .card-meta {
        @include clearfix();
      }

      .meta-detail {
        display: inline-block;
298
        vertical-align: middle;
299 300 301
      }

      .team-activity {
302
        @include float(right);
303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319
      }

      .card-actions {
        display: inline-block;
        vertical-align: middle;
        width: 15%; // TODO: susy grid
      }
    }

    &.has-pennant {

      .pennant {
        @extend %t-copy-sub2;
        @extend %t-strong;
        display: block;
        position: absolute;
        top: ($baseline/2);
320
        @include left(-($baseline/4));
321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337
        box-shadow: 1px 1px 1px 0 $blue-d1;
        background-color: $m-blue-l2;
        padding: ($baseline/10) ($baseline*.75);
        text-transform: uppercase;
        color: $white;
      }
    }

    &.is-unavailable {
      background-color: $gray-l5;

      .wrapper-card-meta {
        background-color: $gray-l4;
      }
    }
  }

muzaffaryousaf committed
338 339 340 341 342 343 344 345 346 347 348 349 350 351 352
  .team-profile {

    .page-content-main {
      display: inline-block;
      width: flex-grid(8, 12);
      vertical-align: top;
    }

    .page-content-secondary {
      display: inline-block;
      width: flex-grid(4,12);
      @include margin-left($baseline * 0.75);
      margin-bottom: $baseline;

      @extend %t-copy-sub1;
353
      color: $gray;
muzaffaryousaf committed
354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387

      div, .team-detail-header {
        margin-bottom: ($baseline/4);
      }

      .image-url {
        border: 2px solid $outer-border-color;
        border-radius: ($baseline/4);
        margin-bottom: ($baseline/4);
      }

      .leave-team {
        margin-bottom: $baseline;
        margin-top: ($baseline/2);
      }

      .invite-header, .invite-text {
        margin-bottom: ($baseline/2);
      }

      .invite-team {
        margin-top: ($baseline);
        margin-bottom: ($baseline/2);
      }
      .invite-link-input {
        width: 100%;
      }

      .member-profile {
        position: relative;
        display: inline-block;

        @include tooltip-hover-style(-($baseline*2));
      }
388
    }
muzaffaryousaf committed
389 390
  }

391 392 393
  .create-team {

    legend {
394 395 396
      @extend %t-title6;
      @extend %t-weight4;
      margin-bottom: ($baseline/4);
397 398 399
    }

    .description {
400 401 402
      @extend %t-copy-sub1;
      margin-bottom: ($baseline/2);
      color: $gray-l1;
403 404 405
    }

    .form-field {
406
      margin: 0 0 ($baseline*0.75) 0;
407

408 409 410 411
      .label {
        display: block;
        margin-bottom: ($baseline/4);
      }
412

413 414
      &.is-required {
        @extend %t-weight4;
415

416 417 418
        .label:after {
          @include margin-left($baseline/4);
          content: "*";
419
        }
420
      }
421

422 423 424 425 426 427 428 429 430 431
      .input-text {
        @extend %t-copy-base;
        transition: all $tmg-f2 ease-in-out 0s;
        display: block;
        width: 90%;
        height: 100%;
        margin-bottom: ($baseline/4);
        border: 1px solid $gray-l2;
        padding: ($baseline/2);
      }
432

433 434 435 436 437 438
      .input-select {
        @extend %t-copy-base;
        width: 90%;
        margin-bottom: ($baseline/4);
        border: 1px solid $gray-l2;
      }
439

440 441
      .input-text,
      .input-select {
442

443 444
        &:focus {
          border: 1px solid $blue;
445

446 447 448
          + .tip {
            color: $blue;
          }
449
        }
450
      }
451

452
      &.has-errors {
453

454 455 456
        .input-text,
        .input-select {
          border: 1px solid $alert-color;
457

458 459 460
          + .tip {
            color: $alert-color;
          }
461
        }
462
      }
463

464 465 466 467 468
      .tip {
        @extend %t-copy-sub1;
        display: block;
        color: $gray-l1;
      }
469 470
    }

471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487
    .required-wrapper {
      display: inline-block;
      vertical-align: top;
      width: 60%; // TODO: susy grid
    }

    .optional-wrapper {
      display: inline-block;
      vertical-align: top;
      width: 35%; // TODO: susy grid
      @include margin-left(2%);
      border-left: 2px solid $gray-l4;
      padding-left: 2%;
    }
  }

  .form-actions {
488 489
    margin-top: $baseline;
  }
490

491 492 493 494 495 496
  .action {
    @extend %t-copy;
    @extend %t-action2;
    @include margin-right ($baseline/2);
    padding: ($baseline/2) $baseline;
  }
497

498 499 500 501 502
  .action-primary {
    @extend %btn-primary-blue;
    display: inline-block;
    text-shadow: none;
  }
503

504 505 506 507 508
  .action-cancel {
    @extend %button-reset;
    display: inline-block;
    border: 1px solid transparent;
    color: $gray;
509

510 511 512 513 514
    // STATE: hover and focus
    &:hover,
    &:focus {
      border: 1px solid $link-color;
      color: $link-color;
515
    }
516
  }
517

518 519 520 521
  .header-action-view {
    display: inline-block;
    width: 33%;
    vertical-align: text-bottom;
522

523 524
    .join-team.form-actions, .join-team-message {
      @include text-align(right);
525 526
    }
  }
muhammad-ammar committed
527

528 529
  .join-team-message {
    @extend %t-copy-sub1;
530
    @include text-align(right);
531
    color: $gray-l1;
532 533
    display: block;
    margin-bottom: ($baseline/4);
534 535
  }

muhammad-ammar committed
536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561
  .team-actions {
    @extend %ui-well;
    margin: 20px 1.2%;
    color: $gray;
    text-align: center;

    .title {
      @extend %t-title6;
      @extend %t-strong;
      margin-bottom: ($baseline/2);
      text-align: inherit;
      color: inherit;
    }

    .copy {
      text-align: inherit;
      color: inherit;
    }
  }
}

.teams-content {

  .teams-main {

    .team-edit-fields {
muhammad-ammar committed
562 563 564
      overflow: hidden;
      position: relative;
      width: 100%;
muhammad-ammar committed
565 566
      @include clearfix();

567 568 569
      .team-required-fields {
        @include float(left);
        width: 55%;
muhammad-ammar committed
570

571 572 573
        .u-field {
          @include margin-right($baseline*2);
        }
muhammad-ammar committed
574

575 576
        .u-field.u-field-name {
          padding-bottom: $baseline;
muhammad-ammar committed
577

578 579
          .u-field-value {
            width: 100%;
muhammad-ammar committed
580

581 582 583 584
            input {
              border-radius: ($baseline/5);
              height: ($baseline*2);
            }
muhammad-ammar committed
585 586
          }

587 588 589 590 591
          .u-field-message {
            @include padding-left(0);
            padding-top: ($baseline/4);
            width: 100%;
          }
muhammad-ammar committed
592 593
        }

594
        .u-field.u-field-description {
muhammad-ammar committed
595

596
          .u-field-value {
muhammad-ammar committed
597
            width: 100%;
598 599 600 601 602 603

            textarea {
              width: 100%;
              height: ($baseline*5);
              border-radius: ($baseline/5)
            }
muhammad-ammar committed
604 605
          }

606
          .u-field-footer {
muhammad-ammar committed
607

608 609 610 611 612 613 614 615
            .u-field-message {
              display: block;
              @extend %t-copy-sub1;
              @include padding-left(0);
              margin-top: ($baseline/4);
              color: $gray-l1;
              width: 100%;
            }
muhammad-ammar committed
616
          }
muhammad-ammar committed
617 618
        }

619 620 621 622 623
        .u-field-title {
          padding-bottom: ($baseline/4);
          color: $base-font-color;
          width: 100%;
        }
muhammad-ammar committed
624 625
      }

626 627 628 629
      .team-optional-fields {
        @include float(left);
        @include margin-left($baseline*2);
        width: 40%;
muhammad-ammar committed
630

631 632
        .u-field.u-field-optional_description {
          margin-bottom: ($baseline/2);
muhammad-ammar committed
633

634 635 636 637 638 639 640 641 642 643 644 645
          .u-field-title {
            color: $base-font-color;
            font-weight: $font-semibold;
            margin-bottom: ($baseline/5);
          }

          .u-field-value {
            display: none;
          }
        }

        .u-field.u-field-language {
muhammad-ammar committed
646 647 648
          margin-bottom: ($baseline/5);
        }

649
        .u-field-value-display {
muhammad-ammar committed
650 651 652
          display: none;
        }

653 654 655
        .u-field-title {
          color: $base-font-color;
        }
muhammad-ammar committed
656

657 658 659
        .u-field-message {
          @include padding-left(0);
        }
muhammad-ammar committed
660

661 662 663
        .u-field-title, .u-field-value, .u-field-message {
          width: 100%;
        }
muhammad-ammar committed
664 665
      }

muhammad-ammar committed
666 667 668 669 670 671 672 673
    }

    .u-field {
      padding: 0;
    }

    .u-field.error {
      input, textarea {
674
        border-color: $error-color;
muhammad-ammar committed
675 676 677
      }

      .u-field-message-help, .u-field-description-message {
678
        color: $error-color !important;
muhammad-ammar committed
679 680 681 682 683 684 685 686 687
      }
    }

    .create-team.wrapper-msg {
      margin: 0 0 $baseline 0;
    }
  }
}

muhammad-ammar committed
688 689
// vertical line between required and optional fields
.vertical-line:after {
690 691 692 693
  height: 100%;
  border-left: 2px solid $gray-l4;
  content: "";
  position: absolute;
muhammad-ammar committed
694 695
}

muhammad-ammar committed
696 697 698 699 700 701
.form-instructions {
  margin: ($baseline/2) 0 $baseline 0;
}

.create-team.form-actions {
  margin-top: $baseline;
702
}