Skip to content

Commit

Permalink
fixing github ribbon
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviogranero committed Dec 9, 2012
1 parent d9652a7 commit 88eba14
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .rvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rvm 1.9.2@fg
rvm ruby-1.9.2-p180@fg
4 changes: 2 additions & 2 deletions views/forkme.haml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
%a{:href => "http://github.com/flaviogranero"}
%img{:style=>"position: absolute; top: 0; right: 0; border: 0;", :src=>"https://d3nwyuy0nl342s.cloudfront.net/img/71eeaab9d563c2b3c590319b398dd35683265e85/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677261795f3664366436642e706e67", :alt=>"Fork me on GitHub"}
%a{:href => "http://github.com/flaviogranero", :class => "github-ribbon"}
Fork me on GitHub
3 changes: 2 additions & 1 deletion views/master.sass
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import "mixins.sass"
@import "colors.sass"
@import "ribbon.sass"

// Variables
Expand Down Expand Up @@ -289,4 +290,4 @@ nav.categories
@include adjust-font-size(0.909, 0, 0)

div.feed
margin: $base-vertical-margin 0
margin: $base-vertical-margin 0
27 changes: 27 additions & 0 deletions views/ribbon.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.github-ribbon
background-color: #121621
top: 3.2em
right: -3.7em
-webkit-transform: rotate(45deg)
-moz-transform: rotate(45deg)
-ms-transform: rotate(45deg)
-o-transform: rotate(45deg)
transform: rotate(45deg)
-webkit-box-shadow: 0 0 0 1px #1d212e inset,0 0 2px 1px #fff inset,0 0 1em #888
-moz-box-shadow: 0 0 0 1px #1d212e inset,0 0 2px 1px #fff inset,0 0 1em #888
-ms-box-shadow: 0 0 0 1px #1d212e inset,0 0 2px 1px #fff inset,0 0 1em #888
-o-box-shadow: 0 0 0 1px #1d212e inset,0 0 2px 1px #fff inset,0 0 1em #888
box-shadow: 0 0 0 1px #1d212e inset,0 0 2px 1px #fff inset,0 0 1em #888
color: rgba(255,255,255,0.9)
display: block
padding: .6em 3.5em
position: fixed
font: bold .82em sans-serif
text-align: center
text-decoration: none
text-shadow: 1px -1px 8px rgba(0,0,0,0.6)
-webkit-user-select: none
-moz-user-select: none
-ms-user-select: none
-o-user-select: none
user-select: none

0 comments on commit 88eba14

Please sign in to comment.