-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Very annoying background-image backend POC
- Loading branch information
1 parent
ff66d6e
commit ec5fd4d
Showing
4 changed files
with
52 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,49 @@ | ||
/* | ||
GPT-4 did almost all of the CSS. | ||
Life is too short to understand how top: 50% | ||
interacts with transform: translateY(-50%) | ||
*/ | ||
|
||
html, body { | ||
padding: 0; | ||
body { | ||
display: grid; | ||
grid-template-columns: 2fr 1fr; | ||
grid-template-rows: 2fr 1fr; | ||
|
||
margin: 0; | ||
height: 100%; | ||
height: 100vh; | ||
|
||
align-items: center; | ||
justify-items: center; | ||
|
||
background: black; | ||
} | ||
|
||
main { | ||
grid-column: 1 / span 1; | ||
grid-row: 1 / span 1; | ||
height: 100%; | ||
width: 100%; | ||
|
||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
align-content: center; | ||
background: url(https://0x0.st/X8oT.png); | ||
background-size: contain; | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
} | ||
|
||
img { | ||
max-width: 100%; | ||
footer { | ||
grid-column: 1 / span 1; | ||
grid-row: 2 / span 1; | ||
height: 100%; | ||
width: 100%; | ||
|
||
background: url(https://0x0.st/X8oT.png); | ||
background-size: contain; | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
} | ||
|
||
div#sidebar { | ||
grid-column: 2 / span 1; | ||
grid-row: 1 / span 2; | ||
height: 100%; | ||
width: 100%; | ||
|
||
background: url(https://0x0.st/X8oT.png); | ||
background-size: contain; | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
} |