//
// Coded variables
//
// @logo-image
// @login-bg-color
// @login-wallpaper
// @login-wallpaper-size
//

//
// Logos
//

.oc-logo-transparent when not (@logo-image = '') {
    background-image: url('@{logo-image}') !important;
}

.oc-logo when not (@logo-image = '') {
    background-image: url('@{logo-image}');
}

//
// Login page
//

.setLoginWallpaper(@login-wallpaper) when not (@login-wallpaper = '') {
    background-image: url('@{login-wallpaper}');
    background-position: left top;
    background-repeat: repeat;
    background-size: @login-wallpaper-size;
}

.setLoginWallpaper(@login-wallpaper) when (@login-wallpaper = '') {
    background-image: none;
}

body.outer {
    .outer-theme-cell {
        background-color: @login-bg-color;
        .setLoginWallpaper(@login-wallpaper);
    }
}
