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

Commit

Permalink
Revert "added basic item type badge"
Browse files Browse the repository at this point in the history
This reverts commit 6febbbd.
  • Loading branch information
jessor committed Jul 8, 2011
1 parent fe20db2 commit 8f8f1e5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 56 deletions.
3 changes: 0 additions & 3 deletions views/index.haml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
%img{ :src => image, :width => '200px', :height => '200px' }
- else
%a{ :href => item.source, :class => 'embed', :title => item.name }
.itembadge
%span
= item.type
%img{ :src => image, :width => '200px', :height => '200px' }

.item-meta
Expand Down
53 changes: 0 additions & 53 deletions views/stylesheet.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,6 @@ $lightblue: #1AE0CC;
filter: dropshadow(color=$c, offx=1, offy=1);
}

@mixin rotate($deg) {
-moz-transform: rotate(#{$deg}deg);
-o-transform: rotate(#{$deg}deg);
-webkit-transform: rotate(#{$deg}deg);
}

@mixin transition ($value) {
-moz-transition: $value;
-o-transition: $value;
Expand Down Expand Up @@ -279,7 +273,6 @@ nav {
list-style-type: none;
float: left;
display: block;
position: relative;
background: $border;
margin: 10px;
padding: 10px;
Expand All @@ -292,52 +285,6 @@ nav {
img:hover {
@include hovershadow($blue);
}

.itembadge {
top: 20px;
left: -2px;
height: 30px;
position: absolute;
text-decoration: none;
width: 75px;
@include rotate(-45);

span {
background: $highlight;
color: white;
font-size: 14px;
left: 0;
padding: 5px 0;
position: absolute;
text-align: center;
width: 75px;
}
}
.itembadge:before {
position: absolute;
display: block;
top: 0;
left: 74px;
content: "";
width: 0;
height: 0;
border-width: 26px 0 0 26px;
border-style: solid;
border-color: transparent transparent transparent $highlight;
}
.itembadge:after {
position: absolute;
display: block;
top: 0;
left: -25px;
z-index: 99999;
content: "";
width: 0;
height: 0;
border-width: 0 0 26px 26px;
border-style: solid;
border-color: transparent transparent $highlight transparent;
}
}

.clear {
Expand Down

0 comments on commit 8f8f1e5

Please sign in to comment.