All files / src/components/RelatedCard index.module.scss

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90                                                                                                                                                                                   
@import "../../styles/colors";
 
// Base styles
 
.custom-card {
  overflow: hidden;
  border-radius: 12px;
  transition:
    box-shadow 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
 
  &:hover {
    box-shadow: 0 8px 24px 0 rgb(0 0 0 / 15%);
    transform: translateY(-2px);
  }
}
 
.data {
  transform: translateY(0);
  transition: transform 0.3s;
}
 
.content {
  position: relative;
  z-index: 1;
  padding: 16px;
  background-color: #fff;
  background-image: $bg-backGround-pic;
 
  h3 {
    margin: 8px 0 !important;
  }
 
  p {
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.7;
    color: $text-secondary;
  }
 
  > a {
    color: $white;
  }
}
 
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
 
.title {
  margin-top: 10px;
  font-size: 1.5rem;
  color: $link-hover;
}
 
.date {
  padding: 4px 10px;
  font-size: 0.8rem;
  color: $white;
  background-color: $primary-deeper;
  border-radius: 4px;
 
  span {
    display: block;
    text-align: center;
  }
}
 
.wrapper {
  position: relative;
  min-height: 5rem;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: left;
  background-size: cover;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
  transition: all 0.5s ease 0s;
 
  @media (width >= 576px) {
    min-height: 5rem;
  }
 
  &:hover {
    opacity: 0.9;
  }
}