From fee5c9d42bcd97d67a11569bc2002775ead29182 Mon Sep 17 00:00:00 2001 From: hugogogo Date: Sat, 27 Feb 2021 20:02:59 +0100 Subject: [PATCH] ok rem et asides --- styles/global.css | 60 ++++++++++++++++++++++++++++++++++++-------- styles/litterall.css | 2 +- styles/style.css | 4 --- styles/text.css | 16 ++++++++++-- 4 files changed, 65 insertions(+), 17 deletions(-) diff --git a/styles/global.css b/styles/global.css index ecd4945..ad52175 100644 --- a/styles/global.css +++ b/styles/global.css @@ -1,38 +1,78 @@ -/*/////////////////////////////////////////////*/ +/*---------------------------------------------*/ /*GLOBAL VARIABLE*/ :root { + --gap-unit: 10px; } + +html { + scroll-behavior: smooth; + /*default font-size for rem*/ + font-size: 10px; +} +/*borders on mains elements of pages for debugging*/ +body main, body aside, body nav { + /* + border: 1px solid red; + */ +} +body { + max-width: 1500px; +} +body nav { +} +body main { +} +body aside { +} +/*asides elements only have width if they have a child*/ +body aside *:first-child { + width: 200px; +} +body aside > * { + margin: var(--gap-unit); +} +body aside.page_content { +} +body aside.relative_content { +} + + /*elements are flex, vertical, and to the left, by default*/ -body *:not(script) { +body { display: flex; flex-direction: column; - margin: 20px 0px; } -/*default*/ +body * { + display: flex; + flex-direction: column; + margin: var(--gap-unit) 0px; +} + +/*---------------------------------------------*/ +/*DESIGN KEYWORDS*/ .vertical { display: flex; flex-direction: column; } .vertical > * { - margin: 20px 0px; + margin: var(--gap-unit) 0px; } -.left > * { - margin-left: 0px; -} -/*special*/ .horizontal { display: flex; flex-direction: row; } .horizontal > * { - margin: 0px 20px; + margin: 0px var(--gap-unit); } .right { margin-right: 0px; margin-left: auto; text-align: right; } +.left > * { + margin-left: 0px; +} .center { margin-right: auto; margin-left: auto; diff --git a/styles/litterall.css b/styles/litterall.css index f453008..b039159 100644 --- a/styles/litterall.css +++ b/styles/litterall.css @@ -1,4 +1,4 @@ -.aside_left { +.page_nav { min-width: 200px; padding: 0px 20px 0px 0px; border-right: 1px solid lightgray; diff --git a/styles/style.css b/styles/style.css index 6cb1d2c..ad73b42 100644 --- a/styles/style.css +++ b/styles/style.css @@ -35,10 +35,6 @@ html { scroll-behavior: smooth; font-size: 10px; } -/*to keep a blank space between the content and the top of the page*/ -body { - margin-top: 100px; -} main { min-height: calc(100vh - 70px); } diff --git a/styles/text.css b/styles/text.css index 719db18..5cdafc9 100644 --- a/styles/text.css +++ b/styles/text.css @@ -57,7 +57,7 @@ h1 { h2 { font-size: 2em; } -.mini_text { +small { font-size: 0.8em; } /*specials settings*/ @@ -82,4 +82,16 @@ p br, h1 br, h2 br { h1 { margin-bottom: 20px; } - +/* + - Bold text + - Important text + - Italic text + - Emphasized text + - Marked text + - Smaller text + - Deleted text + - Inserted text + - Subscript text + - Superscript tex + - Computer code +*/