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

6
  header.course-profile {
7 8
    background: $course-profile-bg;
    @include background-image(url($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
            @include 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 70

            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;

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

          h2 {
77
            @include 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 {
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 114 115 116

            &:hover {
              color: rgb(255,255,255);
            }
          }
117

118 119 120 121 122 123
          a {
            &:hover, &:visited {
              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 137 138 139 140 141
            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);

            &:hover {
              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 {
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 236 237
  }

  .container {
    @include clearfix;

    nav {
238
      border-bottom: 1px solid $border-color-2;
Matthew Mongeau committed
239
      @include box-sizing(border-box);
240
      @include clearfix;
241
      margin: 40px 0;
242 243 244
      width: flex-grid(12);

      &::after {
245
        @extend %faded-hr-divider;
246 247
        content: "";
        display: none;
Matthew Mongeau committed
248
      }
249 250

      a {
251
        border-bottom: 3px solid transparent;
252
        color: $lighter-base-font-color;
253
        @include inline-block;
254
        letter-spacing: 1px;
255 256
        margin: 0 15px;
        padding: 0px 5px 15px;
257
        text-align: center;
258
        text-transform: lowercase;
259 260 261 262

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

        &:hover, &.active {
265
          border-color: $border-color-2;
266
          color: $base-font-color;
267
          text-decoration: none;
Matthew Mongeau committed
268
        }
269 270 271 272 273 274 275 276 277 278 279
      }
    }
  }

  .details {
    float: left;
    margin-right: flex-gutter();
    width: flex-grid(8);

    .inner-wrapper {
      > section {
280
        margin-bottom: 40px;
281 282
      }

283
      .course-staff {
284

285
        .teacher {
286
          @include clearfix;
287
          margin-bottom: 40px;
288

289 290 291 292 293
          h3 {
            color: $base-font-color;
            font-family: $sans-serif;
            font-weight: 700;
            margin-bottom: 15px;
294
            text-transform: none;
Matthew Mongeau committed
295
          }
296

297 298
          .teacher-image {
            background: rgb(255,255,255);
299
            border: 1px solid $border-color-2;
300
            height: 115px;
301
            float: left;
302 303
            margin: 0 15px 0px 0;
            overflow: hidden;
304
            padding: 1px;
305 306 307 308 309 310 311
            width: 115px;

            img {
              display: block;
              min-height: 100%;
              max-width: 100%;
            }
312
          }
Matthew Mongeau committed
313 314
        }
      }
315 316 317 318 319 320 321 322 323 324 325

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

327 328 329 330 331
      .faq {
        @include clearfix;

        .responses {
          float: left;
332
        }
333

334 335
        .response {
          margin-bottom: 40px;
336

337 338 339 340
          h3 {
            font-family: $sans-serif;
            font-weight: 700;
            margin-bottom: 15px;
341
          }
342 343
        }
      }
Matthew Mongeau committed
344
    }
345 346 347 348 349 350 351
  }

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

352
    > section {
353
      box-shadow: inset 0 0 3px 0 rgba(0,0,0, 0.15);
354
      border: 1px solid $border-color-2;
355 356 357

      &.course-summary {
        padding: 16px 20px 30px;
358
        margin-bottom: 220px;
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
        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;
        }
      }
    }

386 387
    header {
      margin-bottom: 30px;
388
      padding-bottom: 16px;
389 390
      position: relative;
      text-align: center;
391

392
      &::after {
393
        @extend %faded-hr-divider;
394 395 396 397 398 399
        content: "";
        display: block;
        height: 1px;
        position: absolute;
        bottom: 0px;
        width: 100%;
400
        z-index: 1;
401
      }
402

403
      a.university-name {
404
        border-right: 1px solid $border-color-2;
405
        color: $base-font-color;
406 407 408
        font-family: $sans-serif;
        font-style: italic;
        font-weight: 800;
409 410 411 412
        @include inline-block;
        letter-spacing: 0px;
        margin-right: 15px;
        padding-right: 15px;
413

414 415 416 417
        &:hover {
          color: $lighter-base-font-color;
        }
      }
418 419 420 421 422 423 424 425 426 427 428 429 430 431

      .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;

        &:hover {
          .sharing-message {
432
            opacity: 1.0;
433 434 435 436 437 438 439 440
            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);
441
          border-radius: 4px;
442
          box-shadow: 0 4px 25px 0 rgba(0,0,0, 0.5);
443 444 445 446 447 448 449 450 451 452 453 454
          @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;
455
          @include transition(all 0.15s ease-out 0s);
456 457 458 459 460 461 462 463 464 465 466 467 468
          top: 65px;
          width: 220px;

          &:hover {
            opacity: 0;
          }
        }

        .share {
          height: 44px;
          @include inline-block;
          margin-right: 10px;
          opacity: 0.5;
469
          @include transition(all 0.15s linear 0s);
470 471 472
          width: 44px;

          &:hover {
473
            opacity: 1.0;
474 475 476 477 478 479 480 481 482 483 484
          }

          img {
            width: 100%;
          }

          &:last-child {
            margin-right: 0px;
          }
        }
      }
485 486 487 488 489 490 491

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

494 495 496 497 498 499 500
    .important-dates {
      list-style: none;
      margin: 0px;
      padding: 0px 10px;

      li {
        @include clearfix;
501
        border-bottom: 1px dotted $border-color-2;
502 503 504
        margin-bottom: 20px;
        padding-bottom: 10px;

505
        &.prerequisites {
506
          border: 1px solid $border-color-2;
507 508 509 510 511 512 513 514
          margin: 0 -10px 0;
          padding: 10px;

          p {
            margin-right: 10px;
          }
        }

515 516
        &:hover {
          .icon {
517
            opacity: 1.0;
518 519 520
          }
        }

521
        p {
522
          color: $lighter-base-font-color;
523
          float: left;
524
          font-family: $sans-serif;
525
        }
526

527 528
        .icon {
          background-size: cover;
529 530
          float: left;
          height: 19px;
531 532
          margin: 2px 10px 0 0;
          opacity: 0.6;
533
          @include transition(all 0.15s linear 0s);
534
          width: 19px;
535

536
          &.start {
537
            @include background-image(url('../images/portal-icons/calendar-icon.png'));
538 539
          }

540 541
          &.end {
            @include background-image(url('../images/portal-icons/calendar-icon.png'));
542 543
          }

544
          &.length {
545
            @include background-image(url('../images/portal-icons/chart-icon.png'));
546 547
          }

548
          &.course-number {
549
            @include background-image(url('../images/portal-icons/course-info-icon.png'));
550
          }
551 552 553 554 555

          &.effort {
            @include background-image(url('../images/portal-icons/pencil-icon.png'));
          }

556
          &.prereq {
557 558
            @include background-image(url('../images/portal-icons/prerec-icon.png'));
          }
559 560 561 562 563 564
        }

        span {
          float: right;
          font-weight: 700;
        }
565
      }
Matthew Mongeau committed
566
    }
567 568
  }
}