css: update styling of teams blocks

This commit is contained in:
Nataliia Bobrova 2025-03-12 14:31:42 +00:00
parent c7bb2d5cc5
commit d97022efb7

View File

@ -239,6 +239,7 @@ body:not(.wp-admin) .wp-block-group.team {
div.team-member-wrapper {
// Ensure each item is a square
aspect-ratio: 1/1;
position: relative;
// Resetting height/width to ensure that team member's name covers entire square
.wp-block-cover,
@ -248,6 +249,7 @@ body:not(.wp-admin) .wp-block-group.team {
padding: 0;
}
&:hover {
cursor: pointer;
.team-member-name {
visibility: visible;
opacity: 1;