FileMaster
Search
Toggle Dark Mode
Home
/
.
/
backup
/
assets
/
scss
/
components
Edit File: _card.scss
.cardCollectionStyle1 { position: relative; text-align: center; .cardImage { position: relative; img { display: block; transform: scale(1); -webkit-transition: all 0.3s; transition: all 0.3s; } &:hover { img { transform: scale(1.1); } } } .cardInfo { position: absolute; bottom: 40px; padding: 10px 25px; background-color: #ffffff; border-radius: 4px; margin: auto; display: table; table-layout: fixed; left: 0px; right: 0px; * { color: $color-neutral-dark; } } &:hover { .cardInfo { background-color: $color-primary-dark; color: $color-white; * { color: $color-white; } } } a { text-decoration: none; } } .cardCollection { text-align: center; .cardImage { margin-bottom: 20px; } } .cardProduct { display: inline-block; width: 100%; margin-bottom: 40px; a { text-decoration: none; } .cardImage { position: relative; margin-bottom: 20px; background-color: $background-bg-4; height: 350px; text-align: center; line-height: 350px; overflow: hidden; img { display: inline-block; max-height: 100%; vertical-align: middle; max-width: 100%; } } .cardInfo { position: relative; .cardTitle { margin-bottom: 4px; color: $color-neutral-dark; &:hover { color: $color-primary-navy; } } .cardDesc { margin-bottom: 12px; color: $color-neutral-medium; } } } .box-colors { position: relative; display: flex; flex-wrap: wrap; align-items: center; .item-color { height: 20px; width: 20px; border: 1px solid $color-shape-border; display: inline-block; margin-right: 8px; border-radius: 50%; background-color: $background-white; position: relative; padding: 1px; cursor: pointer; &::before { content: ""; height: 16px; width: 16px; background-color: $color-1; position: absolute; border-radius: 50%; top: 1px; left: 1px; } &.color-2 { &::before { background-color: $color-2; } } &.color-3 { &::before { background-color: $color-3; } } &.color-4 { &::before { background-color: $color-4; } } &.color-5 { &::before { background-color: $color-5; } } &.color-6 { &::before { background-color: $color-6; } } &.color-7 { &::before { background-color: $color-7; } } &.color-8 { &::before { background-color: $color-8; } } &.active { border-color: $color-neutral-dark; } } } .cardProductStyle4 { display: inline-block; width: 100%; margin-bottom: 40px; background-color: $background-white; border: 1px solid $color-shape-border; max-height: 424px; a { text-decoration: none; } .cardImage { position: relative; margin-bottom: 20px; background-color: $background-bg-4; text-align: center; overflow: hidden; img { display: inline-block; max-height: 100%; vertical-align: middle; max-width: 100%; } } .cardInfo { position: relative; text-align: center; padding: 0px 20px 20px 20px; .cardTitle { margin-bottom: 4px; color: $color-neutral-dark; font-size: 16px; line-height: 24px; font-family: $font-fjalla; display: block; &:hover { color: $color-primary-navy; } } .cardDesc { margin-bottom: 20px; color: $color-neutral-medium; } .box-colors { position: relative; .item-color { height: 20px; width: 20px; border: 1px solid $color-shape-border; display: inline-block; margin-right: 6px; border-radius: 50%; background-color: $background-white; position: relative; padding: 1px; &::before { content: ""; height: 16px; width: 16px; background-color: $color-1; position: absolute; border-radius: 50%; top: 1px; left: 1px; } &.color-2 { &::before { background-color: $color-2; } } } } } } .cardProductStyle2 { display: inline-block; width: 100%; margin-bottom: 40px; text-align: center; a { text-decoration: none; } .cardImage { position: relative; margin-bottom: 20px; background-color: $background-bg-10; height: 286px; text-align: center; line-height: 286px; overflow: hidden; img { display: inline-block; max-height: 100%; vertical-align: middle; max-width: 100%; } } .cardInfo { position: relative; .cardTitle { margin-bottom: 4px; font-size: 17px; line-height: 24px; color: $color-neutral-dark; &:hover { color: $color-primary-navy; } } .cardDesc { margin-bottom: 12px; color: $color-neutral-dark; font-size: 17px; line-height: 24px; } } } .cardProductSmall { display: inline-block; width: 100%; margin-bottom: 40px; text-align: center; a { text-decoration: none; } .cardImage { position: relative; margin-bottom: 20px; background-color: $background-bg-10; height: 370px; text-align: center; line-height: 370px; max-width: 370px; width: 100%; display: inline-block; overflow: hidden; img { display: inline-block; max-height: 100%; vertical-align: middle; max-width: 100%; } } .cardInfo { position: relative; .cardTitle { margin-bottom: 4px; font-size: 17px; line-height: 24px; color: $color-neutral-dark; &:hover { color: $color-primary-navy; } } .cardDesc { margin-bottom: 12px; color: $color-neutral-dark; font-size: 17px; line-height: 24px; } } } .cardProductStyle3, .cardProductStyle2, .cardProduct, .cardProductSmall { text-align: center; margin-bottom: 40px; .cardImage { position: relative; margin-bottom: 20px; background-color: $background-bg-16; overflow: hidden; img { display: inline-block; max-height: 100%; vertical-align: middle; max-width: 100%; width: 100%; } .imageMain { opacity: 1; visibility: visible; display: inline-block; transition: all .3s; } .imageHover { opacity: 0; visibility: hidden; top: 30px; bottom: -30px; position: absolute; transition: all .3s; left: 0px; right: 0px; margin: auto; width: 100%; } .button-select { position: absolute; left: 0px; bottom: -20px; opacity: 0; transition: all .3s ease-in-out; line-height: 24px; width: 100%; a { background-color: $color-neutral-dark; padding: 10px 10px; display: inline-block; width: 100%; text-align: center; font-size: 17px; font-weight: 500; color: $color-white; &:hover { background-color: $color-primary-navy; color: $color-white; } } } &:hover { .button-select { bottom: 0px; opacity: 1; } .imageMain { opacity: 0; visibility: hidden; } .imageHover { opacity: 1; visibility: visible; top: 0px; bottom: 0px; } } } .cardInfo { position: relative; } } .cardProductStyle5 { text-align: left; .cardImage { height: 270px; width: 100%; text-align: center; line-height: 270px; } .cardDesc { .price-line { color: $color-neutral-medium; text-decoration: line-through; margin-right: 8px; } .price-main { color: $color-neutral-medium-dark; } } } .cardProduct { text-align: left; } .cardFeatureCat { display: inline-block; width: 100%; height: 270px; position: relative; overflow: hidden; border-radius: 8px; margin-bottom: 20px; background-color: $background-bg-2; .cardImage { text-align: right; height: 100%; max-width: 100%; width: auto; position: relative; z-index: 1; img { display: block; height: 100%; margin: auto 10px auto auto; max-width: 100%; width: auto; } } .cardInfo { position: absolute; top: 40px; left: 40px; z-index: 12; .cardTitle { margin-bottom: 8px; } a { color: $color-neutral-dark; text-decoration: none; &:hover { color: $color-primary-navy; * { color: $color-primary-navy; } } } } } .cardBlog { margin-bottom: 30px; .cardImage { position: relative; margin-bottom: 24px; } .cardInfo { .cardTags { margin-bottom: 8px; a, span { font-size: 16px; display: inline-block; margin-right: 20px; font-weight: 500; line-height: 24px; text-transform: uppercase; color: $color-neutral-dark; text-decoration: none; } a { &:hover { color: $color-primary-navy; } } span { text-transform: none; margin-right: 0px; color: $color-neutral-medium; } } .cardTitle { display: block; margin-bottom: 12px; text-decoration: none; * { color: $color-neutral-dark; } &:hover { color: $color-primary-navy; * { color: $color-primary-navy; } } } .cardDesc { color: $color-neutral-medium-dark; margin-bottom: 24px; } } } .cardCategory { background-color: $color-shape-background; padding: 10px 30px 56px 30px; margin-bottom: 20px; .cardImage { margin-bottom: 33px; padding: 30px; width: 100%; height: 400px; line-height: 400px; text-align: center; img { display: inline-block; max-height: 100%; max-width: 90%; vertical-align: middle; } } .cardInfo { position: relative; text-align: center; .cardTitle { margin-bottom: 16px; } a { margin: 0px 10px; } } } .card-style-small { .cardCategory { .cardImage { height: 320px; line-height: 320px; } } } .cardIcon { text-align: center; margin-bottom: 30px; .cardImage { margin-bottom: 30px; } .cardInfo { position: relative; .cardTitle { margin-bottom: 12px; } } } .cardCategoriesStyle1 { display: flex; width: 100%; background-color: $background-bg-6; padding: 20px 20px 0px 20px; height: 500px; .cardInfo { width: 50%; padding: 44px 0px 44px 44px; position: relative; z-index: 2; .tag-title { text-transform: uppercase; } } .cardImage { width: 50%; display: flex; align-items: flex-end; justify-content: flex-end; img { max-height: 95%; height: auto; width: auto; max-width: 300px; vertical-align: bottom; display: inline-block; } } } .cardCategoriesStyle2 { .cardInfo { display: flex; align-items: center; } } .cardCategoriesStyle3 { width: 100%; position: relative; .cardImage { position: relative; background-position: center; background-size: cover; background-repeat: no-repeat; width: 100%; display: inline-block; height: 500px; } .cardInfo { border: 5px solid #fff; padding: 35px; text-align: center; position: absolute; top: 50%; transform: translateY(-50%); max-width: 70%; z-index: 123; margin: auto; left: 0px; right: 0px; h2 { color: $color-white; } a { color: $color-white; font-size: 17px; font-weight: 400; } } } .cardBanner { position: relative; .cardImage { position: relative; } .cardInfo { position: absolute; text-align: center; top: 50%; transform: translateY(-50%); width: 100%; } } .cardFeature { position: relative; background-color: $background-bg-8; margin-bottom: 30px; .cardImage { position: relative; z-index: 1; img { display: block; } } .cardInfo { position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 2; display: flex; align-items: center; padding: 40px; color: $color-white; } &.cardFeatureTop { .cardInfo { align-items: flex-start; padding-top: 66px; } } &.cardFeatureTop2 { .cardInfo { align-items: flex-start; padding-top: 87px; } } } .cardCategoryText { display: flex; width: 100%; background-color: $background-bg-10; text-align: center; align-items: center; justify-content: center; margin-bottom: 2%; height: 47.3%; min-height: 200px; &:last-child { margin-bottom: 0px; } .cardInfo { a { font-size: 34px; line-height: 46px; font-weight: 500; color: #fff; } } &.bg-1 { background: url(../imgs/page/homepage7/under3.png) no-repeat right top; } &.bg-2 { background: url(../imgs/page/homepage7/under5.png) no-repeat right top; } } .cardCategorySmall { position: relative; text-align: center; .cardImage { position: relative; margin-bottom: 12px; height: 115px; line-height: 100px; padding: 15px 15px 0px 15px; img { display: inline-block; max-width: 95%; height: auto; max-height: 95%; width: auto; } } .cardInfo { .cardTitle { font-size: 16px; font-weight: 500; line-height: 24px; color: $color-neutral-dark; } a { &:hover * { color: $color-primary-navy; } } } &.cardCategorySmallStyle2 { .cardImage { width: 100%; height: 170px; line-height: 140px; text-align: center; background-color: $background-bg-19; img { vertical-align: middle; } } } } .cardCatImageText { margin-bottom: 30px; .cardImage { margin-bottom: 20px; } } .cardProduceCircle { text-align: center; margin-bottom: 40px; .cardImage { display: inline-block; width: 270px; height: 270px; border: 1px solid $color-shape-border; border-radius: 50%; margin-bottom: 20px; text-align: center; line-height: 270px; overflow: hidden; img { display: inline-block; vertical-align: middle; margin: auto; } } .cardInfo { a { text-decoration: none; color: $color-neutral-dark; position: relative; .sub-num { position: absolute; top: -12px; font-size: 14px; font-weight: 500; color: $color-neutral-medium-dark; margin-left: 10px; } } } } .cardBorderImageLeft { padding: 40px; border: 1px solid $color-shape-border; border-radius: 10px; display: flex; width: 100%; align-items: center; .cardImage { width: 10%; min-width: 48px; margin-right: 30px; } .cardInfo { width: 100%; } } .cardReview { border: 1px solid $color-shape-border; padding: 30px; border-radius: 10px; background-color: $background-white; .cardRate { margin-bottom: 30px; img { margin-right: 2px; } } .cardText { margin-bottom: 30px; .text-comment { min-height: 168px; } } .cardAuthor { display: flex; align-items: center; .cardImageAuthor { width: 50px; height: 50px; min-width: 50px; margin-right: 16px; img { width: 50px; height: 50px; border-radius: 50%; } } .cardNameAuthor { width: 100%; } } } .cardCategoryStyle2 { display: flex; align-items: center; width: 100%; padding: 15px 10px; border: 1px solid $color-shape-border; border-radius: 4px; .cardImage { min-width: 100px; max-width: 100px; margin-right: 10px; } .cardInfo { position: relative; width: 100%; .tag-num { position: absolute; top: -12px; font-size: 14px; font-weight: 500; color: #555555; margin-left: 10px; } } } .cardBannerCollection { height: 460px; position: relative; .cardTag { margin-bottom: 12px; } .cardTitle { margin-bottom: 12px; } .cardDesc { margin-bottom: 24px; } } .cardTeam { text-align: center; margin-bottom: 30px; .cardImage { position: relative; max-width: 310px; margin: auto; margin-bottom: 20px; img { border-radius: 50%; height: 310px; width: 310px; } } .cardInfo { .cardTitle { margin-bottom: 8px; } .cardDesc { margin-bottom: 15px; } } } .socials { display: flex; align-items: center; justify-content: center; a { display: inline-block; margin: 0px 12px; } } .cardStore { .cardImage { margin-bottom: 24px; img { width: 100%; } } } .cardBlogList { display: flex; width: 100%; margin-bottom: 40px; align-items: center; .cardImage { max-width: 370px; min-width: 370px; margin-right: 30px; margin-bottom: 0px; } .cardInfo { width: 100%; } } .cardCategoryCircle { text-align: center; margin-bottom: 30px; .cardImage { position: relative; width: 170px; height: 170px; border-radius: 50%; background-color: $background-bg-30; text-align: center; line-height: 170px; margin-bottom: 20px; display: inline-block; img { display: inline-block; vertical-align: middle; max-height: 100%; max-width: 100%; } } .cardInfo { text-align: center; } } .cardProductBorder { border: 1px solid $color-shape-border; border-radius: 4px; padding: 22px; margin-bottom: 0px; .cardImage { height: 222px; width: 100%; line-height: 222px; margin-bottom: 12px; background-color: $color-white; } } .cardProductType03 { .cardImage { // height: 270px; width: 100%; // line-height: 265px; background-color: $color-white; } .cardInfo { .sale-price { color: $color-neutral-medium; text-decoration: line-through; margin-right: 8px; } } } .card-categories { margin-bottom: 30px; .card-image { position: relative; margin-bottom: 16px; img { width: 100%; } } .card-info { position: relative; text-align: center; } } .card-block-banner { background-color: $background-bg-35; border-radius: 16px; padding: 48px; display: flex; align-items: flex-end; min-height: 360px; p { margin-bottom: 8px; } h2 { margin-bottom: 24px; } &.banner-enjoy { background-image: url(../imgs/page/homepage21/enjoy.png); background-repeat: no-repeat; background-position: right center; } &.banner-sale { background-image: url(../imgs/page/homepage21/sale.png); background-repeat: no-repeat; background-position: right center; } } .card-categories-slide { .card-image { position: relative; border-radius: 16px; height: 270px; width: 100%; line-height: 270px; background-color: $background-bg-36; margin-bottom: 16px; overflow: hidden; text-align: center; img { display: inline-block; vertical-align: middle; } } .card-info { position: relative; text-align: center; } } .card-product-popup { .card-image { height: 140px; overflow: hidden; line-height: 140px; text-align: center; background-color: $color-shape-background; margin-bottom: 16px; img { max-height: 100%; max-width: 100%; display: inline-block; vertical-align: middle; } } .card-info { text-align: center; .cardTitle { margin-bottom: 10px; } } } .cardProductCategory01 { position: relative; width: 100%; background-color: $color-shape-background; .cardImage { height: 500px; width: 100%; position: relative; text-align: center; img { display: block; position: absolute; bottom: 0px; margin: auto; max-width: 100%; } } .cardInfo { position: absolute; top: 25px; left: 25px; z-index: 3; h6 { color: $color-neutral-dark; font-style: italic; } p { color: $color-neutral-medium; font-style: italic; } } } .cardProductCategory02 { position: relative; width: 100%; .cardImage { background-color: $color-shape-background; text-align: center; margin-bottom: 20px; img { display: block; } } } .cardProductType01 { .cardInfo { h6, p { font-style: italic; } p { color: $color-neutral-medium-dark; font-family: $font-jost; } .sale-price { color: $color-neutral-medium; text-decoration: line-through; margin-right: 8px; } } } .cardProductType02 { .cardInfo { text-align: left; h6 { margin-bottom: 4px; } .cardDesc { color: $color-neutral-medium-dark; } .sale-price { color: $color-neutral-medium; text-decoration: line-through; margin-right: 8px; } } } .card-icon-box-type4 { position: relative; display: flex; align-items: center; margin-bottom: 40px; .card-icon-image { width: 64px; min-width: 64px; max-width: 64px; margin-right: 20px; } .card-icon-info { width: 100%; .card-icon-title { margin-bottom: 8px; } .card-icon-desc { position: relative; } } } .cardIconType3 { .cardImage { margin-bottom: 24px; img { display: block; margin: auto; } } .cardInfo { h6 { margin-bottom: 8px; } } } .cardShopCategory { margin-bottom: 30px; .cardImage { height: 440px; background-position: top center; background-size: cover; background-repeat: no-repeat; display: flex; width: 100%; align-items: flex-end; text-align: center; span { display: inline-block; padding: 35px 10px; width: 100%; color: $color-white; font-size: 24px; line-height: 32px; &:hover { color: $color-primary-navy; } } } } .card-banner2-grey { background-color: $color-shape-background; padding: 40px 16px 16px 40px; display: flex; align-items: center; margin-bottom: 30px; .card-info { display: flex; flex-wrap: wrap; place-content: space-between; height: 179px; width: 50%; h5 { width: 100%; } } .card-image { width: 50%; } } .card-our-category { margin-bottom: 30px; .card-image { position: relative; img { width: 100%; display: block; } } .card-info { position: relative; text-align: center; padding: 15px; } } .cardProductColorStyle2 { .cardImage { height: auto; line-height: 100%; } } .cardImageTextMiddle { position: relative; margin-bottom: 30px; .cardImage { position: relative; img { display: block; width: 100%; } } .cardText { position: absolute; top: 50%; transform: translateY(-50%); text-align: center; width: 100%; h2 { color: $color-white; } .btn { width: 100%; max-width: 170px; } } }
Save
Back