Skip to content

Commit

Permalink
Back to top arrow redesign
Browse files Browse the repository at this point in the history
  • Loading branch information
Flaburgan committed Apr 13, 2016
1 parent 3e95dee commit f2b75af
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 14 deletions.
11 changes: 7 additions & 4 deletions app/assets/stylesheets/base.scss
Expand Up @@ -65,22 +65,25 @@ pre { word-wrap: break-word; }

.back-to-top {
background-color: $border-dark-grey;
border-radius: 10px;
border-radius: 4px;
bottom: 20px;
color: $white;
display: block;
font-size: 2.9em;
line-height: 1.5;
font-size: 3.5em;
height: 50px;
line-height: 50px;
opacity: 0;
padding: 0 12px;
position: fixed;
right: 54px;
transition: opacity ease 400ms;
width: 50px;
z-index: 49;

&:hover,
&.visible:hover {
color: $white;
opacity: .85;
text-decoration: none;
}

&.visible { opacity: .5; }
Expand Down
3 changes: 1 addition & 2 deletions app/views/people/contacts.haml
Expand Up @@ -17,8 +17,7 @@
= render partial: 'people/person', locals: hash
= will_paginate @contacts_of_contact, renderer: WillPaginate::ActionView::BootstrapLinkRenderer

%a.back-to-top#back-to-top{title: "#{t('layouts.application.back_to_top')}", href: "#"}
⇧
%a.entypo-chevron-up.back-to-top#back-to-top{title: "#{t('layouts.application.back_to_top')}", href: "#"}

-if user_signed_in? && @person
#new_status_message_pane
Expand Down
3 changes: 1 addition & 2 deletions app/views/people/index.html.haml
Expand Up @@ -37,8 +37,7 @@

= will_paginate(@people)

%a.back-to-top#back-to-top{title: "#{t('layouts.application.back_to_top')}", href: "#"}
⇧
%a.entypo-chevron-up.back-to-top#back-to-top{title: "#{t('layouts.application.back_to_top')}", href: "#"}

.col-md-4
- if AppConfig.settings.invitations.open?
Expand Down
3 changes: 1 addition & 2 deletions app/views/people/show.html.haml
Expand Up @@ -27,8 +27,7 @@
%span.loader.hidden
.spinner

%a.back-to-top#back-to-top{title: "#{t('layouts.application.back_to_top')}", href: "#"}
⇧
%a.entypo-chevron-up.back-to-top#back-to-top{title: "#{t('layouts.application.back_to_top')}", href: "#"}

-if user_signed_in? && @person
#new_status_message_pane
Expand Down
3 changes: 1 addition & 2 deletions app/views/streams/main_stream.html.haml
Expand Up @@ -158,5 +158,4 @@
.stream_container#aspect_stream_container
= render "aspects/aspect_stream", stream: @stream

%a.back-to-top#back-to-top{title: "#{t('layouts.application.back_to_top')}", href: "#"}
⇧
%a.entypo-chevron-up.back-to-top#back-to-top{title: "#{t('layouts.application.back_to_top')}", href: "#"}
3 changes: 1 addition & 2 deletions app/views/tags/show.haml
Expand Up @@ -34,5 +34,4 @@
%span.loader.hidden
.spinner

%a.back-to-top#back-to-top{title: "#{t('layouts.application.back_to_top')}", href: "#"}
⇧
%a.entypo-chevron-up.back-to-top#back-to-top{title: "#{t('layouts.application.back_to_top')}", href: "#"}

0 comments on commit f2b75af

Please sign in to comment.