_menu.scss 5.55 KB
#wrapper-navbar {
    position: relative;
    top:0;
    width: 100%;
    background:white;
    z-index: 9000;
    height: 158px;
    #navbarNavDropdown{
        width: 100%;
    }
    #main-menu {
        width: 100%;
        justify-content: space-evenly;
        & > li:nth-child(n+2) {
            .dropdown-menu {
                flex-flow: column wrap-reverse;
                margin-right: -5px;
            }
            .dropdown-shadow {
                padding:0 5px !important;
            }
            .dropdown-item {
                padding-right:1.625rem;
                padding-left: 0.875rem;
            }
        }
    }
    .dropdown-toggle::after {
        display: inline-block;
        margin-left: 0.255em;
        vertical-align: 0.255em;
        content: "";
        border-top: 0.6em solid white;
        border-right: 0.6em solid transparent;
        border-bottom: 0;
        border-left: 0.6em solid transparent;
        bottom: -0.5rem;
        position: absolute;
        left: 50%;
        left:calc(50% - 0.5em);
        z-index: 999999;
        display: none;
    }
    .dropdown-toggle.show {
        &::after {
            display: block;
            align-items: flex-start;
            justify-content: space-evenly;
        }
    }
    #main-nav {
        position: fixed;
        width: 100%;
        height: 158px;
        padding:0;
        box-shadow: 0px 3px 6px #00000029;
        z-index: 991 !important;
        .container{
            flex-direction: column;
            align-items: flex-start;
        }
    }
    #main-menu {
        a {
            color:black;
            padding-top:3.75rem;
            padding-right: 1rem;
            padding-left: 1rem;
        }
        li {
            display: flex;
            align-items: center;
            flex-direction: column;
        }
        & > li {
            justify-content: flex-end;
        }
 
    }
    .dropdown-item {
        text-decoration: none;
        &:hover {
            .title-before-short {
                text-decoration: underline;
            } 
        }
    }
    .title-before-short {
        margin:0;
        color:#000f;
        text-decoration: none;
        white-space: break-spaces;
    }
    .donate .title-before-short {
        color:white;
    }
    .nav-link.donate-btn .title-before-short {
        color:white;
    }
    .short {
        padding-top: 0;
        color:#4D4D4D;
        line-height: 1.2;
        padding-left: 0;
        padding-bottom: 0;
        white-space: normal;
        font-size: 0.75rem;
        margin-top:0;
    }
    .mi-image-container + .short {
        color:#000;
        &:after {
            content: "";
            background-image: url(../img/more.svg);
            background-repeat: no-repeat;
            display: inline-block;
            height: 10px;
            width: 30px;
            display: block;
            margin-top:0.563rem;
        }
        &.extern {
            position: relative;
            &:after {
                position: absolute;
                top:0;
                right:0;
                height: 20px;
                width: 20px;
                background-size: contain;
                background-image: url("data:image/svg+xml,%3Csvg id='Group_1558' data-name='Group 1558' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='20.935' height='20.915' viewBox='0 0 20.935 20.915'%3E%3Cdefs%3E%3CclipPath id='clip-path'%3E%3Crect id='Rectangle_151' data-name='Rectangle 151' width='20.935' height='20.915' fill='none'/%3E%3C/clipPath%3E%3C/defs%3E%3Cpath id='Path_1277' data-name='Path 1277' d='M0 0V20.915H20.934V9.763h-2.56v8.6H2.58V2.517h8.383V0Z' transform='translate(0 0)' fill='%231a1818'/%3E%3Cg id='Group_1023' data-name='Group 1023' transform='translate(0 0)'%3E%3Cg id='Group_1022' data-name='Group 1022' clip-path='url(%23clip-path)'%3E%3Cpath id='Path_1278' data-name='Path 1278' d='M18.276 13.612 16.363 11.7l9.185-9.143H23V.016h6.913v6.9H27.374V4.478l-9.1 9.134' transform='translate(-8.975 -0.009)' fill='%231a1818'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            }
        }
    }
    .dropdown-shadow {
        background:#E5E5E5;
        box-shadow: 0px 3px 6px #00000029;
        position: absolute;
        top:0;
        height: 14.25rem;
        z-index: -1;
        left: auto;
        margin-left: -15px;
        z-index: -1;
        padding: 0 15px;
        box-sizing: content-box;
    }
    #main-menu .dropdown-menu {
        padding:0;
        border:0;
        margin:0;
        padding-bottom:1rem;
        background:none;
        // padding-top:6px;
        // margin-top:-6px;
        // padding-top:5px;
        // background:none;
        border-radius: 0;
        height:15.25rem;
        max-height: 15.25rem;
        min-height: 15.25rem;
        flex-direction: column;
        flex-wrap: wrap;
        left:auto;
        right:0;
        &:before {
            content: "";
            width: 100%;
            height: 100%;
            position: absolute;
            top: -10px;
            padding-left: 150%;
        }
        & > li {
            flex:0;
            background: #e5e5e5;
            width:16.25rem;
            min-width:16.25rem;
            max-width: 16.25rem;
            a {
                font-family: "PT Sans",sans-serif;
            }
        }
        a {
            padding-top:0.688rem;
            // padding-bottom:1.063rem;
            display: flex;
            flex-direction: column;
            z-index: 9;
        }
        &.show {
            display: flex;
            flex-direction: column;
            flex-wrap: wrap;
        }
    }
}