@use '../../NewLightboxStyles.scss' as newstyles; .recommendation-container { width: 100%; height: fit-content; min-height: 180px; border-radius: 20px; display: grid; grid-template-columns: 0% 100%; grid-template-rows: auto auto auto auto auto; gap: 5px 0px; padding: 10px; cursor: pointer; transition: 0.2s ease; border: newstyles.$standard-border; border-color: newstyles.$gray-l2; background: white; &:hover { // background: white !important; transform: scale(1.02); z-index: 0; .title { text-decoration: underline; } } &.previewUrl { grid-template-columns: calc(30% - 10px) 70%; grid-template-rows: auto auto auto auto auto; gap: 5px 10px; } &.loading { animation: skeleton-loading-l2 1s linear infinite alternate; border: none; grid-template-columns: calc(30% - 10px) 70%; grid-template-rows: auto auto auto auto auto; gap: 5px 10px; .image-container, .title, .info, .source, .explainer, .hide-rec { animation: skeleton-loading-l3 1s linear infinite alternate; } .title { border-radius: 20px; } } .distance-container, .type-container, .source-container { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 5px; } .image-container { grid-row: 2/5; grid-column: 1; border-radius: 20px; overflow: hidden; .image { width: 100%; height: 100%; object-fit: cover; } } .title { grid-row: 1; grid-column: 1/3; border-radius: 20px; font-size: newstyles.$h2-size; font-weight: newstyles.$h2-weight; overflow: hidden; border-radius: 0px; min-height: 30px; } .info { grid-row: 2; grid-column: 2; border-radius: 20px; display: flex; flex-direction: row; gap: 5px; font-size: newstyles.$body-size; .lb-type { padding: 2px 7px !important; background: newstyles.$gray-l2; } } .lb-label { color: newstyles.$gray-l3; font-weight: newstyles.$h1-weight; font-size: newstyles.$body-size; } .source { grid-row: 3; grid-column: 2; border-radius: 20px; font-size: newstyles.$body-size; display: flex; justify-content: flex-start; align-items: center; .lb-source { padding: 2px 7px !important; background: newstyles.$gray-l2; border-radius: 10px; white-space: nowrap; max-width: 130px; text-overflow: ellipsis; overflow: hidden; } } .explainer { grid-row: 4; grid-column: 2; border-radius: 20px; font-size: 10px; width: 100%; background: newstyles.$blue-l1; border-radius: 0px; padding: 10px; .concepts-container { display: flex; flex-flow: row wrap; margin-top: 3px; gap: 3px; .concept { padding: 2px 7px !important; background: newstyles.$gray-l2; } } } .hide-rec { grid-row: 5; grid-column: 2; border-radius: 20px; font-size: newstyles.$body-size; display: flex; align-items: center; margin-top: 5px; gap: 5px; justify-content: flex-end; text-transform: underline; } &.dark { background: newstyles.$black; border-color: newstyles.$white; } &.light, &.default { background: newstyles.$white; border-color: newstyles.$white; } }