cards css

master
Boris Voropaev 2023-12-01 10:46:30 +03:00
parent 8ce2f2997f
commit fa3ff5735c
2 changed files with 8 additions and 2 deletions

View File

@ -34,8 +34,8 @@ export class PagesMenuItemComponent {
}
get parent(){
return !this.current && this.pagesService.currentPage?.link.startsWith(
this.item.link.substring( 0, this.item.link.lastIndexOf("/") + 1 )
return !!this.pagesService.currentPage?.parents?.data.find(
(item:any) => item.id == this.item.id
)
}

View File

@ -102,10 +102,16 @@ cards-section-items{
padding: 16px;
border-radius: 12px;
border: 1px solid var(--second-dis);
background-color: var(--white);
overflow: hidden;
img{
object-fit: contain;
width: 100%;
height: 100%;
transition: transform 0.1s;
&:hover{
transform: scale(1.05);
}
}
}
}