Imgur Super Posts - Blue/Green
Post that has received accolades, are now highlighted with a sleek looking border.
by thelifeisyours
HTML
<div id="header">
</div>
<div id="main">
<div id="posts">
<div class="posts-column">
<div style="height: 307px; margin-bottom: 16px;">
<a draggable="false" href="/gallery/79Nej6h" class="Post-item vetovote super" target="_self">
<div class="Post-item-media" style="height: 240px;"><img src="https://i.imgur.com/MbXOmo5_d.jpg?maxwidth=520&shape=thumb&fidelity=high" style="width: 240px; height: 240px;"></div>
<div class="Post-item-meta">
<div class="Post-item-image-count">36</div>
</div>
<div class="Post-item-title-wrap">
<div class="Post-item-title"><span style="display: -webkit-box; max-height: 31.92px; overflow: hidden; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2;">Witcher dumparino</span></div>
<div class="Post-item-info">
<div class="PostInfo vote ups uScaleTransition"><span class="icon icon-upvote-fill"></span><span>5,131</span></div>
<div class="PostInfo vote downs uScaleTransition"><span class="icon icon-downvote-fill"></span><span>103</span></div>
<div class="PostInfo uScaleTransition"><span class="icon chat-filled"><img class="chat-filled" src="https://s.imgur.com/desktop-assets/desktop-assets/icon-chat-filled.b12fed0067e4ce444f710411ee6a70e1.svg"></span><span>223</span></div>
<div class="PostInfo uScaleTransition views "><span class="icon eye"><img class="eye" src="https://s.imgur.com/desktop-assets/desktop-assets/icon-eye.bf703aed21e47a30269da39879c03ccf.svg"></span><span>101K</span></div>
</div>
</div>
</a>
</div>
<div style="height: 299px; margin-bottom: 16px;"><a draggable="false" href="/gallery/9MYx2LR" class="Post-item vetovote" target="_self">
<div class="Post-item-media" style="height: 232px;"><img src="https://i.imgur.com/O13f6EI_d.jpg?maxwidth=520&shape=thumb&fidelity=high" style="width: 240px;...
CSS
body {
background: #141518;
color: #f2f2f2;
font-family: 'Open Sans', sans-serif;
font-size: 14px;
margin: 0;
padding: 0;
}
a {
color: #7789ff;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
img {
border-style: none;
}
@font-face {
font-family: imgur;
src: url("https://s.imgur.com/include/fonts/imgur.woff?7");
}
#header {
width: 100%;
height: 3em;
background: #34373c;
border-bottom: solid 1px rgba(0, 0, 0, 0.7);
box-shadow: 2px 0px 7px 1px rgba(0, 0, 0, 0.7);
margin-bottom: 2em;
z-index: 999;
}
#main {
display: flex;
flex-flow: row;
justify-content: center;
width: 100%;
height: 100%;
z-index: 1;
}
#posts {
width: 90%;
display: flex;
flex-flow: row;
justify-content: center;
}
.posts-column{
display: flex;
flex-flow: column;
width: 240px;
margin: 0.5em;
}
/* SUPER COMMENT RELATED STYLING
-----------------------------------------------------------*/
.super::before {
content: '';
position: absolute;
top: -3px;
left: -3px;
border-radius: 6px;
background: linear-gradient(90deg, #1bb86e 0%, #6c6ae6 25%, #34308c 50%, #3e3cb1 75%, #1bb86e 100%);
background-size: 200%;
width: calc(100% + 6px);
height: calc(100% + 6px);
z-index: -1;
animation: super_spin 5s linear infinite;
}
@keyframes super_spin {
100% {
background-position: 200% 0;
}
}
/*Post item css*/
.Post-item {
height: 100%;
display: block;
border-radius: 4px;
margin-bottom: 30px;
background-repeat: no-repeat;
cursor: pointer;
/*REMOVING OLD OVERFLOW AS IT HIDES THE .super BORDER*/
/*overflow: hidden; */
background-size: 145px;
position: relative;
color: #fff;
box-shadow: 0 2px 4px 0 rgba(0,0,0,.4);
border-radius: 3px;
background-color: #2e3035;
transition: box-shadow .25s;
-webkit-transition: box-shadow .25s;
}
.Post-item:after {
content: "";
position: absolute;
width: 100%;
height: 100%;
left: 0;
...