
/*
 * MusicDB,  a music manager with web-bases UI that focus on music.
 * Copyright (C) 2017-2020  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/>.
 */

.Artwork
{
    border-radius:  var(--radius);
    overflow:       hidden;
    flex-shrink:    0;
    filter:         var(--artworkfilter);
}

.Artwork > img
{
    display:        block;
    width:          auto;
    height:         100%;
}



.AlbumArtwork[data-size=small]
{
    width:          var(--artworkwidth-small);
    height:         var(--artworkwidth-small);
}
.AlbumArtwork[data-size=medium]
{
    width:          var(--artworkwidth-medium);
    height:         var(--artworkwidth-medium);
}
.AlbumArtwork[data-size=large]
{
    width:          var(--artworkwidth-large);
    height:         var(--artworkwidth-large);
}



.VideoArtwork[data-size=small]
{
    width:          calc(var(--artworkwidth-small) * 2.2);
    height:         calc(var(--artworkwidth-small) * 2.2 / 1.77778);
    /* 1.77778 = 16/9 */
}
.VideoArtwork[data-size=medium]
{
    width:          var(--artworkwidth-medium);
    height:         calc(var(--artworkwidth-medium) / 1.77778);
    /* 1.77778 = 16/9 */
}

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

