_course_about.scss 13.4 KB
Newer Older
1 2
.course-info {
  .container {
3
    padding-bottom: 120px;
Matthew Mongeau committed
4 5
  }

6
  header.course-profile {
7
    background: $course-profile-bg;
8
    background-image: $homepage-bg-image;
9
    background-size: cover;
10
    box-shadow: 0 1px 80px 0 rgba(0,0,0, 0.5);
11
    border-bottom: 1px solid $border-color-3;
12
    box-shadow: inset 0 1px 5px 0 rgba(0,0,0, 0.1);
13
    height: 280px;
14
    margin-top: $header_image_margin;
15
    padding-top: 150px;
16
    overflow: hidden;
17
    position: relative;
18
    width: 100%;
Matthew Mongeau committed
19

20
    .intro-inner-wrapper {
21 22
      background: $course-header-bg;
      border: 1px solid $border-color-3;
23
      box-shadow: 0 4px 25px 0 rgba(0,0,0, 0.5);
24
      @include box-sizing(border-box);
25 26 27
      @include clearfix;
      margin: 0 auto;
      max-width: 1200px;
28
      min-width: 760px;
29
      position: relative;
30
      z-index: 2;
Matthew Mongeau committed
31

32 33 34 35
      > div.table {
        display: table;
        width: 100%;
      }
36
      .intro {
37
        @include box-sizing(border-box);
38
        @include clearfix;
39 40
        display: table-cell;
        vertical-align: middle;
41
        padding: 20px 20px;
42
        position: relative;
43
        width: flex-grid(8) + flex-gutter();
44 45 46
        z-index: 2;

        > hgroup {
47
          border-bottom: 1px solid $border-color-2;
48
          box-shadow: 0 1px 0 0 rgba(255,255,255, 0.6);
49
          margin-bottom: 20px;
50
          padding-bottom: 20px;
51
          width: 100%;
52 53

          h1 {
54
            color: $base-font-color;
55
            font-weight: normal;
56
            display: inline-block;
57
            margin: 0;
58
            letter-spacing: 0px;
59
            text-align: left;
60
            text-shadow: 0 1px rgba(255,255,255, 0.6);
61 62 63 64 65 66 67 68 69

            a {
              color: $lighter-base-font-color;
              font: italic 800 0.6em/1em $sans-serif;
              letter-spacing: 0px;
              margin-left: 15px;
              text-shadow: 0 1px rgba(255,255,255, 0.6);
              text-transform: none;

70
              &:hover, &:focus {
71
                color: $link-color;
72 73
              }
            }
74 75 76
          }

          h2 {
77
            display: inline-block;
78
            margin: 0;
79 80 81

            a {
              color: $lighter-base-font-color;
82
              font: italic 800 1em/1em $sans-serif;
83
              letter-spacing: 0px;
84
              text-shadow: 0 1px rgba(255,255,255, 0.6);
85
              text-transform: none;
86

87
              &:hover, &:focus {
88
                color: $link-color;
89 90
              }
            }
Matthew Mongeau committed
91
          }
Matthew Mongeau committed
92
        }
93

94 95 96 97
        .main-cta {
          @include clearfix;
          float: left;
          margin-right: flex-gutter();
98
          @include transition(all 0.15s linear 0s);
99
          width: flex-grid(12);
100

101
          > a.find-courses, a.register, a.add-to-cart {
102
            @include button(shiny, $button-color);
103
            @include box-sizing(border-box);
104
            border-radius: 3px;
105
            display: block;
106
            font: normal 1.2rem/1.6rem $sans-serif;
107 108 109 110
            letter-spacing: 1px;
            padding: 10px 0px;
            text-transform: uppercase;
            text-align: center;
111
            width: flex-grid(6);
112

113
            &:hover, &:focus {
114 115 116
              color: rgb(255,255,255);
            }
          }
117

118
          a {
119
            &:hover, &:visited, &:focus {
120 121 122 123
              text-decoration: none;
            }
          }

124
          strong {
125
            @include button(shiny, $button-color);
126
            @include box-sizing(border-box);
127
            border-radius: 3px;
128 129 130 131 132 133 134 135 136
            display: block;
            float: left;
            font: normal 1.2rem/1.6rem $sans-serif;
            letter-spacing: 1px;
            padding: 10px 0px;
            text-transform: uppercase;
            text-align: center;
            width: flex-grid(3, 8);

137
            &:hover, &:focus {
138 139 140 141
              color: rgb(255,255,255);
            }
          }

142
          span.register, span.add-to-cart {
143 144
            background: $button-archive-color;
            border: 1px solid darken($button-archive-color, 50%);
145
            @include box-sizing(border-box);
146
            color: darken($button-archive-color, 50%);
147 148
            display: block;
            letter-spacing: 1px;
149
            padding: 10px 0px 8px;
150 151
            text-transform: uppercase;
            text-align: center;
152 153
            float: left;
            margin: 1px flex-gutter(8) 0 0;
154
            @include transition(none);
155
            width: flex-grid(5, 8);
156
          }
157 158 159 160 161 162 163 164 165

          #register_error {
            background: $error-red;
            border: 1px solid rgb(202, 17, 17);
            color: rgb(143, 14, 14);
            display: none;
            padding: 12px;
            margin-top: 5px;
          }
166
        }
Matthew Mongeau committed
167
      }
168

169
      .media {
170
        background: transparent;
171
        @include box-sizing(border-box);
172
        display: table-cell;
173
        padding: 20px;
174 175 176 177
        position: relative;
        width: flex-grid(4);
        z-index: 2;

178
        .hero {
179
          border: 1px solid $border-color-3;
180
          height: 100%;
181 182 183 184
          overflow: hidden;
          position: relative;

          .play-intro {
185
            @include background-image(linear-gradient(-90deg, rgba(0,0,0, 0.65), rgba(0,0,0, 0.75)));
186
            border-radius: 4px;
187
            box-shadow: 0 1px 12px 0 rgba(0,0,0, 0.4);
188
            border: 2px solid rgba(255,255,255, 0.8);
189 190 191 192 193 194 195 196 197
            height: 80px;
            left: 50%;
            margin-top: -40px;
            margin-left: -40px;
            position: absolute;
            top: 50%;
            width: 80px;

            &::after {
198
              color: rgba(255,255,255, 0.8);
199 200
              content: "\25B6";
              display: block;
201
              font: normal 2em/1em $sans-serif;
202
              left: 50%;
203 204
              margin-left: -11px;
              margin-top: -16px;
205
              position: absolute;
206
              text-shadow: 0 -1px rgba(0,0,0, 0.8);
207 208 209 210 211
              top: 50%;
            }
          }

          img {
212 213
            display: block;
            width: 100%;
214 215 216
          }
        }

217
        &:hover, &:focus {
218
          text-decoration: none;
219 220

          .play-intro {
221
            @include background-image(linear-gradient(-90deg, rgba(0,0,0, 0.75), rgba(0,0,0, 0.8)));
222
            box-shadow: 0 1px 12px 0 rgba(0,0,0, 0.5);
223
            border-color: rgba(255,255,255, 0.9);
224 225

            &::after {
226
              color: rgba(255,255,255, 1);
227 228
            }
          }
229
        }
Matthew Mongeau committed
230 231
      }
    }
232 233 234 235
  }

  .container {
    @include clearfix;
236

237 238 239 240 241 242
    .wrap-instructor-info {
      &.studio-view {
        position: relative;
        margin: ($baseline/2) 0 0 0;
        overflow: hidden;
      }
243

244 245 246 247 248 249 250 251 252
      .instructor-info-action {
        @extend %t-copy-sub2;
        float: right;
        padding: ($baseline/4) ($baseline/2);
        border-radius: ($baseline/4);
        background-color: $shadow-l2;
        text-align: right;
        text-transform: uppercase;
        color: $lighter-base-font-color;
253

254 255 256 257 258 259
        &:hover {
          background-color: $link-hover;
          color: $white;
        }
      }
    }
260

261
    nav {
262
      border-bottom: 1px solid $border-color-2;
Matthew Mongeau committed
263
      @include box-sizing(border-box);
264
      @include clearfix;
265
      margin: 40px 0;
266 267 268
      width: flex-grid(12);

      &::after {
269
        @extend %faded-hr-divider;
270 271
        content: "";
        display: none;
Matthew Mongeau committed
272
      }
273 274

      a {
275
        border-bottom: 3px solid transparent;
276
        color: $lighter-base-font-color;
277
        display: inline-block;
278
        letter-spacing: 1px;
279 280
        margin: 0 15px;
        padding: 0px 5px 15px;
281
        text-align: center;
282
        text-transform: lowercase;
283 284 285 286

        &:first-child {
          margin-left: 0px;
        }
287

288
        &:hover, &:active, &:focus {
289
          border-color: $border-color-2;
290
          color: $base-font-color;
291
          text-decoration: none;
Matthew Mongeau committed
292
        }
293 294 295 296 297
      }
    }
  }

  .details {
298
    @include float(left);
299 300
    margin-right: flex-gutter();
    width: flex-grid(8);
301
    font: normal 1em/1.6em $serif;
302

303 304 305 306 307 308 309 310 311 312 313 314
    h2 {
      margin-top: ($baseline*1.5);
    }

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

    dt {
      margin-top: ($baseline/2);
      font-weight: 700;
    }
315 316 317

    .inner-wrapper {
      > section {
318
        margin-bottom: 40px;
319 320
      }

321
      .course-staff {
322

323
        .teacher {
324
          @include clearfix;
325
          margin-bottom: 40px;
326

327 328 329 330 331
          h3 {
            color: $base-font-color;
            font-family: $sans-serif;
            font-weight: 700;
            margin-bottom: 15px;
332
            text-transform: none;
Matthew Mongeau committed
333
          }
334

335 336
          .teacher-image {
            background: rgb(255,255,255);
337
            border: 1px solid $border-color-2;
338
            height: 115px;
339
            float: left;
340 341
            margin: 0 15px 0px 0;
            overflow: hidden;
342
            padding: 1px;
343 344 345 346 347 348 349
            width: 115px;

            img {
              display: block;
              min-height: 100%;
              max-width: 100%;
            }
350
          }
Matthew Mongeau committed
351 352
        }
      }
353 354 355 356 357 358 359 360 361 362 363

      .prerequisites, .syllabus {
        ul {
          li {
            font: normal 1em/1.6em $serif;
          }
          ul {
            margin: 5px 0px 10px;
          }
        }
      }
364

365 366 367 368 369
      .faq {
        @include clearfix;

        .responses {
          float: left;
370
        }
371

372 373
        .response {
          margin-bottom: 40px;
374

375 376 377 378
          h3 {
            font-family: $sans-serif;
            font-weight: 700;
            margin-bottom: 15px;
379
          }
380 381
        }
      }
Matthew Mongeau committed
382
    }
383 384 385 386
  }

  .course-sidebar {
    @include box-sizing(border-box);
387
    @include float(left);
388 389
    width: flex-grid(4);

390
    > section {
391
      box-shadow: inset 0 0 3px 0 rgba(0,0,0, 0.15);
392
      border: 1px solid $border-color-2;
393 394 395

      &.course-summary {
        padding: 16px 20px 30px;
396
        margin-bottom: 220px;
397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423
        border-top: none;
      }

      &.additional-resources {
        padding: 30px;

        .opencourseware {
          text-indent: -9999px;
          background: url('../images/opencourseware.png') 0 0 no-repeat;
          width: 266px;
          height: 31px;
          margin-bottom: 20px;
        }

        ul {
          padding-left: 0;
          margin-bottom: 0;
        }

        li {
          list-style: none;
          padding-left: 29px;
          background: url('../images/link-icon.png') left center no-repeat;
        }
      }
    }

424 425
    header {
      margin-bottom: 30px;
426
      padding-bottom: 16px;
427 428
      position: relative;
      text-align: center;
429

430
      &::after {
431
        @extend %faded-hr-divider;
432 433 434 435 436 437
        content: "";
        display: block;
        height: 1px;
        position: absolute;
        bottom: 0px;
        width: 100%;
438
        z-index: 1;
439
      }
440

441
      a.university-name {
442
        border-right: 1px solid $border-color-2;
443
        color: $base-font-color;
444 445 446
        font-family: $sans-serif;
        font-style: italic;
        font-weight: 800;
447
        display: inline-block;
448 449 450
        letter-spacing: 0px;
        margin-right: 15px;
        padding-right: 15px;
451

452
        &:hover, &:focus {
453 454 455
          color: $lighter-base-font-color;
        }
      }
456 457 458 459 460 461 462 463 464 465 466 467

      .social-sharing {
        @include box-sizing(border-box);
        float: left;
        height: 44px;
        position: relative;
        text-align: center;
        width: flex-grid(12);
        z-index: 2;

        float: none;

468
        &:hover, &:focus {
469
          .sharing-message {
470
            opacity: 1.0;
471 472 473 474 475 476 477 478
            top: 56px;
          }
        }

        .sharing-message {
          @include background-image(linear-gradient(-90deg, rgba(0,0,0, 0.9) 0%,
                                                            rgba(0,0,0, 0.7) 100%));
          border: 1px solid rgba(0,0,0, 0.5);
479
          border-radius: 4px;
480
          box-shadow: 0 4px 25px 0 rgba(0,0,0, 0.5);
481 482 483 484 485 486 487 488 489 490 491 492
          @include box-sizing(border-box);
          color: rgb(255,255,255);
          float: right;
          font-family: $serif;
          font-size: 0.9em;
          font-style: italic;
          left: 50%;
          margin-left: -110px;
          opacity: 0;
          padding: 6px 10px;
          position: absolute;
          text-align: center;
493
          @include transition(all 0.15s ease-out 0s);
494 495 496
          top: 65px;
          width: 220px;

497
          &:hover, &:focus {
498 499 500 501 502
            opacity: 0;
          }
        }

        .share {
503
          display: inline-block;
504 505 506 507 508 509 510
          height: 35px;
          width: 35px;
          margin-right: ($baseline);
          margin-top: ($baseline/4);
          font-size: 1.75em;
          text-decoration: none;
          color: $black;
511
          opacity: 0.5;
512
          @include transition(all 0.15s linear 0s);
513

514
          &:hover, &:focus {
515
            opacity: 1.0;
516 517 518 519 520 521 522
          }

          &:last-child {
            margin-right: 0px;
          }
        }
      }
523 524 525 526 527 528 529

      h1 {
        font: 1em $serif;
        letter-spacing: 0;
        color: #999;
        margin-bottom: 0;
      }
530
    }
531

532 533 534
    .important-dates {
      list-style: none;
      margin: 0px;
535
      padding: 0px;
536

537
      .important-dates-item {
538
        @include clearfix;
539
        border-bottom: 1px dotted $border-color-2;
540 541
        margin-bottom: $baseline;
        padding-bottom: ($baseline/2);
542

543
        &:hover, &:focus {
544
          .icon {
545
            opacity: 1.0;
546 547 548
          }
        }

549
        .important-dates-item-title {
550
          color: $lighter-base-font-color;
551
          float: left;
552
          font-family: $sans-serif;
553
        }
554

555
        .icon {
556 557 558 559
            float: left;
            padding: 1px;
            margin: ($baseline/5) ($baseline/2) 0 0;
            opacity: .6;
560 561
        }

562
        .important-dates-item-text {
563 564 565
          float: right;
          font-weight: 700;
        }
566
      }
Matthew Mongeau committed
567
    }
568 569
  }
}