//
// 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 Font Awesome fixes style sheet
//
// @package    theme_adaptable
// @copyright  2025 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
//

.icon.fa {
    width: auto;
}

.fa,
.fa-classic,
.fa-sharp,
.fas,
.fa-solid,
.dropdown-toggle::after,
.dropleft .dropdown-toggle::before,
.dropright .dropdown-toggle::after,
.dropup .dropdown-toggle::after,
.action-menu .dropdown-subpanel .dropdown-item::after,
.dir-rtl .action-menu .dropdown-subpanel .dropdown-item::after,
.dropdown-item[aria-current="true"]::before,
.dropdown-item[aria-selected="true"]::before,
.block_settings .block_tree [aria-expanded="true"] > p::before,
.block_navigation .block_tree [aria-expanded="true"] > p::before,
.block_settings .block_tree [aria-expanded="false"] > p::before,
.block_navigation .block_tree [aria-expanded="false"] > p::before,
.dir-rtl .block_settings .block_tree [aria-expanded="false"] > p::before,
.dir-rtl .block_navigation .block_tree [aria-expanded="false"] > p::before,
.editing .editinprogress::after, .toast.toast-success .toast-body::before,
.toast.toast-danger .toast-body::before, .toast.toast-info .toast-body::before,
.toast.toast-warning .toast-body::before,
.navbar.fixed-top .usermenu .dropdown-menu .dropdown-item.carousel-navigation-link::after,
.navbar.fixed-top .usermenu .dropdown-menu .submenu .items .dropdown-item[aria-current="true"]::before,
.dir-rtl .navbar.fixed-top .usermenu .dropdown-menu .dropdown-item.carousel-navigation-link::after, .moremenu .dropdown-item[aria-current="true"]::before,
.moremenu .dropdown-item.active::before,
.far,
.fa-regular,
.content-bank-container.view-grid .cb-unlisted::after,
.fab,
.fa-brands {
    @include fa-icon;
}

.action-menu .dropdown-subpanel .dropdown-item::after {
    vertical-align: middle;
}
