* { -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box; /* Opera/IE 8+ */ } html { min-height:100%; } body { background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/203277/gradient_bg.jpg') no-repeat; background-size: cover; background-position: 50% 50%; } .healthy-snacks { margin: 2em auto; width: 90%; max-width: 680px; background: #fff; @include border-top-radius(3px); @include border-bottom-radius(3px); -webkit-backface-visibility: hidden; backface-visibility: hidden; .featured-image { position: relative; overflow: hidden; img { display: block; width: 100%; height: auto; vertical-align: bottom; @include border-top-radius(3px); } .arrow { position: absolute; bottom: 0; width: 100%; height: 0px; background-color: #fff; &:before, &:after { content: ''; position: absolute; bottom: 100%; width: 80%; height: 20px; background-color: inherit; } &:before { right: 80%; @include transform-origin(100% 100%); @include transform(skewX(45deg)); } &:after { left: 20%; @include transform-origin(0 100%); @include transform(skewX(-45deg)); } } } article { padding: 1em 1em 2em; @include clearfix; header { border-bottom: 2px solid #9bb068; h3 { margin: 0 0 0.25em; font-family: 'McLaren', cursive; font-size: 1.5em; color: #767d2e; text-align: center; text-transform: uppercase; } } .excerpt { font-family: 'Open Sans', sans-serif; p { line-height: 24px; } a { display: block; margin-top: 1em; color: #c00413; text-decoration: none; &:hover { color: lighten(#c00413, 20%); } span:first-child { padding-right: 1em; vertical-align: middle; } } } @media only screen and (min-width: 680px) { header { width: 40%; float: left; border-bottom: none; border-right: 2px solid #9bb068; h3 { margin: 1em 0; font-size: 2em; span { display: block; } } } .excerpt { width: 60%; float: left; padding-left: 2em; } } } }