/*
 * MusicDB,  a music manager with web-bases UI that focus on music.
 * Copyright (C) 2017-2021  Ralf Stemmer <ralf.stemmer@gmx.net>
 * 
 * This program 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.
 * 
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.
 */



.MessageBar
{
    align-items:    center;
    margin:         0.5rem;
    padding:        0.5rem;
    border-radius:  var(--radius);
}

/*
.MessageBar > div+div
*/
.MessageBar > *+*
{
    margin-left:    0.5rem;
}

/*
.MessageBar > input:
{

}
*/


.MessageBar > .message
{
    flex-grow:      1;
}



.MessageBar[data-messagetype]
{
    color:              var(--color-white);
}
.MessageBar[data-messagetype] > .SVGIcon
{
    background-color:   var(--color-white);
}


.MessageBar[data-messagetype=confirm]
{
    background-color:   var(--color-green);
}
.MessageBar[data-messagetype=info]
{
    background-color:   var(--color-blue);
}
.MessageBar[data-messagetype=warning]
{
    background-color:   var(--color-yellow);
}
.MessageBar[data-messagetype=error]
{
    background-color:   var(--color-red);
}
.MessageBar[data-messagetype=active]
{
    background-color:   var(--color-blue);
}
.MessageBar[data-messagetype=active] .SVGIcon
{
    animation-name:             spin;
    animation-duration:         4s;
    animation-iteration-count:  infinite;
    animation-timing-function:  linear;
}

@keyframes spin
{
    from
    {
        transform: rotate(0deg);
    }

    to
    {
        transform: rotate(360deg);
    }
}


/* vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 
 */

