UNPKG

@material/image-list

Version:
120 lines (108 loc) 3.05 kB
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/material-components/material-components-web/blob/master/LICENSE */ .mdc-image-list { display: flex; flex-wrap: wrap; margin: 0 auto; padding: 0; } .mdc-image-list__item, .mdc-image-list__image-aspect-container { position: relative; box-sizing: border-box; } .mdc-image-list__item { list-style-type: none; } .mdc-image-list__image { width: 100%; } .mdc-image-list__image-aspect-container .mdc-image-list__image { position: absolute; top: 0; right: 0; bottom: 0; left: 0; height: 100%; background-repeat: no-repeat; background-position: center; background-size: cover; } .mdc-image-list__image-aspect-container { padding-bottom: calc(100% / 1); } .mdc-image-list__image { border-radius: 0; } .mdc-image-list--with-text-protection .mdc-image-list__supporting { border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .mdc-image-list__supporting { color: rgba(0, 0, 0, 0.87); /* @alternate */ color: var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87)); display: flex; align-items: center; justify-content: space-between; box-sizing: border-box; padding: 8px 0; line-height: 24px; } .mdc-image-list__label { -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; font-family: Roboto, sans-serif; /* @alternate */ font-family: var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif)); font-size: 1rem; /* @alternate */ font-size: var(--mdc-typography-subtitle1-font-size, 1rem); line-height: 1.75rem; /* @alternate */ line-height: var(--mdc-typography-subtitle1-line-height, 1.75rem); font-weight: 400; /* @alternate */ font-weight: var(--mdc-typography-subtitle1-font-weight, 400); letter-spacing: 0.009375em; /* @alternate */ letter-spacing: var(--mdc-typography-subtitle1-letter-spacing, 0.009375em); text-decoration: inherit; /* @alternate */ -webkit-text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit); text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit); text-transform: inherit; /* @alternate */ text-transform: var(--mdc-typography-subtitle1-text-transform, inherit); text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } .mdc-image-list--with-text-protection .mdc-image-list__supporting { position: absolute; bottom: 0; width: 100%; height: 48px; padding: 0 16px; background: rgba(0, 0, 0, 0.6); color: #fff; } .mdc-image-list--masonry { display: block; } .mdc-image-list--masonry .mdc-image-list__item { -webkit-column-break-inside: avoid; break-inside: avoid-column; } .mdc-image-list--masonry .mdc-image-list__image { display: block; height: auto; } /*# sourceMappingURL=mdc.image-list.css.map*/