Skip to content

Commit

Permalink
Update "selected marker" for featured image
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdavidlaing committed Jul 16, 2011
1 parent 471fd9b commit bc6e7f0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
Binary file added featured.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 13 additions & 4 deletions sc_image_metabox.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ div.sc_image {
border: 2px solid black;
position:relative;
margin: 10px;
padding: 5px;
padding: 2px;
background: #d4d2d2;
}
div.sc_image a {
Expand All @@ -18,10 +18,19 @@ div.sc_image a.sc_thumb {
left:5px;
}


div.sc_thumb {
border: 2px solid green;
background: green;
border: 5px solid #66cc00;
}

div.sc_thumb .featured_marker {
background-image: url('featured.png');
background-repeat: no-repeat;
z-index: 999;
width: 65px;
height: 65px;
position: absolute;
top: -4px;
left: -4px;
}

/* >> The Magnificent CLEARFIX << */
Expand Down
3 changes: 2 additions & 1 deletion sc_image_metabox.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ function sc_image_metabox($callback)

<script id="sc_image_tmpl" type="text/x-jquery-tmpl">
<div class="${class}" data-id="${id}">
<div class="featured_marker"></div>
<a class="sc_delete" href="#">Delete</a>
<a class="sc_thumb" href="#">Primary</a>
<a class="sc_thumb" href="#">Featured</a>
<img src="${src}" width="${width}" height="${height}" alt="thumbnail" />
</div>
</script>
Expand Down

0 comments on commit bc6e7f0

Please sign in to comment.