@use 'iro-sass/src/props';

@use 'core';
@use 'common';

@mixin styles {
    .boxesSidebarLeft, .boxesSidebarRight {
        .box {
            border-radius: 0;

            &:not(:first-child) {
                margin-block-start: -1px;
            }

            &:not(.boxBorderless) {
                background-color: props.get(core.$theme, --bg-sidebar);
            }

            .boxMenu {
                li {
                    &.active {
                        > .boxMenuLink {
                            background-color: props.get(core.$theme, --bg-sidebar-item);
                        }
                    }
                }
            }
        }

        a {
            &:hover {
                text-decoration-line: underline;
            }
        }
    }

    .userAvatarList > li > a > img {
        border-color: props.get(core.$theme, --bg-l1);
    }

    @media screen and (max-width: 1024px) {
        .boxesSidebarLeft, .boxesSidebarRight {
            .box {
                border-radius: 0;
    
                &:not(:first-child) {
                    padding-start: 20px 10px;
    
                    &::before {
                        display: none;
                    }
                }
            }
        }
    }
}