/* variables */ $light-grey: #999; /* mixins */ @mixin center($orient:vertical) { display: -webkit-box; -webkit-box-orient: $orient; -webkit-box-pack: center; -webkit-box-align: center; display: -moz-box; -moz-box-orient: $orient; -moz-box-pack: center; -moz-box-align: center; display: box; box-orient: $orient; box-pack: center; box-align: center; } @mixin box-shadow($left, $top, $blur, $color) { -webkit-box-shadow: $left $top $blur $color; -moz-box-shadow: $left $top $blur $color; box-shadow: $left $top $blur $color; } @mixin background-cover() { background: no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } @mixin opacity($val) { opacity: $val; } @mixin border-radius($pixels:3px) { -webkit-border-radius: $pixels; -moz-border-radius: $pixels; border-radius: $pixels; } @mixin transition($type, $speed) { -o-transition: $type $speed; -moz-transition: $type $speed; -webkit-transition: $type $speed; transition: $type $speed; } @mixin animation($name, $speed:0.2s, $easing:ease-in-out) { -webkit-animation: $name $speed $easing; -moz-animation: $name $speed $easing; -ms-animation: $name $speed $easing; } /* keyframes */ @-webkit-keyframes bump-left { 0% { left: 0; } 40% { left: 20px; } 100% { left: 0; } } @-moz-keyframes bump-left { 0% { left: 0; } 40% { left: 20px; } 100% { left: 0; } } @-ms-keyframes bump-left { 0% { left: 0; } 40% { left: 20px; } 100% { left: 0; } } @-webkit-keyframes bump-right { 0% { left: 0; } 40% { left: -20px; } 100% { left: 0; } } @-moz-keyframes bump-right { 0% { left: 0; } 40% { left: -20px; } 100% { left: 0; } } @-ms-keyframes bump-right { 0% { left: 0; } 40% { left: 20px; } 100% { left: 0; } } /* bootstrap extentions */ .icon-red { background-image: url(../img/glyphicons-halflings-red.png); } .icon-green { background-image: url(../img/glyphicons-halflings-green.png); } .icon-blue { background-image: url(../img/glyphicons-halflings-blue.png); } /* styles */ .bump-left { @include animation(bump-left) } .bump-right { @include animation(bump-right) } .multi-photo { .img-bounding-box { @include center(horizontal); margin: 20px; height: 500px; width: 400px; } img { @include box-shadow(0, 3px, 15px, #999); max-width: 100%; max-height: 100%; } } .photoset { @include center(horizontal); width: 100%; } .note { width: 550px; padding-bottom: 50px; p { font-size: 20px; line-height: 28px; } h1 { margin-bottom: 1em; } } .status { h1 { font-weight: bold; font-size: 40px; } &.photo-backdrop { h1 { font-size: 100px; } } } .darken { @include center(); position: fixed; top: 0; left: 0; height: 100%; width: 100%; background-color: rgba(0,0,0,0.5); } .backdrop, .photo-backdrop { @include center(); @include background-cover(); position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .photo-backdrop { h1 { color: #fff; z-index: 2; } } .rich-media { text-align: center; background-color: #333; h3 { color: #999; } iframe { @include box-shadow(0, 3px, 15px, #000); width: 857px; height: 480px; } } .nav-arrow { @include opacity(0.8); @include transition(background-color, 0.3s); @include center(); position: fixed; height: 100%; z-index: 3; top: 0; padding: 0 13px; background-color: rgba(0,0,0,0); img { @include opacity(0.5); height: 30px; width: 30px; } &.left { left: 0; padding-right: 19px; } &.right { right: 0; padding-left: 19px; } &:hover { background-color: rgba(0,0,0,0.1) } } .header { position: fixed; top: 0; left: 0; z-index: 10; width: 100%; } #header-container { padding: 20px; } .avatar.smaller { height: 35px; width: 35px; } .author-name { color: inherit; font-weight: bold; } #post-author { @include border-radius(); border: 1px solid rgba(255,255,255,0.2); border-top: 1px solid rgba(255,255,255,0.5); float: left; margin: 0; padding: 5px; padding-right: 10px; background-color: rgba(255,255,255,0.6); max-height: 35px; .avatar { @include border-radius(); } .post-time { color: #000; @include opacity(0.5); } .post-vitals { span { padding-right: 8px; } } } #post-reactions { position: fixed; width: 100%; bottom: 0; left: 0; text-align: center; } #post-interactions { @include center(horizontal); z-index: 20; #post-interactions-container { @include box-shadow(0, 6px, 15px, #000); @include border-radius(); border-top: 1px solid #555; border-right: 1px solid #444; border-left: 1px solid #444; width: 420px; background-color: #444; background-image: url("../images/hatched-bg-dark.png"); color: #ccc; } #post-comments { text-align: left; padding-top: 0; max-height: 500px; overflow: auto; } #new-post-comment { border-top: 2px solid #333; text-align: left; background-image: url("../images/hatched-bg-dark.png"); } #new-post-comment-container { padding: 10px; textarea{ width: 390px; height: 18px; } } } .post-comment { box-shadow: 0 1px 2px -2px #999; border-bottom: 1px solid #333; &:last-child { box-shadow: none; border-bottom: none; } padding: 10px; padding-right: 40px; margin: 0px; .avatar { @include border-radius(); } text-shadow: 0 1px 3px #222; a { color: inherit; } } #user-controls { height: 30px; .avatar { vertical-align: top; height: 27px; width: 27px; } .label { @include opacity(0.6); @include transition(opacity, 0.3s); box-shadow: 0 0 2px rgba(255,255,255,0.9); padding: 5px; margin-right: 5px; line-height: 24px; padding-top: 3px; padding-right: 2px; i { padding: 0; margin: 0; } background-color: #000; color: #fff; &:last-child { padding-right: 5px; margin-right: 0; } &:hover { @include opacity(1); text-decoration: none; } } } #post-content { padding-top: 50px; }