Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move share buttons into top right corner of quote.

  • Loading branch information...
commit e148bc2b64236d57a148ae478e8f97c12b61d8ae 1 parent 2c783bd
@jarmo authored
Showing with 13 additions and 14 deletions.
  1. +5 −5 public/themes/_helpers.scss
  2. +8 −9 views/index.haml
View
10 public/themes/_helpers.scss
@@ -21,10 +21,10 @@
}
@mixin share-in-center {
- width: 80%;
+ position: relative;
+ width: 30%;
max-width: 570px;
- margin: 50px auto 0;
- padding-left: 30px;
- margin-bottom: 30px;
- .button { display: inline-block; vertical-align: top; }
+ top: 195px;
+ float: right;
+ margin-right: 30px;
}
View
17 views/index.haml
@@ -59,6 +59,14 @@
%img{:alt => title, :src => "/themes/#{theme}/icon.png"}
#container
+ #share
+ .addthis_toolbox.addthis_default_style
+ %a.addthis_button_preferred_1
+ %a.addthis_button_preferred_2
+ %a.addthis_button_preferred_3
+ %a.addthis_button_preferred_4
+ %a.addthis_button_compact
+ %a.addthis_counter.addthis_bubble_style
%ul#quotes{:class => @quote_by_id ? "via-link" : ""}
- @selected_quotes.each do |quote|
%li{"data-id" => quote[:id]}
@@ -70,15 +78,6 @@
#toolbar
%a.play(href="#")
- #share
- .addthis_toolbox.addthis_default_style
- %a.addthis_button_preferred_1
- %a.addthis_button_preferred_2
- %a.addthis_button_preferred_3
- %a.addthis_button_preferred_4
- %a.addthis_button_compact
- %a.addthis_counter.addthis_bubble_style
-
#template
%li
%blockquote.quote
Please sign in to comment.
Something went wrong with that request. Please try again.