Skip to content

Instantly share code, notes, and snippets.

@ajaydsouza
Created March 22, 2014 11:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajaydsouza/9705239 to your computer and use it in GitHub Desktop.
Save ajaydsouza/9705239 to your computer and use it in GitHub Desktop.
Top 10 Custom Style 2
.tptn_posts ul, .tptn_posts_daily ul {
list-style: none;
float: left;
margin: 0;
}
.tptn_posts li, .tptn_posts a, .tptn_posts_daily li, .tptn_posts_daily a {
float: left;
overflow: hidden;
position: relative;
text-align: center;
}
.tptn_posts li, .tptn_posts_daily li {
margin: .9em;
border: 1px solid #ddd;
padding: 6px;
}
.tptn_posts li:hover, .tptn_posts_daily li:hover {
background: #eee;
border-color: #bbb;
}
.tptn_posts a, .tptn_posts_daily a {
width: 150px;
height: 150px;
text-decoration: none;
}
.tptn_posts a:hover, .tptn_posts_daily a:hover {
text-decoration: none;
}
.tptn_posts img, .tptn_posts_daily img {
max-width: 150px;
margin: auto;
}
.tptn_posts .tptn_title, .tptn_posts_daily .tptn_title {
position: absolute;
height: inherit;
bottom: 6px;
left: 6px;
padding: 3px;
width: 144px; /* = 150px - (3px * 2) */
color: #fff;
font-size: .9em;
text-shadow: #000 .1em .1em .2em;
background: rgb(0.5, 0.5, 0.5);
background: rgba(0, 0, 0, 0.5);
}
.tptn_posts li:hover .tptn_title, .tptn_posts_daily li:hover .tptn_title {
background: rgb(0.2, 0.2, 0.2);
background: rgba(0, 0, 0, 0.8);
}
.tptn_posts .tptn_thumb, .tptn_posts li, .tptn_posts .tptn_title, .tptn_posts_daily .tptn_thumb, .tptn_posts_daily li, .tptn_posts_daily .tptn_title {
vertical-align: bottom;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.4);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.4);
box-shadow: 0 1px 2px rgba(0,0,0,.4);
-webkit-border-radius: 7px;
-moz-border-radius: 7px;
border-radius: 7px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment