//
// 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 News ticker style sheet
//
// @package    theme_adaptable
// @copyright  &copy; 2025 - G J Barnard
// @author     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
//

// News Ticker.
#ticker,
#ticker_container {
    font-size: 16px;
}

#ticker-wrap {
    line-height: 40px;
    margin-bottom: 15px;
    margin-top: 15px;
    position: relative;

    #ticker {
        display: none;
    }

    #newscontent {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;

        #news {
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;

            img {
                display: block;
            }
        }
    }

    #ticker_container {
        display: flex;
        width: 100%;

        #ticker-announce {
            font-weight: 600;
            margin-bottom: auto;
            margin-right: 5px;
            padding: 0 15px;
            text-transform: uppercase;
        }

        #controls {
            height: 16px;
            min-width: 76px;
            text-align: center;

            span {
                display: inline-block;
                width: 20px;
            }

            .fa {
                cursor: pointer;
                padding: 0 2px;
            }
        }
    }
}
