Advertisement
tungSfer

item css

Jun 24th, 2022
902
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.93 KB | None | 0 0
  1. .item {
  2.     display: block;
  3.     width: 100%;
  4.     border-radius: 8px;
  5.     overflow: hidden;
  6.     margin: 0 12px;
  7.     @include transition(transform, 0.2s, ease-in-out);
  8.     &:hover {
  9.         transform: translateY(-5px);
  10.         box-shadow: $primaryBoxShadow;
  11.     }
  12.     &-img {
  13.         width: 100%;
  14.         img {
  15.             width: 100%;
  16.             object-fit: contain;
  17.         }
  18.     }
  19.     &-content {
  20.         padding: 12px 16px 16px;
  21.         &-city {
  22.             font-size: 12px;
  23.             line-height: 19px;
  24.             color: $textGray;
  25.         }
  26.         &-title {
  27.             font-size: 16px;
  28.             line-height: 24px;
  29.             color: $textBlack;
  30.             font-weight: 500;
  31.         }
  32.         &-desc {
  33.             padding-top: 6px;
  34.             font-size: 12px;
  35.             line-height: 17px;
  36.             @include text-truncate(1);
  37.             color: $textGray;
  38.         }
  39.         &-rate {
  40.             padding-top: 6px;
  41.             > span {
  42.                 font-size: 12px;
  43.                 line-height: 17px;
  44.                 color: $textGray;
  45.                 > span {
  46.                     font-size: 12px;
  47.                     line-height: 17px;
  48.                     color: #ff9c00;
  49.                     font-weight: 600;
  50.                 }
  51.             }
  52.         }
  53.         &-tag {
  54.             padding-top: 6px;
  55.             span {
  56.                 font-size: 12px;
  57.                 line-height: 17px;
  58.                 color: $textGray;
  59.                 padding: 1px 6px;
  60.                 background-color: $primaryBackgroundColor;
  61.                 border: $primaryBorder;
  62.                 border-radius: 4px;
  63.                 font-weight: 600;
  64.                 &:first-of-type {
  65.                     color: #00b371;
  66.                     background-color: #f0fffa;
  67.                 }
  68.             }
  69.         }
  70.         &-price {
  71.             padding-top: 12px;
  72.             > span {
  73.                 font-size: 12px;
  74.                 line-height: 17px;
  75.                 color: $textGray;
  76.                 &:first-of-type {
  77.                     text-decoration: line-through;
  78.                 }
  79.             }
  80.             div {
  81.                 display: flex;
  82.                 justify-content: space-between;
  83.                 align-items: center;
  84.                 > span {
  85.                     font-size: 14px;
  86.                     line-height: 20px;
  87.                     color: $textBlack;
  88.                     font-weight: 500;
  89.                     &:last-of-type {
  90.                         font-size: 12px;
  91.                         line-height: 17px;
  92.                         color: $primaryColor;
  93.                         background-color: #fff0e5;
  94.                         border: $primaryBorder;
  95.                         border-radius: 4px;
  96.                         padding: 1px 6px;
  97.                         border-color: $primaryColor;
  98.                     }
  99.                 }
  100.             }
  101.         }
  102.     }
  103. }
  104.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement