/* GRIDS -------- */ .mod-grid { border: 1px solid #ddd; padding: 18px; @include border-radius(5px); .actions { overflow: hidden; } .clear { clear: both; } .assets { padding-top: 10px - 3px; } // [row] .asset { float: left; margin: 0 11px 11px 0; position: relative; &, .thumbnail, .overlay { height: 100px; width: 100px; } &.move, &.properties, &.selected, &.will-destroy { .overlay { display: block; } } &.edit-block .attributes { display: block; } } // [row]:types .asset.move label { cursor: move; } .asset.properties { cursor: pointer; } .asset.selected .overlay { background: rgba($yellow, .5); } .asset.will-destroy .overlay, .asset.selected.will-destroy .overlay { background: rgba($red, .5); } // thumbnail + file-icon + overlay .asset .thumbnail, .asset .overlay { left: 0; position: absolute; top: 0; } .asset .thumbnail { z-index: 0; } .asset .file-icon { background: #E4E4E4; display: block; height: 100%; width: 100%; } .asset .overlay { background: rgba(black, .5); display: none; z-index: 1; } // [row].edit-block .asset.edit-block { clear: both; height: auto; min-height: 100px; width: 100%; } // label .asset label { @include border-radius(2px); background: #fff; bottom: 6px; color: #4f4f4f; font-size: 9px; height: 16px; line-height: 16px; left: 9px; overflow: hidden; padding: 2px 6px 1px; position: absolute; right: 9px; text-overflow: ellipsis; white-space: nowrap; z-index: 2; } // attributes .asset .attributes { display: none; margin-left: 115px; position: relative; } .asset .attributes input, .asset .attributes textarea, .asset .attributes select { margin-bottom: 6px; resize: none; width: 300px; } .asset .attributes textarea { height: 100px !important; } .asset .attributes li { margin: 0; } .asset .attributes label { display: none; } .asset .attributes .close-button { color: #c5c5c5; cursor: pointer; display: inline-block; font-size: 18px; padding: 4px 6px; position: absolute; right: 0; top: -4px; &:hover { color: $black } } // // Actions // .actions { & > div { float: left; } input[type="file"] { display: none; } .button { background: $button_green; color: white; cursor: pointer; float: left; font-size: 10px; font-weight: 600; margin-bottom: 3px; margin-right: 7px; padding: 7px 9px 6px; text-transform: uppercase; @include border-radius(3px); } .button.unavailable { background-color: #ddd !important; cursor: default; } .button[rel="edit"] { background-color: $button_yellow; } .button[rel="destroy"] { background-color: $button_red; } .files-description { color: #999; display: none; font-size: 9px; height: 23px; letter-spacing: 1px; line-height: 25px; margin-right: 12px; overflow: hidden; text-transform: uppercase; } } }