Skip to content

Commit

Permalink
🚧 work on blog styles
Browse files Browse the repository at this point in the history
  • Loading branch information
krmax44 committed Apr 25, 2024
1 parent abcffd1 commit ce8010f
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions frontend/styles/blog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,18 @@

.blog-visual {
opacity: 1;
transition: opacity 0.5s;
overflow: hidden;

img {
width: 100%;
transition: transform 0.3s ease-out;
}
}

.post-item .blog-visual img {
object-fit: cover;
height: 12rem;
}

.blog-visual:hover {
opacity: 0.8;
// add hover effect when hovering over image or the image's next element (description)
.blog-visual:hover img,
a:has(+ *:hover) > .blog-visual img {
transform: scale(1.05);
}

.has-arrow::after {
Expand Down Expand Up @@ -175,6 +173,12 @@
font-weight: 400;
line-height: 1.65;
text-align: left;

b,
strong,
.fw-bold {
font-weight: 600 !important;
}
}

> p,
Expand Down Expand Up @@ -334,11 +338,3 @@
--#{$prefix}link-hover-color-rgb: var(--#{$prefix}secondary-color-rgb);
}
}

.list-arrow {
list-style: none;
}

.list-arrow > li::before {
content: '→ ';
}

0 comments on commit ce8010f

Please sign in to comment.