#companies { background-color: #fff; text-shadow: #fff 0 1px 0; position: relative; display: block; height: auto; div.thumb { @include box-shadow(rgba(0,0,0,0.2) 0 0 8px); float: left; padding: 15px; margin: 5px; text-align: center; line-height: 14px; height: 120px; width: 140px; color: #333; overflow: hidden; border-top: 1px solid transparent; cursor: pointer; border-radius: 4px; img { margin-bottom: 10px; } strong { display: block; } } div.thumb-hover { background-color: $base-over-color; } .x-item-selected { background-color: #d3e1f1 !important; } }