_home.scss 11.8 KB
Newer Older
Matthew Mongeau committed
1
.home {
2
  padding: 0;
Matthew Mongeau committed
3

4 5 6 7 8
  > .container {
    @include box-sizing(border-box);
    width: flex-grid(12);
  }

Matthew Mongeau committed
9
  > header {
10
    @include linear-gradient($homepage__header--gradient__color--alpha, $homepage__header--gradient__color--bravo);
11
    background-size: cover;
12
    background-image: $homepage-bg-image;
13
    border-bottom: 1px solid $border-color-3;
14 15
    box-shadow: 0 1px 0 0 $course-header-bg, inset 0 -1px 5px 0 $shadow-l1;
    @include clearfix();
16
    height: 460px;
17
    overflow: hidden;
18
    margin-top: $header_image_margin;
19
    padding: 0;
20
    width: flex-grid(12);
Matthew Mongeau committed
21

22 23
    .outer-wrapper {
      @extend .animation-home-header-pop-up;
24
      margin: 0 auto;
25
      padding: 240px ($baseline/2) 0;
26
      position: relative;
27 28
      max-width: 1200px;
      min-width: 760px;
29
      @include clearfix();
30 31
    }

32
    .title {
33
      background: $white;
34 35
      background: $course-header-bg;
      border: 1px solid $border-color-3;
36
      box-shadow: 0 4px 25px 0 rgba(0,0,0, 0.5);
37
      @include box-sizing(border-box);
38
      min-height: 120px;
39
      margin-left: grid-width(2) + $gw-gutter;
40
      width: flex-grid(6);
41
      float: left;
42
      position: relative;
43
      @include transition(all 0.2s linear 0s);
44
      vertical-align: top;
45

46
      &:hover, &:focus {
47
        .actions {
48
          display: none;
49
        }
50 51
      }

52 53
      > hgroup {
        @include box-sizing(border-box);
54
        display: inline-block;
55
        left: 0px;
56
        opacity: 1.0;
57 58
        padding: 20px 30px;
        top: 0px;
59
        @include transition(all 0.2s linear 0s);
60
        text-align: left;
61

62 63 64 65 66 67 68 69 70 71 72
        h1 {
          margin-bottom: 0px;
          text-align: left;
          text-shadow: 0 1px rgba(255,255,255, 0.6);
          text-transform: none;
        }

        h2 {
          font-style: italic;
          margin-bottom: 0px;
          text-transform: lowercase;
73 74
        }
      }
75
    }
76

77 78
    .actions {
      display: none;
79
    }
Matthew Mongeau committed
80

81
    .media {
82
      background: $white;
83 84
      background: $course-header-bg;
      border: 1px solid $border-color-3;
85
      border-left: 0;
86
      @include box-sizing(border-box);
87
      // box-shadow: 0 4px 25px 0 rgba(0,0,0, 0.5);
88
      height: 120px;
89
      float: left;
90
      padding: 4px;
91
      position: relative;
92
      vertical-align: top;
93
      width: flex-grid(2) + flex-gutter();
94 95
      z-index: 2;

96
      &:hover, &:focus {
97 98 99
        text-decoration: underline;
      }

100
      .hero {
101
        height: 100%;
102 103
        overflow: hidden;
        position: relative;
104
        background: url($video-thumb-url) center no-repeat;
105
        background-size: cover;
106 107

        .play-intro {
108
          @include background-image(linear-gradient(-90deg, rgba(0,0,0, 0.65), rgba(0,0,0, 0.75)));
109
          border-radius: 4px;
110
          box-shadow: 0 1px 12px 0 $shadow-d1;
111
          @include box-sizing(border-box);
112
          border: 2px solid rgba(255,255,255, 0.8);
113
          height: 60px;
114
          left: 50%;
115
          margin-top: -30px;
116
          margin-left: -($baseline*1.5);
117 118
          position: absolute;
          top: 50%;
119
          @include transition(all 0.15s linear 0s);
120
          width: 60px;
121 122

          &::after {
123
            color: $white;
124
            color: rgba(255,255,255, 0.8);
125 126
            content: "\25B6";
            display: block;
127
            font: normal 2em/1em $sans-serif;
128
            left: 50%;
129 130
            margin-left: -11px;
            margin-top: -16px;
131
            position: absolute;
132
            text-shadow: 0 -1px rgba(0,0,0, 0.8);
133 134 135 136 137 138 139 140 141 142
            top: 50%;
          }
        }

        img {
          display: block;
          width: 100%;
        }
      }

143
      &:hover, &:focus {
144
        .play-intro {
145
          @include background-image(linear-gradient(-90deg, rgba(0,0,0, 0.75), rgba(0,0,0, 0.8)));
146
          box-shadow: 0 1px 12px 0 rgba(0,0,0, 0.5);
147
          border-color: rgba(255,255,255, 0.9);
148 149

          &::after {
150
            color: $white;
151
            color: rgba(255,255,255, 1);
152 153 154 155 156 157 158 159
          }
        }
      }
    }
  }

  .highlighted-courses {
    @include box-sizing(border-box);
160
    margin-bottom: ($baseline*2);
161 162 163 164 165 166
    position: relative;
    width: flex-grid(12);
    z-index: 1;

    > h2 {
      @include background-image(linear-gradient(-90deg, rgb(250,250,250), rgb(230,230,230)));
167
      border: 1px solid $border-color-2;
168
      border-radius: 4px;
169
      border-top-color: $border-color-1;
170
      box-shadow: inset 0 0 0 1px rgba(255,255,255, 0.4), 0 0px 12px 0 $shadow;
171
      color: $lighter-base-font-color;
172
      letter-spacing: 1px;
173 174
      margin-bottom: 0px;
      margin-top: -15px;
175
      padding: 10px 10px 8px;
176
      text-align: center;
177 178
      text-transform: uppercase;
      text-shadow: 0 1px rgba(255,255,255, 0.6);
Matthew Mongeau committed
179 180 181 182
    }
  }

  .university-partners {
183
    border-bottom: 1px solid $border-color-2;
184
    margin-bottom: 0px;
Galen Frechette committed
185
    overflow: hidden;
Matthew Mongeau committed
186 187 188
    position: relative;
    width: flex-grid(12);

189
    &::before {
190
      @extend %faded-hr-divider-medium;
191 192 193 194 195
      content: "";
      display: block;
    }

    &::after {
196
      @extend %faded-hr-divider-medium;
197 198 199 200
      content: "";
      display: block;
    }

201 202

    hr {
203
      @extend %faded-hr-divider-light;
204
      border: none;
205
      margin: 0;
206 207 208 209
      position: relative;
      z-index: 2;

      &::after {
210
        @extend %faded-hr-divider;
211 212 213 214 215 216 217 218
        bottom: 0px;
        content: "";
        display: block;
        position: absolute;
        top: -1px;
      }
    }

Matthew Mongeau committed
219 220
    .partners {
      margin: 0 auto;
221
      padding: 20px 0px;
222
      text-align: center;
Matthew Mongeau committed
223

224
      li.partner {
225
        display: inline-block;
226
        padding: 0px 30px;
Galen Frechette committed
227
        position: relative;
228
        vertical-align: middle;
229
        overflow: hidden;
230 231

        &::before {
232
          @extend %faded-vertical-divider;
233 234
          content: "";
          display: block;
235
          height: 80px;
236 237
          right: 0px;
          position: absolute;
238
          top: -5px;
239 240 241 242
          width: 1px;
        }

        &::after {
243
          @extend %faded-vertical-divider-light;
244 245
          content: "";
          display: block;
246
          height: 80px;
247 248
          right: 1px;
          position: absolute;
249
          top: -5px;
250 251 252
          width: 1px;
        }

Matthew Mongeau committed
253
        &:last-child {
254 255 256 257 258 259 260 261 262 263 264
          &::before {
            display: none;
          }

          &::after {
            display: none;
          }
        }
      }

      a {
265
        @include transition(all $tmg-f2 ease-in-out 0s);
266 267 268 269 270 271 272 273 274 275 276 277

        &::before {
          @include background-image(radial-gradient(50% 50%, circle closest-side, rgba(255,255,255, 1) 0%, rgba(255,255,255, 0) 100%));
          content: "";
          display: block;
          height: 200px;
          left: 50%;
          margin-left: -100px;
          margin-top: -100px;
          opacity: 0;
          width: 200px;
          position: absolute;
278
          @include transition(all $tmg-f2 ease-in-out 0s);
279 280 281 282 283
          top: 50%;
          z-index: 1;
        }

        .name {
284
          bottom: -60px;
285 286 287
          left: 0px;
          position: absolute;
          text-align: center;
288
          @include transition(all $tmg-f2 ease-in-out 0s);
289 290
          width: 100%;
          z-index: 2;
291

292
          > span {
293
            color: $base-font-color;
294
            font: 800 italic 1.4em/1.4em $sans-serif;
295
            text-shadow: 0 1px rgba(255,255,255, 0.6);
296
            @include transition(all 0.15s ease-in-out 0s);
297

298
            &:hover, &:focus {
299 300 301
              color: $lighter-base-font-color;
            }
          }
302 303 304 305
        }

        img {
          position: relative;
306
          @include transition(all $tmg-f2 ease-in-out 0s);
307 308
          vertical-align: middle;
          z-index: 2;
Matthew Mongeau committed
309
        }
310

311
        &:hover, &:focus {
312 313
          text-decoration: none;

Galen Frechette committed
314
          &::before {
315
            opacity: 1.0;
Galen Frechette committed
316
          }
317

318
          .name {
319
            bottom: 20px;
320
          }
321

322
          img {
323
            top: -100px;
324 325
          }
        }
Matthew Mongeau committed
326 327
      }
    }
328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356

    &.university-partners2x6 {
      @include box-sizing(border-box);
      width: flex-grid(12, 12);

      .partners {
        @include box-sizing(border-box);
        @include clearfix();
        margin-left: 60px;
        padding: 12px 0;

        .partner {
          @include box-sizing(border-box);
          width: flex-grid(2, 12);
          display: block;
          float: left;
          padding: 0 12px;

          a {

            img {
              width: 100%;
              height: auto;
            }

            .name > span {
              font-size: 1.0em;
            }

357
            &:hover, &:focus {
358 359 360 361 362 363 364 365
              .name {
                bottom: 14px;
              }
            }
          }
        }
      }
    }
Matthew Mongeau committed
366 367 368
  }

  .more-info {
369
    border: 1px solid $border-color-2;
370
    margin-bottom: ($baseline*4);
Matthew Mongeau committed
371 372
    width: flex-grid(12);

373
    header {
374
      @include background-image(linear-gradient(-90deg, rgb(250,250,250), rgb(230,230,230)));
375
      border-bottom: 1px solid $border-color-2;
376
      @include clearfix();
377
      padding: 10px 20px 8px;
378
      position: relative;
379 380 381

      h2 {
        float: left;
382
        margin: 0;
383
        text-shadow: 0 1px rgba(255,255,255, 0.6);
384 385
      }

386
      .action.action-mediakit {
387
        float: right;
388
        position: relative;
389
        top: 1px;
390 391
        font-family: $sans-serif;
        font-size: 14px;
392
        text-shadow: 0 1px rgba(255,255,255, 0.6);
393 394 395 396 397 398 399 400 401

        &:after {
          position: relative;
          top: -1px;
          display: inline-block;
          margin: 0 0 0 5px;
          content: "➤";
          font-size: 11px;
        }
402 403 404 405 406 407

        .org-name {
          color: $blue;
          font-family: $sans-serif;
          text-transform: none;
        }
408
      }
Matthew Mongeau committed
409 410 411
    }

    .news {
412
      @include box-sizing(border-box);
413
      box-shadow: inset 0 0 3px 0 rgba(0,0,0, 0.15);
414
      padding: 20px;
415 416
      width: flex-grid(12);

417
      .blog-posts {
418
        border-bottom: 1px solid $border-color-2;
419 420 421
        margin-bottom: $baseline;
        padding-bottom: $baseline;
        @include clearfix();
422

423
        > article {
424
          border: 1px dotted transparent;
425
          border-color: $border-color-2;
426
          @include box-sizing(border-box);
427
          @include clearfix();
428 429
          float: left;
          margin-right: flex-gutter();
430
          padding: 10px;
431
          @include transition(all 0.15s linear 0s);
432 433
          width: flex-grid(4);

434
          &:hover, &:focus {
435 436
            background: $body-bg;
            border: 1px solid $border-color-2;
437
            box-shadow: inset 0 0 3px 0 $shadow-l1;
438 439
          }

440
          &:last-child {
441
            margin-right: 0;
442 443 444
          }

          .post-graphics {
445
            border: 1px solid $border-color-1;
446
            @include box-sizing(border-box);
447
            display: block;
448
            float: left;
449
            height: 84px;
450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465
            margin-right: flex-gutter();
            overflow: hidden;
            width: flex-grid(4);
            vertical-align: top;

            img {
              min-height: 100%;
              max-width: 100%;
            }
          }

          .post-name {
            float: left;
            width: flex-grid(8);
            vertical-align: top;

466 467 468
            a {
              color: $base-font-color;
              font: 700 1em/1.2em $sans-serif;
469

470
              &:hover, &:focus {
471 472
                color: $blue;
                text-decoration: underline;
473 474 475 476 477
              }
            }

            .post-date {
              color: $lighter-base-font-color;
478
              display: none;
479 480 481
              letter-spacing: 1px;
            }
          }
482 483
        }
      }
484 485 486 487 488 489 490 491 492 493 494 495 496

      .press-links {
        h3 {
          display: inline;
          font-family: $sans-serif;
          font-weight: 700;
          line-height: 1.6em;
        }

        a {
          line-height: 1.6em;
          font-family: $serif;
          font-style: italic;
497
          margin-left: ($baseline/2);
498 499 500 501 502

          &.read-more {
            float: right;
            color: lighten($base-font-color, 50%);

503
            &:hover, &:focus {
504 505 506 507
              color: $blue;
              text-decoration: underline;
            }
          }
508 509
        }
      }
Matthew Mongeau committed
510 511 512
    }
  }
}