_course_about.scss 13.6 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 $shadow-l1;
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
      @include clearfix();
26 27
      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: $baseline;
42
        position: relative;
43
        width: flex-grid(8) + flex-gutter();
44 45
        z-index: 2;

46
        > .heading-group {
47
          border-bottom: 1px solid $border-color-2;
48
          box-shadow: 0 1px 0 0 rgba(255,255,255, 0.6);
49 50
          margin-bottom: $baseline;
          padding-bottom: $baseline;
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
            @include text-align(left);
60
            text-shadow: 0 1px rgba(255,255,255, 0.6);
61

62 63 64 65 66 67 68 69 70 71
            .button-org {
                @include margin-left($baseline*0.75);
                background: transparent !important;
                border: none !important;
                box-shadow: none !important;
                text-shadow: none !important;
                text-transform: normal !important;
                font-size: $body-font-size;
                color: $base-font-color !important;
                letter-spacing: 0px !important;
72

73 74 75
                &:hover, &:focus {
                    color: $link-color;
                }
76
            }
77 78 79
          }

          h2 {
80
            display: inline-block;
81
            margin: 0;
82 83

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

90
              &:hover, &:focus {
91
                color: $link-color;
92 93
              }
            }
Matthew Mongeau committed
94
          }
Matthew Mongeau committed
95
        }
96

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

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

116
            &:hover, &:focus {
117 118
              color: rgb(255,255,255);
            }
119 120 121
            span {
              display: inline-block;
            }
122
          }
123

124
          a {
125
            &:hover, &:visited, &:focus {
126 127 128 129
              text-decoration: none;
            }
          }

130
          strong {
131
            @include button(shiny, $button-color);
132
            @include box-sizing(border-box);
133
            border-radius: 3px;
134
            display: block;
135
            @include float(left);
136 137
            font: normal 1.2rem/1.6rem $sans-serif;
            letter-spacing: 1px;
138
            padding: ($baseline/2) 0;
139 140 141 142
            text-transform: uppercase;
            text-align: center;
            width: flex-grid(3, 8);

143
            &:hover, &:focus {
144 145 146 147
              color: rgb(255,255,255);
            }
          }

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

          #register_error {
165
            background: $error-color;
166 167 168 169
            border: 1px solid rgb(202, 17, 17);
            color: rgb(143, 14, 14);
            display: none;
            padding: 12px;
170
            margin-top: ($baseline/4);
171
          }
172
        }
Matthew Mongeau committed
173
      }
174

175
      .media {
176
        background: transparent;
177
        @include box-sizing(border-box);
178
        display: table-cell;
179
        padding: 20px;
180 181 182 183
        position: relative;
        width: flex-grid(4);
        z-index: 2;

184
        .hero {
185
          border: 1px solid $border-color-3;
186
          height: 100%;
187 188 189 190
          overflow: hidden;
          position: relative;

          .play-intro {
191
            @include background-image(linear-gradient(-90deg, rgba(0,0,0, 0.65), rgba(0,0,0, 0.75)));
192
            border-radius: 4px;
193
            box-shadow: 0 1px 12px 0 $shadow-d1;
194
            border: 2px solid rgba(255,255,255, 0.8);
195
            height: 80px;
196
            @include left(50%);
197
            margin-top: -40px;
198
            @include margin-left(-40px);
199 200 201 202 203
            position: absolute;
            top: 50%;
            width: 80px;

            &::after {
204
              color: rgba(255,255,255, 0.8);
205 206
              content: "\25B6";
              display: block;
207
              font: normal 2em/1em $sans-serif;
208 209
              @include left(50%);
              @include margin-left(-11px);
210
              margin-top: -16px;
211
              position: absolute;
212
              text-shadow: 0 -1px rgba(0,0,0, 0.8);
213 214 215 216 217
              top: 50%;
            }
          }

          img {
218 219
            display: block;
            width: 100%;
220 221 222
          }
        }

223
        &:hover, &:focus {
224
          text-decoration: none;
225 226

          .play-intro {
227
            @include background-image(linear-gradient(-90deg, rgba(0,0,0, 0.75), rgba(0,0,0, 0.8)));
228
            box-shadow: 0 1px 12px 0 rgba(0,0,0, 0.5);
229
            border-color: rgba(255,255,255, 0.9);
230 231

            &::after {
232
              color: rgba(255,255,255, 1);
233 234
            }
          }
235
        }
Matthew Mongeau committed
236 237
      }
    }
238 239 240
  }

  .container {
241
    @include clearfix();
242

243 244 245 246 247 248
    .wrap-instructor-info {
      &.studio-view {
        position: relative;
        margin: ($baseline/2) 0 0 0;
        overflow: hidden;
      }
249

250 251
      .instructor-info-action {
        @extend %t-copy-sub2;
252
        @include float(right);
253 254
        padding: ($baseline/4) ($baseline/2);
        border-radius: ($baseline/4);
Chris Rodriguez committed
255
        background-color: $light-gray1;
256
        @include text-align(right);
257
        text-transform: uppercase;
258
        color: $staff-color;
259

260
        &:hover {
261
          background-color: $staff-color;
262 263 264 265
          color: $white;
        }
      }
    }
266 267 268
  }

  .details {
269
    @include float(left);
270
    @include margin-right(flex-gutter());
271
    width: flex-grid(8);
272
    font: normal 1em/1.6em $serif;
273

274 275 276 277 278 279 280 281 282 283 284 285
    h2 {
      margin-top: ($baseline*1.5);
    }

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

    dt {
      margin-top: ($baseline/2);
      font-weight: 700;
    }
286 287 288

    .inner-wrapper {
      > section {
289
        margin-bottom: ($baseline*2);
290 291
      }

292
      .course-staff {
293

294
        .teacher {
295 296
          @include clearfix();
          margin-bottom: ($baseline*2);
297

298 299 300 301
          h3 {
            color: $base-font-color;
            font-family: $sans-serif;
            font-weight: 700;
302
            margin-bottom: ($baseline*0.75);
303
            text-transform: none;
Matthew Mongeau committed
304
          }
305

306 307
          .teacher-image {
            background: rgb(255,255,255);
308
            border: 1px solid $border-color-2;
309
            height: 115px;
310
            @include float(left);
311 312
            margin: 0 15px 0px 0;
            overflow: hidden;
313
            padding: 1px;
314 315 316 317 318 319 320
            width: 115px;

            img {
              display: block;
              min-height: 100%;
              max-width: 100%;
            }
321
          }
Matthew Mongeau committed
322 323
        }
      }
324 325 326 327 328 329 330 331 332 333 334

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

336
      .faq {
337
        @include clearfix();
338 339

        .responses {
340
          @include float(left);
341
        }
342

343
        .response {
344
          margin-bottom: ($baseline*2);
345

346 347 348
          h3 {
            font-family: $sans-serif;
            font-weight: 700;
349
            margin-bottom: ($baseline*0.75);
350
          }
351 352
        }
      }
Matthew Mongeau committed
353
    }
354 355 356 357
  }

  .course-sidebar {
    @include box-sizing(border-box);
358
    @include float(left);
359 360
    width: flex-grid(4);

361
    > section {
362
      box-shadow: inset 0 0 3px 0 rgba(0,0,0, 0.15);
363
      border: 1px solid $border-color-2;
364 365 366

      &.course-summary {
        padding: 16px 20px 30px;
367
        margin-bottom: 220px;
368 369 370 371 372 373 374 375
        border-top: none;
      }

      &.additional-resources {
        padding: 30px;

        .opencourseware {
          text-indent: -9999px;
376
          background: url('#{$static-path}/images/opencourseware.png') 0 0 no-repeat;
377 378
          width: 266px;
          height: 31px;
379
          margin-bottom: $baseline;
380 381 382
        }

        ul {
383
          @include padding-left(0);
384 385 386 387 388
          margin-bottom: 0;
        }

        li {
          list-style: none;
389
          @include padding-left(29px);
390
          background: url('#{$static-path}/images/link-icon.png') left center no-repeat;
391 392 393 394
        }
      }
    }

erm0l0v committed
395 396 397 398 399
    >.coursetalk-read-reviews {
      margin-top: -200px;
      margin-bottom: 220px;
    }

400 401
    header {
      margin-bottom: 30px;
402
      padding-bottom: 16px;
403 404
      position: relative;
      text-align: center;
405

406
      &::after {
407
        @extend %faded-hr-divider;
408 409 410 411 412 413
        content: "";
        display: block;
        height: 1px;
        position: absolute;
        bottom: 0px;
        width: 100%;
414
        z-index: 1;
415
      }
416

417
      a.university-name {
418
        @include border-right(1px solid $border-color-2);
419
        color: $base-font-color;
420 421
        font-family: $sans-serif;
        font-style: italic;
422
        font-weight: 700;
423
        display: inline-block;
424
        letter-spacing: 0px;
425 426
        @include margin-right($baseline*0.75);
        @include padding-right(15px);
427

428
        &:hover, &:focus {
429 430 431
          color: $lighter-base-font-color;
        }
      }
432 433 434

      .social-sharing {
        @include box-sizing(border-box);
435
        @include float(left);
436 437 438 439 440 441 442 443
        height: 44px;
        position: relative;
        text-align: center;
        width: flex-grid(12);
        z-index: 2;

        float: none;

444
        &:hover, &:focus {
445
          .sharing-message {
446
            opacity: 1.0;
447 448 449 450 451 452 453 454
            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);
455
          border-radius: 4px;
456
          box-shadow: 0 4px 25px 0 rgba(0,0,0, 0.5);
457 458
          @include box-sizing(border-box);
          color: rgb(255,255,255);
459
          @include float(right);
460 461 462
          font-family: $serif;
          font-size: 0.9em;
          font-style: italic;
463 464
          @include left(50%);
          @include margin-left(-110px);
465 466 467 468
          opacity: 0;
          padding: 6px 10px;
          position: absolute;
          text-align: center;
469
          @include transition(all 0.15s ease-out 0s);
470 471 472
          top: 65px;
          width: 220px;

473
          &:hover, &:focus {
474 475 476 477 478
            opacity: 0;
          }
        }

        .share {
479
          display: inline-block;
480 481
          height: 35px;
          width: 35px;
482
          @include margin-right($baseline);
483 484 485 486
          margin-top: ($baseline/4);
          font-size: 1.75em;
          text-decoration: none;
          color: $black;
487
          opacity: 0.5;
488
          @include transition(all 0.15s linear 0s);
489

490
          &:hover, &:focus {
491
            opacity: 1.0;
492 493 494
          }

          &:last-child {
495
            margin-right: 0;
496 497 498
          }
        }
      }
499 500 501 502 503 504 505

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

508 509
    .important-dates {
      list-style: none;
510 511
      margin: 0;
      padding: 0 ($baseline/2);
512

513 514
      li {
        @include clearfix();
515
        border-bottom: 1px dotted $border-color-2;
516 517
        margin-bottom: $baseline;
        padding-bottom: ($baseline/2);
518

519
        &:hover, &:focus {
520
          .icon {
521
            opacity: 1.0;
522 523 524
          }
        }

525
        .important-dates-item-title {
526
          color: $lighter-base-font-color;
527
          @include float(left);
528
          font-family: $sans-serif;
529
        }
530

531
        .icon {
532
            @include float(left);
533
            padding: 1px;
534
            @include margin(($baseline/5), ($baseline/2), 0, 0);
535
            opacity: .6;
536 537
        }

538
        .important-dates-item-text {
539
          @include float(right);
540 541
          font-weight: 700;
        }
542
      }
543 544 545 546 547 548 549

      .prerequisite-course {
        .pre-requisite {
          max-width: 39%;
          @extend %text-truncated;
        }
        .tip {
550
          @include float(left);
551 552 553 554 555 556
          margin: $baseline 0 ($baseline/2);
          font-size: 0.8em;
          color: $lighter-base-font-color;
          font-family: $sans-serif;
        }
      }
Matthew Mongeau committed
557
    }
558 559
  }
}