Skip to content

Instantly share code, notes, and snippets.

@prashanth-g
Created June 23, 2015 04:29
Show Gist options
  • Select an option

  • Save prashanth-g/0f72310ae53b42d532af to your computer and use it in GitHub Desktop.

Select an option

Save prashanth-g/0f72310ae53b42d532af to your computer and use it in GitHub Desktop.
Material css
/*Material card - start*/
.card-item {
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
position: relative;
margin-bottom: 30px;
}
.card-item .chart {
padding: 15px;
float: left;
}
.card-item .chart.chart-pie {
margin: 0 20px;
}
.card-item .count {
overflow: hidden;
color: rgba(255, 255, 255, 0.9);
padding: 16px 12px;
}
.card-item .count > h2 {
margin: 0;
line-height: 100%;
font-size: 22px;
font-weight: 300;
color: #000;
}
.card-item .count > small {
margin-bottom: 2px;
display: block;
color: #000;
}
.card-item .count > h2,
.card-item .count > small {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.card-item > .clearfix,
.card-item > .dl-horizontal dd,
.card-item > .container,
.card-item > .container-fluid,
.card-item > .row,
.card-item > .form-horizontal .form-group,
.card-item > .btn-toolbar,
.card-item > .btn-group-vertical > .btn-group,
.card-item > .nav,
.card-item > .navbar,
.card-item > .navbar-header,
.card-item > .navbar-collapse,
.card-item > .pager,
.card-item > .panel-body,
.card-item > .modal-footer {
position: relative;
z-index: 1;
}
.card-item:before {
-webkit-transition: width;
-o-transition: width;
transition: width;
-webkit-transition-duration: 500ms;
transition-duration: 500ms;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
backface-visibility: hidden;
content: "";
/*width: 113px;*/
height: 100%;
/*background: rgba(0, 0, 0, 0.1);*/
position: absolute;
left: 0;
top: 0;
}
/*.card-item:hover .count {
color: #fff !important;
}*/
.card-item:hover:before {
width: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment