DG RY; moved actions to the bottom of the show pages; fixed arrows
This commit is contained in:
parent
653e93fb11
commit
ead286bf99
5 changed files with 958 additions and 53 deletions
|
|
@ -14,31 +14,18 @@
|
||||||
= person_image_link @post.author
|
= person_image_link @post.author
|
||||||
.bd
|
.bd
|
||||||
= person_link(@post.author, :class => 'author-name')
|
= person_link(@post.author, :class => 'author-name')
|
||||||
|
|
||||||
.post-time
|
.post-time
|
||||||
%i.icon-time
|
%i.icon-time
|
||||||
= time_ago_in_words(@post.created_at) + ' ago'
|
= time_ago_in_words(@post.created_at) + ' ago'
|
||||||
|
|
||||||
.post-vitals
|
|
||||||
%span
|
|
||||||
%i.icon-heart
|
|
||||||
= @post.likes.size
|
|
||||||
|
|
||||||
%span
|
#post-content
|
||||||
%i.icon-plus
|
|
||||||
= @post.participations.size
|
|
||||||
|
|
||||||
%span
|
- if current_user
|
||||||
%i.icon-retweet
|
|
||||||
= @post.reshares.size
|
|
||||||
|
|
||||||
%span
|
|
||||||
%i.icon-comment
|
|
||||||
= @post.comments.size
|
|
||||||
|
|
||||||
|
|
||||||
- if current_user
|
|
||||||
#user-controls
|
#user-controls
|
||||||
|
= link_to "#", :class => "label", do
|
||||||
|
%i.icon-user.icon-white
|
||||||
|
|
||||||
= link_to "#", :class => "label" do
|
= link_to "#", :class => "label" do
|
||||||
%i.icon-heart.icon-white
|
%i.icon-heart.icon-white
|
||||||
|
|
||||||
|
|
@ -51,9 +38,6 @@
|
||||||
= link_to "#", :class => "label", do
|
= link_to "#", :class => "label", do
|
||||||
%i.icon-comment.icon-white
|
%i.icon-comment.icon-white
|
||||||
|
|
||||||
= link_to person_image_tag(current_user.person), root_path
|
|
||||||
|
|
||||||
#post-content
|
|
||||||
|
|
||||||
= link_to image_tag('arrow-left.png'), '#', :class => 'nav-arrow left', :id => 'back'
|
= link_to image_tag('arrow-left.png'), '#', :class => 'nav-arrow left', :id => 'back'
|
||||||
= link_to image_tag('arrow-right.png'), '#', :class => 'nav-arrow right', :id => 'forward'
|
= link_to image_tag('arrow-right.png'), '#', :class => 'nav-arrow right', :id => 'forward'
|
||||||
|
|
|
||||||
892
graphics/arrow.ai
Normal file
892
graphics/arrow.ai
Normal file
File diff suppressed because one or more lines are too long
Binary file not shown.
|
Before Width: | Height: | Size: 810 B After Width: | Height: | Size: 2.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 774 B After Width: | Height: | Size: 2.4 KiB |
|
|
@ -38,6 +38,13 @@ $light-grey: #999;
|
||||||
opacity: $val;
|
opacity: $val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@mixin transition($type, $speed) {
|
||||||
|
-o-transition: $type $speed;
|
||||||
|
-moz-transition: $type $speed;
|
||||||
|
-webkit-transition: $type $speed;
|
||||||
|
transition: $type $speed;
|
||||||
|
}
|
||||||
|
|
||||||
/* styles */
|
/* styles */
|
||||||
|
|
||||||
.multi-photo {
|
.multi-photo {
|
||||||
|
|
@ -117,7 +124,6 @@ $light-grey: #999;
|
||||||
|
|
||||||
.rich-media {
|
.rich-media {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
background-color: #333;
|
background-color: #333;
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
|
|
@ -133,23 +139,36 @@ $light-grey: #999;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-arrow {
|
.nav-arrow {
|
||||||
@include opacity(0.2);
|
@include opacity(0.8);
|
||||||
|
@include transition(background-color, 0.3s);
|
||||||
-o-transition: opacity 0.3s;
|
@include center();
|
||||||
-moz-transition: opacity 0.3s;
|
|
||||||
-webkit-transition: opacity 0.3s;
|
|
||||||
transition: opacity 0.3s;
|
|
||||||
|
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
height: 100%;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
|
top: 0;
|
||||||
|
padding: 0 13px;
|
||||||
|
background-color: rgba(0,0,0,0);
|
||||||
|
|
||||||
top: 45%;
|
img {
|
||||||
|
@include opacity(0.5);
|
||||||
|
|
||||||
&.left { left: 0; }
|
height: 30px;
|
||||||
&.right { right: 0; }
|
width: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.left {
|
||||||
|
left: 0;
|
||||||
|
padding-right: 19px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.right {
|
||||||
|
right: 0;
|
||||||
|
padding-left: 19px;
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@include opacity(0.6);
|
background-color: rgba(0,0,0,0.1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -169,13 +188,9 @@ $light-grey: #999;
|
||||||
float: left;
|
float: left;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
||||||
background-color: rgba(255,255,255,0.8);
|
|
||||||
|
|
||||||
max-height: 52px;
|
|
||||||
|
|
||||||
.avatar {
|
.avatar {
|
||||||
height: 52px;
|
height: 35px;
|
||||||
width: 52px;
|
width: 35px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.author-name {
|
.author-name {
|
||||||
|
|
@ -196,7 +211,12 @@ $light-grey: #999;
|
||||||
}
|
}
|
||||||
|
|
||||||
#user-controls {
|
#user-controls {
|
||||||
float: right;
|
position: fixed;
|
||||||
|
height: 30px;
|
||||||
|
width: 100%;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
.avatar {
|
.avatar {
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
|
|
@ -205,7 +225,11 @@ $light-grey: #999;
|
||||||
}
|
}
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
@include opacity(0.5);
|
@include opacity(0.6);
|
||||||
|
@include transition(opacity, 0.3s);
|
||||||
|
|
||||||
|
box-shadow: 0 0 2px rgba(255,255,255,0.9);
|
||||||
|
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
|
|
@ -221,6 +245,11 @@ $light-grey: #999;
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
padding-right: 5px;
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@include opacity(1);
|
@include opacity(1);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue