ok rem et asides
This commit is contained in:
@@ -1,38 +1,78 @@
|
|||||||
/*/////////////////////////////////////////////*/
|
/*---------------------------------------------*/
|
||||||
/*GLOBAL VARIABLE*/
|
/*GLOBAL VARIABLE*/
|
||||||
:root {
|
: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*/
|
/*elements are flex, vertical, and to the left, by default*/
|
||||||
body *:not(script) {
|
body {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin: 20px 0px;
|
|
||||||
}
|
}
|
||||||
/*default*/
|
body * {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
margin: var(--gap-unit) 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*---------------------------------------------*/
|
||||||
|
/*DESIGN KEYWORDS*/
|
||||||
.vertical {
|
.vertical {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
.vertical > * {
|
.vertical > * {
|
||||||
margin: 20px 0px;
|
margin: var(--gap-unit) 0px;
|
||||||
}
|
}
|
||||||
.left > * {
|
|
||||||
margin-left: 0px;
|
|
||||||
}
|
|
||||||
/*special*/
|
|
||||||
.horizontal {
|
.horizontal {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
.horizontal > * {
|
.horizontal > * {
|
||||||
margin: 0px 20px;
|
margin: 0px var(--gap-unit);
|
||||||
}
|
}
|
||||||
.right {
|
.right {
|
||||||
margin-right: 0px;
|
margin-right: 0px;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
.left > * {
|
||||||
|
margin-left: 0px;
|
||||||
|
}
|
||||||
.center {
|
.center {
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.aside_left {
|
.page_nav {
|
||||||
min-width: 200px;
|
min-width: 200px;
|
||||||
padding: 0px 20px 0px 0px;
|
padding: 0px 20px 0px 0px;
|
||||||
border-right: 1px solid lightgray;
|
border-right: 1px solid lightgray;
|
||||||
|
|||||||
@@ -35,10 +35,6 @@ html {
|
|||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
/*to keep a blank space between the content and the top of the page*/
|
|
||||||
body {
|
|
||||||
margin-top: 100px;
|
|
||||||
}
|
|
||||||
main {
|
main {
|
||||||
min-height: calc(100vh - 70px);
|
min-height: calc(100vh - 70px);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ h1 {
|
|||||||
h2 {
|
h2 {
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
}
|
}
|
||||||
.mini_text {
|
small {
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
}
|
}
|
||||||
/*specials settings*/
|
/*specials settings*/
|
||||||
@@ -82,4 +82,16 @@ p br, h1 br, h2 br {
|
|||||||
h1 {
|
h1 {
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
<b> - Bold text
|
||||||
|
<strong> - Important text
|
||||||
|
<i> - Italic text
|
||||||
|
<em> - Emphasized text
|
||||||
|
<mark> - Marked text
|
||||||
|
<small> - Smaller text
|
||||||
|
<del> - Deleted text
|
||||||
|
<ins> - Inserted text
|
||||||
|
<sub> - Subscript text
|
||||||
|
<sup> - Superscript tex
|
||||||
|
<code> - Computer code
|
||||||
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user