_program-details.scss 13.4 KB
Newer Older
1
.program-details {
2 3 4 5
  .content-wrapper {
    max-width: 100%;
    padding-top: 0;
  }
6 7 8
}

.program-header {
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
  .banner-content {
    padding-top: 100px;
  }

  .title {
    margin: 0;
  }

  .title,
  .subtitle {
    color: $white;
    font-weight: font-weight(semi-bold);
  }

  .org-wrapper {
    position: absolute;
    top: 0;
    background: $white;
    opacity: 0.7;
    left: 0;
    padding: 20px;
  }

  .org-logo {
    height: 50px;
  }

  .breadcrumb-wrapper {
    padding: $full-width-banner-margin;

    @media (min-width: $bp-screen-xl) {
      padding-left: 0;
    }
  }

  .breadcrumb-list {
    list-style-type: none;
    margin: 0;
  }

  .crumb {
    @include float(left);

    position: relative;
    font-size: font-size(x-small);
    line-height: line-height(x-small);
    color: palette(grayscale, dark);

    &.active {
      color: palette(grayscale, dark);
    }
  }

  .crumb-link {
    font-size: inherit;
    line-height: inherit;
    color: palette(primary, base);

    &:hover,
    &:focus {
      color: palette(grayscale, black);
      text-decoration: underline;
    }
  }

  .crumb-separator {
    font-size: font-size(xx-small);
    line-height: line-height(xx-small);
    padding: 0 $full-width-banner-margin/4;
  }
}
80

81 82 83
// CSS for April 2017 version of Program Details Page
.program-details {
  .window-wrap {
84
    background-color: $body-bg;
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
  }

  .wrapper-footer,
  footer#footer-edx-v3 {
    @include clearfix();

    clear: both;
  }
}

.program-details-wrapper {
  .program-details-header {
    background-color: $light-gray4;
    display: flex;
    color: black;
    font-family: 'Open Sans';
    font-weight: normal;
    flex-wrap: wrap;
    padding: 40px 10px 35px;

    @media (min-width: $bp-screen-md) {
      padding: {
        left: 30px;
        right: 30px;
      }
110 111
    }

112
    @media (min-width: map-get($container-max-widths, xl)) {
113 114 115 116
      padding: {
        left: calc(((100% - 1180px) / 2) + 30px);
        right: calc(((100% - 1180px) / 2) + 30px);
      }
117 118
    }

119 120 121 122 123 124
    .hd-1 {
      font-size: 1.5em;

      @media (min-width: $bp-screen-md) {
        font-size: 2.375em;
      }
125 126
    }

127 128 129 130 131 132 133 134 135 136 137 138
    .program-details-icon {
      @include margin-left(3px);

      margin-top: 10px;
      height: auto;

      svg {
        width: inherit;
      }

      /* IE11 CSS styles */
      @media (min-width: $bp-screen-md) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
139
        height: 50px;
140
      }
141 142
    }

143 144 145
    .micromasters {
      fill: $micromasters-color;
      width: 200px;
146

147 148 149
      @media (min-width: $bp-screen-md) {
        width: 250px;
      }
150 151
    }

152 153 154 155 156 157 158
    .xseries {
      fill: xseries-color;
      width: 150px;

      @media (min-width: $bp-screen-md) {
        width: 200px;
      }
159 160
    }

161 162 163
    .professional.certificate {
      fill: $professional-certificate-color;
      width: 250px;
164

165 166 167
      @media (min-width: $bp-screen-md) {
        width: 300px;
      }
168 169
    }

170 171 172
    .meta-info {
      margin: 0;
      display: block;
173

174 175 176 177 178 179 180 181 182 183 184 185
      @media (min-width: $bp-screen-md) {
        width: 70%;
      }

      @media (min-width: $bp-screen-lg) {
        width: 75%;
      }

      .program-title {
        font-weight: normal;
        font-size: 2em;
      }
186 187
    }

188 189 190 191 192 193 194 195 196
    .authoring-organizations {
      text-align: center;
      display: flex;

      @media (min-width: $bp-screen-md) {
        display: block;
      }

      .heading {
197
        font-family: $font-family-sans-serif;
198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223
        font-weight: bold;
        color: palette(primary, dark);
        font-size: 0.9375em;
        margin-top: auto;
        margin-bottom: auto;

        @media (min-width: $bp-screen-md) {
          @include margin-right(10px 0 0 0);
        }
      }

      @media (min-width: $bp-screen-md) {
        margin: initial;
        width: 30%;

        .orgs .org-logo {
          @include margin-left(2.5%);

          width: 46.5%;
          height: auto;
        }
      }

      @media (min-width: $bp-screen-lg) {
        width: 25%;
      }
224
    }
225
  }
226

227 228 229 230 231 232 233 234 235 236 237 238 239 240
  .program-details-content {
    width: 100%;
    margin-bottom: 30px;
    padding: 30px 10px;

    @media (min-width: $bp-screen-md) {
      @include float(left);
      padding: {
        left: 30px;
        right: 30px;
      }

      width: calc(100% - 330px);
      position: relative;
241
    }
242

243 244 245
    @media (min-width: $bp-screen-lg) {
      width: calc(100% - 510px);
      max-width: 700px;
246
    }
247

248
    @media (min-width: map-get($container-max-widths, xl)) {
249 250 251
      @include margin-left(calc((100% - 1180px) / 2));
    }
  }
252

253
  .course-list-heading {
254
    font-family: $font-family-sans-serif;
255 256 257 258 259 260 261 262 263 264
    font-weight: bold;
    color: palette(primary, dark);
    font-size: 0.9375em;
    line-height: normal;
    padding-bottom: 5px;
    border-bottom: 3px solid $divider-color;
    margin: {
      top: 10px;
      bottom: 20px;
    }
265

266 267 268 269
    .status {
      @include margin-right(7px);
    }
  }
270

271 272 273
  .course-list > div:nth-of-type(even) {
    background-color: $zebra-stripe-color;
  }
274

275 276 277
  .course-list-headings {
    .motivating-section {
      @include margin-left(15px);
278

279 280
      font-size: 0.9375em;
      width: 310px;
281

282 283 284
      @media (min-width: $bp-screen-sm) {
        width: auto;
      }
285

286 287 288 289
      .motivating-heading {
        margin-bottom: 0;
        font-weight: 600;
      }
290

291 292 293 294 295
      .motivating-message {
        color: #414141;
      }
    }
  }
296

297 298 299 300 301
  .program-heading {
    margin-bottom: 40px;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
302

303
    .program-heading-title {
304
      font-family: $font-family-sans-serif;
305 306 307 308 309 310
      font-weight: 600;
      font-size: 1.3em;
      color: palette(grayscale, base);
      margin-bottom: 5px;
      line-height: normal;
    }
311

312 313
    .program-heading-message {
      font-weight: 300;
314 315
    }

316
  }
317

318 319 320 321 322 323 324 325 326 327 328
  .course-enroll-view {
    .view-course-button {
      background: palette(primary, dark);
      border-color: palette(primary, dark);
      height: 37px;
      padding: 7px 18.5px 0 18.5px;
      width: auto;
      border-radius: 0;
      text-align: center;
      font-size: 0.9375em;
      margin-top: 5px;
329

330 331 332 333 334 335 336 337
      /* IE11 CSS styles */
      @media (min-width: $bp-screen-md) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
        @include float(right);
      }

      @media (min-width: $bp-screen-lg) {
        margin-top: 0;
      }
338
    }
339

340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362
    .enroll-button {
      width: 100%;

      @media (min-width: $bp-screen-sm) {
        width: initial;
        margin-bottom: 0;
        margin-top: 17px;
      }

      @media (min-width: $bp-screen-md) {
        width: initial;
        margin-top: 0;
        margin-bottom: 0;
      }

      button {
        background-color: palette(primary, dark);
        height: 37px;
        width: 128px;
        border-radius: 0;
        padding: 0;
        margin-bottom: 5px;
        margin-top: 7px;
363 364
        font-size: 0.9375em;

365 366 367
        /* IE11 CSS styles */
        @media (min-width: $bp-screen-md) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
          @include float(right);
368
        }
369
      }
370 371
    }

372 373 374
    .select-choice {
      @include margin-right(2px);

375
      font-family: $font-family-sans-serif;
376 377 378 379 380 381 382 383 384
      font-weight: bold;
      font-size: 0.9375em;
      color: palette(grayscale, base);
      margin-top: 6px;
      display: block;

      @media (min-width: $bp-screen-md) {
        display: inline;
      }
385 386
    }

387 388 389 390 391 392 393
    .run-select-container {
      @media (min-width: $bp-screen-md) {
        margin-top: 8px;
        display: flex;
        flex-wrap: wrap;
      }
    }
394

395 396
    .run-select {
      @include margin-right(10px);
397

398
      width: 95%;
399

400 401 402 403 404 405
      @media (min-width: $bp-screen-sm) {
        width: 300px;
      }

      height: 34px;
      padding: 0;
406
    }
407
  }
408

409 410 411 412 413 414 415
  .upgrade-button {
    background: palette(success, text);
    border-color: palette(success, text);
    border-radius: 0;
    padding: 7px;
    text-align: center;
    font-size: 0.9375em;
416

417 418 419 420 421 422 423 424 425 426 427 428
    /* IE11 CSS styles */
    @media (min-width: $bp-screen-md) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
      @include float(right);
    }

    &.complete-program {
      margin: 10px 15px 10px 5px;
      align-self: flex-start;

      @media (min-width: $bp-screen-md) {
        align-self: flex-end;
      }
429

430 431 432
      .list-price {
        text-decoration: line-through;
      }
433
    }
434
  }
435

436

437 438 439 440
  .program-course-card {
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
441

442 443 444
    @media (min-width: $bp-screen-md) {
      height: auto;
    }
445

446 447 448
    .section {
      display: flex;
      justify-content: space-between;
449

450 451 452 453
      @media (min-width: $bp-screen-md) {
        flex-wrap: wrap;
      }
    }
454

455 456
    .section:not(:first-child) {
      margin-top: 0;
457
    }
458

459 460 461 462 463 464 465 466 467 468 469 470 471
    .course-details {
      float: left;

      .course-title {
        font-size: 1em;
        color: palette(primary, base);
        font-weight: 600;
        text-decoration: underline;
        margin: 0;
      }

      .run-period {
        color: palette(grayscale, base);
472
        font-size: 0.9375em;
473
      }
474

475 476 477
      .course-text .enrolled {
        color: palette(grayscale, base);
      }
478 479
    }

480 481 482
    .course-meta-container {
      @media (min-width: $bp-screen-md) {
        display: table;
483
        width: 100%;
484
      }
485

486 487 488 489
      .course-content {
        overflow: hidden;
      }
    }
490

491 492 493
    .course-details {
      width: 100%;
      float: none;
494

495 496 497 498 499 500 501 502
      @media (min-width: $bp-screen-md) {
        display: table-cell;
        vertical-align: top;
        padding: 0 10px 0 0;
        float: left;
        width: calc(100% - 205px);
      }
    }
503

504 505 506 507 508 509
    .course-actions {
      @media (min-width: $bp-screen-md) {
        width: 200px;
        text-align: right;
        float: right;
      }
510

511 512 513
      .course-enroll-view {
        @media (min-width: $bp-screen-md) {
          text-align: right;
514
        }
515 516
      }
    }
517

518 519 520
    .course-certificate {
      width: 100%;
    }
521

522 523 524 525 526 527 528 529 530 531 532 533 534

    .final-grade {
      .grade-header {
        color: palette(grayscale, base);
        font-weight: bold;
      }
      .grade-display {
          padding-right: 15px;
          font-size: 1.5em;
          color: palette(primary, accent);
      }
    }

535 536 537 538 539 540
    .upgrade-message {
      flex-wrap: wrap;

      .action {
        width: 100%;
        margin: 5px 0;
541

542 543 544
        @media (min-width: $bp-screen-md) {
          margin-left: auto;
          width: initial;
545
        }
546
      }
547

548 549 550 551 552 553
      .certificate-status {
        padding-top: 0;
        width: initial;

        @media (min-width: $bp-screen-sm) {
          width: 300px;
554 555
        }

556 557
        @media (min-width: $bp-screen-md) {
          width: initial;
558 559
        }

560
        .card-msg {
561
          font-family: $font-family-sans-serif;
562 563 564 565
          font-weight: bold;
          font-size: 0.9375em;
          color: palette(grayscale, base);
          display: block;
566

567 568 569
          @media (min-width: $bp-screen-sm) {
            display: inline;
          }
570 571
        }

572 573 574
        .price {
          color: palette(success, text);
          font-weight: bold;
575
        }
576
      }
577

578
    }
579

580 581 582 583
    .certificate-status {
      .fa-check-circle {
        color: palette(success, text);
      }
584

585
      .card-msg {
586
        font-family: $font-family-sans-serif;
587 588 589 590 591 592 593 594 595
        font-weight: bold;
        font-size: 0.9375em;
        color: palette(grayscale, base);
      }

      .certificate-status-msg {
        color: palette(grayscale, base);
        font-size: 0.9375em;
      }
596 597
    }

598 599 600 601
    .expired-notification {
      display: inline-block;
      padding-top: 5px;
      width: 300px;
602

603 604 605 606 607 608 609 610
      @media (min-width: $bp-screen-sm) {
        padding-top: 10px;
        width: 500px;
      }

      @media (min-width: $bp-screen-md) {
        width: initial;
      }
611 612
    }

613 614
    .expired-icon {
      @include float(left);
615

616
      color: palette(primary, dark);
617 618
    }

619 620 621
    .expired-text {
      overflow: hidden;
      padding-left: 10px;
622
    }
623
  }
624 625
}

626 627
.program-sidebar {
  padding: 30px 10px;
628

629 630 631 632 633 634 635
  @media (min-width: $bp-screen-md) {
    @include float(right);

    width: 300px;
    padding-right: 30px;
    position: relative;
  }
636

637 638 639 640 641
  @media (min-width: $bp-screen-lg) {
    width: 450px;

    .program-progress {
      @include margin-left(50px);
642
    }
643 644
  }

645
  @media (min-width: map-get($container-max-widths, xl)) {
646 647 648 649 650 651 652 653 654 655 656 657 658 659 660
    @include margin-right(calc((100% - 1180px) / 2));
  }
}

.certificate-heading {
  margin-bottom: 10px;

  @media (min-width: $bp-screen-md) {
    @include margin-right(30px);
  }

  @media (min-width: $bp-screen-lg) {
    @include margin-left(10px);
    @include margin-right(0);
  }
661 662 663
}

.program-cert-link {
664
  display: inline-block;
665

666 667 668 669 670
  &:active,
  &:focus,
  &:hover {
    .program-cert {
      border-color: $blue-d1;
671
    }
672
  }
673 674 675
}

.program-cert {
676 677
  width: 100%;
  border: 1px solid $divider-color;
678

679 680 681
  @media (min-width: $bp-screen-md) {
    width: calc(100% - 30px);
  }
682

683 684 685
  @media (min-width: $bp-screen-lg) {
    width: 100%;
  }
686 687 688
}

.certificate-list {
689
  @include margin(0, 0, 0, 10px);
690

691 692 693 694 695 696 697 698 699 700 701 702 703
  list-style: none;

  .certificate {
    display: flex;
    flex-direction: row;
    padding: 5px 0 10px;

    .image-link {
      flex: 0 0 100px;

      @media (min-width: $bp-screen-md) {
        flex: 0 0 120px;
      }
704
    }
705
  }
706

707 708
  .certificate-link {
    @include margin-left(20px);
709

710 711 712 713 714
    color: $black;
    font: {
      size: 1.1em;
      weight: 600;
    }
715

716 717 718
    @media (min-width: $bp-screen-md) {
      font-size: 0.9em;
    }
719

720 721
    @media (min-width: $bp-screen-lg) {
      font-size: 1.1em;
722
    }
723

724 725 726 727 728 729 730 731
    &:active,
    &:focus,
    &:hover {
      .sample-cert {
        border-color: $blue-d1;
      }
    }
  }
732

733 734 735 736 737 738 739 740 741 742 743
  .sample-cert {
    width: 120px;
    border: 3px solid $gray-l3;
    border-radius: 5px;

    @media (min-width: $bp-screen-md) {
      width: 100px;
    }

    @media (min-width: $bp-screen-lg) {
      width: 120px;
744
    }
745
  }
746
}