//
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
//
//
// Adaptable Navigation style sheet
//
// @package    theme_adaptable
// @copyright  2019 G J Barnard - {@link http://moodle.org/user/profile.php?id=442195}
// @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
//

.navbar {
    min-height: 40px;
}

.navbar .nav-collapse.in {
    border-top: none;
}

.navbar .nav {
    display: block;
    float: left;
    left: 0;
    margin: 0 0 0 4px;
    position: relative;

    > li > a {
        margin: 0 0 0 0 !important;
    }
}

.nav .dropdown-menu li a {
    border-bottom-color: none !important;
}

.navbar .singlebutton,
.navbar input,
.navbar .singlebutton div,
.path-mod-data .navbar form {
    line-height: 18px;
    margin: 0 0;
}

#adaptable-page-header-wrapper .navbar {
    #pre-login-form input {
        margin: 5px;
        padding: 2px;
    }

    a.btn-login,
    #pre-login-form button.btn-login {
        height: 30px;
        margin: 3px 1px 1px 10px;
        padding: 0 15px;
    }
}

.navbar .singlebutton input {
    padding: 4px 15px;
    margin-left: 5px;
}

.navbar #coursesearchnavbar,
.navbar .wikisearch {
    margin-top: 3px;
}

.navbar .forumsearch input[type=text] {
    padding: 0;
}

header .nav-item {
    margin-bottom: auto;
    margin-top: auto;
    vertical-align: middle;
}

@media (max-width: 767px) {
    .responsivesectionnav .activity-navigation {
        .text {
            display: none;
        }

        .col-md-6 {
            width: 50%;
        }
    }
}

// New message drawer (moodle 3.6 and higher).
.message-app {
    box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.08);
}

// Adjust height according to header style.
.header-style1 [data-region="drawer"] {
    height: calc(100% - 105px);
    top: 105px;
}

.header-style2 [data-region="drawer"] {
    height: calc(100% - 46px);
    top: 46px;
}

@media screen and (min-width: 768px) {
    .header-style2 [data-region="drawer"] {
        height: calc(100% - 72px);
        top: 72px;
    }
}

// Breadcrumb
#page-navbar {
    margin-top: 10px;

    .breadcrumb-button {
        display: block;
        text-align: right;
    }
}

.breadcrumb-button {
    margin-top: 1px;

    i {
        margin-right: 0.25rem;
    }
}

.breadcrumb {
    padding: 0 10px;
    li {
        margin: 5px 0;
        text-shadow: none;
        span {
            a {
                text-decoration: none;
            }
            &.divider {
                display: none !important;
            }
        }
        a.firstli {
            padding-left: 15px;
            padding-right: 20px;
        }
    }
    > a {
        display: inline-block;
        margin: 5px 0;
    }

    ul i,
    li.lastli span {
        text-decoration: none;
    }
}
