mirror of
https://github.com/standardebooks/web.git
synced 2025-07-20 05:14:48 -04:00
Better background colour for homepage splash
If we set a dark background colour as well as the image it’ll show while the image is loading (or if the image fails to load). This colour is picked from the background of the image to reduce impact when it loads.
This commit is contained in:
parent
e5e04b2de8
commit
4495915dae
1 changed files with 1 additions and 3 deletions
|
@ -293,9 +293,7 @@ article > h1{
|
|||
|
||||
main.front-page h1{
|
||||
text-align: center;
|
||||
background: url('/images/book.jpg');
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background: #29292b url('/images/book.jpg') center / cover;
|
||||
border-bottom: 1px solid var(--border);
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, .75);
|
||||
width: calc(100% + 4rem);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue