Skip to content

Commit

Permalink
ハートと目をアイコンフォント化
Browse files Browse the repository at this point in the history
  • Loading branch information
wacky committed May 22, 2013
1 parent 5991002 commit 6436baf
Show file tree
Hide file tree
Showing 7 changed files with 1,489 additions and 63 deletions.
340 changes: 340 additions & 0 deletions app/assets/stylesheets/fonts/typicons.css

Large diffs are not rendered by default.

Binary file added app/assets/stylesheets/fonts/typicons.eot
Binary file not shown.
1,095 changes: 1,095 additions & 0 deletions app/assets/stylesheets/fonts/typicons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/stylesheets/fonts/typicons.ttf
Binary file not shown.
Binary file added app/assets/stylesheets/fonts/typicons.woff
Binary file not shown.
107 changes: 49 additions & 58 deletions app/assets/stylesheets/photos.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -176,68 +176,59 @@ body{


.piceyemenu{
width:90px;
height:22px;
}
width: 100%;
height:28px;

/**
* pic-like menu
*/

.picmenu{
float:left;
width:43px;
height:22px;
margin-bottom:8px;
}
.likenum{
color:#666;
width:20px;
height:20px;
float:right;
margin-bottom:2px;
}
.likephoto{
margin-top:4px;
float:left;
height:18px;
width:20px;
background-image: url("hert.png");
background-repeat: no-repeat;
}
/**
* pic-like menu
*/

.disabled{
margin-top:4px;
float:left;
height:18px;
width:20px;
background-image: url("hertover.png");
background-repeat: no-repeat;
}
/**
* pic-look menu
*/
.lookmenu{
float:right;
width:46px;
height:22px;
margin-bottom:8px;
}
.looknum{
color:#666;
width:20px;
height:20px;
float:right;
}
.lookphoto{
margin-top:3px;
float:left;
height:16px;
width:22px;
background-image: url("eye.png");
background-repeat: no-repeat;
}
.picmenu {
float: left;
height: 28px;
line-height: 28px;
}
.likephoto {
height: 24px;
width: 24px;
line-height: 24px;
color: #f3645c;
font-size: 1.25em;
}
.likenum{
color: #666;
height: 24px;
line-height: 24px;
}
.disabled {
height: 24px;
width: 24px;
line-height: 24px;
color: #3b3b3b;
}

/**
* pic-look menu
*/
.lookmenu {
float: left;
height: 28px;
line-height: 28px;
}
.lookphoto {
height: 24px;
width: 24px;
line-height: 24px;
color: #f3645c;
font-size: 1.25em;
}
.looknum{
color: #666;
height: 24px;
line-height: 24px;
}
}

#menu h1{
margin-top:10px;
Expand Down
10 changes: 5 additions & 5 deletions app/views/photos/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,12 @@
html += '<div class="menu">';
html += '<div class="piceyemenu">';
html += '<div class="picmenu">';
html +='<div class="likephoto" data-pos="'+image.id+'"></div>';
html += '<div class="likenum">'+image.like+'</div>';
html += '<span class="likephoto typcn" data-pos="'+image.id+'"></span>';
html += '<span class="likenum">'+image.like+'</span>';
html += '</div>';
html += '<div class="lookmenu">';
html +='<div class="lookphoto" data-pos="'+image.id+'"></div>';
html += '<div class="looknum">'+image.look+'</div>';
html += '<span class="lookphoto typcn" data-pos="'+image.id+'"></span>';
html += '<span class="looknum">'+image.look+'</span>';
html += '</div>';
html += '</div>';
html += '</div>';
Expand Down Expand Up @@ -216,7 +216,7 @@
clicklike(likeparams,$(this).next(),$(this))


$(this).attr('class','disabled');
$(this).addClass('disabled');
// console.log($(this).next().text());
})

Expand Down

0 comments on commit 6436baf

Please sign in to comment.