mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-25 05:22:59 +00:00
add padding to the sides of the printable view
This commit is contained in:
parent
eb58c7921e
commit
7b26a06d52
3 changed files with 22 additions and 12 deletions
12
core.php
12
core.php
|
@ -354,11 +354,13 @@ class page_renderer
|
||||||
</footer>
|
</footer>
|
||||||
{navigation-bar-bottom}
|
{navigation-bar-bottom}
|
||||||
{all-pages-datalist}";
|
{all-pages-datalist}";
|
||||||
public static $minimal_content_template = "{content}
|
public static $minimal_content_template = "<main class='printable'>{content}</main>
|
||||||
<hr class='footerdivider' />
|
<footer class='printable'>
|
||||||
<p><em>From {sitename}, which is managed by {admin-details-name}.</em></p>
|
<hr class='footerdivider' />
|
||||||
<p><em>Timed at {generation-date}</em>
|
<p><em>From {sitename}, which is managed by {admin-details-name}.</em></p>
|
||||||
<p><em>Powered by Pepperminty Wiki.</em></p>";
|
<p><em>Timed at {generation-date}</em>
|
||||||
|
<p><em>Powered by Pepperminty Wiki.</em></p>
|
||||||
|
</footer>";
|
||||||
|
|
||||||
// An array of functions that have been registered to process the
|
// An array of functions that have been registered to process the
|
||||||
// find / replace array before the page is rendered. Note that the function
|
// find / replace array before the page is rendered. Note that the function
|
||||||
|
|
17
index.php
17
index.php
|
@ -166,9 +166,12 @@ input[type=button], input[type=submit] { cursor: pointer; }
|
||||||
.sidebar ul:before { content: \"\"; position: absolute; top: 0; left: 0; height: 100%; border-left: 2px dashed rgba(50, 50, 50, 0.4); }
|
.sidebar ul:before { content: \"\"; position: absolute; top: 0; left: 0; height: 100%; border-left: 2px dashed rgba(50, 50, 50, 0.4); }
|
||||||
.sidebar li:before { content: \"\"; position: absolute; width: 1rem; top: 0.8rem; left: -1.2rem; border-bottom: 2px dashed rgba(50, 50, 50, 0.4); }
|
.sidebar li:before { content: \"\"; position: absolute; width: 1rem; top: 0.8rem; left: -1.2rem; border-bottom: 2px dashed rgba(50, 50, 50, 0.4); }
|
||||||
|
|
||||||
|
|
||||||
|
.printable { padding: 2rem; }
|
||||||
|
|
||||||
h1 { text-align: center; }
|
h1 { text-align: center; }
|
||||||
.sitename { margin-top: 5rem; margin-bottom: 3rem; font-size: 2.5rem; }
|
.sitename { margin-top: 5rem; margin-bottom: 3rem; font-size: 2.5rem; }
|
||||||
main { padding: 2rem; background: #faf8fb; box-shadow: 0 0.1rem 1rem 0.3rem rgba(50, 50, 50, 0.5); }
|
main:not(.printable) { padding: 2rem; background: #faf8fb; box-shadow: 0 0.1rem 1rem 0.3rem rgba(50, 50, 50, 0.5); }
|
||||||
|
|
||||||
label { display: inline-block; min-width: 7rem; }
|
label { display: inline-block; min-width: 7rem; }
|
||||||
input[type=text], input[type=password], textarea { margin: 0.5rem 0.8rem; padding: 0.5rem 0.8rem; background: #d5cbf9; border: 0; border-radius: 0.3rem; font-size: 1rem; color: #442772; }
|
input[type=text], input[type=password], textarea { margin: 0.5rem 0.8rem; padding: 0.5rem 0.8rem; background: #d5cbf9; border: 0; border-radius: 0.3rem; font-size: 1rem; color: #442772; }
|
||||||
|
@ -572,11 +575,13 @@ class page_renderer
|
||||||
</footer>
|
</footer>
|
||||||
{navigation-bar-bottom}
|
{navigation-bar-bottom}
|
||||||
{all-pages-datalist}";
|
{all-pages-datalist}";
|
||||||
public static $minimal_content_template = "{content}
|
public static $minimal_content_template = "<main class='printable'>{content}</main>
|
||||||
<hr class='footerdivider' />
|
<footer class='printable'>
|
||||||
<p><em>From {sitename}, which is managed by {admin-details-name}.</em></p>
|
<hr class='footerdivider' />
|
||||||
<p><em>Timed at {generation-date}</em>
|
<p><em>From {sitename}, which is managed by {admin-details-name}.</em></p>
|
||||||
<p><em>Powered by Pepperminty Wiki.</em></p>";
|
<p><em>Timed at {generation-date}</em>
|
||||||
|
<p><em>Powered by Pepperminty Wiki.</em></p>
|
||||||
|
</footer>";
|
||||||
|
|
||||||
// An array of functions that have been registered to process the
|
// An array of functions that have been registered to process the
|
||||||
// find / replace array before the page is rendered. Note that the function
|
// find / replace array before the page is rendered. Note that the function
|
||||||
|
|
|
@ -163,9 +163,12 @@ input[type=button], input[type=submit] { cursor: pointer; }
|
||||||
.sidebar ul:before { content: \"\"; position: absolute; top: 0; left: 0; height: 100%; border-left: 2px dashed rgba(50, 50, 50, 0.4); }
|
.sidebar ul:before { content: \"\"; position: absolute; top: 0; left: 0; height: 100%; border-left: 2px dashed rgba(50, 50, 50, 0.4); }
|
||||||
.sidebar li:before { content: \"\"; position: absolute; width: 1rem; top: 0.8rem; left: -1.2rem; border-bottom: 2px dashed rgba(50, 50, 50, 0.4); }
|
.sidebar li:before { content: \"\"; position: absolute; width: 1rem; top: 0.8rem; left: -1.2rem; border-bottom: 2px dashed rgba(50, 50, 50, 0.4); }
|
||||||
|
|
||||||
|
|
||||||
|
.printable { padding: 2rem; }
|
||||||
|
|
||||||
h1 { text-align: center; }
|
h1 { text-align: center; }
|
||||||
.sitename { margin-top: 5rem; margin-bottom: 3rem; font-size: 2.5rem; }
|
.sitename { margin-top: 5rem; margin-bottom: 3rem; font-size: 2.5rem; }
|
||||||
main { padding: 2rem; background: #faf8fb; box-shadow: 0 0.1rem 1rem 0.3rem rgba(50, 50, 50, 0.5); }
|
main:not(.printable) { padding: 2rem; background: #faf8fb; box-shadow: 0 0.1rem 1rem 0.3rem rgba(50, 50, 50, 0.5); }
|
||||||
|
|
||||||
label { display: inline-block; min-width: 7rem; }
|
label { display: inline-block; min-width: 7rem; }
|
||||||
input[type=text], input[type=password], textarea { margin: 0.5rem 0.8rem; padding: 0.5rem 0.8rem; background: #d5cbf9; border: 0; border-radius: 0.3rem; font-size: 1rem; color: #442772; }
|
input[type=text], input[type=password], textarea { margin: 0.5rem 0.8rem; padding: 0.5rem 0.8rem; background: #d5cbf9; border: 0; border-radius: 0.3rem; font-size: 1rem; color: #442772; }
|
||||||
|
|
Loading…
Reference in a new issue