diff options
author | Thomas Lange <code@nerdmind.de> | 2017-09-14 23:51:36 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-09-14 23:51:36 +0200 |
commit | 3180d399f20d6e7bec41cf986cfbf8e1aafa3587 (patch) | |
tree | 24ddabcc6f140a6d006e940edcbf56b5814829f3 /template/standard/rsrc/main.css | |
parent | a2556505e5f2d528a6c93958a8c7c9beaf4e002a (diff) | |
download | blog-3180d399f20d6e7bec41cf986cfbf8e1aafa3587.tar.gz blog-3180d399f20d6e7bec41cf986cfbf8e1aafa3587.tar.xz blog-3180d399f20d6e7bec41cf986cfbf8e1aafa3587.zip |
Some markup optimizations has been made to both templates (the HTML5 <article> element is more correct for the purpose of an item list, because real lists should only be used if the order of the items would change the meaning. This is not the case, because each item is a self-contained area which has nothing to do with the other items).
Diffstat (limited to 'template/standard/rsrc/main.css')
-rw-r--r-- | template/standard/rsrc/main.css | 33 |
1 files changed, 11 insertions, 22 deletions
diff --git a/template/standard/rsrc/main.css b/template/standard/rsrc/main.css index 500ddc2..bafb39e 100644 --- a/template/standard/rsrc/main.css +++ b/template/standard/rsrc/main.css @@ -89,26 +89,15 @@ table img{border:none;border-radius:0;} a.brackets:before,a.brackets:after{color:#222;} /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -/* Item List <ul> +/* Item Element /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -.item-list{list-style:none;padding:0;} -.item-list.page{} -.item-list.post{} -.item-list.user{} - -/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -/* Item List <li> -/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -.item-list-li{background:#EEE;border:0.05rem solid #AAA;overflow:hidden;margin:0.5rem 0;} -.item-list-li > header{padding:0.25rem 1rem;border-bottom:0.05rem solid #AAA;overflow:hidden;text-transform:uppercase;} -.item-list-li > header h2{font-size:0.65rem;float:left;} -.item-list-li > header .info{float:right;font-size:0.6rem;font-weight:400;} -.item-list-li > header a{color:inherit;} -.item-list-li > blockquote{margin:0;padding:0 1rem;font-family:inherit;} -.item-list-li > blockquote img{display:block;} -.item-list-li.page{} -.item-list-li.post{} -.item-list-li.user{} +.item{background:#EEE;border:0.05rem solid #AAA;overflow:hidden;margin:0.5rem 0;} +.item > header{padding:0.25rem 1rem;border-bottom:0.05rem solid #AAA;overflow:hidden;text-transform:uppercase;} +.item > header h2{font-size:0.65rem;float:left;} +.item > header .info{float:right;font-size:0.6rem;font-weight:400;} +.item > header a{color:inherit;} +.item > blockquote{margin:0;padding:0 1rem;font-family:inherit;} +.item > blockquote img{display:block;} /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ /* Item content on main sites @@ -163,9 +152,9 @@ thead > tr > td, th > td{text-align:center;} #toogle-nav:checked + ul{display:block;} #main-navi li:last-child{float:none;} - .item-list-li > header{text-align:center;} - .item-list-li > header > h2, - .item-list-li > header > .info{float:none;display:block;} + .item > header{text-align:center;} + .item > header > h2, + .item > header > .info{float:none;display:block;} } /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ |