diff options
| author | bd <bdunahu@operationnull.com> | 2026-02-24 21:25:11 -0500 |
|---|---|---|
| committer | bd <bdunahu@operationnull.com> | 2026-02-24 21:25:11 -0500 |
| commit | af2e7cffad3ad14c6b034fa343692ec265688e88 (patch) | |
| tree | 5352ee9346d78d21aa1fca6fca20be93ba5552af /content/assets | |
| parent | 22d5d49ade2109a8e205b4be188f0df16720be98 (diff) | |
add mobile background for less data usage
Diffstat (limited to 'content/assets')
| -rw-r--r-- | content/assets/background-mobile.jpg | bin | 0 -> 49397 bytes | |||
| -rw-r--r-- | content/assets/site.css | 12 |
2 files changed, 12 insertions, 0 deletions
diff --git a/content/assets/background-mobile.jpg b/content/assets/background-mobile.jpg Binary files differnew file mode 100644 index 0000000..1e201fe --- /dev/null +++ b/content/assets/background-mobile.jpg diff --git a/content/assets/site.css b/content/assets/site.css index dc3f276..517e288 100644 --- a/content/assets/site.css +++ b/content/assets/site.css @@ -4,6 +4,18 @@ html { -moz-background-size: cover; -o-background-size: cover; background-size: cover; + background-color: rgba(0, 0, 0, 0.5); +} + +@media (max-width: 768px) { + html { + background: url(background-mobile.jpg) no-repeat center center fixed; + -webkit-background-size: cover; + -moz-background-size: cover; + -o-background-size: cover; + background-size: cover; + background-color: rgba(0, 0, 0, 0.5); + } } .container { |
