はじまりの大地
@@ -0,0 +1,197 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
(e)You or your organisation are not using this work for any website
|
||||
or derivative work that contains study information or relates in
|
||||
any way to providing information for students to study. If you or
|
||||
your organisation does meet this criterion this license does not
|
||||
apply and you must contact the licensor if you intend to continue
|
||||
using this work.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
Copyright 2018 Leon Staufer
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
@@ -0,0 +1,70 @@
|
||||
# Material Design Template for DokuWiki
|
||||
|
||||
This Material template is very easy to install and use, whilst offering a multitude of customization options.
|
||||
|
||||
You can begin by choosing between several color themes in the style.ini file. From there on, you can fully customize the sidebar, making use of the entire material icon pack.
|
||||
|
||||
Visit the template page on the [DokuWiki forums](https://www.dokuwiki.org/template:material)
|
||||
|
||||
It is based off [Material Design Lite](https://getmdl.io/) with some minor changes and adjustements.
|
||||
|
||||
|
||||
## Design
|
||||
|
||||

|
||||
|
||||
## Beautiful themes
|
||||
|
||||

|
||||
|
||||
## Elegant Editor
|
||||
|
||||

|
||||
|
||||
The material template now sports an elegant looking editor. You can further improve it by replacing the toolbar icons found in `DOKUWIKI_ROOT/lib/images/toolbar` with those found in the `copy these icons to the toolbar` folder. Alternatively, you can choose your own, for example from [the Material Icons page](https://material.io/icons/).
|
||||
|
||||
The toolbar can then looking like the following:
|
||||
|
||||

|
||||
|
||||
## Installation
|
||||
|
||||
Use the following URL to download this template:
|
||||
|
||||
* [Link to ZIP file on GitHub](https://github.com/LeonStaufer/material-dokuwiki/zipball/master)
|
||||
|
||||
Refer to [this guide](https://www.dokuwiki.org/template) on how to install and use templates in DokuWiki.
|
||||
|
||||
## Upgrading
|
||||
|
||||
Regularly visit the installed templates via the configuration manager in order to update this template to the latest version.
|
||||
|
||||
**WARNING**: updating overrides all changed files. That means if you edited the `main.php` or `sidebar.php` you will need to backup these or any others before upgrading.
|
||||
|
||||
## Configuration
|
||||
|
||||
1. install the template
|
||||
2. navigate to the `DOKUWIKI ROOT/lib/tpl/material` folder
|
||||
3. open the `style.ini` file and scroll to the "replacements" section
|
||||
4. follow the instructions there to change the colors
|
||||
5. if you wish you can now open the `sidebar.php` file and change its contents to your liking
|
||||
6. and you're set!
|
||||
|
||||
The template also comes with several configuration options, which you can set via the Configuration Manager.
|
||||
|
||||
| Key | Description | Default |
|
||||
| --------------------- | ------------------------------------------------------------ | ------- |
|
||||
| `dokuwikiSidebar` | use the sidebar page within the wiki instead of the `sidebar.php` file | `false` |
|
||||
| `feedbackForm` | add a button that allows users to give feedback | `true` |
|
||||
| `technicalFeedbackForm` | technical information is included in the feedback email | `true` |
|
||||
| `feedbackEmail` | the recipient Email address for the feedback | `address@domain.com` |
|
||||
| `feedbackSubjectLine` | subject line of the Email | `Feedback for Website` |
|
||||
| `feedbackBody` | body of the Email | `Thank you so much for taking the time to write feedback. We really appreciate it :) \n\n [your message] \n\n\n You can ignore all the technical information below. It only helps us track down what the problem might be.` |
|
||||
| `hiddenActions` | DokuWiki actions that are hidden | `backlink,top` |
|
||||
| `protrudingDrawer` | if the drawer should stick out on the left | `true` |
|
||||
| `subtlePagename` | if the title of the page should not be the focus | `false` |
|
||||
|
||||
|
||||
## Feedback
|
||||
|
||||
If you encounter any problems or would like to see functionality added, please head over to the issue page on GitHub and submit your bug/request.
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* Default configuration settings for the material template
|
||||
*/
|
||||
|
||||
$conf["dokuwikiSidebar"] = 0;
|
||||
|
||||
$conf["feedbackForm"] = 1;
|
||||
$conf["technicalFeedbackForm"] = 1;
|
||||
$conf["feedbackEmail"] = "address@domain.com";
|
||||
$conf["feedbackSubjectLine"] = "Feedback for Website";
|
||||
$conf["feedbackBody"] = "Thank you so much for taking the time to write feedback. We really appreciate it :) \n\n [your message] \n\n\n You can ignore all the technical information below. It only helps us track down what the problem might be.";
|
||||
|
||||
$conf["hiddenActions"] = "backlink,top";
|
||||
|
||||
$conf["protrudingDrawer"] = 1;
|
||||
|
||||
$conf["subtlePagename"] = 0;
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* Metadata for configuration options
|
||||
*/
|
||||
|
||||
$meta['dokuwikiSidebar'] = array('onoff');
|
||||
|
||||
$meta['feedbackForm'] = array('onoff');
|
||||
$meta['technicalFeedbackForm'] = array('onoff');
|
||||
$meta['feedbackEmail'] = array('email');
|
||||
$meta['feedbackSubjectLine'] = array('string');
|
||||
$meta['feedbackBody'] = array('string');
|
||||
|
||||
$meta['hiddenActions'] = array('multicheckbox','_choices' => array('edit','revs','backlink','export_pdf','top'));
|
||||
|
||||
$meta['protrudingDrawer'] = array('onoff');
|
||||
|
||||
$meta['subtlePagename'] = array('onoff');
|
||||
|
After Width: | Height: | Size: 236 B |
|
After Width: | Height: | Size: 244 B |
|
After Width: | Height: | Size: 102 B |
|
After Width: | Height: | Size: 120 B |
|
After Width: | Height: | Size: 151 B |
|
After Width: | Height: | Size: 149 B |
|
After Width: | Height: | Size: 263 B |
|
After Width: | Height: | Size: 217 B |
|
After Width: | Height: | Size: 284 B |
|
After Width: | Height: | Size: 284 B |
|
After Width: | Height: | Size: 120 B |
|
After Width: | Height: | Size: 158 B |
|
After Width: | Height: | Size: 590 B |
|
After Width: | Height: | Size: 332 B |
|
After Width: | Height: | Size: 96 B |
|
After Width: | Height: | Size: 212 B |
@@ -0,0 +1,481 @@
|
||||
//TODO: clean up less file
|
||||
|
||||
body {
|
||||
//TODO: nicer fonts some day
|
||||
}
|
||||
|
||||
.mdl-button--icon {
|
||||
.material-icons {
|
||||
text-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
.material-icons {
|
||||
//text-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
|
||||
}
|
||||
|
||||
.page-content {
|
||||
a,
|
||||
a:link,
|
||||
a:active,
|
||||
a:visited,
|
||||
a:hover {
|
||||
color: #3986dd;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
pre,
|
||||
code,
|
||||
samp,
|
||||
kbd {
|
||||
font-family: Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,sans-serif;
|
||||
font-size: 1em;
|
||||
direction: ltr;
|
||||
text-align: left;
|
||||
background-color: @ini_code_background;
|
||||
color: @ini_text;
|
||||
}
|
||||
pre {
|
||||
overflow: auto;
|
||||
word-wrap: normal;
|
||||
line-height: 1.3;
|
||||
padding: .7em 1em;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
//TODO: nice heading styles
|
||||
}
|
||||
blockquote{
|
||||
font-size: 1.2em;
|
||||
letter-spacing: 0px;
|
||||
min-width: 20%;
|
||||
margin: 1em 1em;
|
||||
color: #555555;
|
||||
font-style: normal;
|
||||
padding: 1.2em 30px 1.2em 10px;// 75px;
|
||||
border-left: 8px solid #909090 ;
|
||||
line-height:1.4;
|
||||
position: relative;
|
||||
background:#EDEDED;
|
||||
}
|
||||
|
||||
table{
|
||||
background: white;
|
||||
border-radius: 6px;
|
||||
border-collapse: collapse;
|
||||
max-width: 600px;
|
||||
padding: 12px;
|
||||
width: 100%;
|
||||
._shadow_0dp;
|
||||
}
|
||||
|
||||
th {
|
||||
color: @light_primary;
|
||||
background: rgba(0, 0, 0, 0.64);
|
||||
font-size: 1.5em;
|
||||
font-weight: 100;
|
||||
padding: 12px;
|
||||
text-align:left;
|
||||
vertical-align:middle;
|
||||
}
|
||||
|
||||
th:first-child {
|
||||
border-top-left-radius: 6px;
|
||||
}
|
||||
|
||||
th:last-child {
|
||||
border-top-right-radius: 6px;
|
||||
border-right:none;
|
||||
}
|
||||
|
||||
tr {
|
||||
color:#666B85;
|
||||
font-size: 1em;
|
||||
font-weight:normal;
|
||||
}
|
||||
|
||||
tr:first-child {
|
||||
border-top: 6px;
|
||||
}
|
||||
|
||||
tr:nth-child(odd) td {
|
||||
background: rgba(0,0,0,0.05 );
|
||||
}
|
||||
|
||||
td {
|
||||
background:#FFFFFF;
|
||||
padding: 12px 12px;
|
||||
text-align:left;
|
||||
vertical-align:middle;
|
||||
font-size:1em;
|
||||
|
||||
&.centeralign {
|
||||
text-align: center;
|
||||
}
|
||||
&.rightalign {
|
||||
text-align: right;
|
||||
}
|
||||
&.leftalign {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
/*blockquote::before{
|
||||
font-family:Arial;
|
||||
content: "\201C";
|
||||
color:#78C0A8;
|
||||
font-size:4em;
|
||||
position: absolute;
|
||||
left: 10px;
|
||||
top:-10px;
|
||||
}*/
|
||||
|
||||
blockquote::before{
|
||||
content: '';
|
||||
}
|
||||
|
||||
blockquote::after{
|
||||
content: '';
|
||||
}
|
||||
|
||||
blockquote cite{
|
||||
display:block;
|
||||
color:#333333;
|
||||
font-style: normal;
|
||||
font-weight: bold;
|
||||
margin-top:1em;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1025px) {
|
||||
.page-content {
|
||||
margin-left: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1600px) {
|
||||
.page-content {
|
||||
width: 1200px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 2000px) {
|
||||
.page-content {
|
||||
width: 1400px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
.content-search__popup {
|
||||
background: #fff;
|
||||
width: 100%;
|
||||
._shadow_1dp;
|
||||
margin-top: -10px;
|
||||
padding-top: 10px;
|
||||
strong{
|
||||
padding: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
.drawer-top {
|
||||
background: @primary;
|
||||
padding: 5px 0 20px;
|
||||
min-height: 15em;
|
||||
box-shadow: inset 0px -1px 4px 0px rgba(0,0,0,0.7);
|
||||
._shadow_1dp;
|
||||
.mdl-logo{
|
||||
padding: 16px;
|
||||
margin: 0;
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.mdl-logo {
|
||||
a {
|
||||
color: @light_primary;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
.drawer-tagline {
|
||||
color: @light_primary;
|
||||
margin: 1em;
|
||||
text-align: center;
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
.mdl-navigation {
|
||||
margin-top: 16px;
|
||||
a{
|
||||
color: @light_secondary;
|
||||
text-decoration: none;
|
||||
margin: 10px;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
line-height: 24px;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.content-title {
|
||||
font-size: 2em !important;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.content-notif {
|
||||
margin: 1em 2em;
|
||||
}
|
||||
|
||||
.content-youarehere {
|
||||
margin: 1em 2em;
|
||||
margin-right: 48px;
|
||||
background: transparent;
|
||||
color: rgba(0,0,0,0.8);
|
||||
p {
|
||||
line-height: 2em;
|
||||
padding-left: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
.content-actions {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 10px;
|
||||
margin-right: -30px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.content-actions__container {
|
||||
position: fixed;
|
||||
margin: 0px -55px;
|
||||
}
|
||||
|
||||
.content-actions__action {
|
||||
padding: .3em 0;
|
||||
svg{
|
||||
fill: #fff;
|
||||
stroke: #fff;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.content-actions__action-button {
|
||||
._shadow_hover;
|
||||
._shadow_2dp;
|
||||
}
|
||||
|
||||
.content-card {
|
||||
._shadow_1dp;
|
||||
margin: 2em;
|
||||
background: #fff;
|
||||
position: relative;
|
||||
margin-right: 48px;
|
||||
min-height: 300px;
|
||||
}
|
||||
|
||||
.content-card__title {
|
||||
._shadow_0dp;
|
||||
margin-bottom: 10px;
|
||||
h1{
|
||||
margin: 12px 0px;
|
||||
}
|
||||
}
|
||||
|
||||
.pagename-bar {
|
||||
display: block;
|
||||
padding: 1em;
|
||||
background-color: @primary;
|
||||
color: @light_primary;
|
||||
text-transform: lowercase;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.pagename-title {
|
||||
padding: 0.2em;
|
||||
}
|
||||
|
||||
.content-card__text {
|
||||
padding: 2em;
|
||||
padding-top: 0.5em;
|
||||
/*
|
||||
|
||||
TODO: nicely format lists
|
||||
|
||||
.toc, .idx {
|
||||
.level1 {
|
||||
list-style: decimal;
|
||||
margin-left: 1em;
|
||||
}
|
||||
.level2 {
|
||||
list-style: lower-roman;
|
||||
margin-left: 2em;
|
||||
}
|
||||
}
|
||||
.idx {
|
||||
li {
|
||||
list-style: decimal;
|
||||
margin-left: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//TODO: proper heading sizes
|
||||
h1 {
|
||||
font-size: 3em
|
||||
}
|
||||
h2 {
|
||||
font-size: 2em
|
||||
}
|
||||
h3 {
|
||||
font-size: 1.5em
|
||||
}
|
||||
h4 {
|
||||
font-size: 1em;
|
||||
}
|
||||
*/
|
||||
h2,h3,h4,h5,h6 {
|
||||
font-weight: 300;
|
||||
}
|
||||
.edit {
|
||||
width: 98%;
|
||||
}
|
||||
#size__ctl{
|
||||
display: none;
|
||||
}
|
||||
.editButtons {
|
||||
button {
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-radius: 2px;
|
||||
color: rgb(0, 0, 0);
|
||||
position: relative;
|
||||
height: 32px;
|
||||
margin: .5em 1em;
|
||||
min-width: 48px;
|
||||
padding: 0 12px;
|
||||
display: inline-block;
|
||||
font-family: "Roboto", "Helvetica", "Arial", sans-serif;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0;
|
||||
overflow: hidden;
|
||||
will-change: box-shadow;
|
||||
transition: box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
line-height: 36px;
|
||||
vertical-align: middle;
|
||||
background: rgba(158, 158, 158, 0.20);
|
||||
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
button::-moz-focus-inner {
|
||||
border: 0;
|
||||
}
|
||||
button:hover {
|
||||
background-color: rgba(158, 158, 158, 0.20);
|
||||
}
|
||||
button:focus:not(:active) {
|
||||
box-shadow: 0 0 8px rgba(0, 0, 0, 0.18), 0 8px 16px rgba(0, 0, 0, 0.36);
|
||||
background-color: rgba(158, 158, 158, 0.40);
|
||||
}
|
||||
button:active {
|
||||
box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
|
||||
background-color: rgba(158, 158, 158, 0.40);
|
||||
}
|
||||
#edbtn__save {
|
||||
background: @ini_accent;
|
||||
color: rgb(255,255,255)
|
||||
}
|
||||
.toolbutton {
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#config__manager{
|
||||
fieldset{
|
||||
background: #fff;
|
||||
._shadow_1dp;
|
||||
margin: 16px 0px;
|
||||
table{
|
||||
width: auto;
|
||||
}
|
||||
.value{
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#config__manager tr.default .input, #config__manager tr.default input, #config__manager tr.default textarea, #config__manager tr.default select, #config__manager .selectiondefault {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.secedit {
|
||||
button {
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-radius: 2px;
|
||||
color: rgb(0, 0, 0);
|
||||
position: relative;
|
||||
height: 32px;
|
||||
margin: 0;
|
||||
min-width: 48px;
|
||||
padding: 0 12px;
|
||||
display: inline-block;
|
||||
font-family: "Roboto", "Helvetica", "Arial", sans-serif;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0;
|
||||
overflow: hidden;
|
||||
will-change: box-shadow;
|
||||
transition: box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
line-height: 36px;
|
||||
vertical-align: middle;
|
||||
background: rgba(158, 158, 158, 0.20);
|
||||
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
button::-moz-focus-inner {
|
||||
border: 0;
|
||||
}
|
||||
button:hover {
|
||||
background-color: rgba(158, 158, 158, 0.20);
|
||||
}
|
||||
button:focus:not(:active) {
|
||||
box-shadow: 0 0 8px rgba(0, 0, 0, 0.18), 0 8px 16px rgba(0, 0, 0, 0.36);
|
||||
background-color: rgba(158, 158, 158, 0.40);
|
||||
}
|
||||
button:active {
|
||||
box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
|
||||
background-color: rgba(158, 158, 158, 0.40);
|
||||
}
|
||||
}
|
||||
|
||||
.ui-admin {
|
||||
svg{
|
||||
fill: @primary;
|
||||
}
|
||||
}
|
||||
|
||||
.mdl-mini-footer {
|
||||
min-height: max-content;
|
||||
.mdl-mini-footer__left-section {
|
||||
overflow: hidden;
|
||||
padding-left: 12px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
._shadow_0dp {
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.16), 0 2px 4px rgba(0,0,0,0.23);
|
||||
}
|
||||
|
||||
._shadow_1dp {
|
||||
box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
|
||||
}
|
||||
|
||||
._shadow_2dp {
|
||||
box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
|
||||
}
|
||||
|
||||
._shadow_3dp {
|
||||
box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
|
||||
}
|
||||
|
||||
._shadow_4dp {
|
||||
box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
|
||||
}
|
||||
|
||||
._shadow_hover {
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
|
||||
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
|
||||
&:hover {
|
||||
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
|
||||
}
|
||||
}
|
||||
|
||||
/* === IMPORTED COLORS === */
|
||||
@primary: @ini_primary;
|
||||
@primary_dark: @ini_primary_dark;
|
||||
@secondary: @ini_accent;
|
||||
|
||||
|
||||
/* === DOCUMENT COLORS === */
|
||||
@header_white: #f8f8f8;
|
||||
@background_white: #FAFAFA;
|
||||
@footer_dark: #212121;
|
||||
@footer_dark: rgb(66,66,66);
|
||||
|
||||
/* === TEXT COLORS === */
|
||||
@dark_primary: rgba(0,0,0,.87);
|
||||
@dark_secondary: rgba(0,0,0,.54);
|
||||
@dark_disabled: rgba(0,0,0,.38);
|
||||
@dark_divider: rgba(0,0,0,.12);
|
||||
|
||||
@light_primary: rgba(255,255,255,1);
|
||||
@light_secondary: rgba(255,255,255,.7);
|
||||
@light_disabled: rgba(255,255,255,.5);
|
||||
@light_divider: rgba(255,255,255,.1);
|
||||
|
||||
@dark_icon_active: rgba(0,0,0,.54);
|
||||
@dark_icon_inactive: rgba(0,0,0,.38);
|
||||
|
||||
@light_icon_active: rgba(0,0,0,1);
|
||||
@light_icon_inactive: rgba(0,0,0,.5);
|
||||
@@ -0,0 +1,31 @@
|
||||
/* === EDITOR === */
|
||||
|
||||
.editBox {
|
||||
.toolbar {
|
||||
display: inline;
|
||||
.toolbutton {
|
||||
background: white;
|
||||
box-shadow: none;
|
||||
border: none;
|
||||
padding: 8px;
|
||||
}
|
||||
}
|
||||
textarea {
|
||||
font-family: 'Inconsolata', monospace;
|
||||
border: none;
|
||||
._shadow_0dp;
|
||||
padding: 10px;
|
||||
line-height: 1.5em !important;
|
||||
}
|
||||
textarea::-webkit-scrollbar {
|
||||
background-color: transparent;
|
||||
width: 8px;
|
||||
}
|
||||
textarea::-webkit-scrollbar-thumb {
|
||||
background-color: rgba(0,0,0,0.5);
|
||||
._shadow_0dp;
|
||||
}
|
||||
textarea::-webkit-scrollbar-corner {
|
||||
background: rgba(0,0,0,0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
a {
|
||||
color: @ini_existing;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
// quick fix, thanks @rjahn
|
||||
#mediamanager__page li div.li {
|
||||
display: initial;
|
||||
padding-left: 7px;
|
||||
}
|
||||
|
||||
#mediamanager__page ul.thumbs li dt {
|
||||
padding-bottom: 18px;
|
||||
}
|
||||
|
||||
#mediamanager__page ul.thumbs li dd {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
//media manager styling fix
|
||||
.panel, .panelContent {
|
||||
height: auto !important;
|
||||
}
|
||||
|
||||
//other fixes
|
||||
.plugin_translation{
|
||||
a{
|
||||
color: rgba(0, 0, 0, 0.92) !important;
|
||||
background: transparent !important;
|
||||
}
|
||||
}
|
||||
|
||||
.picker {
|
||||
z-index: 99999;
|
||||
.pickerbutton {
|
||||
background: white;
|
||||
border: none;
|
||||
margin: 0px;
|
||||
._shadow_1dp;
|
||||
}
|
||||
.toolbutton {
|
||||
background: white;
|
||||
border: none;
|
||||
margin: 0px;
|
||||
._shadow_1dp;
|
||||
}
|
||||
}
|
||||
|
||||
// BELOW YOU WILL FIND MODIFIED COMPONENTS TAKEN FROM MDL.
|
||||
//
|
||||
// Take a look at MDL here: https://getmdl.io/
|
||||
// All MDL components used in this project are licensed under Apache License 2.0
|
||||
|
||||
.mdl-layout__container{
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.mdl-layout.mdl-js-layout{
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.mdl-layout-title {
|
||||
flex-shrink: 1;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.mdl-button.mdl-button--colored {
|
||||
color: @ini_primary;
|
||||
}
|
||||
.mdl-button--fab.mdl-button--colored {
|
||||
background: @ini_accent;
|
||||
color: rgb(255,255,255); }
|
||||
.mdl-button--fab.mdl-button--colored:hover {
|
||||
background: @ini_accent;}
|
||||
.mdl-button--fab.mdl-button--colored:focus:not(:active) {
|
||||
background: @ini_accent;}
|
||||
.mdl-button--fab.mdl-button--colored:active {
|
||||
background: @ini_accent;}
|
||||
|
||||
.mdl-mini-footer {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.mdl-navigation {
|
||||
padding-top: 0px !important;
|
||||
}
|
||||
|
||||
.mdl-navigation__link {
|
||||
color: @light_secondary !important;
|
||||
opacity: 1 !important;
|
||||
}
|
||||
|
||||
.mdl-layout__drawer {
|
||||
overflow: overlay;
|
||||
._shadow_3dp;
|
||||
background: rgb(24,31,105);
|
||||
background: @primary_dark;
|
||||
border: none;
|
||||
color: @light_secondary;
|
||||
}
|
||||
|
||||
.mdl-layout__drawer--out {
|
||||
width: 18.5em;
|
||||
}
|
||||
|
||||
.mdl-layout__drawer.is-visible {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.mdl-layout__drawer .mdl-navigation .mdl-navigation__link:hover {
|
||||
background-color: @primary; }
|
||||
.mdl-layout__drawer .mdl-navigation .mdl-navigation__link--current {
|
||||
background-color: @primary;}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
.mdl-layout__drawer .mdl-navigation .mdl-navigation__link:hover {
|
||||
background-color: @primary; }
|
||||
.mdl-layout__drawer .mdl-navigation .mdl-navigation__link--current {
|
||||
background-color: @primary;}
|
||||
}
|
||||
|
||||
.mdl-layout__drawer-button {
|
||||
color: @dark_icon_active;
|
||||
}
|
||||
|
||||
.mdl-layout__content {
|
||||
background: @background_white;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.mdl-layout__header .mdl-layout__drawer-button {
|
||||
color: @dark_icon_active;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
.mdl-layout__drawer-button {
|
||||
color: @dark_icon_active; } }
|
||||
|
||||
.mdl-layout__header {
|
||||
background-color: @header_white;
|
||||
color: @dark_primary;
|
||||
}
|
||||
|
||||
.mdl-layout__header-row {
|
||||
background-color: @header_white;
|
||||
color: @dark_primary;
|
||||
}
|
||||
|
||||
.mdl-textfield--floating-label.has-placeholder .mdl-textfield__label {
|
||||
color: @ini_primary;
|
||||
}
|
||||
|
||||
.mdl-textfield__label:after {
|
||||
background-color: @ini_primary;}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
.page-content {
|
||||
a,
|
||||
a:link,
|
||||
a:active,
|
||||
a:visited,
|
||||
a:hover {
|
||||
color: @ini_link;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
/* existing wikipage */
|
||||
a.wikilink1,
|
||||
a.wikilink1:link,
|
||||
a.wikilink1:active,
|
||||
a.wikilink1:visited,
|
||||
a.wikilink1:hover {
|
||||
color: @ini_existing;
|
||||
background-color: inherit;
|
||||
}
|
||||
/* not existing wikipage */
|
||||
a.wikilink2,
|
||||
a.wikilink2:link,
|
||||
a.wikilink2:active,
|
||||
a.wikilink2:visited,
|
||||
a.wikilink2:hover {
|
||||
color: @ini_missing;
|
||||
background-color: inherit;
|
||||
}
|
||||
a.wikilink2:link,
|
||||
a.wikilink2:visited,
|
||||
a.wikilink2:hover,
|
||||
a.wikilink2:active,
|
||||
a.wikilink2:focus {
|
||||
border-bottom-width: 0;
|
||||
}
|
||||
|
||||
/* any link to current page */
|
||||
span.curid a {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
a.urlextern,
|
||||
a.windows,
|
||||
a.mail,
|
||||
a.mediafile,
|
||||
a.interwiki {
|
||||
background-repeat: no-repeat;
|
||||
background-position: 0 center;
|
||||
padding: 0 0 0 18px;
|
||||
}
|
||||
/* external link */
|
||||
a.urlextern {
|
||||
background-image: url(../../images/external-link.png);
|
||||
}
|
||||
/* windows share */
|
||||
a.windows {
|
||||
background-image: url(../../images/unc.png);
|
||||
}
|
||||
/* email link */
|
||||
a.mail {
|
||||
background-image: url(../../images/email.png);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
@media (max-width: 600px) {
|
||||
.content-actions {
|
||||
margin-right: 20px !important;
|
||||
margin-top: -10px !important;
|
||||
//TODO: make this nicer
|
||||
}
|
||||
.content-actions__container {
|
||||
position: relative !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
.content-youarehere {
|
||||
margin: .8em 42px .4em 0.8em;
|
||||
}
|
||||
.content-card {
|
||||
//margin: .8em 42px 2em 0.8em;
|
||||
min-height: 300px;
|
||||
margin: 0 !important;
|
||||
width: 100%;
|
||||
}
|
||||
.content-search{
|
||||
width: 5em !important;
|
||||
}
|
||||
.content-search:focus-within{
|
||||
//FIXME: focus-within is not supported by IE and Edge, need to find an alternative
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
background: #f8f8f8;
|
||||
._shadow_1dp;
|
||||
width: calc(~"100% - 4em") !important;
|
||||
z-index: 100;
|
||||
height: 56px;
|
||||
padding: 0px 2em;
|
||||
.mdl-textfield{
|
||||
margin-top: -10px;
|
||||
width: 100%;
|
||||
flex-grow: 1;
|
||||
}
|
||||
}
|
||||
.content-search__popup {
|
||||
width: 100%;
|
||||
left: 0px;
|
||||
position: absolute;
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 97 KiB |
|
After Width: | Height: | Size: 513 KiB |
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* Labels for the configuration options
|
||||
*/
|
||||
|
||||
$lang["dokuwikiSidebar"] = "Use the sidebar page within the wiki instead of the sidebar.php file";
|
||||
|
||||
$lang["feedbackForm"] = "Add a button that allows users to give feedback";
|
||||
$lang["technicalFeedbackForm"] = "Technical information is included in the feedback email";
|
||||
$lang["feedbackEmail"] = "The recipient Email address for the feedback email";
|
||||
$lang["feedbackSubjectLine"] = "Subject line of the feedback email";
|
||||
$lang["feedbackBody"] = "Body of the feedback email";
|
||||
|
||||
$lang["hiddenActions"] = "DokuWiki actions that are hidden";
|
||||
|
||||
$lang["protrudingDrawer"] = "If the drawer should stick out on the left";
|
||||
|
||||
$lang["subtlePagename"] = "If the title of the page should not be the focus";
|
||||
@@ -0,0 +1,235 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"
|
||||
xml:lang="<?php echo $conf['lang'] ?>"
|
||||
lang="<?php echo $conf['lang'] ?>"
|
||||
dir="<?php echo $lang['direction'] ?>">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<link rel="manifest" href="/manifest.json">
|
||||
<title>
|
||||
<?php echo ucfirst(tpl_pagetitle(null, true)) ?> |
|
||||
<?php echo hsc($conf['title']) ?>
|
||||
</title>
|
||||
|
||||
|
||||
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.indigo-pink.min.css">
|
||||
<link href="https://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet">
|
||||
|
||||
<?php tpl_metaheaders() ?>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
|
||||
|
||||
<!-- Search -->
|
||||
<meta name="robots" content="noimageindex"/>
|
||||
<meta name="googlebot" content="noimageindex"/>
|
||||
|
||||
<!-- Styling -->
|
||||
<meta name="theme-color" content="<?php echo parse_ini_file("style.ini")["__primary__"] ?>">
|
||||
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="#<?php echo parse_ini_file("style.ini")["__primary__"] ?>">
|
||||
<?php echo tpl_favicon(array('favicon')) ?>
|
||||
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
|
||||
<script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="mdl-layout mdl-js-layout <?php if($conf["sidebar"] != "") echo "mdl-layout--fixed-drawer" ?>
|
||||
<?php echo tpl_classes(); ?> mdl-layout--fixed-header">
|
||||
<header class="mdl-layout__header">
|
||||
<div class="mdl-layout__header-row">
|
||||
<span class="mdl-layout-title content-title"><?php echo hsc($conf['title']) ?></span>
|
||||
<div class="mdl-layout-spacer"></div>
|
||||
<form action="<?php echo DOKU_BASE . "doku.php"; ?>" accept-charset="utf-8" class="search" id="dw__search"
|
||||
role="search">
|
||||
<input type="hidden" name="do" value="search">
|
||||
<div class="content-search">
|
||||
<div class="mdl-textfield mdl-js-textfield">
|
||||
<input class="mdl-textfield__input edit" id="qsearch__in" accesskey="f" name="id"
|
||||
title="[F]" autocomplete="off">
|
||||
<label class="mdl-textfield__label" for="qsearch__in">Search</label>
|
||||
</div>
|
||||
</div>
|
||||
<div id="qsearch__out" class="ajax_qsearch JSpopup content-search__popup" style="display: none;"></div>
|
||||
</form>
|
||||
<?php
|
||||
foreach ((new \dokuwiki\Menu\UserMenu())->getItems() as $action){
|
||||
switch ($action->getType()){
|
||||
case "register":{
|
||||
tpl_action('register', true, false, false, '', '', "
|
||||
<button class=\"mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect mdl-button--colored\">
|
||||
<i class=\"material-icons\">person_add</i>
|
||||
</button>");
|
||||
break;
|
||||
}
|
||||
case "login":{
|
||||
tpl_action('login', true, false, false, '', '', "
|
||||
<button class=\"mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect mdl-button--colored\">
|
||||
<i class=\"material-icons\">perm_identity</i>
|
||||
</button>");
|
||||
break;
|
||||
}
|
||||
case "profile":{
|
||||
tpl_action('profile', true, false, false, '', '', "
|
||||
<button class=\"mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect mdl-button--colored\">
|
||||
<i class=\"material-icons\">perm_identity</i>
|
||||
</button>");
|
||||
break;
|
||||
}
|
||||
case "admin": {
|
||||
tpl_action('admin', true, false, false, '', '', "
|
||||
<button class=\"mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect mdl-button--colored\">
|
||||
<i class=\"material-icons\">settings</i>
|
||||
</button>");
|
||||
break;
|
||||
}
|
||||
case "logout": {
|
||||
tpl_action('login', true, false, false, '', '', "
|
||||
<button class=\"mdl-button mdl-js-button mdl-button--icon mdl-js-ripple-effect mdl-button--colored\">
|
||||
<i class=\"material-icons\">exit_to_app</i>
|
||||
</button>");
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
echo $action->asHtmlLink();
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</header>
|
||||
<div class="mdl-layout__drawer <?php if (tpl_getConf("protrudingDrawer") == 1) echo "mdl-layout__drawer--out"; ?>">
|
||||
<section class="drawer-top">
|
||||
<span class="mdl-logo"><?php tpl_link(wl(), '<img src="' . tpl_getMediaFile(array(':wiki:logo.svg', ':logo.svg', 'images/logo.svg')) . '" alt="' . $conf['title'] . '" />', 'accesskey="h" title="[H]"'); ?></span>
|
||||
<br>
|
||||
<?php if ($conf['tagline']): ?>
|
||||
<p class="drawer-tagline">
|
||||
<?php echo $conf['tagline'] ?>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
</section>
|
||||
<nav class="mdl-navigation mdl-layout-spacer">
|
||||
<?php
|
||||
if($conf["sidebar"] != "") include("sidebar.php");?>
|
||||
<div class="mdl-layout-spacer" style="max-height: 20px"></div>
|
||||
<a class="mdl-navigation__link" href="<?php echo DOKU_BASE . "doku.php?do=media" ?>">
|
||||
<i class="material-icons" role="presentation">perm_media</i>
|
||||
Media Manager</a>
|
||||
<?php if($feedbackForm): ?>
|
||||
<a id="feedback" class="mdl-navigation__link" href="<?php echo $feedbackLink ?>" rel="external" target="_blank">
|
||||
<i class="material-icons" role="presentation">feedback</i>
|
||||
Feedback</a>
|
||||
<script>
|
||||
var check = false;
|
||||
(function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))) check = true;})(navigator.userAgent||navigator.vendor||window.opera);
|
||||
if(check) document.querySelector("#feedback").target = "_top";
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
</nav>
|
||||
</div>
|
||||
<main class="mdl-layout__content">
|
||||
<div id="dokuwiki__top" class="page-content">
|
||||
<div class="content-notif">
|
||||
<?php html_msgarea();
|
||||
$translation = plugin_load('helper','translation');
|
||||
if ($translation) echo $translation->showTranslations();
|
||||
?>
|
||||
</div>
|
||||
<div class="content-youarehere">
|
||||
<?php if ($conf['breadcrumbs']): ?>
|
||||
<p><?php tpl_breadcrumbs() ?></p>
|
||||
<?php endif ?>
|
||||
<?php if ($conf['youarehere']): ?>
|
||||
<p><?php tpl_youarehere() ?></p>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<article class="content-card">
|
||||
<div class="content-actions" <?php if (!($ACT == "search" || $ACT == "edit" || $ACT == "show" || $ACT == "revisions") || $INFO['writable'] == false) echo "hidden=\"hidden\""?>>
|
||||
<div class="content-actions__container">
|
||||
<?php
|
||||
$hiddenActions = tpl_getConf('hiddenActions');
|
||||
$hiddenActions = explode(",",$hiddenActions);
|
||||
|
||||
foreach ((new \dokuwiki\Menu\PageMenu())->getItems() as $action){
|
||||
if (in_array($action->getType(),$hiddenActions)) continue;
|
||||
echo "<div class='content-actions__action'>";
|
||||
switch ($action->getType()){
|
||||
case "create": {
|
||||
tpl_action('edit', true, false, false, '', '', "
|
||||
<button class=\"mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-button--colored content-actions__action-button\">
|
||||
<i class=\"material-icons\" id=\"tpl_editBtn\">add</i>
|
||||
</button>") ;
|
||||
break;
|
||||
}
|
||||
case "edit": {
|
||||
tpl_action('edit', true, false, false, '', '', "
|
||||
<button class=\"mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-button--colored content-actions__action-button\">
|
||||
<i class=\"material-icons\" id=\"tpl_editBtn\">edit</i>
|
||||
</button>") ;
|
||||
break;
|
||||
}
|
||||
case "revs": {
|
||||
tpl_action('revisions', true, false, false, '', '', "
|
||||
<button class=\"mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-button--colored content-actions__action-button\">
|
||||
<i class=\"material-icons\">history</i>
|
||||
</button>");
|
||||
break;
|
||||
}
|
||||
case "export_pdf": {
|
||||
$attr = buildAttributes($action->getLinkAttributes());
|
||||
echo "<a $attr>
|
||||
<button class=\"mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-button--colored content-actions__action-button\">
|
||||
<i class=\"material-icons\">picture_as_pdf</i>
|
||||
</button></a>";
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
$attr = buildAttributes($action->getLinkAttributes());
|
||||
echo "<a $attr>
|
||||
<button class=\"mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-button--colored content-actions__action-button\">"
|
||||
.inlineSVG($action->getSvg())."
|
||||
</button></a>";
|
||||
break;
|
||||
}
|
||||
}
|
||||
echo "</div>";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($ACT == "show"): ?>
|
||||
<div class="content-card__title">
|
||||
<?php if (tpl_getConf("subtlePagename")): ?>
|
||||
<span class="pagename-bar"><?php echo ucfirst(tpl_pagetitle(null, true)); ?></span>
|
||||
<?php else: ?>
|
||||
<h1 class="pagename-title"><?php echo ucfirst(tpl_pagetitle(null, true)); ?></h1>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<?php endif?>
|
||||
<div class="content-card__text">
|
||||
<?php
|
||||
/* Do you see the heading twice because you have 'useheading' enabled?
|
||||
You can use one of these two plugins to elegantly hide the redundant second title
|
||||
-https://www.dokuwiki.org/plugin:pagetitle
|
||||
-https://www.dokuwiki.org/plugin:hiddenheader
|
||||
*/
|
||||
tpl_content(); ?>
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
<div class="mdl-layout-spacer"></div>
|
||||
<footer class="mdl-mini-footer">
|
||||
<div class="mdl-mini-footer__left-section">
|
||||
<div class="mdl-logo"><?php echo hsc($conf['title']) ?> | <?php tpl_action('index', true) ?></div>
|
||||
<ul class="mdl-mini-footer__link-list">
|
||||
<li><?php tpl_pageinfo(); ?></li>
|
||||
<li><a href="#"><?php tpl_license() ?></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</footer>
|
||||
</main>
|
||||
</div>
|
||||
<?php tpl_indexerWebBug(); ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,2 @@
|
||||
downloadurl=https://github.com/LeonStaufer/material-dokuwiki/zipball/master
|
||||
installed=Mon, 08 Jul 2024 01:08:02 +0900
|
||||
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
/*
|
||||
*
|
||||
* Edit this file to create your own sidebar.
|
||||
* This allows you to fully customize it,
|
||||
* for example you can choose any of icon available at https://material.io/icons/
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Choose if you want to render the sidebar DokuWiki page
|
||||
*/
|
||||
$sidebarPage = tpl_getConf('dokuwikiSidebar') == 1 ? true : false;
|
||||
|
||||
|
||||
/*
|
||||
* Choose if you want to have a feedback form and if it should include technical information.
|
||||
*/
|
||||
$feedbackForm = tpl_getConf('feedbackForm') == 1 ? true : false;
|
||||
$technical = tpl_getConf('technicalFeedbackForm') == 1 ? true : false;
|
||||
|
||||
|
||||
/*
|
||||
* You can customize the feedback form below.
|
||||
*/
|
||||
|
||||
$email = tpl_getConf('feedbackEmail');
|
||||
$subjectLine = tpl_getConf('feedbackSubjectLine');
|
||||
$body = tpl_getConf('feedbackBody');
|
||||
|
||||
$feedbackLink = "mailto:".$email."?subject=".rawurlencode($subjectLine)."&body=".rawurlencode($body);
|
||||
$technicalDump = "REDIRECT_STATUS: " . $_SERVER["REDIRECT_STATUS"] . "\n".
|
||||
"HTTP_HOST: " . $_SERVER["HTTP_HOST"] . "\n".
|
||||
"HTTP_X_REAL_IP: " . $_SERVER["HTTP_X_REAL_IP"] . "\n".
|
||||
"HTTP_USER_AGENT: " . $_SERVER["HTTP_USER_AGENT"] . "\n".
|
||||
"HTTP_ACCEPT: " . $_SERVER["HTTP_ACCEPT"] . "\n".
|
||||
"HTTP_ACCEPT_ENCODING: " . $_SERVER["HTTP_ACCEPT_ENCODING"] . "\n".
|
||||
"HTTP_ACCEPT_LANGUAGE: " . $_SERVER["HTTP_ACCEPT_LANGUAGE"] . "\n".
|
||||
"HTTP_X_REAL_IP: " . $_SERVER["HTTP_X_REAL_IP"];
|
||||
if($technical) $feedbackLink .= rawurlencode("\n\n====PLEASE DO NOT DELETE=====\nPage:".$INFO['id']."\nPerm:".$INFO['perm']."\nUser:".$INFO['client']."\nMobile:".$INFO['ismobile']."\nAction:".$ACT."\n====MORE TECH INFORMATION=====\n".$technicalDump);
|
||||
|
||||
if($sidebarPage) {
|
||||
tpl_include_page("sidebar");
|
||||
}else {
|
||||
/*
|
||||
*
|
||||
* You can edit the HTML below to style your own sidebar
|
||||
*
|
||||
*/
|
||||
echo '
|
||||
<a class="mdl-navigation__link" href="'. DOKU_BASE . 'doku.php?id=wiki:dokuwiki">
|
||||
<i class="material-icons" role="presentation">done_all</i>
|
||||
First link</a>
|
||||
<a class="mdl-navigation__link" href="'. DOKU_BASE . 'doku.php?id=playground:playground">
|
||||
<i class="material-icons" role="presentation">done</i>
|
||||
Second link</a>
|
||||
<div class="mdl-layout-spacer"></div>
|
||||
<a class="mdl-navigation__link" href="'. DOKU_BASE . 'about">
|
||||
<i class="material-icons" role="presentation">info_outline</i>
|
||||
About</a>
|
||||
<a class="mdl-navigation__link" href="'. DOKU_BASE . 'help/">
|
||||
<i class="material-icons" role="presentation">help_outline</i>
|
||||
Help</a>
|
||||
';
|
||||
}
|
||||
|
||||
//TODO: do not overwrite the user's sidebar with every update
|
||||
@@ -0,0 +1,111 @@
|
||||
[stylesheets]
|
||||
|
||||
css/comp.less = all
|
||||
css/links.less = all
|
||||
css/basic.less = all
|
||||
css/fixes.less = all
|
||||
css/editor.less = all
|
||||
css/mobile.less = screen
|
||||
|
||||
[replacements]
|
||||
|
||||
|
||||
;-----------------------------------------------------------------------------------------------------------------
|
||||
;
|
||||
; Step one in making your wiki look great, choose the right colors:
|
||||
; It is recommended that you change the 3 values below to your liking, or choose from one of the preset themes
|
||||
;
|
||||
; 'primary' defines the base color of your website, this will be the color of the drawer on the left.
|
||||
; 'primary_dark' defines a darker shade of your primary color
|
||||
; 'accent' defines a bright color that contrasts your primary color, and is as a color for important actions
|
||||
;
|
||||
;------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
; CHOOSE FROM THE THEMES BELOW (uncomment the ';' before each color preset)
|
||||
|
||||
|
||||
|
||||
; Blue grey - Red
|
||||
__primary__ = "#455A64" ; @ini_primary
|
||||
__primary_dark__ = "#1C313A" ; @ini_primary_dark
|
||||
__accent__ = "#C62828" ; @ini_accent
|
||||
|
||||
; Blue grey - Yellow
|
||||
; __primary__ = "#455A64" ; @ini_primary
|
||||
; __primary_dark__ = "#1C313A" ; @ini_primary_dark
|
||||
; __accent__ = "#FBC02D" ; @ini_accent
|
||||
|
||||
; Light grey - Red
|
||||
; __primary__ = "#607D8B" ; @ini_primary
|
||||
; __primary_dark__ = "#34515E" ; @ini_primary_dark
|
||||
; __accent__ = "#C62828" ; @ini_accent
|
||||
|
||||
; Deep blue - Orange
|
||||
; __primary__ = "#1a237e" ; @ini_primary
|
||||
; __primary_dark__ = "#181F69" ; @ini_primary_dark
|
||||
; __accent__ = "#FB8C00" ; @ini_accent
|
||||
|
||||
; Blue - Orange
|
||||
; __primary__ = "#1976D2" ; @ini_primary
|
||||
; __primary_dark__ = "#003C8F" ; @ini_primary_dark
|
||||
; __accent__ = "#FBC02D" ; @ini_accent
|
||||
|
||||
; Blue - Pink
|
||||
; __primary__ = "#3F61b5" ; @ini_primary
|
||||
; __primary_dark__ = "#303f9f" ; @ini_primary_dark
|
||||
; __accent__ = "#ff4081" ; @ini_accent
|
||||
|
||||
; Green - Yellow
|
||||
; __primary__ = "#009688" ; @ini_primary
|
||||
; __primary_dark__ = "#00675B" ; @ini_primary_dark
|
||||
; __accent__ = "#FBC02D" ; @ini_accent
|
||||
|
||||
|
||||
|
||||
; OR CREATE YOUR OWN CUSTOME THEME BELOW
|
||||
|
||||
; Custom
|
||||
; __primary__ = "#262626" ; @ini_primary
|
||||
; __primary_dark__ = "#000000" ; @ini_primary_dark
|
||||
; __accent__ = "#fca800" ; @ini_accent
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
;--------------------------------------------------------------------------
|
||||
; guaranteed dokuwiki color placeholders that every plugin can use
|
||||
; Warning: not fully used by this theme
|
||||
|
||||
; main text and background colors
|
||||
__text__ = "#333" ; @ini_text
|
||||
__background__ = "#fff" ; @ini_background
|
||||
; alternative text and background colors
|
||||
__text_alt__ = "#999" ; @ini_text_alt
|
||||
__background_alt__ = "#eee" ; @ini_background_alt
|
||||
; neutral text and background colors
|
||||
__text_neu__ = "#666" ; @ini_text_neu
|
||||
__background_neu__ = "#ddd" ; @ini_background_neu
|
||||
; border color
|
||||
__border__ = "#ccc" ; @ini_border
|
||||
|
||||
; background for code, pre tags
|
||||
__code_background__ = "#eff0f1" ; @ini_code_background
|
||||
|
||||
; highlighted text (e.g. search snippets)
|
||||
__highlight__ = "#ff9" ; @ini_highlight
|
||||
|
||||
; Link styling
|
||||
__link__ = "#3986dd" ; @ini_link
|
||||
__existing__ = "#3986dd" ; @ini_existing
|
||||
__missing__ = "#d30" ; @ini_missing
|
||||
|
||||
; widths
|
||||
__site_width__ = "64em" ; @ini_site_width
|
||||
__sidebar_width__ = "16em" ; @ini_sidebar_width
|
||||
@@ -0,0 +1,7 @@
|
||||
base material
|
||||
author Leon Staufer
|
||||
email leon@staufer.me
|
||||
date 2020-11-04
|
||||
name Material Template
|
||||
desc A versatile material design style template.
|
||||
url https://www.dokuwiki.org/template:material
|
||||