All files / src/components/Card 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 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112                                                                                                                                                                                                                               
@import "../../styles/colors";
 
@mixin cf {
  &::after,
  &::before {
    display: table;
    content: "";
  }
 
  &::after {
    clear: both;
  }
}
 
// Base styles
 
.data {
  transform: translateY(0);
  transition: transform 0.3s;
}
 
.data-content {
  position: relative;
  z-index: 1;
  padding: 20px 24px 24px;
  background-color: $white;
}
 
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
 
.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);
  }
 
  p {
    margin-top: 12px;
    margin-bottom: 0;
    line-height: 1.8;
    color: $text-secondary;
  }
}
 
.date {
  padding: 6px 12px;
  font-size: 0.85rem;
  color: $white;
  background-color: $primary-deeper;
  border-radius: 4px;
 
  span {
    display: block;
    text-align: center;
  }
}
 
.title {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  color: $link-hover;
}
 
.wrapper {
  position: relative;
  min-height: 8rem;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transition: all 0.5s ease 0s;
 
  @media (width >= 576px) {
    min-height: 16rem;
  }
 
  &:hover {
    opacity: 0.9;
  }
}
 
// Style for img tag to match div.wrapper
img.wrapper {
  display: block;
  width: 100%;
  height: 8rem;
  object-fit: cover;
  object-position: center;
 
  @media (width >= 576px) {
    height: 16rem;
  }
}
 
.image-link {
  display: block;
}