Skip to content

Commit

Permalink
fixes clickable area on tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
klalicki committed Mar 14, 2024
1 parent a1fcfd0 commit cef9332
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion theme/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ p.portfolio-card-desc-short {

.portfolio-tile-click-area:focus {
outline: none !important;
position: static;
}

.portfolio-tile-text-overlay:focus-within {
Expand All @@ -414,6 +415,7 @@ p.portfolio-card-desc-short {
left: 0;
right: 0;
bottom: 0;
z-index: 10;
}

.portfolio-tile-image-link:focus {
Expand All @@ -422,7 +424,6 @@ p.portfolio-card-desc-short {

.portfolio-tile:focus-within .portfolio-tile-text-overlay,
.portfolio-tile:hover .portfolio-tile-text-overlay {
pointer-events: all;
opacity: 1;
transform: scale(1);
transition: all 0.5s;
Expand Down
5 changes: 4 additions & 1 deletion theme/assets/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -371,17 +371,20 @@ p.portfolio-card-desc-short {
}
.portfolio-tile-click-area:focus {
outline: none !important;
position: static;
}
.portfolio-tile-text-overlay:focus-within {
outline: 3px solid $color-focus-ring;
}
.portfolio-tile-click-area::after {
content: "";
// background-color: yellow;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 10;
}
.portfolio-tile-click-area:focus::after {
// outline: 3px solid $color-focus-ring;
Expand All @@ -391,7 +394,7 @@ p.portfolio-card-desc-short {
}
.portfolio-tile:focus-within .portfolio-tile-text-overlay,
.portfolio-tile:hover .portfolio-tile-text-overlay {
pointer-events: all;
// pointer-events: all;
opacity: $portfolio-tile-overlay-opacity;
transform: scale(1);
transition: all 0.5s;
Expand Down

0 comments on commit cef9332

Please sign in to comment.