fix toc and various sizes
This commit is contained in:
parent
1c18aaa7a3
commit
a0c22f7d9c
|
@ -10,6 +10,7 @@
|
|||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
height:100vh;
|
||||
min-width: 25%;
|
||||
font-size: 1rem;
|
||||
background-color: var(--accent-bg);
|
||||
border-right: 1px solid var(--border);
|
||||
|
@ -51,18 +52,17 @@
|
|||
}
|
||||
|
||||
/* toc */
|
||||
#dokuwiki__sidebar_toc {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--standard-border-radius);
|
||||
padding: 1em;
|
||||
}
|
||||
.dokuwiki .toggle strong {
|
||||
float: right;
|
||||
margin: 0 .2em;
|
||||
}
|
||||
[dir=rtl] .dokuwiki .toggle strong { float: left; }
|
||||
.toc { font-size: .95em; }
|
||||
ul.toc { padding-left:.25em; }
|
||||
.dw__toc {
|
||||
font-size: .95em;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--standard-border-radius);
|
||||
padding: .5em 1em;
|
||||
}
|
||||
.dw__toc > h3 {
|
||||
font-size: 1rem;
|
||||
margin-top: 1rem;
|
||||
|
@ -133,7 +133,8 @@ button.toolbutton {
|
|||
/* admin and multimedia width */
|
||||
.mode_media > main,
|
||||
.mode_admin > main {
|
||||
max-width:100%;
|
||||
max-width:95%;
|
||||
padding:1.5rem;
|
||||
}
|
||||
|
||||
table { width: 100%; }
|
||||
|
|
|
@ -53,6 +53,7 @@ hr { page-break-after: always; }
|
|||
header,
|
||||
footer,
|
||||
aside,
|
||||
.dw__toc,
|
||||
#dokuwiki__sidebar,
|
||||
#dokuwiki__breadcrumbs {
|
||||
display:none;
|
||||
|
|
12
main.php
12
main.php
|
@ -17,6 +17,13 @@ $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
|
|||
<?php tpl_includeFile('meta.html') ?>
|
||||
</head>
|
||||
|
||||
<?php
|
||||
/* render the content into buffer for later use, necessary for toc */
|
||||
ob_start();
|
||||
tpl_content(false);
|
||||
$buffer = ob_get_clean();
|
||||
?>
|
||||
|
||||
<body id="dokuwiki__top" class="<?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
|
||||
<header>
|
||||
<?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
|
||||
|
@ -116,10 +123,7 @@ $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
|
|||
<?php tpl_flush() /* flush the output buffer */ ?>
|
||||
<?php tpl_includeFile('pageheader.html') ?>
|
||||
|
||||
<aside>
|
||||
<?php tpl_toc()?>
|
||||
</aside>
|
||||
<?php tpl_content(false) /* the main content */ ?>
|
||||
<?php echo $buffer /* main content */ ?>
|
||||
|
||||
<?php tpl_flush() ?>
|
||||
<?php tpl_includeFile('pagefooter.html') ?>
|
||||
|
|
Loading…
Reference in New Issue