Browse Source

made sidebar content styles re-usable outside of ID (added class: aside)

master
Anika Henke 11 years ago
parent
commit
e4cfe7748c
  1. 46
      css/design.css
  2. 2
      main.php

46
css/design.css

@ -169,55 +169,55 @@
#dokuwiki__aside {
padding-top: .4em;
line-height: 1.2;
}
#dokuwiki__aside > .pad {
.dokuwiki .aside {
overflow: hidden;
word-wrap: break-word;
line-height: 1.2;
}
/* make sidebar more condensed */
#dokuwiki__aside h1 {
.dokuwiki .aside h1 {
margin-bottom: .222em;
}
#dokuwiki__aside h2 {
.dokuwiki .aside h2 {
margin-bottom: .333em;
}
#dokuwiki__aside h3 {
.dokuwiki .aside h3 {
margin-bottom: .444em;
}
#dokuwiki__aside h4 {
.dokuwiki .aside h4 {
margin-bottom: .5em;
}
#dokuwiki__aside h5 {
.dokuwiki .aside h5 {
margin-bottom: .5714em;
}
#dokuwiki__aside p,
#dokuwiki__aside ul,
#dokuwiki__aside ol,
#dokuwiki__aside dl,
#dokuwiki__aside pre,
#dokuwiki__aside table,
#dokuwiki__aside fieldset,
#dokuwiki__aside hr,
#dokuwiki__aside blockquote,
#dokuwiki__aside address {
.dokuwiki .aside p,
.dokuwiki .aside ul,
.dokuwiki .aside ol,
.dokuwiki .aside dl,
.dokuwiki .aside pre,
.dokuwiki .aside table,
.dokuwiki .aside fieldset,
.dokuwiki .aside hr,
.dokuwiki .aside blockquote,
.dokuwiki .aside address {
margin-bottom: .7em;
}
#dokuwiki__aside ul,
#dokuwiki__aside ol {
.dokuwiki .aside ul,
.dokuwiki .aside ol {
padding-left: .5em;
}
[dir=rtl] #dokuwiki__aside ul,
[dir=rtl] #dokuwiki__aside ol {
[dir=rtl] .dokuwiki .aside ul,
[dir=rtl] .dokuwiki .aside ol {
padding-right: .5em;
}
#dokuwiki__aside li ul,
#dokuwiki__aside li ol {
.dokuwiki .aside li ul,
.dokuwiki .aside li ol {
margin-bottom: 0;
padding: 0;
}

2
main.php

@ -117,7 +117,7 @@ $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
<!-- ********** ASIDE ********** -->
<?php if ($showSidebar): ?>
<div id="dokuwiki__aside"><div class="pad include">
<div id="dokuwiki__aside"><div class="pad aside include group">
<?php tpl_includeFile('sidebarheader.html') ?>
<?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
<?php tpl_includeFile('sidebarfooter.html') ?>

Loading…
Cancel
Save