_home.scss 11.7 KB
Newer Older
Matthew Mongeau committed
1
.home {
2
  padding: 0px;
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
    background: rgb(255,255,255);
11
    @include background-image(url('/static/images/homepage-bg.jpg'));
12 13 14
    background-size: cover;
    border-bottom: 1px solid rgb(80,80,80);
    @include box-shadow(0 1px 0 0 rgba(255,255,255, 0.9), inset 0 -1px 5px 0 rgba(0,0,0, 0.1));
15
    @include clearfix;
16
    height: 460px;
17
    margin-top: -69px;
18
    overflow: hidden;
19
    padding: 0px;
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 10px 0px;
26
      position: relative;
27 28
      max-width: 1200px;
      min-width: 760px;
29
      @include clearfix;
30 31
    }

32
    .title {
33
      background: #FFF;
34
      background: rgba(255,255,255, 0.93);
35 36
      border: 1px solid rgb(100,100,100);
      @include 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 44
      @include transition(all, 0.2s, linear);
      vertical-align: top;
45

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

52 53 54 55 56 57 58 59 60
      > hgroup {
        @include box-sizing(border-box);
        @include inline-block;
        left: 0px;
        opacity: 1;
        padding: 20px 30px;
        top: 0px;
        @include transition(all, 0.2s, linear);
        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: #FFF;
83
      background: rgba(255,255,255, 0.93);
84
      border: 1px solid rgb(100,100,100);
85
      border-left: 0;
86
      @include box-sizing(border-box);
87
      // @include 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 97 98 99
      &:hover {
        text-decoration: underline;
      }

100
      .hero {
101
        height: 100%;
102 103
        overflow: hidden;
        position: relative;
104 105
        background: url('../images/courses/video-thumb.jpg') center no-repeat;
        @include 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
          @include border-radius(4px);
110
          @include box-shadow(0 1px 12px 0 rgba(0,0,0, 0.4));
111
          @include box-sizing(border-box);
112
          border: 2px solid rgba(255,255,255, 0.8);
113
          height: 60px;
114
          left: 50%;
115 116
          margin-top: -30px;
          margin-left: -30px;
117 118
          position: absolute;
          top: 50%;
119
          @include transition(all, 0.15s, linear);
120
          width: 60px;
121 122

          &::after {
123
            color: #fff;
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 143 144
            top: 50%;
          }
        }

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

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

          &::after {
150
            color: #fff;
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: 40px;
161 162 163 164 165 166 167 168 169 170 171
    position: relative;
    width: flex-grid(12);
    z-index: 1;

    > h2 {
      @include background-image(linear-gradient(-90deg, rgb(250,250,250), rgb(230,230,230)));
      border: 1px solid rgb(200,200,200);
      @include border-radius(4px);
      border-top-color: rgb(190,190,190);
      @include box-shadow(inset 0 0 0 1px rgba(255,255,255, 0.4), 0 0px 12px 0 rgba(0,0,0, 0.2));
      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 184
    border-bottom: 1px solid rgb(210,210,210);
    margin-bottom: 0px;
Galen Frechette committed
185
    overflow: hidden;
Matthew Mongeau committed
186 187 188
    position: relative;
    width: flex-grid(12);

189 190 191 192 193 194 195 196 197 198 199 200
    &::before {
      @extend .faded-hr-divider-medium;
      content: "";
      display: block;
    }

    &::after {
      @extend .faded-hr-divider-medium;
      content: "";
      display: block;
    }

201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218

    hr {
      @extend .faded-hr-divider-light;
      border: none;
      margin: 0px;
      position: relative;
      z-index: 2;

      &::after {
        @extend .faded-hr-divider;
        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 {
Matthew Mongeau committed
225
        @include inline-block;
226
        padding: 0px 30px;
Galen Frechette committed
227
        position: relative;
228
        vertical-align: middle;
229
        overflow: hidden;
230 231 232 233 234

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

        &::after {
          @extend .faded-vertical-divider-light;
          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 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283
          &::before {
            display: none;
          }

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

      a {
        @include transition(all, 0.25s, ease-in-out);

        &::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;
          @include transition(all, 0.25s, ease-in-out);
          top: 50%;
          z-index: 1;
        }

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

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

            &:hover {
              color: $lighter-base-font-color;
            }
          }
302 303 304 305 306 307 308
        }

        img {
          position: relative;
          @include transition(all, 0.25s, ease-in-out);
          vertical-align: middle;
          z-index: 2;
Matthew Mongeau committed
309
        }
310 311

        &:hover {
312 313
          text-decoration: none;

Galen Frechette committed
314
          &::before {
315
            opacity: 1;
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 357 358 359 360 361 362 363 364 365

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

            &:hover {
              .name {
                bottom: 14px;
              }
            }
          }
        }
      }
    }
Matthew Mongeau committed
366 367 368
  }

  .more-info {
369 370
    border: 1px solid rgb(200,200,200);
    margin-bottom: 80px;
Matthew Mongeau committed
371 372
    width: flex-grid(12);

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

      h2 {
        float: left;
382 383
        margin: 0px;
        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
      @include 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 419 420
        border-bottom: 1px solid rgb(220,220,220);
        margin-bottom: 20px;
        padding-bottom: 20px;
421
        @include clearfix;
422

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

434
          &:hover {
435
            background: rgb(248,248,248);
436 437 438 439
            border: 1px solid rgb(220,220,220);
            @include box-shadow(inset 0 0 3px 0 rgba(0,0,0, 0.1));
          }

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

          .post-graphics {
            border: 1px solid rgb(190,190,190);
            @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 471 472
              &:hover {
                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 497

      .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;
          margin-left: 10px;
498 499 500 501 502 503 504 505 506 507

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

            &:hover {
              color: $blue;
              text-decoration: underline;
            }
          }
508 509
        }
      }
Matthew Mongeau committed
510 511 512
    }
  }
}