Skip to content

Instantly share code, notes, and snippets.

@safrankov
Created March 9, 2017 23:31
Show Gist options
  • Select an option

  • Save safrankov/cee258e2408afb8f17096b5dc9d78d76 to your computer and use it in GitHub Desktop.

Select an option

Save safrankov/cee258e2408afb8f17096b5dc9d78d76 to your computer and use it in GitHub Desktop.
.livedrop-wrapper{
position: relative;
width: 100%;
height: 150px;
clear: both;
background: #0f121b;
border-top: 1px solid #2a2e38;
border-bottom: 1px solid #2a2e38;
}
.livedrop{
white-space: nowrap;
overflow: hidden;
}
.livedrop__item{
position: relative;
width: 167px;
height: 148px;
vertical-align: top;
display: inline-block;
text-align: center;
border-top: 2px solid transparent;
-webkit-transition: all .2s;
-moz-transition: all .2s;
-ms-transition: all .2s;
transition: all .2s;
}
.livedrop__item:after{
position: absolute;
bottom: 12px;
right: -1px;
content: '';
width: 1px;
height: 32px;
background: #262830;
}
.livedrop__item:hover{
background: #324061;
}
.livedrop__item--light-blue{
background: url("../images/light-blue.png") center no-repeat;
}
.livedrop__item--light-blue:hover{
border-color: #54a4cd;
}
.livedrop__item--blue{
background: url("../images/blue.png") center no-repeat;
}
.livedrop__item--blue:hover{
border-color: #574ede;
}
.livedrop__item--pink{
background: url("../images/pink.png") center no-repeat;
}
.livedrop__item--pink:hover{
border-color: #c52fe1;
}
.livedrop__item--red{
background: url("../images/red.png") center no-repeat;
}
.livedrop__item--red:hover{
border-color: #e44530;
}
.livedrop__item--yellow{
background: url("../images/yellow.png") center no-repeat;
}
.livedrop__item--yellow:hover{
border-color: #d0ac1e;
}
.livedrop__pic-wrapper{
position: absolute;
width: 100%;
height: 100px;
display: table-cell;
text-align: center;
padding-top: 30px;
-moz-transition: all .2s;
-webkit-transition: all .2s;
-ms-transition: all .2s;
transition: all .2s;
}
.livedrop__pic-wrapper--hover{
opacity: 0;
transform: scale(0);
}
.livedrop__item:hover .livedrop__pic-wrapper{
opacity: 0;
}
.livedrop__item:hover .livedrop__pic-wrapper--hover{
opacity: 1;
-moz-transform: scale(1);
-webkit-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
}
.livedrop__pic{
display: inline-block;
vertical-align: middle;
}
.livedrop__bullet-name{
position: absolute;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
color: #f7f7f7;
text-transform: uppercase;
white-space: nowrap;
bottom: 25px;
}
.livedrop__description{
position: absolute;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
bottom: 10px;
color: #aeb0ba;
}
.livedrop__username{
position: absolute;
top: 10px;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #bbe0ff;
font-weight: bold;
opacity: 0;
-moz-transition: all .2s;
-webkit-transition: all .2s;
-ms-transition: all .2s;
transition: all .2s;
}
.livedrop__item:hover .livedrop__username{
opacity: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment