Skip to content

Commit

Permalink
"Fork me on GitHub".
Browse files Browse the repository at this point in the history
  • Loading branch information
fredwu committed Jan 19, 2011
1 parent 0a9922f commit 60a0995
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 16 deletions.
54 changes: 38 additions & 16 deletions app/stylesheets/base.sass
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
@import "reset"

// --------------------
variables
// --------------------
$primary-colour: #b01000
$secondary-colour: #392a2a
$highlight-colour: #b01000
$shadow-colour: #ece0d0
$bg-header-colour: #ffeed4
$bg-main-colour: #fffdf8

// --------------------
elements
// --------------------
/*------------------------------
* elements
*------------------------------
body, p
font-family: "Lucida Grande", Lucida, "Helvetica Neue", Helvetica, "Myriad Pro", Verdana, Tahoma
Expand All @@ -31,9 +27,9 @@ a
color: $highlight-colour
text-decoration: underline

// --------------------
supporting structures
// --------------------
/*------------------------------
* supporting structures
*------------------------------
#inner-wrapper
position: relative
Expand All @@ -50,9 +46,9 @@ a
height: 15px
background: $secondary-colour

// --------------------
main structures
// --------------------
/*------------------------------
* main structures
*------------------------------
body
background: $bg-main-colour
Expand Down Expand Up @@ -221,9 +217,9 @@ body
margin-top: 20px
background: url("/images/crowd-footer.png") center no-repeat

// --------------------
portrait slider
// --------------------
/*------------------------------
* portrait slider
*------------------------------
.nivo-controlNav
position: absolute
Expand All @@ -241,4 +237,30 @@ body
&.active
background-position: 0 -20px

/*------------------------------
* Fork me on Github :-)
*------------------------------
#ribbon
background-color: #a00
overflow: hidden
position: fixed
left: -3em
top: 2.5em
-moz-transform: rotate(-45deg)
-webkit-transform: rotate(-45deg)
transform: rotate(-45deg)
-moz-box-shadow: 0 0 1em $shadow-colour
-webkit-box-shadow: 0 0 1em $shadow-colour
box-shadow: 0 0 1em $shadow-colour
z-index: 999
a
border: 1px solid #faa
color: #fff
display: block
font: bold 81.25% 'Helvetiva Neue', Helvetica, Arial, sans-serif
margin: 0.05em 0 0.075em 0
padding: 0.5em 3.5em
text-align: center
text-decoration: none
text-shadow: 0 0 0.5em #444
1 change: 1 addition & 0 deletions app/views/layouts/application.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ html
== javascript_include_tag :jquery, :'jquery.nivo.slider.pack', :application

body
#ribbon== link_to 'Fork me on GitHub', 'https://github.com/fredwu/rubycommitters.org'
#wrapper
#header-wrapper
#inner-wrapper
Expand Down
42 changes: 42 additions & 0 deletions public/stylesheets/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ table {
border-collapse: collapse;
border-spacing: 0; }

/*------------------------------
* variables
*------------------------------ */
/*------------------------------
* elements
*------------------------------ */
body, p {
font-family: "Lucida Grande", Lucida, "Helvetica Neue", Helvetica, "Myriad Pro", Verdana, Tahoma;
font-size: 14px;
Expand All @@ -63,6 +69,9 @@ a {
color: #b01000;
text-decoration: underline; }

/*------------------------------
* supporting structures
*------------------------------ */
#inner-wrapper {
position: relative;
margin: 0 auto;
Expand All @@ -78,6 +87,9 @@ a {
height: 15px;
background: #392a2a; }

/*------------------------------
* main structures
*------------------------------ */
body {
background: #fffdf8; }

Expand Down Expand Up @@ -240,6 +252,9 @@ body {
margin-top: 20px;
background: url("/images/crowd-footer.png") center no-repeat; }

/*------------------------------
* portrait slider
*------------------------------ */
.nivo-controlNav {
position: absolute;
top: 90px;
Expand All @@ -255,3 +270,30 @@ body {
cursor: pointer; }
.nivo-controlNav a.active {
background-position: 0 -20px; }

/*------------------------------
* Fork me on Github :-)
*------------------------------ */
#ribbon {
background-color: #aa0000;
overflow: hidden;
position: fixed;
left: -3em;
top: 2.5em;
-moz-transform: rotate(-45deg);
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
-moz-box-shadow: 0 0 1em #ece0d0;
-webkit-box-shadow: 0 0 1em #ece0d0;
box-shadow: 0 0 1em #ece0d0;
z-index: 999; }
#ribbon a {
border: 1px solid #ffaaaa;
color: white;
display: block;
font: bold 81.25% "Helvetiva Neue", Helvetica, Arial, sans-serif;
margin: 0.05em 0 0.075em 0;
padding: 0.5em 3.5em;
text-align: center;
text-decoration: none;
text-shadow: 0 0 0.5em #444444; }

0 comments on commit 60a0995

Please sign in to comment.