FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
surecart
/
dist
/
components
/
collection
/
components
/
ui
/
line-item
Edit File: sc-line-item.css
:host { display: block; --mobile-size: 380px; --price-size: var(--sc-font-size-medium); --line-item-grid-template-columns: auto 1fr 1fr; line-height: var(--sc-line-height-dense); } .item { display: grid; align-items: center; grid-template-columns: var(--line-item-grid-template-columns); } @media screen and (min-width: var(--mobile-size)) { .item { flex-wrap: no-wrap; } } .item__title { color: var(--sc-line-item-title-color); } .item__price { color: var(--sc-input-label-color); } .item__title, .item__price { font-size: var(--sc-font-size-medium); font-weight: var(--sc-font-weight-semibold); } .item__description, .item__price-description { font-size: var(--sc-font-size-small); line-height: var(--sc-line-height-dense); color: var(--sc-input-label-color); } ::slotted([slot=price-description]) { margin-top: var(--sc-line-item-text-margin, 5px); color: var(--sc-input-label-color); text-decoration: none; } .item__end { flex: 1; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; align-self: flex-end; width: 100%; margin-top: 20px; } @media screen and (min-width: 280px) { .item__end { width: auto; text-align: right; margin-left: 20px; margin-top: 0; } .item--is-rtl .item__end { margin-left: 0; margin-right: 20px; } .item__price-text { text-align: right; display: flex; flex-direction: column; align-items: flex-end; } } .item__price-currency { font-size: var(--sc-font-size-small); color: var(--sc-input-label-color); text-transform: var(--sc-currency-transform, uppercase); margin-right: 8px; } .item__text { flex: 1; } .item__price-description { display: -webkit-box; } ::slotted([slot=image]) { margin-right: 20px; width: 50px; height: 50px; object-fit: cover; border-radius: 4px; border: 1px solid var(--sc-color-gray-200); display: block; box-shadow: var(--sc-input-box-shadow); } ::slotted([slot=price-description]) { display: inline-block; width: 100%; line-height: 1; } .item__price-layout { font-size: var(--sc-font-size-x-large); font-weight: var(--sc-font-weight-semibold); display: flex; align-items: center; } .item__price { font-size: var(--price-size); } .item_currency { font-weight: var(--sc-font-weight-normal); font-size: var(--sc-font-size-xx-small); color: var(--sc-input-label-color); margin-right: var(--sc-spacing-small); text-transform: var(--sc-currency-text-transform, uppercase); } .item--is-rtl.item__description, .item--is-rtl.item__price-description { text-align: right; } .item--is-rtl .item__text { text-align: right; } @media screen and (min-width: 280px) { .item--is-rtl .item__end { width: auto; text-align: left; margin-left: 0; margin-top: 0; } .item--is-rtl .item__price-text { text-align: left; } }
Save
Back