262 lines
3.5 KiB
SCSS
262 lines
3.5 KiB
SCSS
/* 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 transition($type, $speed) {
|
|
-o-transition: $type $speed;
|
|
-moz-transition: $type $speed;
|
|
-webkit-transition: $type $speed;
|
|
transition: $type $speed;
|
|
}
|
|
|
|
/* styles */
|
|
|
|
.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%;
|
|
}
|
|
}
|
|
|
|
.note {
|
|
width: 550px;
|
|
|
|
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;
|
|
}
|
|
|
|
#post-author {
|
|
float: left;
|
|
margin: 0;
|
|
|
|
.avatar {
|
|
height: 35px;
|
|
width: 35px;
|
|
}
|
|
|
|
.author-name {
|
|
color: inherit;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.post-time {
|
|
color: $light-grey;
|
|
font-style: italic;
|
|
}
|
|
|
|
.post-vitals {
|
|
span {
|
|
padding-right: 8px;
|
|
}
|
|
}
|
|
}
|
|
|
|
#user-controls {
|
|
position: fixed;
|
|
height: 30px;
|
|
width: 100%;
|
|
bottom: 0;
|
|
left: 0;
|
|
text-align: center;
|
|
|
|
.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;
|
|
}
|