UNPKG

parallax_color_bars

Version:
206 lines (175 loc) 5.19 kB
@import url("https://fonts.googleapis.com/css?family=Roboto:400,600"); * { box-sizing: border-box; } html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; } /* HTML5 display-role reset for older browsers */ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } body { line-height: 1; } ol, ul { list-style: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after { content: ''; content: none; } q:before, q:after { content: ''; content: none; } table { border-collapse: collapse; border-spacing: 0; } input, button { padding: 0; margin: 0; border: none; } input:focus, button:focus { outline: none; } body { font-family: 'Roboto', sans-serif; font-size: 18px; } .back-img { background-size: cover; background-position: center; background-repeat: no-repeat; } .container { margin: auto; } section { padding: 0 20px; } .rect-outer { position: relative; } .rect-outer .rect-inner { position: absolute; top: 0; left: 0; right: 0; bottom: 0; } .spacer { height: 200px; } .parallax-color-bar-block .normal-background { position: absolute; left: 0; top: 0; width: 100%; height: 100%; -webkit-filter: grayscale(100%); filter: grayscale(100%); } .parallax-color-bar-block .normal-background:before { content: ''; position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.35); } .parallax-color-bar-block .color-bar-background { position: absolute; left: 0; top: 0; width: 100%; height: 100%; } .section-intro { position: relative; min-height: 100vh; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; color: white; } .section-intro .container { position: relative; z-index: 1; } .section-intro .title { font-size: 50px; text-transform: uppercase; font-weight: 600; } @media (max-width: 600px) { .section-intro .title { font-size: 8.33333vw; } } .section-features .container { padding: 100px 0; max-width: 1000px; } @media (min-width: 801px) { .section-features .feature-item { display: -webkit-flex; display: -ms-flexbox; display: flex; } } .section-features .feature-item + .feature-item { padding: 100px 0 0; } @media (max-width: 800px) { .section-features .feature-item + .feature-item { padding: 70px 0 0; } } .section-features .feature-item:nth-child(3n+1) .content-col { background: #A5B5AA; } .section-features .feature-item:nth-child(3n+2) .content-col { background: #6C6B7A; } .section-features .feature-item:nth-child(3n+3) .content-col { background: #296F8C; } @media (min-width: 801px) { .section-features .feature-item:nth-child(even) { -webkit-flex-direction: row-reverse; -ms-flex-direction: row-reverse; flex-direction: row-reverse; } .section-features .feature-item:nth-child(even) .img-col .img-wrap { right: auto; left: 0; } } .section-features .feature-item .title { font-size: 30px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; } .section-features .feature-item .desc { padding: 20px 0 0; line-height: 1.3; letter-spacing: .5px; } .section-features .feature-item .desc p + p { margin: 20px 0 0; } .section-features .feature-item .content-col { color: white; padding: 50px; z-index: 1; position: relative; } @media (max-width: 800px) { .section-features .feature-item .content-col { padding: 30px; } } @media (min-width: 801px) { .section-features .feature-item .content-col { width: 50%; } } .section-features .feature-item .img-col { position: relative; } @media (min-width: 801px) { .section-features .feature-item .img-col { width: 50%; } } @media (max-width: 800px) { .section-features .feature-item .img-col { min-height: 400px; } } .section-features .feature-item .img-col .img-wrap { position: absolute; right: 0; top: -20px; width: calc(100% + 40px); height: calc(100% + 40px); } @media (max-width: 800px) { .section-features .feature-item .img-col .img-wrap { right: -20px; } } .section-features .feature-item .img-col .img-wrap:before { content: ''; position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.15); } /*# sourceMappingURL=style.css.map */