title et infos dans main

This commit is contained in:
hugogogo
2021-03-01 10:05:05 +01:00
parent 9ebfbaf40e
commit 5fe29fcc87
3 changed files with 59 additions and 38 deletions

View File

@@ -4,13 +4,16 @@
--gap-unit: 10px;
--max-screen: 1500px;
--base-font-size: 10px;
--nav-height: 40px;
}
/*DEBUG*/
/* borders on mains elements of pages for debugging*/
body > *, body > .container_main > * {
/*
border: 1px solid red;
*/
}
/*---------------------------------------------*/
@@ -19,32 +22,28 @@ body > *, body > .container_main > * {
--------------------- ---------------------
' NAV ' ' NAV '
'---------------------' '---------------------'
' TITLE ' ' TITLE '
'---------------------' '---------------------'
' PATH > TO > PAGES ' ' PATH > TO > PAGES '
'---------------------' '---------------------'
' ------------------- ' ' S ' C ' A '
'' CONTAINER '' ' U ' O ' S '
'' --- ------- --- '' ' M ' N ' I '
''' S '' C '' A ''' ' M ' T ' D '
''' U '' O '' S ''' ' A ' E ' E '
''' M '' N '' I ''' ' R ' N ' S '
''' M '' T '' D ''' ' Y ' T ' '
''' A '' E '' E ''' '---------------------'
''' R '' N '' S ''' ' FOOTER '
''' Y '' T '' ''' '---------------------'
' ------------------- ' ' S ' INFOS ' A '
'' CONTAINER '' ' U ' ----- ' S '
'' --- ------- --- '' ' M ' TITLE ' I '
''' S '' INFOS '' A ''' ' M ' ----- ' D '
''' U '' ----- '' S ''' ' A ' M ' E '
''' M '' TITLE '' I ''' ' R ' A ' S '
''' M '' ----- '' D ''' ' Y ' I ' '
''' A '' M '' E ''' ' ' N ' '
''' R '' A '' S ''' '---------------------'
''' Y '' I '' ''' ' FOOTER '
''' '' N '' ''' '---------------------'
'''---''-------''---'''
''------------------'''
'---------------------'
''-------------------''
' FOOTER '
'---------------------'
navbar -> nav
title -> .page_title
path to pages -> .page_path
container -> .container_main
summary -> aside.page_content
main -> main
infos -> .page.infos
title -> .page_title
asides -> aside.relative_content
footer ->
*/
@@ -76,19 +75,19 @@ body {
/*NAVBAR*/
body nav {
flex-direction: row;
height: 30px;
height: var(--nav-height);
border-bottom: 1px solid lightgrey;
}
body nav *:first-child {
margin-left: var(--gap-unit);
padding-left: 0px;
}
body nav > * {
margin: auto;
margin: auto 20px;
padding: 0px 10px;
}
/*TITLE*/
body .page_title {
}
/*PATH-TO-PAGES*/
body .page_path {
body nav * {
max-height: var(--nav-height);
}
/*CONTAINER*/
@@ -103,19 +102,36 @@ body main > * {
margin: var(--gap-unit) 0px;
}
/*INFOS*/
body .page_path {
}
/*TITLE*/
body .page_title {
height: 100px;
border-bottom: 1px solid lightgrey;
}
body .page_title * {
margin: auto 0px;
}
/*ASIDES*/
body aside {
}
/* asides elements only have width if they have a child*/
body aside *:first-child {
width: 200px;
}
/* aside left is for page table of content */
body aside.page_content {
}
/* asides elements only have width if they have a child*/
body aside.page_content *:first-child {
width: 150px;
}
/* aside right is for links to relatives content*/
body aside.relative_content {
}
/* asides elements only have width if they have a child*/
body aside.relative_content *:first-child {
width: 200px;
}
/*FOOTER*/
body footer {