Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions changelog/unreleased/enhancement-branded-login-background.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Enhancement: ownCloud branded login background

The default login page background has been replaced with the ownCloud branding
background. The background image is now applied through the CSS custom
property `--oc-login-background-image`, so a future branding update only needs
to change one value. The image itself still comes from the theme
(`loginPage.backgroundImg` in theme.json) and remains fully customizable.

https://github.com/owncloud/web/pull/13875
10 changes: 8 additions & 2 deletions packages/design-system/src/styles/theme/login.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
.oc-login {
@extend .oc-background-cover;

// contain (not cover) so the logo baked into the branded background
// artwork is never cropped at viewport aspect ratios that differ from the
// image; the matching solid color fills any letterbox so it blends with
// the artwork's edges
@extend .oc-background-contain;

background-color: #3c4d9b;
background-image: var(--oc-login-background-image);
position: relative;

&-logo {
Expand Down
2 changes: 1 addition & 1 deletion packages/web-runtime/src/layouts/Plain.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div
class="oc-login oc-height-viewport"
:style="{ backgroundImage: 'url(' + backgroundImg + ')' }"
:style="{ '--oc-login-background-image': 'url(' + backgroundImg + ')' }"
>
<h1 class="oc-invisible-sr" v-text="pageTitle" />
<router-view />
Expand Down
Binary file modified packages/web-runtime/themes/owncloud/assets/loginBackground.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading