@vendasta/store
Version:
Components and data for Store
37 lines (25 loc) • 2.27 kB
CSS
:host { position: relative; }
/deep/ .mat-card-header-text { width: 100%; }
mat-card.hover-card { overflow: hidden; padding: 0; margin-bottom: 0; }
mat-card.hover-card mat-card-title, mat-card.hover-card mat-card-subtitle { margin: 0 80px 0 0; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
mat-card.hover-card mat-card-subtitle { font-size: 12px; margin-top: 4px; }
.hover-area { position: relative; cursor: pointer; }
@media screen and (min-width: 480px) { .hover-area { padding-top: 55%; }
.hover-area:hover .description { top: 0; }
.hover-area:hover .enabled-indicator span { width: 70px; } }
.product-banner { max-height: 133px; overflow: hidden; display: flex; width: 100%; height: 100px; align-items: center; justify-content: center; }
.product-banner img { max-width: 100%; }
@media screen and (min-width: 480px) { .product-banner { max-height: none; position: absolute; height: 60%; top: 0; } }
.description { box-sizing: border-box; padding: 10px 16px 0; overflow: hidden; background: #ffffff; transition: 0.3s ease all; }
.description:after { content: ''; display: block; width: 100%; height: 40%; position: absolute; bottom: 0; left: 0; background: linear-gradient(rgba(255, 255, 255, 0) 40%, white 70%); }
@media screen and (min-width: 480px) { .description { position: absolute; top: 60%; width: 100%; height: 100%; }
.description:after { height: 70%; } }
mat-card-header { box-sizing: border-box; padding-bottom: 16px; margin: 0; height: 40%; display: flex; align-items: center; }
mat-card-content { min-height: 40px; max-height: 80px; padding: 16px; margin: 0 -16px; border-top: 1px solid #e0e0e0; font-size: 12px; }
@media screen and (min-width: 480px) { mat-card-content { min-height: 0; max-height: none; } }
.enabled-indicator { position: absolute; right: 8px; bottom: 8px; }
.enabled-indicator span { display: inline-block; width: 70px; overflow: hidden; transition: 0.3s ease all; }
@media screen and (min-width: 480px) { .enabled-indicator span { width: 0; } }
button[mat-button] { padding: 0 8px; min-width: 0; }
mat-card-actions { position: relative; padding: 8px ; margin: 0 ; text-align: right; border-top: 1px solid #e0e0e0; background-color: #ffffff; }
.status { font-size: 14px; }