Skip to content

Commit

Permalink
💄 Custom background in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
MarceauKa committed Sep 28, 2019
1 parent c8df81d commit a8b4a6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Fixed

- Default settings
- Custom background in dark mode

## Changed

Expand Down
5 changes: 3 additions & 2 deletions resources/views/layouts/partials/head.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
@stack('css')
@if(app('shaarli')->getCustomBackgroundEncoded())
<style>
body {
background-image: url('{{ app('shaarli')->getCustomBackgroundEncoded() }}');
body,
body.dark {
background-image: url('{{ app('shaarli')->getCustomBackgroundEncoded() }}') !important;
background-repeat: no-repeat;
background-position: center center;
background-size: cover;
Expand Down

0 comments on commit a8b4a6b

Please sign in to comment.