From 0ea21bedbaa8251e2a3cbe9e76ab101b922b7a2c Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Fri, 31 Jan 2020 11:18:53 -0500 Subject: [PATCH] Do some basic layout --- macrovision.css | 43 +++++++++++++++++++++++++++++++++++++++++++ macrovision.html | 12 +++++++++++- reset.css | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 102 insertions(+), 1 deletion(-) create mode 100644 macrovision.css create mode 100644 reset.css diff --git a/macrovision.css b/macrovision.css new file mode 100644 index 00000000..a53b13aa --- /dev/null +++ b/macrovision.css @@ -0,0 +1,43 @@ +html { + height: 100%; + overflow-x: hidden; + overflow-y: hidden; +} + +body { + background: #111; + display: flex; + flex-direction: column; + align-items: center; + justify-content: flex-start; + height: 100%; + width: 100%; +} + +.entity { + position: absolute; + left: 50%; + top: 50%; + --height: 100px; + width: 50px; + background-color: red; + height: var(--height); + text-align: center; +} + +#world { + min-width: 90vw; + min-height: 80vh; +} + +#menubar { + min-height: 10vh; + min-width: 100vw; + background: #222; +} + +#display { + width: 100%; + height: 100%; + background: #333; +} diff --git a/macrovision.html b/macrovision.html index 89acc87d..15c46ef3 100644 --- a/macrovision.html +++ b/macrovision.html @@ -4,6 +4,7 @@ Macrovision + @@ -14,6 +15,15 @@ - hi + +
+
+ I'm a box +
+ + +
diff --git a/reset.css b/reset.css new file mode 100644 index 00000000..e29c0f5f --- /dev/null +++ b/reset.css @@ -0,0 +1,48 @@ +/* http://meyerweb.com/eric/tools/css/reset/ + v2.0 | 20110126 + License: none (public domain) +*/ + +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td, +article, aside, canvas, details, embed, +figure, figcaption, footer, header, hgroup, +menu, nav, output, ruby, section, summary, +time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; +} +/* HTML5 display-role reset for older browsers */ +article, aside, details, figcaption, figure, +footer, header, hgroup, menu, nav, section { + display: block; +} +body { + line-height: 1; +} +ol, ul { + list-style: none; +} +blockquote, q { + quotes: none; +} +blockquote:before, blockquote:after, +q:before, q:after { + content: ''; + content: none; +} +table { + border-collapse: collapse; + border-spacing: 0; +}