Skip to content
This repository has been archived by the owner on Nov 3, 2018. It is now read-only.

Commit

Permalink
[#15] Styling the paperclip demo
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardloveall committed Aug 3, 2012
1 parent f65faab commit 7c75c90
Show file tree
Hide file tree
Showing 5 changed files with 591 additions and 82 deletions.
68 changes: 68 additions & 0 deletions app/assets/stylesheets/friends.scss
@@ -0,0 +1,68 @@
$color-1: #333;
$color-2: #F4F4F4;
$color-3: #F27D31; // orange
$color-4: #fff;
$color-5: #999;
$color-6: #000;

// Base Styles
// ----------------------------------------

div#main-wrap {
margin: 0 auto;
width: 1000px;
}

header {
margin: 20px 0;
}

a.new-friend {
background-color: $color-3;
color: $color-4;
padding: .3em .6em;
text-decoration: none;
}

// Friend
// ----------------------------------------

div.friend {
display: inline-block;
position: relative;

&:hover {
a.destroy {
display: block;
}
}

a.destroy {
background: $color-3;
border-radius: 10px;
color: $color-2;
display: none;
height: 20px;
position: absolute;
right: -5px;
text-align: center;
text-decoration: none;
top: -5px;
width: 20px;
z-index: 100;
}

a.pic-link {
display: block;
}

img {
border: 1px solid $color-2;
padding: 5px;
}

a.friend-name {
color: $color-1;
text-decoration: none;
}
}

0 comments on commit 7c75c90

Please sign in to comment.