Implement badges

This commit is contained in:
Trever Fischer
2012-06-07 15:47:03 -04:00
parent fdd9438966
commit 8bf1478208
19 changed files with 2721 additions and 3 deletions

41
static/css/badges.css Normal file
View File

@@ -0,0 +1,41 @@
.badge {
width: 32px;
height: 32px;
background: url("badges/background.png");
}
.badge-list {
text-align: center;
padding: 0;
margin-left: 0;
text-indent: 0;
list-style-type: none;
}
.no-badge-message {
color: #444;
margin: 0 !important;
background: transparent !important;
text-align: center;
display:block;
width: 100%;
}
.badge-holder {
width: 32px;
height: 32px;
display:inline;
margin: 0px !important;
}
.badge-description {
display:none;
}
.badge:hover .badge-description {
display:block;
background-color:#000;
border:1px solid #f80;
position: absolute;
padding: 3px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 39 KiB

1276
static/css/badges/star.svg Normal file

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 39 KiB

View File

@@ -1,5 +1,6 @@
@font-face {font-family:"Minecraft";src:url("minecraft.eot") format("eot"),url("minecraft.woff") format("woff"),url("minecraft.ttf") format("truetype"),url("minecraft.svg#Minecraft") format("svg");font-weight:normal;font-style:normal;}
html {
background: url(img/blocks.gif);
}
@@ -144,16 +145,27 @@ tbody tr:nth-child(odd) {
.user-tile {
display: block;
width: 150px;
height: 150px;
min-height: 150px;
text-align: center;
}
.user-tile .badges {
padding: 0;
margin: 0;
text-align: center;
background-color:#000;
}
.user-tile .badge-holder {
background:#000;
}
.post .user-tile {
float: left;
}
.user-tile .byline {
padding: 1em;
padding: 10px;
}
.user-tile a {