assets/css/partials/post.scss
.post-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.post-wrap {
  width: 100%;
  height: 232px;
  margin-bottom: 32px;
  position: relative;
  border-radius: $post-radius;
  background: var(--color-wrap);
  display: flex;
  transition: 0.3s;

  @media #{$mg-normal} {
    flex-direction: column !important;
    height: 400px;
    margin-bottom: 20px;
  }

  &.right {
    flex-direction: row-reverse;
  }
}

[data-theme="dark"] .post-wrap-left,
[data-theme="dark"] .post-wrap-right {
  box-shadow: var(--shadow-card);
}

.post-wrapper {
  border-radius: $post-radius;
  transition: 0.3s;

  .aos-animate {
    transition-property: initial !important;

    @media #{$mq-normal} {
      &:hover {
        box-shadow: var(--shadow-card-hover);
      }
    }
  }

  img {
    will-change: transform;
  }

  @media #{$mq-normal} {
    &:hover {
      transform: scale(1.01);

      img {
        transform: scale(1.05);
      }
    }
  }
}

.post-info {
  height: 100%;
  width: 100%;
  padding: 20px;
  overflow: hidden;
  box-sizing: border-box;
}

.post-meta {
  display: flex;
  justify-content: flex-end;
  margin: 4px 0;

  span {
    font-size: 14px;
    color: var(--grey-7);
    margin: 0 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;

    @media #{$mg-normal} {
      margin: 0 8px;
    }
  }

  @if $show_update_time {
    > span {
      @media #{$mg-extra-large} {
        margin: 0 8px;
      }
      @media #{$mg-large} {
        margin: 0 6px;
      }
      @media #{$mq-mobile} {
        margin: 0 8px;
      }
      > span {
        @media #{$mg-extra-large} {
          margin: 0 6px;
        }
        @media #{$mg-large} {
          margin: 0 4px;
        }
        @media #{$mq-mobile} {
          margin: 0 3px;
        }
      }
    }
  }
}

.post-article {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  line-height: 32px;
  font-size: 15px;
  color: var(--grey-7);

  a {
    color: var(--color-link);
  }
}

.post-cover {
  width: 40%;
  position: relative;
  overflow: hidden;
  min-height: 95px;
  background-color: var(--color-wrap);
  flex-shrink: 0;
  pointer-events: none;

  @media #{$mg-normal} {
    width: 100%;
    height: 45%;
  }

  img {
    display: block;
    opacity: 0;
    transition: 0.2s;
    position: absolute;
    left: 0;
    top: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;

    &.lazyloaded {
      opacity: 1;
      animation: blur 0.8s forwards;
    }
  }

  &.left {
    @media #{$mq-normal} {
      border-radius: $post-radius 0 0 $post-radius;
      -webkit-clip-path: polygon(0 0, 92% 0%, 100% 100%, 0% 100%);
      clip-path: polygon(0 0, 92% 0%, 100% 100%, 0% 100%);
    }
  
    @media #{$mg-normal} {
      border-radius: $post-radius $post-radius 0 0;
    }
  }

  &.right {
    @media #{$mq-normal} {
      border-radius: 0 $post-radius $post-radius 0;
      -webkit-clip-path: polygon(0 0, 100% 0%, 100% 100%, 8% 100%);
      clip-path: polygon(0 0, 100% 0%, 100% 100%, 8% 100%);
    }
  
    @media #{$mg-normal} {
      border-radius: $post-radius $post-radius 0 0;
    }
  }
}

.post-title {
  padding: 20px 0;
  color: var(--color-link);
  font-size: 25px;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s;
}

.post-sticky {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 70px;
  height: 35px;
  background: var(--color-sticky);
  color: var(--red-1);
  font-weight: bold;
  font-size: 15px;
  z-index: 1;
  transition: 0.3s;
  border-top-left-radius: $post-radius;
  border-bottom-right-radius: $post-radius;

  &:before {
    margin-right: 4px;
  }
}
