assets/stylesheets/partials/_fields.scss
.form-control[infinite] {
margin-bottom: 5px;
}
.field-infinite {
display: block;
margin-top: 7px;
}
.image-file-wrapper {
margin-bottom: 15px;
height: 100px;
border: 1px solid #ccc;
position: relative;
background: #eee;
input[type=file] {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
height: auto;
margin: 0;
padding: 0;
opacity: 0;
cursor: pointer;
z-index: 10;
}
.image-preview {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-repeat: no-repeat;
background-position: center center;
background-attachment: local;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.field-infinite a {
position: relative;
background: white;
top: 25px;
left: 37px;
display: inline-block;
border-radius: 50%;
padding: 5px;
width: 30px;
height: 30px;
text-align: center;
line-height: 20px;
z-index: 10;
border: 1px solid #aaa;
}
}