diff options
author | Thomas Lange <code@nerdmind.de> | 2017-09-02 15:37:19 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-09-02 15:37:19 +0200 |
commit | 4addfb603e88642674003469c147eb8d5debbd96 (patch) | |
tree | abae2ac6055699228dac09b7555a8cd91fb53aa1 /template/standard | |
parent | c503f83d169fe15e10e2d97fd4ece9cdc884e436 (diff) | |
download | blog-4addfb603e88642674003469c147eb8d5debbd96.tar.gz blog-4addfb603e88642674003469c147eb8d5debbd96.tar.xz blog-4addfb603e88642674003469c147eb8d5debbd96.zip |
Multiple <section> elements were replaced by simple <div> elements. If a container element is only used for the CSS and has no semantic meaning, then a <section> element is definitely wrong for this purpose.
Diffstat (limited to 'template/standard')
-rw-r--r-- | template/standard/html/main.php | 8 | ||||
-rw-r--r-- | template/standard/html/page/main.php | 4 | ||||
-rw-r--r-- | template/standard/html/post/main.php | 4 | ||||
-rw-r--r-- | template/standard/html/user/main.php | 4 | ||||
-rw-r--r-- | template/standard/rsrc/main.css | 6 |
5 files changed, 13 insertions, 13 deletions
diff --git a/template/standard/html/main.php b/template/standard/html/main.php index 12364e5..19eceec 100644 --- a/template/standard/html/main.php +++ b/template/standard/html/main.php @@ -52,13 +52,13 @@ $BLOGMETA_DESC = escapeHTML($BLOGMETA['DESC']); <title><?="{$HEAD_NAME} | {$BLOGMETA_NAME} {$BLOGMETA_DESC}"?></title> </head> <body> - <section id="container"> + <div id="container"> <header id="main-header"> - <section> + <div> <a href="<?=Application::getURL()?>" title="<?="{$BLOGMETA_NAME} {$BLOGMETA_DESC}"?>"> <img id="main-logo" src="<?=Application::getTemplateURL('rsrc/logo.png')?>" alt="<?=$BLOGMETA_NAME?>" /> </a> - </section> + </div> <nav id="main-navi"> <label for="toogle-nav" id="toogle-nav-label" class="fa fa-bars"></label> <input type="checkbox" id="toogle-nav" /> @@ -97,6 +97,6 @@ $BLOGMETA_DESC = escapeHTML($BLOGMETA['DESC']); <footer id="main-footer"> © <?=$BLOGMETA_NAME?> </footer> - </section> + </div> </body> </html>
\ No newline at end of file diff --git a/template/standard/html/page/main.php b/template/standard/html/page/main.php index cfe26fd..aa2a5a0 100644 --- a/template/standard/html/page/main.php +++ b/template/standard/html/page/main.php @@ -13,9 +13,9 @@ $time = "<time datetime=\"{$PAGE['ATTR']['TIME_INSERT']}\" title=\"".parseDateti <h1><i class="fa fa-file-text-o"></i><?=escapeHTML($PAGE['ATTR']['NAME'])?></h1> <p><?=$Language->text('page_main_heading_desc', [$user, $time])?></p> -<section id="content" class="page"> +<div id="content" class="page"> <?=$PAGE['BODY']['HTML']()?> -</section> +</div> <section id="site-navi"> diff --git a/template/standard/html/post/main.php b/template/standard/html/post/main.php index 709e719..e91fa4e 100644 --- a/template/standard/html/post/main.php +++ b/template/standard/html/post/main.php @@ -13,9 +13,9 @@ $time = "<time datetime=\"{$POST['ATTR']['TIME_INSERT']}\" title=\"".parseDateti <h1><i class="fa fa-newspaper-o"></i><?=escapeHTML($POST['ATTR']['NAME'])?></h1> <p><?=$Language->text('post_main_heading_desc', [$user, $time])?></p> -<section id="content" class="post"> +<div id="content" class="post"> <?=$POST['BODY']['HTML']()?> -</section> +</div> <section id="site-navi"> diff --git a/template/standard/html/user/main.php b/template/standard/html/user/main.php index 2a195a4..c72d53e 100644 --- a/template/standard/html/user/main.php +++ b/template/standard/html/user/main.php @@ -10,9 +10,9 @@ <h1><i class="fa fa-user"></i><?=escapeHTML($USER['ATTR']['FULLNAME'])?></h1> <p><em><?=$Language->text('user_main_heading_desc', [escapeHTML($USER['ATTR']['USERNAME']), $COUNT['POST'], $COUNT['PAGE']])?></em></p> -<section id="content" class="user"> +<div id="content" class="user"> <?=$USER['BODY']['HTML']()?> -</section> +</div> <section id="site-navi"> diff --git a/template/standard/rsrc/main.css b/template/standard/rsrc/main.css index ed50b9b..ea13a11 100644 --- a/template/standard/rsrc/main.css +++ b/template/standard/rsrc/main.css @@ -25,12 +25,12 @@ body{font-family:Ruda,sans-serif;font-size:0.7rem;line-height:1.2rem;} #container{max-width:45rem;margin:1rem auto;border:0.05rem solid #AAA;background:#FFF;} -main,#main-header > section{padding:1rem;box-sizing:border-box;} +main,#main-header > div{padding:1rem;box-sizing:border-box;} /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ /* Header /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -#main-header > section{overflow:hidden;} +#main-header > div{overflow:hidden;} #main-logo{height:1.75rem;display:block;} /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ @@ -152,7 +152,7 @@ thead > tr > td, th > td{text-align:center;} /* Responsive Level #2 /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ @media only screen and (max-width:37.5rem) { - main,#main-header > section{padding:1rem;} + main,#main-header > div{padding:1rem;} #main-navi{padding:0.25rem 1rem;} #main-navi a{border:0.05rem solid transparent;} #main-navi a:hover, #main-navi a:focus{border:0.05rem solid #BBB;} |