ajout de quelques regles generales de css, encore messy

This commit is contained in:
hugogogo
2021-02-26 11:39:18 +01:00
parent fbfde7daee
commit aa6a3320f5
4 changed files with 72 additions and 30 deletions

39
styles/global.css Normal file
View File

@@ -0,0 +1,39 @@
/*/////////////////////////////////////////////*/
/*GLOBAL VARIABLE*/
:root {
}
/*elements are flex, vertical, and to the left, by default*/
body *:not(script) {
display: flex;
flex-direction: column;
margin: 20px 0px;
}
/*default*/
.vertical {
display: flex;
flex-direction: column;
}
.vertical > * {
margin: 20px 0px;
}
.left > * {
margin-left: 0px;
}
/*special*/
.horizontal {
flex-direction: row;
}
.horizontal > * {
margin: 0px 20px;
}
.right {
margin-right: 0px;
margin-left: auto;
text-align: right;
}
.center {
margin: auto;
text-align: center;
}