// -- Journal -- // .journal-wrapper { width: 100%; margin-bottom: 58px; } // [.journal-header] .journal-header { margin-top: 58px; margin-bottom: 18px; } .journal-header > h2 { font-size: 46px; line-height: 50px; width: 100%; text-align: center; text-transform: uppercase; } .journal-header > p { font-size: 13px; line-height: 18px; width: 380px; margin: 0 auto; text-align: center; & > a { font-weight: bold; } } .journal-header > nav { margin: 16px 0; margin-bottom: 0; text-align: center; } .journal-header > nav a { font-size: 12px; line-height: 42px; font-weight: bold; margin: 0 12px; padding-bottom: 6px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid transparent; &.active { border-color: black; } } // [.journal-body] .journal-body { display: flex; max-width: 1040px; margin: 0 auto; flex-wrap: wrap; justify-content: space-between; } $journal-item-height: 200px; $journal-item-inner-margin: 20px; .journal-body .journal-item { position: relative; height: $journal-item-height; margin-bottom: 24px; cursor: pointer; text-align: center; box-shadow: 0px 4px 12px rgba(0,0,0,.06), 0px 2px 4px rgba(0,0,0,.12); transition: all .4s; flex: 0 0 32%; .overlay { position: absolute; z-index: 2; top: 0; right: 0; bottom: 0; left: 0; display: none; transition: all .6s; background-color: rgba(0,0,0,.4); } &.has-image { background-color: #000000; background-image: url(../img/temp/launch.jpg); background-repeat: no-repeat; background-position: center center; background-size: cover; .inner { color: white; border: 2px solid white; } .overlay { display: block; transition: all .6s; background-color: rgba(0,0,0,.4); } .journal-category a { color: white; background-color: #000000; } .journal-date { color: white; } } &:hover { .overlay { background-color: rgba(0,0,0,.6); transition: all .6s; } transition: all .2s; box-shadow: 0px 12px 16px rgba(0,0,0,.08), -8px 14px 12px rgba(0,0,0,.02), 8px 14px 12px rgba(0,0,0,.02), 0px 2px 6px rgba(0,0,0,.16); } } .journal-body .journal-item:nth-child(1) { flex: 0 0 65%; } .journal-item .inner { position: absolute; z-index: 4; top: 0; right: 0; bottom: 0; left: 0; display: flex; margin: $journal-item-inner-margin; padding: 24px 12px; border: 2px solid black; align-items: center; } .journal-item .journal-category { position: absolute; z-index: 9; top: 12px; left: 0; width: 100%; } .journal-item .journal-category a { font-size: 10px; font-weight: bold; display: inline-block; margin: 0 auto; margin-bottom: 6px; padding: 4px 12px; text-align: center; letter-spacing: .08em; text-transform: uppercase; color: $c-red; border-radius: 2px; background-color: white; } .journal-item .journal-headline { font-size: 36px; font-weight: bold; width: 100%; text-align: center; // @include bodycopy(); } .journal-item .journal-date { font-size: 13px; font-weight: bold; position: absolute; z-index: 11; bottom: 38px; width: 100%; text-align: center; letter-spacing: .12em; text-transform: uppercase; @include monospace; &:before { content: "–"; } &:after { content: "–"; } }