$font-size: 27px; $color-green: #05b270; $color-yellow: #c9cc0e; $color-blue: #058cb2; $color-red: #e31256; $color-gray: #262626; *, *:before, *:after { font-family: 'Lato', sans-serif; padding: 0; margin: 0; box-sizing: border-box; } body { padding: 0; margin: 0; position: relative; } h1, h2, h3, h4, h5, h6 { font-weight: 300; line-height: 1em; } #social-post-designer { padding: 50px 0 0; min-height: 100vh; background: #f2f2f2; } .linkedin-social-post { font-weight: 300; color: $color-gray; width: 1200px; height: 627px; background: #fff; display: flex; align-items: center; margin: 0 auto; position: relative; &[data-align="left"] { justify-content: flex-start; padding: 0 ($font-size * 8) 0 ($font-size * 4); } &[data-align="center"] { justify-content: center; } &[data-background="gray"] { color: #fff; background: $color-gray; } } // "we're hiring" h3 { font-size: $font-size * 2; color: #fff; display: inline-block; padding: 0 ($font-size * 2) 0 ($font-size * 4); height: $font-size * 4; line-height: $font-size * 4; margin-bottom: $font-size * 2.5; position: relative; left: -($font-size * 4); [data-color="green"] & { background: $color-green; } [data-color="yellow"] & { background: $color-yellow; } [data-color="blue"] & { background: $color-blue; } [data-color="red"] & { background: $color-red; } } // position title h1 { font-size: $font-size * 2; line-height: 1.5em; margin-bottom: $font-size * 2.5; } // apply at h6 { font-size: $font-size; line-height: 1.5em; } // svg .airplane { position: absolute; bottom: -180px; right: -90px; transform: scale(0.5); } .color-fill { [data-color="green"] & { fill: $color-green; } [data-color="yellow"] & { fill: $color-yellow; } [data-color="blue"] & { fill: $color-blue; } [data-color="red"] & { fill: $color-red; } } .color-stroke { [data-color="green"] & { stroke: $color-green; } [data-color="yellow"] & { stroke: $color-yellow; } [data-color="blue"] & { stroke: $color-blue; } [data-color="red"] & { stroke: $color-red; } } .menu-bar { text-align: center; display: block; position: absolute; right: 50px; top: 100px; .menu-bar-section { margin-bottom: 25px; &:last-child { margin-bottom: 0; } } [name="color"], [name="background-color"] { display: none; &:checked + label { border-color: $color-gray; } } .label-color { display: block; width: 50px; height: 50px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.1s ease-in-out; &[for="color-red"] { background: $color-red; } &[for="color-green"] { background: $color-green; } &[for="color-blue"] { background: $color-blue; } &[for="color-yellow"] { background: $color-yellow; } &[for="color-white"] { background: #fff; } &[for="color-gray"] { background: $color-gray; } } .btn { font-size: 1.5em; color: #fff; text-decoration: none; display: block; width: 50px; height: 50px; line-height: 50px; background: $color-gray; } }