From 730d676801f8ed71072dbbed92f174d0f88f52f2 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Thu, 21 Jun 2018 20:59:31 -0700 Subject: [PATCH] Center within the rendered node --- css/page.css | 8 ++++++++ docs/usage.md | 16 +++++++++------- js/components/WindowManager.js | 27 ++++++--------------------- js/webamp.js | 2 +- 4 files changed, 24 insertions(+), 29 deletions(-) diff --git a/css/page.css b/css/page.css index 4c69dca8..e7c1e17c 100644 --- a/css/page.css +++ b/css/page.css @@ -79,6 +79,14 @@ body { background-size: 100%; /* Image is 2x size for retina displays */ } +#app { + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; +} + #app #loading { color: white; text-align: center; diff --git a/docs/usage.md b/docs/usage.md index f0b850f2..e8ea8e8e 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -6,8 +6,8 @@ Here's how to use Webamp in your own project. If you get stuck, or need help, pl If you would like to look as some examples check out the [examples directory](../examples/) were you will find: -* [Minimal](../examples/minimal/) - An example that just uses a `