Add background image.

This commit is contained in:
Dominik V. Salonen 2018-03-15 10:02:35 +01:00
parent 3a6422d0f6
commit 96df3c1e3c
4 changed files with 33 additions and 1 deletions

22
.gitignore vendored Normal file
View File

@ -0,0 +1,22 @@
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
# Folder config file
[Dd]esktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msm
*.msp
# Windows shortcuts
*.lnk

BIN
assets/bg-1440p.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

BIN
assets/bg-orig.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 MiB

View File

@ -4,6 +4,16 @@ html, body {
overflow: hidden;
}
body {
height: 100vh;
width: 100vw;
background-image: url('assets/bg-1440p.jpg');
background-color: #2b2b2b;
background-size: cover;
background-position: bottom right;
background-repeat: no-repeat;
}
h1, h2, h3, h4, h5, p {
margin: 0;
}
@ -22,7 +32,7 @@ a:hover {
position: absolute;
top: 0;
left: 0;
background-color: #2b2b2b;
background-color: rgba(0,0,0,0.5);
min-width: 100vw;
min-height: 100vh;
max-width: 100vw;