Initial commit of this 2d version of Khum1

This commit is contained in:
Zatalyz 2020-04-25 12:01:47 +02:00
commit 6b44c4037b
45 changed files with 5110 additions and 0 deletions

47
CHANGELOG.md Normal file
View file

@ -0,0 +1,47 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
- Wait improve plugin "childpage" and work again on its integration.
- Fix default color template.
- Test a lot of plugin.
- Inclusion of footer and header's Khaganat (work on this needed).
- Finish todo listed (on this pad)[https://pad.khaganat.net/p/khum1].
## [2.0.0] - 2020-04-09
EN : This version reaches a certain maturity but needs some fine-tuning before being put into production.
FR :Cette version atteint une certaine maturité mais a besoin de peaufinage avant d'être mise en prod.
### Added
#### EN
- Consideration of accessibility. Navigation seems acceptable with a screen reader, contrasts are good enough.
- Work on the responsive aspect. The site should be readable on all monitors.
#### FR
- Prise en compte de l'accessibilité. La navigation semble acceptable avec un lecteur d'écran, les contrastes suffisament bons.
- Travail sur l'aspect responsive. Le site devrait être lisible sur tous les moniteurs.
### Changed
#### EN
- General design reviewed, several times.
#### FR
- Design général revu, plusieurs fois.
### Removed
#### EN
- Removed tab management (vv222 create a dedicated plugin).
#### FR
- Suppression de la gestion des onglets ( vv222 a créé un plugin dédié).
## [1.0.0] - 2018-02-17 [YANKED]
### Added
#### EN
- First implementation of Khum1. It seemed functional, but it had a lot of bugs in production. It was abandoned after a few months of testing.
#### FR
- Première implémentation de Khum1. Il semblait fonctionnel, mais il avait beaucoup de bug en prod. Il a été abandonné après quelques mois de test.

675
LICENSE.md Normal file
View file

@ -0,0 +1,675 @@
### GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
<https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
### Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom
to share and change all versions of a program--to make sure it remains
free software for all its users. We, the Free Software Foundation, use
the GNU General Public License for most of our software; it applies
also to any other work released this way by its authors. You can apply
it to your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you
have certain responsibilities if you distribute copies of the
software, or if you modify it: responsibilities to respect the freedom
of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the
manufacturer can do so. This is fundamentally incompatible with the
aim of protecting users' freedom to change the software. The
systematic pattern of such abuse occurs in the area of products for
individuals to use, which is precisely where it is most unacceptable.
Therefore, we have designed this version of the GPL to prohibit the
practice for those products. If such problems arise substantially in
other domains, we stand ready to extend this provision to those
domains in future versions of the GPL, as needed to protect the
freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish
to avoid the special danger that patents applied to a free program
could make it effectively proprietary. To prevent this, the GPL
assures that patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
### TERMS AND CONDITIONS
#### 0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds
of works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of
an exact copy. The resulting work is called a "modified version" of
the earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user
through a computer network, with no transfer of a copy, is not
conveying.
An interactive user interface displays "Appropriate Legal Notices" to
the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
#### 1. Source Code.
The "source code" for a work means the preferred form of the work for
making modifications to it. "Object code" means any non-source form of
a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users can
regenerate automatically from other parts of the Corresponding Source.
The Corresponding Source for a work in source code form is that same
work.
#### 2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not convey,
without conditions so long as your license otherwise remains in force.
You may convey covered works to others for the sole purpose of having
them make modifications exclusively for you, or provide you with
facilities for running those works, provided that you comply with the
terms of this License in conveying all material for which you do not
control copyright. Those thus making or running the covered works for
you must do so exclusively on your behalf, under your direction and
control, on terms that prohibit them from making any copies of your
copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under the
conditions stated below. Sublicensing is not allowed; section 10 makes
it unnecessary.
#### 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such
circumvention is effected by exercising rights under this License with
respect to the covered work, and you disclaim any intention to limit
operation or modification of the work as a means of enforcing, against
the work's users, your or third parties' legal rights to forbid
circumvention of technological measures.
#### 4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
#### 5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these
conditions:
- a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
- b) The work must carry prominent notices stating that it is
released under this License and any conditions added under
section 7. This requirement modifies the requirement in section 4
to "keep intact all notices".
- c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
- d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
#### 6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms of
sections 4 and 5, provided that you also convey the machine-readable
Corresponding Source under the terms of this License, in one of these
ways:
- a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
- b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the Corresponding
Source from a network server at no charge.
- c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
- d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
- e) Convey the object code using peer-to-peer transmission,
provided you inform other peers where the object code and
Corresponding Source of the work are being offered to the general
public at no charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal,
family, or household purposes, or (2) anything designed or sold for
incorporation into a dwelling. In determining whether a product is a
consumer product, doubtful cases shall be resolved in favor of
coverage. For a particular product received by a particular user,
"normally used" refers to a typical or common use of that class of
product, regardless of the status of the particular user or of the way
in which the particular user actually uses, or expects or is expected
to use, the product. A product is a consumer product regardless of
whether the product has substantial commercial, industrial or
non-consumer uses, unless such uses represent the only significant
mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to
install and execute modified versions of a covered work in that User
Product from a modified version of its Corresponding Source. The
information must suffice to ensure that the continued functioning of
the modified object code is in no case prevented or interfered with
solely because modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or
updates for a work that has been modified or installed by the
recipient, or for the User Product in which it has been modified or
installed. Access to a network may be denied when the modification
itself materially and adversely affects the operation of the network
or violates the rules and protocols for communication across the
network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
#### 7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders
of that material) supplement the terms of this License with terms:
- a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
- b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
- c) Prohibiting misrepresentation of the origin of that material,
or requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
- d) Limiting the use for publicity purposes of names of licensors
or authors of the material; or
- e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
- f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions
of it) with contractual assumptions of liability to the recipient,
for any liability that these contractual assumptions directly
impose on those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions; the
above requirements apply either way.
#### 8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your license
from a particular copyright holder is reinstated (a) provisionally,
unless and until the copyright holder explicitly and finally
terminates your license, and (b) permanently, if the copyright holder
fails to notify you of the violation by some reasonable means prior to
60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
#### 9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or run
a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
#### 10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
#### 11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims owned
or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within the
scope of its coverage, prohibits the exercise of, or is conditioned on
the non-exercise of one or more of the rights that are specifically
granted under this License. You may not convey a covered work if you
are a party to an arrangement with a third party that is in the
business of distributing software, under which you make payment to the
third party based on the extent of your activity of conveying the
work, and under which the third party grants, to any of the parties
who would receive the covered work from you, a discriminatory patent
license (a) in connection with copies of the covered work conveyed by
you (or copies made from those copies), or (b) primarily for and in
connection with specific products or compilations that contain the
covered work, unless you entered into that arrangement, or that patent
license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
#### 12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under
this License and any other pertinent obligations, then as a
consequence you may not convey it at all. For example, if you agree to
terms that obligate you to collect a royalty for further conveying
from those to whom you convey the Program, the only way you could
satisfy both those terms and this License would be to refrain entirely
from conveying the Program.
#### 13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
#### 14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions
of the GNU General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in
detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies that a certain numbered version of the GNU General Public
License "or any later version" applies to it, you have the option of
following the terms and conditions either of that numbered version or
of any later version published by the Free Software Foundation. If the
Program does not specify a version number of the GNU General Public
License, you may choose any version ever published by the Free
Software Foundation.
If the Program specifies that a proxy can decide which future versions
of the GNU General Public License can be used, that proxy's public
statement of acceptance of a version permanently authorizes you to
choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
#### 15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND
PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE
DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
CORRECTION.
#### 16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR
CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT
NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR
LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM
TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER
PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
#### 17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
### How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these
terms.
To do so, attach the following notices to the program. It is safest to
attach them to the start of each source file to most effectively state
the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper
mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands \`show w' and \`show c' should show the
appropriate parts of the General Public License. Of course, your
program's commands might be different; for a GUI interface, you would
use an "about box".
You should also get your employer (if you work as a programmer) or
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. For more information on this, and how to apply and follow
the GNU GPL, see <https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your
program into proprietary programs. If your program is a subroutine
library, you may consider it more useful to permit linking proprietary
applications with the library. If this is what you want to do, use the
GNU Lesser General Public License instead of this License. But first,
please read <https://www.gnu.org/licenses/why-not-lgpl.html>.

60
README.md Normal file
View file

@ -0,0 +1,60 @@
# Khum1, Dokuwiki template for Khaganat
## Description
This template is based on default Dokuwiki template (version available on 2020-04-09).
It try to be responsive and accessible.
Design is for Khaganat, a wonderful open project. Feel free to use it if you Dokuwiki is inspired by Khaganat ; probably better to adapt it at your taste if you have an other project.
It s better with [sidebar](https://www.dokuwiki.org/faq:sidebar). Wiki without sidebar are like a dishes without salt.
## Plugin support
Khum1 is designed to integrate certain plugins in particular. They have special css or hack on the template. It work without this plugin too !
* [Children pages](https://forge.dotslashplay.it/vv221/dokuwiki-childrenpages) to have tab on top article
* [Translation](http://www.dokuwiki.org/plugin:translation).
It work well with a lot of plugin too, without hack :)
## Installation
When this template is ready:
Install it like any other template. Do "search and install" in the extension manager, find "Khum1", select and install it.
Manually :
Download the folder, rename it "khum1" if it has another name, and put it in 'dokuwki/lib/tpl/'.
And after, choose it in admin configuration.
## Support and contributing
Please consider that I'm not a real developper. I accept merge request, but probably I can't debug issue.
I am really happy if you know how make it better. Contribute as you can, I integrate it if I understand !
**Special Git tricks (because I always forgot)**
git clone ssh://git@git.khaganat.net:3543/zatalyz/khum1-doku.git
cd khum1-doku
And after
git pull ssh://git@git.khaganat.net:3543/zatalyz/khum1-doku.git
git add *
git commit -m "Blabla"
git push -u origin master
**Changelog**
Try to follow [Keep a Changelog](https://keepachangelog.com/fr/1.0.0/). Changelog ar in an other file.
## Credits
All real work has made by Anika Henke and Clarence Lee (see [Dokuwiki default template credits](https://www.dokuwiki.org/template:dokuwiki)).
Change on this template :
* Zatalyz (design, hack, css)
* help of a lot of people on Khaganat to test, find good idea, explain how code work.
* YannK (background images and advices)
## License
Dokuwiki is on GPL, so this plugin too. More easy and legal.
Share is an act of love, so feel you free.

11
conf/default.php Normal file
View file

@ -0,0 +1,11 @@
<?php
//check if we are running within the DokuWiki environment
if (!defined("DOKU_INC")){
die();
}
//user pages
$conf["khum1_userpage"] = true; //TRUE: use/show user pages
$conf["khum1_userpage_ns"] = "user:"; //namespace to use for user page storage

61
css/_admin.less Normal file
View file

@ -0,0 +1,61 @@
.dokuwiki div.ui-admin {
/* main task grouped in two columns */
ul.admin_tasks {
float: left;
width: 40%;
list-style-type: none;
font-size: 1.125em;
}
[dir=rtl] & ul.admin_tasks {
float: right;
}
/* general menu item styling */
ul {
padding: 0;
li {
margin: 0 0 1em 0;
font-weight: bold;
list-style-type: none;
white-space: nowrap;
a span {
display: inline-block;
&.icon {
width: 1.5em;
min-height: 1.5em;
margin: 0 0.5em;
vertical-align: top;
svg {
width: 1.5em;
height: 1.5em;
fill: @ini_link;
display: inline-block;
path {
fill: @ini_link;
}
}
}
&.prompt {
white-space: normal;
}
}
}
}
/* DokuWiki version */
#admin__version {
clear: left;
float: right;
color: @ini_text_neu;
background-color: inherit;
}
[dir=rtl] & #admin__version {
clear: right;
float: left;
}
}

137
css/_diff.css Normal file
View file

@ -0,0 +1,137 @@
/**
* This file provides styles for the diff view, which shows you
* differences between two versions of a page (?do=diff).
*/
.dokuwiki table.diff {
width: 100%;
border-width: 0;
}
.dokuwiki table.diff th,
.dokuwiki table.diff td {
vertical-align: top;
padding: 0;
border-width: 0;
/* no style.ini colours because deleted and added lines have a fixed background colour */
background-color: #fff;
color: #333;
}
/* table header */
.dokuwiki table.diff th {
border-bottom: 1px solid @ini_border;
font-size: 110%;
font-weight: normal;
}
.dokuwiki table.diff th a {
font-weight: bold;
}
.dokuwiki table.diff th span.user {
font-size: .9em;
}
.dokuwiki table.diff th span.sum {
font-size: .9em;
font-weight: bold;
}
.dokuwiki table.diff th.minor {
color: #999;
}
.dokuwiki table.diff_sidebyside th {
width: 50%;
}
/* table body */
.dokuwiki table.diff .diff-lineheader {
width: .7em;
text-align: right;
}
[dir=rtl] .dokuwiki table.diff .diff-lineheader {
text-align: left;
}
.dokuwiki table.diff .diff-lineheader,
.dokuwiki table.diff td {
font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace;
}
.dokuwiki table.diff td.diff-blockheader {
font-weight: bold;
}
.dokuwiki table.diff .diff-addedline {
background-color: #cfc;
color: inherit;
}
.dokuwiki table.diff .diff-deletedline {
background-color: #fdd;
color: inherit;
}
.dokuwiki table.diff td.diff-context {
background-color: #eee;
color: inherit;
}
.dokuwiki table.diff td.diff-addedline strong,
.dokuwiki table.diff td.diff-deletedline strong {
color: #f00;
background-color: inherit;
font-weight: bold;
}
/* diff options */
.dokuwiki .diffoptions form {
float: left;
}
.dokuwiki .diffoptions p {
float: right;
}
/* diff nav */
.dokuwiki table.diff_sidebyside td.diffnav {
padding-bottom: .7em;
}
.dokuwiki .diffnav a {
display: inline-block;
vertical-align: middle;
}
.dokuwiki .diffnav a span {
display: none;
}
.dokuwiki .diffnav a:hover,
.dokuwiki .diffnav a:active,
.dokuwiki .diffnav a:focus {
background-color: @ini_background_alt;
text-decoration: none;
}
.dokuwiki .diffnav a:before {
display: inline-block;
line-height: 1;
padding: .2em .4em;
border: 1px solid @ini_border;
border-radius: 2px;
color: @ini_text;
}
.dokuwiki .diffnav a.diffprevrev:before {
content: '\25C0'; /* left triangle */
}
.dokuwiki .diffnav a.diffnextrev:before,
.dokuwiki .diffnav a.difflastrev:before {
content: '\25B6'; /* right triangle */
}
.dokuwiki .diffnav a.diffbothprevrev:before {
content: '\25C0\25C0';
}
.dokuwiki .diffnav a.diffbothnextrev:before {
content: '\25B6\25B6';
}
.dokuwiki .diffnav select {
width: 60%;
min-width: 9em;
height: 1.5em; /* height is necessary for longer options in Webkit */
}
.dokuwiki .diffnav select option[selected] {
font-weight: bold;
}

140
css/_edit.css Normal file
View file

@ -0,0 +1,140 @@
/**
* This file provides styles for the edit view (?do=edit), preview
* and section edit buttons.
*/
/* edit view
********************************************************************/
.dokuwiki div.editBox {
}
/*____________ toolbar ____________*/
.dokuwiki div.toolbar {
margin-bottom: .5em;
}
#draft__status {
float: right;
color: @ini_text_alt;
background-color: inherit;
}
[dir=rtl] #draft__status {
float: left;
}
#tool__bar {
float: left;
}
[dir=rtl] #tool__bar {
float: right;
}
/* buttons inside of toolbar */
.dokuwiki div.toolbar button.toolbutton {
}
/* picker popups (outside of .dokuwiki) */
div.picker {
width: 300px;
border: 1px solid @ini_border;
background-color: @ini_background_alt;
color: inherit;
}
/* picker for headlines */
div.picker.pk_hl {
width: auto;
}
/* buttons inside of picker */
div.picker button.pickerbutton,
div.picker button.toolbutton {
padding: .1em .35em;
border-width: 0;
}
/*____________ edit textarea ____________*/
.dokuwiki textarea.edit {
width: 100%;
margin-bottom: .5em;
}
/*____________ below the textarea ____________*/
.dokuwiki div.editBar {
overflow: hidden;
margin-bottom: .5em;
}
/* size and wrap controls */
#size__ctl {
float: right;
}
[dir=rtl] #size__ctl {
float: left;
}
#size__ctl img {
cursor: pointer;
}
/* edit buttons */
.dokuwiki .editBar .editButtons {
display: inline;
margin-right: 1em;
}
[dir=rtl] .dokuwiki .editBar .editButtons {
margin-right: 0;
margin-left: 1em;
}
.dokuwiki .editBar .editButtons button {
}
/* summary input and minor changes checkbox */
.dokuwiki .editBar .summary {
display: inline;
}
.dokuwiki .editBar .summary label {
vertical-align: middle;
white-space: nowrap;
}
.dokuwiki .editBar .summary label span {
vertical-align: middle;
}
.dokuwiki .editBar .summary input {
}
/* change background colour if summary is missing */
.dokuwiki .editBar .summary input.missing {
color: @ini_text;
background-color: #ffcccc;
}
/* preview
********************************************************************/
.dokuwiki div.preview {
border: dotted @ini_border;
border-width: .2em 0;
padding: 1.4em 0;
margin-bottom: 1.4em;
}
/* section edit buttons
********************************************************************/
.dokuwiki .secedit {
float: right;
margin-top: -1.4em;
}
[dir=rtl] .dokuwiki .secedit {
float: left;
}
.dokuwiki .secedit button {
font-size: 75%;
}
/* style for section highlighting */
.dokuwiki div.section_highlight {
margin: 0 -1em; /* negative side margin = side padding + side border */
padding: 0 .5em;
border: solid @ini_background_alt;
border-width: 0 .5em;
}

107
css/_fileuploader.css Normal file
View file

@ -0,0 +1,107 @@
/**
* This file provides the styles for the file uploader
* used in the media manager (both fullscreen and popup).
*/
.qq-uploader {
position: relative;
width: 100%;
}
.qq-uploader .error {
color: #f00;
background-color: #fff;
}
/* select file button */
.qq-upload-button {
display: inline-block;
text-decoration: none;
font-size: 100%;
cursor: pointer;
margin: 1px 1px 5px;
}
.qq-upload-button-focus {
outline: 1px dotted;
}
/* drop area */
.qq-upload-drop-area {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
min-height: 70px;
z-index: 2;
background: @ini_background_neu;
color: @ini_text;
text-align: center;
}
.qq-upload-drop-area span {
display: block;
position: absolute;
top: 50%;
width: 100%;
margin-top: -8px;
font-size: 120%;
}
.qq-upload-drop-area-active {
background: @ini_background_alt;
}
/* list of files to upload */
div.qq-uploader ul {
margin: 0;
padding: 0;
list-style: none;
}
.qq-uploader li {
margin: 0 0 5px;
color: @ini_text;
}
.qq-uploader li span,
.qq-uploader li input,
.qq-uploader li a {
margin-right: 5px;
}
.qq-upload-file {
display: block;
font-weight: bold;
}
.qq-upload-spinner {
display: inline-block;
background: url("../../images/throbber.gif");
width: 15px;
height: 15px;
vertical-align: text-bottom;
}
.qq-upload-size,
.qq-upload-cancel {
font-size: 85%;
}
.qq-upload-failed-text {
display: none;
}
.qq-upload-fail .qq-upload-failed-text {
display: inline;
}
.qq-action-container * {
vertical-align: middle;
}
.qq-overwrite-check input {
margin-left: 10px;
}

31
css/_footnotes.css Normal file
View file

@ -0,0 +1,31 @@
/**
* This file provides styles for footnotes.
*/
/*____________ footnotes inside the text ____________*/
/* link to footnote inside the text */
.dokuwiki sup a.fn_top {
}
/* JSpopup */
div.insitu-footnote {
max-width: 40%;
min-width: 5em;
}
/*____________ footnotes at the bottom of the page ____________*/
.dokuwiki div.footnotes {
border-top: 1px solid @ini_border;
padding: .5em 0 0 0;
margin: 1em 0 0 0;
clear: both;
}
.dokuwiki div.footnotes div.fn {
}
.dokuwiki div.footnotes div.fn div.content {
display: inline;
}
.dokuwiki div.footnotes div.fn sup a.fn_bot {
font-weight: bold;
}

106
css/_forms.css Normal file
View file

@ -0,0 +1,106 @@
/* TODO: this file is not up to the best standards and will be fixed after an overhaul of the form code */
/**
* This file provides styles for forms in general and specifically
* for ?do=
* - login
* - resendpwd
* - register
* - profile
* - subscribe
*/
/* ---------------- forms ------------------------ */
.dokuwiki form {
border: none;
display: inline;
}
.dokuwiki label.block {
display: block;
text-align: right;
font-weight: bold;
}
[dir=rtl] .dokuwiki label.block {
text-align: left;
}
.dokuwiki label.simple {
display: block;
text-align: left;
font-weight: normal;
}
[dir=rtl] .dokuwiki label.simple {
text-align: right;
}
.dokuwiki label.block select,
.dokuwiki label.block input.edit {
width: 50%;
}
.dokuwiki label span {
vertical-align: middle;
}
.dokuwiki fieldset {
width: 400px;
text-align: center;
border: 1px solid @ini_border;
padding: 0.5em;
margin: auto;
}
.dokuwiki input.edit,
.dokuwiki select.edit {
vertical-align: middle;
}
.dokuwiki select.edit {
padding: 0.1em 0;
}
.dokuwiki button {
vertical-align: middle;
}
/**
* Styles for auth forms
*/
#dw__login label[for="remember__me"] {
margin-left: 50%;
margin-bottom: 1.4em;
}
#dw__login fieldset,
#dw__resendpwd fieldset,
#dw__register fieldset {
padding-bottom: 0.7em;
}
#dw__profiledelete {
display: block;
margin-top: 2.8em;
}
/**
* Styles for the subscription page
*/
#subscribe__form {
display: block;
width: 400px;
text-align: center;
}
#subscribe__form fieldset {
text-align: left;
margin: 0.5em 0;
}
[dir=rtl] #subscribe__form fieldset {
text-align: right;
}
#subscribe__form label {
display: block;
margin: 0 0.5em 0.5em;
}

38
css/_imgdetail.css Normal file
View file

@ -0,0 +1,38 @@
/**
* This file provides styles for the image detail page (detail.php).
*/
#dokuwiki__detail {
padding: 1em;
}
#dokuwiki__detail h1 {
}
#dokuwiki__detail img {
float: left;
margin: 0 1.5em .5em 0;
}
[dir=rtl] #dokuwiki__detail div.content img {
float: right;
margin-right: 0;
margin-left: 1.5em;
}
#dokuwiki__detail div.img_detail {
float: left;
}
[dir=rtl] #dokuwiki__detail div.content div.img_detail {
float: right
}
#dokuwiki__detail div.img_detail h2 {
}
#dokuwiki__detail div.img_detail dl {
}
#dokuwiki__detail div.img_detail dl dt {
}
#dokuwiki__detail div.img_detail dl dd {
}
#dokuwiki__detail p.back {
clear: both;
}

65
css/_links.css Normal file
View file

@ -0,0 +1,65 @@
/**
* This file provides styles for all types of links.
*/
/*____________ links to wiki pages ____________*/
/* existing wikipage */
.dokuwiki a.wikilink1 {
}
/* not existing wikipage */
.dokuwiki a.wikilink2 {
text-decoration: none;
}
.dokuwiki a.wikilink2:link,
.dokuwiki a.wikilink2:visited {
border-bottom: 1px dashed;
}
.dokuwiki a.wikilink2:hover,
.dokuwiki a.wikilink2:active,
.dokuwiki a.wikilink2:focus {
border-bottom-width: 0;
}
/*____________ other link types ____________*/
.dokuwiki a.urlextern,
.dokuwiki a.windows,
.dokuwiki a.mail,
.dokuwiki a.mediafile,
.dokuwiki a.interwiki {
background-repeat: no-repeat;
background-position: 0 center;
padding: 0 0 0 18px;
}
/* external link */
.dokuwiki a.urlextern {
background-image: url(../../images/external-link.png);
}
/* windows share */
.dokuwiki a.windows {
background-image: url(../../images/unc.png);
}
/* email link */
.dokuwiki a.mail {
background-image: url(../../images/email.png);
}
/* icons of the following are set by dokuwiki in lib/exe/css.php */
/* link to some embedded media */
.dokuwiki a.mediafile {
}
/* interwiki link */
.dokuwiki a.interwiki {
}
/* RTL corrections; if link icons don't work as expected, remove the following lines */
[dir=rtl] .dokuwiki a.urlextern,
[dir=rtl] .dokuwiki a.windows,
[dir=rtl] .dokuwiki a.mail,
[dir=rtl] .dokuwiki a.interwiki,
[dir=rtl] .dokuwiki a.mediafile {
background-position: right center;
padding: 0 18px 0 0;
}

541
css/_media_fullscreen.css Normal file
View file

@ -0,0 +1,541 @@
/**
* This file provides the styles for the fullscreen media manager
* (?do=media).
*
* What most templates would probably need to change (depending on
* their site width) are the 4 min-width's (search for @change).
*/
/*____________ structure ____________*/
#mediamanager__page h1 {
margin-bottom: .5em;
}
#mediamanager__page {
/* min-width must be summary of all 3 panels' min-widths */
min-width: 50em; /* @change */
width: 100%;
text-align: left;
}
[dir=rtl] #mediamanager__page {
text-align: right;
}
#mediamanager__page .panel {
float: left;
}
[dir=rtl] #mediamanager__page .panel {
float: right;
}
#mediamanager__page .namespaces {
width: 20%;
min-width: 10em; /* @change */
left:0 !important; /* overrules jQuery UI resizable in rtl */
}
#mediamanager__page .filelist {
width: 50%;
min-width: 25em; /* @change */
left:0 !important; /* overrules jQuery UI resizable in rtl */
}
#mediamanager__page .file {
width: 30%;
min-width: 15em; /* @change */
}
#mediamanager__page .tabs li {
white-space: nowrap;
}
#mediamanager__page .panelHeader {
background-color: @ini_background_alt;
margin: 0 10px 10px 0;
padding: 10px 10px 8px;
text-align: left;
min-height: 20px;
overflow: hidden;
}
[dir=rtl] #mediamanager__page .panelHeader {
text-align: right;
margin: 0 0 10px 10px;
}
#mediamanager__page .panelContent {
overflow-y: auto;
overflow-x: hidden;
padding: 0;
margin: 0 10px 10px 0;
position: relative;
}
[dir=rtl] #mediamanager__page .panelContent {
text-align: right;
margin: 0 0 10px 10px;
}
#mediamanager__page .file .panelHeader,
#mediamanager__page .file .panelContent {
margin-right: 0;
}
[dir=rtl] #mediamanager__page .file .panelHeader,
[dir=rtl] #mediamanager__page .file .panelContent {
margin-left: 0;
}
#mediamanager__page .ui-resizable-e {
width: 6px;
right: 2px;
background: transparent url(../../images/resizecol.png) center center no-repeat;
}
#mediamanager__page .ui-resizable-e:hover {
background-color: @ini_background_alt;
}
[dir=rtl] #mediamanager__page .ui-resizable-w {
width: 6px;
left: 2px;
background: transparent url(../../images/resizecol.png) center center no-repeat;
}
[dir=rtl] #mediamanager__page .ui-resizable-w:hover {
background-color: @ini_background_alt;
}
#mediamanager__page dd {
margin: 0;
}
#mediamanager__page .panelHeader h3 {
float: left;
font-weight: normal;
font-size: 1em;
padding: 0;
margin: 0 0 3px;
}
[dir=rtl] #mediamanager__page .panelHeader h3 {
float : right
}
/*____________ namespaces panel ____________*/
[dir=rtl] #mediamanager__page .namespaces {
text-align: right;
}
/* make it look like a tab (as in _tabs.css) */
#mediamanager__page .namespaces h2 {
font-size: 1em;
display: inline-block;
padding: .3em .8em;
margin: 0 0 0 .3em;
border-radius: .5em .5em 0 0;
font-weight: normal;
background-color: @ini_background_alt;
color: @ini_text;
border: 1px solid @ini_border;
border-bottom-color: @ini_background_alt;
line-height: 1.4em;
position: relative;
bottom: -1px;
z-index: 2;
}
[dir=rtl] #mediamanager__page .namespaces h2 {
margin: 0 .3em 0 0;
position: relative;
right: 10px;
}
#mediamanager__page .namespaces .panelHeader {
border-top: 1px solid @ini_border;
z-index: 1;
}
#mediamanager__page .namespaces ul {
margin-left: .2em;
margin-bottom: 0;
padding: 0;
list-style: none;
}
[dir=rtl] #mediamanager__page .namespaces ul {
margin-left: 0;
margin-right: .2em;
}
#mediamanager__page .namespaces ul ul {
margin-left: 1em;
}
[dir=rtl] #mediamanager__page .namespaces ul ul {
margin-left: 0;
margin-right: 1em;
}
#mediamanager__page .namespaces ul ul li {
margin: 0;
}
#mediamanager__page .namespaces ul .selected {
background-color: __highlight__;
font-weight: bold;
}
/*____________ file list panel ____________*/
/* file list header */
#mediamanager__page .panelHeader form.options {
float: right;
margin-top: -3px;
}
[dir=rtl] #mediamanager__page .panelHeader form.options {
float : left
}
#mediamanager__page .panelHeader ul {
list-style: none;
margin: 0;
padding: 0;
}
#mediamanager__page .panelHeader ul li {
color: @ini_text;
float: left;
line-height: 1;
padding-left: 3px;
}
[dir=rtl] #mediamanager__page .panelHeader ul li {
padding-right: 3px;
padding-left: 0;
float: right;
}
#mediamanager__page .panelHeader ul li.ui-controlgroup-horizontal {
padding-left: 30px;
margin: 0 0 0 5px;
}
#mediamanager__page .panelHeader ul li.listType {
background: url('../../images/icon-list.png') 3px 1px no-repeat;
}
#mediamanager__page .panelHeader ul li.sortBy {
background: url('../../images/icon-sort.png') 3px 1px no-repeat;
}
[dir=rtl] #mediamanager__page .panelHeader ul li.ui-controlgroup-horizontal {
padding-left: 0;
padding-right: 30px;
margin: 0 5px 0 0;
background-position: right 1px;
}
#mediamanager__page .panelHeader form.options .ui-controlgroup-horizontal label{
font-size: 90%;
margin-right: -0.4em;
padding: .3em .5em;
line-height: 1;
}
/* file list content */
#mediamanager__page .filelist ul {
padding: 0;
margin: 0 10px 0 0;
}
[dir=rtl] #mediamanager__page .filelist ul {
margin: 0 0 0 10px;
}
#mediamanager__page .filelist ul.rows {
margin: 0;
}
#mediamanager__page .filelist .panelContent ul li:hover {
background-color: @ini_background_alt;
}
#mediamanager__page .filelist li dt a {
vertical-align: middle;
display: table-cell;
overflow: hidden;
}
/* file list as thumbs */
#mediamanager__page .filelist .thumbs li {
width: 100px;
min-height: 130px;
display: inline-block;
/* the right margin should visually be 10px, but because of its inline-block nature the whitespace inbetween is about 4px more */
margin: 0 6px 10px 0;
background-color: @ini_background_neu;
color: @ini_text;
padding: 5px;
vertical-align: top;
text-align: center;
position: relative;
line-height: 1.2;
}
[dir=rtl] #mediamanager__page .filelist .thumbs li {
margin-right: 0;
margin-left: 6px;
}
#mediamanager__page .filelist .thumbs li dt a {
width: 100px;
height: 90px;
}
#mediamanager__page .filelist .thumbs li dt a img {
max-width: 90px;
max-height: 90px;
}
#mediamanager__page .filelist .thumbs li .name,
#mediamanager__page .filelist .thumbs li .size,
#mediamanager__page .filelist .thumbs li .filesize,
#mediamanager__page .filelist .thumbs li .date {
display: block;
overflow: hidden;
text-overflow: ellipsis;
width: 90px;
white-space: nowrap;
}
#mediamanager__page .filelist .thumbs li .name {
padding: 5px 0;
font-weight: bold;
}
#mediamanager__page .filelist .thumbs li .date {
font-style: italic;
white-space: normal;
}
/* file list as rows */
#mediamanager__page .filelist .rows li {
list-style: none;
display: block;
position: relative;
max-height: 50px;
margin: 0 0 3px 0;
background-color: @ini_background;
color: @ini_text;
overflow: hidden;
}
#mediamanager__page .filelist .rows li:nth-child(2n+1) {
background-color: @ini_background_neu;
}
#mediamanager__page .filelist .rows li dt {
float: left;
width: 10%;
height: 40px;
text-align: center;
}
[dir=rtl] #mediamanager__page .filelist .rows li dt {
float: right;
}
#mediamanager__page .filelist .rows li dt a {
width: 100px;
height: 40px;
}
#mediamanager__page .filelist .rows li dt a img {
max-width: 40px;
max-height: 40px;
}
#mediamanager__page .filelist .rows li .name,
#mediamanager__page .filelist .rows li .size,
#mediamanager__page .filelist .rows li .filesize,
#mediamanager__page .filelist .rows li .date {
overflow: hidden;
text-overflow: ellipsis;
float: left;
margin-left: 1%;
white-space: nowrap;
}
[dir=rtl] #mediamanager__page .filelist .rows li .name,
[dir=rtl] #mediamanager__page .filelist .rows li .size,
[dir=rtl] #mediamanager__page .filelist .rows li .filesize,
[dir=rtl] #mediamanager__page .filelist .rows li .date {
float: right;
margin-left: 0;
margin-right: 1%;
}
#mediamanager__page .filelist .rows li .name {
width: 30%;
font-weight: bold;
}
#mediamanager__page .filelist .rows li .size,
#mediamanager__page .filelist .rows li .filesize {
width: 15%;
}
#mediamanager__page .filelist .rows li .date {
width: 20%;
font-style: italic;
white-space: normal;
}
/* upload form */
#mediamanager__page div.upload {
padding-bottom: 0.5em;
}
/*____________ file panel ____________*/
#mediamanager__page .file ul.actions {
text-align: center;
margin: 0 0 5px;
padding: 0;
list-style: none;
}
#mediamanager__page .file ul.actions li {
display: inline;
margin: 0;
}
#mediamanager__page .file div.image {
margin-bottom: 5px;
text-align: center;
}
#mediamanager__page .file div.image img {
width: 100%;
}
#mediamanager__page .file dl {
margin-bottom: 0;
}
#mediamanager__page .file dl dt {
font-weight: bold;
display: block;
background-color: @ini_background_alt;
}
#mediamanager__page .file dl dd {
display: block;
background-color: @ini_background_neu;
}
/* file meta data edit form */
#mediamanager__page form.meta div.row {
margin-bottom: 5px;
}
#mediamanager__page form.meta label span {
display: block;
}
#mediamanager__page form.meta input {
width: 50%;
}
#mediamanager__page form.meta button {
width: auto;
}
#mediamanager__page form.meta textarea.edit {
height: 6em;
width: 95%;
min-width: 95%;
max-width: 95%;
}
/* file revisions form */
#mediamanager__page form.changes ul {
margin-left: 10px;
padding: 0;
list-style-type: none;
}
[dir=rtl] #mediamanager__page form.changes ul {
margin-left: 0;
margin-right: 10px;
}
#mediamanager__page form.changes ul li div.li div {
font-size: 90%;
color: @ini_text_neu;
padding-left: 18px;
}
[dir=rtl] #mediamanager__page form.changes ul li div.li div {
padding-left: 0;
padding-right: 18px;
}
#mediamanager__page form.changes ul li div.li input {
position: relative;
top: 1px;
}
/* file diff view */
#mediamanager__diff table {
table-layout: fixed;
border-width: 0;
}
#mediamanager__diff td,
#mediamanager__diff th {
width: 48%;
margin: 0 5px 10px 0;
padding: 0;
vertical-align: top;
text-align: left;
border-color: @ini_background;
}
[dir=rtl] #mediamanager__diff td,
[dir=rtl] #mediamanager__diff th {
margin: 0 0 10px 5px;
text-align: right;
}
#mediamanager__diff th {
font-weight: normal;
background-color: @ini_background;
line-height: 1.2;
}
#mediamanager__diff th a {
font-weight: bold;
}
#mediamanager__diff th span {
font-size: 90%;
}
#mediamanager__diff dl dd strong{
background-color: __highlight__;
color: @ini_text;
font-weight: normal;
}
/* image diff views */
#mediamanager__page .file form.diffView {
margin-bottom: 10px;
display: block;
}
#mediamanager__diff div.slider {
margin: 10px;
width: 95%;
}
#mediamanager__diff .imageDiff {
position: relative;
}
#mediamanager__diff .imageDiff .image2 {
position: absolute;
top: 0;
left: 0;
}
#mediamanager__diff .imageDiff.opacity .image2 {
opacity: 0.5;
}
#mediamanager__diff .imageDiff.portions .image2 {
border-right: 1px solid red;
overflow: hidden;
}
#mediamanager__diff .imageDiff.portions img {
float: left;
}
#mediamanager__diff .imageDiff img {
width: 100%;
max-width: none;
}

210
css/_media_popup.css Normal file
View file

@ -0,0 +1,210 @@
/**
* This file provides styles for the media manager popup
* (mediamanager.php).
*/
/*____________ structure ____________*/
html.popup {
overflow: auto;
}
#media__manager {
height: 100%;
overflow: hidden;
}
#mediamgr__sidebar {
width: 30%;
height: 100%;
overflow: auto;
position: absolute;
left: 0;
border-right: 1px solid @ini_border;
background-color: @ini_background_alt2;
}
[dir=rtl] #mediamgr__sidebar {
left: auto;
right: 0;
border-right-width: 0;
border-left: 1px solid @ini_border;
}
#mediamgr__sidebar .pad {
padding: .5em;
}
#mediamgr__content {
width: 69.7%;
height: 100%;
overflow: auto;
position: absolute;
right: 0;
background-color: @ini_background_alt2;
}
[dir=rtl] #mediamgr__content {
right: auto;
left: 0;
}
#mediamgr__content .pad {
padding: .5em;
}
#media__manager h1,
#media__manager h2 {
font-size: 1.5em;
margin-bottom: .5em;
padding-bottom: .2em;
border-bottom: 1px solid @ini_border;
}
/* left side
********************************************************************/
/*____________ options ____________*/
#media__opts {
margin-bottom: .5em;
}
#media__opts input {
margin-right: .3em;
}
[dir=rtl] #media__opts input {
margin-right: 0;
margin-left: .3em;
}
#media__opts label {
}
/*____________ tree ____________*/
#media__tree ul {
padding-left: .2em;
}
[dir=rtl] #media__tree ul {
padding-left: 0;
padding-right: .2em;
}
#media__tree ul li {
clear: left;
list-style-type: none;
list-style-image: none;
margin-left: 0;
}
[dir=rtl] #media__tree ul li {
clear: right;
margin-right: 0;
}
#media__tree ul li img {
float: left;
padding: .5em .3em 0 0;
}
[dir=rtl] #media__tree ul li img {
float: right;
padding: .5em 0 0 .3em;
}
#media__tree ul li div.li {
display: inline;
}
#media__tree ul li li {
margin-left: 1.5em;
}
[dir=rtl] #media__tree ul li li {
margin-left: 0;
margin-right: 1.5em;
}
/* right side
********************************************************************/
/*____________ upload form ____________*/
/* upload info */
#media__content div.upload {
font-size: .9em;
margin-bottom: .5em;
}
#mediamanager__uploader {
margin-bottom: 1em;
}
#mediamanager__uploader p {
margin-bottom: .5em;
}
/*____________ file list ____________*/
#media__content img.load {
margin: 1em auto;
}
#media__content .odd,
#media__content .even {
padding: .5em;
}
#media__content .odd {
background-color: @ini_background_alt;
}
#media__content .even {
}
/* highlight newly uploaded or edited file */
#media__content #scroll__here {
border: 1px dashed @ini_border;
}
/* link which inserts media file */
#media__content a.mediafile {
margin-right: 1.5em;
font-weight: bold;
cursor: pointer;
}
[dir=rtl] #media__content a.mediafile {
margin-right: 0;
margin-left: 1.5em;
}
#media__content span.info {
}
#media__content img.btn {
vertical-align: text-bottom;
}
/* info how to insert media, if JS disabled */
#media__content div.example {
color: @ini_text_neu;
margin-left: 1em;
}
#media__content div.detail {
padding: .2em 0;
}
#media__content div.detail div.thumb {
float: left;
margin: 0 .5em 0 18px;
}
[dir=rtl] #media__content div.detail div.thumb {
float: right;
margin: 0 18px 0 .5em;
}
#media__content div.detail div.thumb a {
display: block;
cursor: pointer;
}
#media__content div.detail p {
margin-bottom: 0;
}
/*____________ media search ____________*/
#dw__mediasearch {
}
#dw__mediasearch p {
}
#dw__mediasearch label {
}
#dw__mediasearch label span {
}
#dw__mediasearch input.edit {
}
#dw__mediasearch button {
}

94
css/_modal.css Normal file
View file

@ -0,0 +1,94 @@
/**
* This file provides styles for modal dialogues.
*/
.dokuwiki .ui-widget {
font-size: 100%;
}
/* link wizard (opens from the link button in the edit toolbar)
********************************************************************/
#link__wiz {
}
[dir=rtl] #link__wiz_close {
float: left;
}
#link__wiz_result {
background-color: @ini_background;
width: 293px;
height: 193px;
overflow: auto;
border: 1px solid @ini_border;
margin: 3px auto;
text-align: left;
line-height: 1;
}
[dir=rtl] #link__wiz_result {
text-align: right;
}
#link__wiz_result div {
padding: 3px 3px 3px 0;
}
#link__wiz_result div a {
display: block;
padding-left: 22px;
min-height: 16px;
background: transparent 3px center no-repeat;
}
[dir=rtl] #link__wiz_result div a {
padding: 3px 22px 3px 3px;
background-position: 257px 3px;
}
#link__wiz_result div.type_u a {
background-image: url(../../images/up.png);
}
#link__wiz_result div.type_f a {
background-image: url(../../images/page.png);
}
#link__wiz_result div.type_d a {
background-image: url(../../images/ns.png);
}
#link__wiz_result div.even {
background-color: @ini_background_neu;
}
#link__wiz_result div.selected {
background-color: @ini_background_alt;
}
#link__wiz_result span {
display: block;
color: @ini_text_neu;
margin-left: 22px;
}
/* media option wizard (opens when inserting media in the media popup)
********************************************************************/
#media__popup {
/* for backwards compatibility (not needed since Rincewind) */
display: none;
}
#media__popup_content p {
margin: 0 0 .5em;
}
#media__popup_content label {
margin-right: .5em;
cursor: default;
}
#media__popup_content button {
margin-right: 1px;
cursor: pointer;
}

75
css/_recent.css Normal file
View file

@ -0,0 +1,75 @@
/**
* This file provides styles for the recent changes (?do=recent) and
* old revisions (?do=revisions).
*/
/*____________ list of revisions / recent changes ____________*/
/* select type of revisions (media/pages) */
.dokuwiki .changeType {
margin-bottom: .5em;
}
.dokuwiki form.changes ul li {
list-style: none;
margin-left: 0;
}
[dir=rtl] .dokuwiki form.changes ul li {
margin-right: 0;
}
.dokuwiki form.changes ul li span,
.dokuwiki form.changes ul li a {
vertical-align: middle;
}
.dokuwiki form.changes ul li span.user a {
vertical-align: bottom;
}
.dokuwiki form.changes ul li.minor {
opacity: .7;
}
.dokuwiki form.changes li span.date {
}
.dokuwiki form.changes li a.diff_link {
vertical-align: baseline;
}
.dokuwiki form.changes li a.revisions_link {
vertical-align: baseline;
}
.dokuwiki form.changes li a.wikilink1,
.dokuwiki form.changes li a.wikilink2 {
}
.dokuwiki form.changes li span.sum {
font-weight: bold;
}
.dokuwiki form.changes li span.user {
}
/*____________ size differences ____________*/
.dokuwiki form.changes li .sizechange {
font-size: 80%;
border-radius: .2em;
padding: .1em .2em;
/* cannot use non-guaranteed style.ini colour placeholders, dark templates need to overwrite */
background-color: #ddd;
}
.dokuwiki form.changes li .sizechange.positive {
background-color: #cfc;;
}
.dokuwiki form.changes li .sizechange.negative {
background-color: #fdd;
}
/*____________ page navigator ____________*/
.dokuwiki div.pagenav {
text-align: center;
margin: 1.4em 0;
}
.dokuwiki div.pagenav-prev,
.dokuwiki div.pagenav-next {
display: inline;
margin: 0 .5em;
}

109
css/_search.css Normal file
View file

@ -0,0 +1,109 @@
/**
* This file provides styles for the search results page (?do=search)
* and the AJAX search popup.
*/
/* search results page
********************************************************************/
/* loading gif */
#dw__loading {
text-align: center;
margin-bottom: 1.4em;
}
/*____________ matching pagenames ____________*/
.dokuwiki div.search_quickresult {
margin-bottom: 1.4em;
}
.dokuwiki div.search_quickresult h3 {
}
.dokuwiki div.search_quickresult ul {
padding: 0;
}
.dokuwiki div.search_quickresult ul li {
float: left;
width: 12em;
margin: 0 1.5em;
}
[dir=rtl] .dokuwiki div.search_quickresult ul li {
float: right;
}
/*____________ search results ____________*/
.dokuwiki dl.search_results {
margin-bottom: 1.2em;
}
/* search heading */
.dokuwiki dl.search_results dt {
font-weight: normal;
margin-bottom: .2em;
}
/* search snippet */
.dokuwiki dl.search_results dd {
color: @ini_text_alt;
background-color: inherit;
margin: 0 0 1.2em 0;
}
/* search hit in normal text */
.dokuwiki .search_hit {
color: @ini_text;
background-color: __highlight__;
}
/* search hit in search results */
.dokuwiki .search_results strong.search_hit {
font-weight: normal;
}
/* ellipsis separating snippets */
.dokuwiki .search_results .search_sep {
color: @ini_text;
background-color: inherit;
}
/* "nothing found" at search + media */
.dokuwiki div.nothing {
margin-bottom: 1.4em;
}
/* AJAX quicksearch popup
********************************************************************/
.dokuwiki form.search div.no {
position: relative;
}
/* .JSpopup */
.dokuwiki form.search div.ajax_qsearch {
position: absolute;
top: 0;
left: -13.5em; /* -( width of #qsearch__in + padding of .ajax_qsearch + a bit more ) */
width: 12em;
padding: 0.5em;
font-size: .9em;
z-index: 20;
text-align: left;
display: none;
}
[dir=rtl] .dokuwiki form.search div.ajax_qsearch {
left: auto;
right: -13.5em;
text-align: right;
}
.dokuwiki form.search div.ajax_qsearch strong {
display: block;
margin-bottom: .3em;
}
.dokuwiki form.search div.ajax_qsearch ul {
margin: 0 !important;
padding: 0 !important;
}
.dokuwiki form.search div.ajax_qsearch ul li {
margin: 0;
padding: 0;
display: block !important;
}

133
css/article.less Normal file
View file

@ -0,0 +1,133 @@
/**
* Specific style in article zone.
**/
/*____________ Article ____________*/
.dokuwiki div.page {
clear: both;
background: @ini_background;
color: inherit;
padding: 0em 2em 2em;
overflow: hidden;
word-wrap: break-word;
}
/*____________ TOC ____________*/
#dw__toc {
border-color: @ini_border1;
border-style: solid;
border-width: thin;
padding-bottom: .5em;
margin-bottom: 1em;
font-weight: bold;
ul {
padding: 0;
margin: 0;
list-style: none;
}
ul .toc li {
list-style-type: decimal;
}
a {
text-decoration:none;
}
}
/* in case of toc list jumping one level
(e.g. if heading level 3 follows directly after heading level 1) */
#dw__toc ul li.clear {
}
.toc .level1 .li {
text-align:center;
font-size:3em;
}
.toc .level2 .li {
text-align: inherit !important;
font-size: 1em;
}
.dokuwiki h3.toggle {
padding: .2em .5em;
}
.dokuwiki .toggle strong {
float: right;
margin: 0 .2em;
}
[dir=rtl] .dokuwiki .toggle strong {
float: left;
}
/*____________ Article Title ____________*/
.kharticle h1 {
font-size: 2.2em;
margin: 0 0 0.444em;
border-bottom: 1px solid rgb(170, 170, 170);
counter-reset: sectionh2 sectionh3 sectionh4;
}
.kharticle h2:before {
content: counter(sectionh2) ". ";
}
.kharticle h2 {
font-size: 1.9em;
margin: 0 0 0.666em;
border-bottom: 1px solid rgb(170, 170, 170);
counter-increment: sectionh2;
counter-reset: sectionh3;
}
.kharticle h3:before {
content: counter(sectionh2) "." counter(sectionh3) ". " ;
}
.kharticle h3 {
font-size: 1.65em;
margin: 0 0 0.888em;
counter-increment: sectionh3;
counter-reset: sectionh4;
}
.kharticle h4:before {
content: counter(sectionh2) "." counter(sectionh3) "." counter(sectionh4) "." ;
}
.kharticle h4 {
font-size: 1.3em;
margin: 0 0 1.0em;
counter-increment: sectionh4;
counter-reset: sectionh5;
}
.kharticle h5:before {
content: counter(sectionh2) "." counter(sectionh3) "." counter(sectionh4) "." counter(sectionh5) ". " ;
}
.kharticle h5 {
font-size: 1em;
margin: 0 0 1.1428em;
counter-increment: sectionh5;
counter-reset: sectionh6;
}
.kharticle h6 {
font-size: .75em;
margin: 0 0 1.333em;
}
/*____________ Footer and DocInfo ____________*/
.article_footer {
display:flex;
justify-content: space-between;
margin:0 1em;
}
.dokuwiki .docInfo {
font-size: 0.875em;
text-align: right;
padding: .1em .5em;
border-radius: 5px;
/* contrast for accessibility */
color: @ini_color7;
}

452
css/basic.less Normal file
View file

@ -0,0 +1,452 @@
/**
* This file provides the most basic styles.
*
* If you integrate DokuWiki into another project, you might either
* want to integrate this file into the other project as well, or use
* the other project's basic CSS for DokuWiki instead of this one.
*
* @author Anika Henke <anika@selfthinker.org>
*/
/*____________ Add font ____________*/
/* Not in use for now. TODO. Probably useful for pagetool and other icons.
@font-face {
font-family: 'ForkAwesome';
src: url('./fonts/forkawesome-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}*/
/*____________ Reset some default css ____________*/
html,body {
/*overflow-x: auto;
overflow-y: scroll;*/
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
vertical-align: baseline;
/*position:absolute;*/
width:100%;
}
/*____________ Body ____________*/
body {
background-size: contain, contain, auto; /* version standardisée */
background: url("images/curve2.png") repeat-y fixed left bottom, url("images/curve.png") repeat-y fixed right bottom;
background-color: @ini_background_alt2 ;
color: @ini_text;
/*font: normal 87.5%/1.4 Arial, sans-serif;*/
font-family: BlinkMacSystemFont,-apple-system,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue","Helvetica","Arial",sans-serif;
margin: 0 auto;
}
/*____________ headers ____________*/
caption,
figcaption,
summary,
legend {
padding: 0;
margin: 0 0 .35em;
line-height: 1.2;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: Arial,sans-serif;
font-weight: bold;
padding: 0;
line-height: 1.2;
clear: left; /* ideally 'both', but problems with toc */
}
[dir=rtl] h1,
[dir=rtl] h2,
[dir=rtl] h3,
[dir=rtl] h4,
[dir=rtl] h5,
[dir=rtl] h6 {
clear: right;
}
/* bottom margin = 1 / font-size */
/*____________ basic margins and paddings ____________*/
p,
ul,
ol,
dl,
pre,
table,
hr,
blockquote,
figure,
details,
fieldset,
address {
margin: 0 0 1.4em 0; /* bottom margin = line-height */
padding: 0;
}
div,
video,
audio {
margin: 0;
padding: 0;
}
/*____________ lists ____________*/
ul,
ol {
padding: 0 0 0 1.5em;
}
[dir=rtl] ul,
[dir=rtl] ol {
padding: 0 1.5em 0 0;
}
li,
dd {
padding: 0;
margin: 0 0 0 1.5em;
}
[dir=rtl] li,
[dir=rtl] dd {
margin: 0 1.5em 0 0;
}
dt {
font-weight: bold;
margin: 0;
padding: 0;
}
li ul,
li ol,
li dl,
dl ul,
dl ol,
dl dl {
margin-bottom: 0;
padding: 0;
}
li li {
font-size: 100%;
}
ul { list-style: square outside; }
ol { list-style: decimal outside; }
ol ol { list-style-type: lower-alpha; }
ol ol ol { list-style-type: upper-roman; }
ol ol ol ol { list-style-type: upper-alpha; }
ol ol ol ol ol { list-style-type: lower-roman; }
/*____________ tables ____________*/
table {
border-collapse: collapse;
empty-cells: show;
border-spacing: 0;
border: 1px solid @ini_border;
}
caption {
caption-side: top;
text-align: left;
}
[dir=rtl] caption {
text-align: right;
}
th,
td {
padding: .3em .5em;
margin: 0;
vertical-align: top;
border: 1px solid @ini_background_neu;
}
th {
font-weight: bold;
background-color: @ini_background_alt;
text-align: left;
}
[dir=rtl] th {
text-align: right;
}
/*____________ links ____________*/
a {
color: @ini_link;
}
a:link,
a:visited {
text-decoration: underline dotted;
}
a:link:hover,
a:visited:hover,
a:link:focus,
a:visited:focus,
a:link:active,
a:visited:active {
text-decoration: underline;
}
/*____________ misc ____________*/
img {
border-width: 0;
vertical-align: middle;
color: #666;
background-color: transparent;
font-style: italic;
height: auto;
}
video {
height: auto;
}
img,
object,
embed,
iframe,
video,
audio {
max-width: 100%;
}
button img {
max-width: none;
}
hr {
border: 1px solid @ini_border3;
text-align: center;
clear: both;
}
acronym,
abbr {
cursor: help;
border-bottom: 1px dotted;
font-style: normal;
}
em acronym,
em abbr {
font-style: italic;
}
mark {
background-color: @ini_highlight;
color: inherit;
}
pre,
code,
samp,
kbd {
font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace;
/* same font stack should be used for ".dokuwiki table.diff td" in _diff.css */
font-size: 1em;
direction: ltr;
text-align: left;
background-color: @ini_background;
color: @ini_text;
box-shadow: inset 0 0 .3em @ini_border;
border-radius: 2px;
}
pre {
overflow: auto;
word-wrap: normal;
border: 1px solid @ini_border;
border-radius: 2px;
box-shadow: inset 0 0 .5em @ini_border;
padding: .7em 1em;
}
blockquote {
padding: 0 .5em;
border: solid @ini_border;
border-width: 0 0 0 .25em;
}
[dir=rtl] blockquote {
border-width: 0 .25em 0 0;
}
q:before,
q:after {
content: '';
}
sub,
sup {
font-size: .8em;
line-height: 1;
}
sub {
vertical-align: sub;
}
sup {
vertical-align: super;
}
small {
font-size: .8em;
}
/*____________ forms ____________*/
/* for all of the form styles, style.ini colours are not used on purpose (except for fieldset border) */
form {
display: inline;
margin: 0;
padding: 0;
}
fieldset {
padding: .7em 1em 0;
padding: .7rem 1rem; /* for those browsers understanding :last-child */
border: 1px solid @ini_text_alt;
}
fieldset > :last-child {
margin-bottom: 0;
}
legend {
margin: 0;
padding: 0 .1em;
}
label {
vertical-align: middle;
cursor: pointer;
}
input,
textarea,
button,
select,
optgroup,
option,
keygen,
output,
meter,
progress {
font: inherit;
font-weight: normal;
color: #333;
background-color: #fff;
line-height: normal;
margin: 0;
vertical-align: middle;
box-sizing: border-box;
}
select {
max-width: 100%;
}
optgroup {
font-style: italic;
font-weight: bold;
}
option {
font-style: normal;
font-weight: normal;
}
input,
textarea,
select,
keygen {
border: 1px solid #ccc;
box-shadow: inset 0 0 1px #eee;
border-radius: 2px;
}
input:active,
input:focus,
textarea:active,
textarea:focus,
select:active,
select:focus,
keygen:active,
keygen:focus {
border-color: #999;
}
input[type=radio],
input[type=checkbox],
input[type=image] {
padding: 0;
border-style: none;
box-shadow: none;
}
/* all types of buttons */
input[type=submit],
input[type=button],
input[type=reset],
input.button,
a.button,
button,
.qq-upload-button {
/* color: #333;
background-color: #eee;
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAxIDEiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPgo8bGluZWFyR3JhZGllbnQgaWQ9Imc4MjQiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjAlIiB5Mj0iMTAwJSI+CjxzdG9wIHN0b3AtY29sb3I9IiNGRkZGRkYiIG9mZnNldD0iMCIvPjxzdG9wIHN0b3AtY29sb3I9IiNGNEY0RjQiIG9mZnNldD0iMC4zIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0VFRUVFRSIgb2Zmc2V0PSIwLjk5Ii8+PHN0b3Agc3RvcC1jb2xvcj0iI0NDQ0NDQyIgb2Zmc2V0PSIuOTkiLz4KPC9saW5lYXJHcmFkaWVudD4KPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNnODI0KSIgLz4KPC9zdmc+);
background-image: linear-gradient(to bottom, #ffffff 0%, #f4f4f4 30%, #eeeeee 99%, #cccccc 99%);
border: 1px solid #ccc;
border-radius: 2px;
padding: .1em .5em;
cursor: pointer;*/
}
input[type=submit]:hover,
input[type=submit]:active,
input[type=submit]:focus,
input[type=button]:hover,
input[type=button]:active,
input[type=button]:hover,
input[type=reset]:hover,
input[type=reset]:active,
input[type=reset]:hover,
input.button:hover,
input.button:active,
input.button:focus,
a.button:hover,
a.button:active,
a.button:focus,
button:hover,
button:active,
button:focus,
.qq-upload-button:hover {
/* border-color: #999;
background-color: #ddd;
background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAxIDEiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPgo8bGluZWFyR3JhZGllbnQgaWQ9Imc2NzAiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjAlIiB5Mj0iMTAwJSI+CjxzdG9wIHN0b3AtY29sb3I9IiNGRkZGRkYiIG9mZnNldD0iMCIvPjxzdG9wIHN0b3AtY29sb3I9IiNGNEY0RjQiIG9mZnNldD0iMC4zIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0RERERERCIgb2Zmc2V0PSIwLjk5Ii8+PHN0b3Agc3RvcC1jb2xvcj0iI0JCQkJCQiIgb2Zmc2V0PSIuOTkiLz4KPC9saW5lYXJHcmFkaWVudD4KPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNnNjcwKSIgLz4KPC9zdmc+);
background-image: linear-gradient(to bottom, #ffffff 0%, #f4f4f4 30%, #dddddd 99%, #bbbbbb 99%);*/
}
input::-moz-focus-inner,
button::-moz-focus-inner {
border: 0;
padding: 0;
}
input[disabled],
button[disabled],
select[disabled],
textarea[disabled],
option[disabled],
input[readonly],
button[readonly],
select[readonly],
textarea[readonly] {
cursor: auto;
opacity: .5;
background-color: #eee;
}

81
css/biseau.less Normal file
View file

@ -0,0 +1,81 @@
/**
* A lot of biseau (why we say in english ?). Stupid ornemental. Special Khaganat
* way of life.
* If you don't like it, just erase this file.
*/
.biseau_2_top {
border-style : solid;
border-color : transparent transparent @ini_background transparent;
border-width : 1.5em;
}
.biseau_2_bottom {
border-style : solid;
border-color : @ini_background transparent transparent transparent;
border-width : 1.5em;
margin-bottom: -1em;
}
.biseau_right_top {
border-style : solid;
border-color : transparent transparent @ini_background transparent;
border-width : 0 1.5em 1.5em 0;
}
.biseau_left_top {
border-style : solid;
border-color : transparent transparent @ini_background transparent;
border-width : 0 0 1.5em 1.5em;
}
.biseau_right_bottom {
border-style : solid;
border-color : @ini_background transparent transparent transparent;
border-width : 1.5em 1.5em 0 0;
margin-bottom: 1em;
}
.biseau_left_bottom {
border-style : solid;
border-color : @ini_background transparent transparent transparent;
border-width : 1.5em 0 0 1.5em;
}
/*____________ Spécial onglets ____________*/
.tab_ul {
li {
text-align: center;
display: inline-block;
padding: 0;
width: 9em;
font: 80%;
span {
padding:0.1em;
margin-top: -1.5em;
/* pour span actif : passer à -1.6em.*/
}
}
}
.toptab {
border-style : solid;
border-color : transparent transparent @ini_background transparent;
border-width : 0 1.5em 1.5em 0;
}
/* ul {
list-style-type: "\2B21" ;
}
li {
list-style-type: "\2B22";
}
li ul li {
list-style-type: "\2B21" ;
} */

16
css/kh_test.less Normal file
View file

@ -0,0 +1,16 @@
#gen_bar {
display: block;
width: 100%;
background-color:#8530bfff;
height: 4em;
}
#gen_footer {
display: block;
width: 100%;
background-color:#8530bfff;
height: 4em;
position:absolute;
}

336
css/misc.less Normal file
View file

@ -0,0 +1,336 @@
/**
* This file provides the main design styles for the page content.
*
* @author Anika Henke <anika@selfthinker.org>
* @author Andreas Gohr <andi@splitbrain.org>
* @author Clarence Lee <clarencedglee@gmail.com>
* Lot of useful stuff :
* sitemap (and backlinks)
* links to wiki pages
* images
* lists
* tables
* code
* JS popup
* changes to underscored CSS files
* changes to _edit
* changes to _imgdetail
*/
/*____________ sitemap (and backlinks) ____________*/
/* sitemap (?do=index) and backlinks (?do=backlink). */
.dokuwiki ul.idx {
padding-left: 0;
}
[dir=rtl] .dokuwiki ul.idx {
padding-right: 0;
}
.dokuwiki ul.idx li {
list-style-image: url(../../images/bullet.png);
}
.dokuwiki ul.idx li.open {
list-style-image: url(../../images/open.png);
}
.dokuwiki ul.idx li.closed {
list-style-image: url(../../images/closed.png);
}
[dir=rtl] .dokuwiki ul.idx li.closed {
list-style-image: url(../../images/closed-rtl.png);
}
/*____________ links to wiki pages (addition to _links) ____________*/
/* existing wikipage */
.dokuwiki a.wikilink1 {
color: @ini_existing;
background-color: inherit;
}
/* not existing wikipage */
.dokuwiki a.wikilink2 {
color: @ini_missing;
background-color: inherit;
}
/*____________ images ____________*/
/* embedded images (styles are already partly set in lib/styles/all.css) */
.dokuwiki img.media {
margin: .2em 0;
}
.dokuwiki img.medialeft {
margin: .2em 1em .2em 0;
}
.dokuwiki img.mediaright {
margin: .2em 0 .2em 1em;
}
.dokuwiki img.mediacenter {
margin: .2em auto;
}
/*____________ lists ____________*/
.dokuwiki .page,
.dokuwiki .sidebar {
ul li {
color: @ini_color1;
}
ol li {
color: @ini_text_neu;
}
li .li {
color: @ini_text;
}
}
/*____________ tables ____________*/
/* div around each table */
.dokuwiki div.table {
overflow-x: auto;
margin-bottom: 1.4em;
}
.dokuwiki div.table table {
margin-bottom: 0;
}
.dokuwiki table.inline {
min-width: 50%;
}
.dokuwiki table.inline tr:hover td {
background-color: @ini_background_alt;
}
.dokuwiki table.inline tr:hover th {
background-color: @ini_border;
}
/*____________ code ____________*/
/* fix if background-color hides underlining */
.dokuwiki em.u code {
text-decoration: underline;
}
/* filenames for downloadable file and code blocks */
.dokuwiki dl.code,
.dokuwiki dl.file {
dt {
background-color: @ini_background;
background: linear-gradient(to bottom, @ini_background_alt 0%, @ini_background 100%);
color: inherit;
border: 1px solid @ini_border;
border-bottom-color: @ini_background;
border-top-left-radius: .3em;
border-top-right-radius: .3em;
padding: .3em .6em .1em;
margin-bottom: -1px;
float: left;
a {
background-color: transparent;
font-size: 0.875em;
font-weight: normal;
display: block;
min-height: 16px;
}
}
dd {
margin: 0;
clear: left;
}
pre {
box-shadow: inset -4px -4px .5em -.3em @ini_border;
}
}
[dir=rtl] .dokuwiki dl.code,
[dir=rtl] .dokuwiki dl.file {
dt {
float: right;
}
dd {
clear: right;
}
}
/* for code in <file> */
.dokuwiki dl.file {
pre,
dt {
border-style: dashed;
}
dt {
border-bottom-style: solid;
}
}
/*____________ JS popup ____________*/
.JSpopup {
background-color: @ini_background;
color: @ini_text;
border: 1px solid @ini_border;
box-shadow: .1em .1em .1em @ini_border;
border-radius: 2px;
padding: .3em .5em;
font-size: .9em;
}
.dokuwiki form.search div.ajax_qsearch {
top: -.35em;
font-size: 1em;
text-overflow: ellipsis;
}
.JSpopup ul,
.JSpopup ol {
padding-left: 0;
}
[dir=rtl] .JSpopup ul,
[dir=rtl] .JSpopup ol {
padding-right: 0;
}
/*____________ changes to underscored CSS files ____________*/
#acl__tree li {
margin: 0;
}
#dokuwiki__content span.curid a {
font-weight: normal;
}
#dokuwiki__content strong span.curid a {
font-weight: bold;
}
/*____________ changes to _edit ____________*/
.dokuwiki div.toolbar {
button.toolbutton {
border-radius: 0;
border-left-width: 0;
padding: .1em .35em;
}
button.toolbutton:first-child {
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
border-left-width: 1px;
}
button.toolbutton:last-child {
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
}
[dir=rtl] .dokuwiki div.toolbar {
button.toolbutton:last-child {
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-left-width: 1px;
}
button.toolbutton:first-child {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
border-left-width: 0;
border-right-width: 1px;
}
}
.dokuwiki div.section_highlight {
margin: 0 -2em;
padding: 0 1em;
border-width: 0 1em;
}
.dokuwiki textarea.edit {
font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace;
}
.dokuwiki div.preview {
margin: 0 -2em;
padding: 0 2em;
}
.dokuwiki.hasSidebar div.preview {
border-right: @ini_sidebar_width solid @ini_background_alt;
}
[dir=rtl] .dokuwiki.hasSidebar div.preview {
border-right-width: 0;
border-left: @ini_sidebar_width solid @ini_background_alt;
}
.dokuwiki div.preview div.pad {
padding: 1.556em 0 2em;
}
/*____________ changes to _imgdetail ____________*/
#dokuwiki__detail {
padding: 0;
img {
float: none;
margin-bottom: 1.4em;
}
div.img_detail {
float: none;
}
div.img_detail dl {
overflow: hidden;
}
div.img_detail dl dt {
float: left;
width: 9em;
text-align: right;
clear: left;
}
div.img_detail dl dd {
margin-left: 9.5em;
}
}
[dir=rtl] #dokuwiki__detail div.img_detail {
dl dt {
float: right;
text-align: left;
clear: right;
}
dl dd {
margin-left: 0;
margin-right: 9.5em;
}
}

252
css/mobile.less Normal file
View file

@ -0,0 +1,252 @@
/**
* This file provides styles for mobile devices
* and smaller screens (up to 480px and 768px width).
*
* @author Anika Henke <anika@selfthinker.org>
* some additions by zatalyz (in cc0, have a fun)
*/
/* for detecting media queries in JavaScript (see script.js): */
#screen__mode {
position: relative;
z-index: 0;
}
/* Things who are not displayed on normal screen (but detailled below)
********************************************************************/
#dokuwiki__header .mobileTools {
display: none; /* hide mobile tools dropdown to only show in mobile view */
}
/* for screen widths in the smartphone range
********************************************************************/
@media only screen and (max-width: @ini_phone_width) {
/* element non displayed on mobile */
.nomobile {
display:none !important;
}
#screen__mode {
z-index: 2; /* for detecting media queries in JavaScript (see script.js) */
}
#dokuwiki__site .wrapper {
display: block;
}
/*____________ structure - sidebar ____________*/
#dokuwiki__sidebar {
margin-bottom: 1em;
width: 100%;
float: none;
}
#dokuwiki__sidebar > .pad,
[dir=rtl] #dokuwiki__sidebar > .pad {
margin-bottom: 1em;
padding: 1em;
margin-bottom: 0;
display:flex;
flex-direction: column;
}
#dokuwiki__sidebar h3.toggle {
font-size: 1em;
&.closed {
margin: 0;
padding-bottom: 0;
background-color: @ini_background;
}
&.open {
border-bottom: 1px solid @ini_border;
padding-bottom: 0;
background-color: @ini_background;
margin: 0;
}
}
.showSidebar #dokuwiki__content, #dokuwiki__content {
float: none;
margin-left: 0;
width: 100%;
margin:0;
max-width: calc (@ini_article_width + 10);
> .pad {
margin-left: 0;
}
}
[dir=rtl] .showSidebar #dokuwiki__content,
[dir=rtl] .showSidebar #dokuwiki__content > .pad {
margin-right: 0;
}
/*____________ header ____________*/
#dokuwiki__header ul.a11y.skip {
position: static !important;
left: 0 !important;
width: auto !important;
height: auto !important;
float: right;
font-size: 0.875em;
list-style: none;
padding-left: 0;
margin: 0;
li {
margin-left: .35em;
display: inline;
}
}
[dir=rtl] #dokuwiki__header ul.a11y.skip {
left: auto !important;
right: 0 !important;
float: left;
padding-right: 0;
li {
margin: 0 .35em 0 0;
}
}
#dokuwiki__header .headings,
#dokuwiki__header .tools {
float: none;
text-align: left;
width: auto;
margin-bottom: .5em;
}
[dir=rtl] #dokuwiki__header .headings,
[dir=rtl] #dokuwiki__header .tools {
float: none;
text-align: right;
width: auto;
}
#dokuwiki__sitetools {
text-align: left;
}
[dir=rtl] #dokuwiki__sitetools {
text-align: right;
}
#dokuwiki__header .headings {
display:block;
}
/* search form */
.mobileTools form.search {
float: left;
margin: 0 .2em .2em 0;
width: 100%;
}
[dir=rtl] .mobileTools form.search {
float: right;
margin: 0 0 .2em .2em;
}
.mobileTools form.search input {
width: 100% !important;
}
.dokuwiki form.search div.ajax_qsearch {
display: none !important;
}
/* action dropdown is alternative for all hidden tools */
#dokuwiki__header .mobileTools {
display: block;
font-size: 0.875em;
margin: 0 0 .2em 0;
width: 100%;
}
[dir=rtl] #dokuwiki__header .mobileTools {
float: left;
}
#dokuwiki__header .mobileTools select {
padding: .3em .1em;
width: 100% !important;
}
/* force same height on search input and tools select */
#dokuwiki__sitetools form.search input,
#dokuwiki__header .mobileTools select {
height: 2.1em;
line-height: 2.1em;
overflow: visible;
}
/*____________ content ____________*/
#dokuwiki__sidebar > .pad,
.dokuwiki div.page {
padding: .5em;
margin:0;
}
/* form elements */
#config__manager fieldset td.value,
#config__manager td .input,
.dokuwiki fieldset,
/*.dokuwiki input.edit,*/
.dokuwiki textarea {
width: auto !important;
max-width: 100% !important;
}
.dokuwiki select {
max-width: 100% !important;
}
#config__manager fieldset {
margin-left: 0;
margin-right: 0;
}
.dokuwiki label.block {
text-align: left;
span {
display: block;
}
}
[dir=rtl] .dokuwiki label.block {
text-align: right;
}
/* _edit */
.dokuwiki div.section_highlight {
margin: 0;
padding: 0;
border-width: 0;
}
.dokuwiki div.preview {
margin: 0 -.5em;
padding: .5em;
}
/* plugin */
.dokuwiki div.plugin_translation {
display: block !important;
float:none;
margin-bottom:1em;
text-align:center;
}
} /* /@media */
/* for screen heights smaller than the pagetools permit
********************************************************************/
@media only screen and (max-height: 400px) {
// 400px is only roughly the required value, this may be wrong under non-standard circumstances
.kh_pagetools div.tools {
position: static;
}
} /* /@media */

25
css/plugin.less Normal file
View file

@ -0,0 +1,25 @@
/**
* This file provide specific styles for some plugin (childpages, translation,
* wrap, etc.).
**/
/*____________ Translation ____________*/
.plugin_translation {
/*display: inline;*/
}
.dokuwiki div.plugin_translation {
margin: 0 ;
float: none;
margin-bottom: 1em;
text-align: inherit;
}
@media only screen and (max-width: @ini_phone_width) {
}
/*____________ Config ____________*/
/* because config is a plugin and use placeholder */
/*même gris que @ini_border
#config__manager fieldset {
background-color:#eee; */

178
css/print.css Normal file
View file

@ -0,0 +1,178 @@
/**
* This file provides the styles for printing.
*
* @todo: improve and finish
*/
body {
font: normal 87.5%/1.3 Garamond, Baskerville, "Hoefler Text", "Nimbus Roman No9 L", serif;
background-color: #fff;
color: #000;
}
/* hide certain sections */
.a11y,
audio,
video,
#dokuwiki__header .tools,
#dokuwiki__sidebar,
.dokuwiki .breadcrumbs,
.dokuwiki .pageId,
#dw__toc,
h3.toggle,
#dokuwiki__pagetools,
#dokuwiki__footer,
.to_top {
display: none;
}
h1,
h2,
h3,
h4,
h5,
caption,
legend {
clear: both;
}
ul {
list-style: disc outside;
}
ol {
list-style: decimal outside;
}
ol ol {
list-style-type: lower-alpha;
}
ol ol ol {
list-style-type: upper-roman;
}
ol ol ol ol {
list-style-type: upper-alpha;
}
ol ol ol ol ol {
list-style-type: lower-roman;
}
a:link,
a:visited {
text-decoration: none;
border-bottom: 1pt dotted;
color: #333;
background-color: inherit;
}
/* display href after link */
a.urlextern:after,
a.interwiki:after,
a.mail:after {
content: " [" attr(href) "]";
font-size: 90%;
}
/* code blocks */
pre {
font-family: monospace;
}
dl.code dt,
dl.file dt {
font-weight: bold;
}
mark {
font-weight: bold;
}
/* images */
img {
border-width: 0;
vertical-align: middle;
}
img.media {
margin: .2em 0;
}
img.medialeft {
margin: .2em 1em .2em 0;
}
img.mediaright {
margin: .2em 0 .2em 1em;
}
img.mediacenter {
margin: .2em auto;
}
blockquote {
padding: 0 10pt;
margin: 0;
border: solid #ccc;
border-width: 0 0 0 2pt;
}
[dir=rtl] blockquote {
border-width: 0 2pt 0 0;
}
/* tables */
.dokuwiki div.table {
margin-bottom: 1.4em;
}
table {
border-collapse: collapse;
empty-cells: show;
border-spacing: 0;
border: 1pt solid #ccc;
}
th,
td {
padding: 3pt 5pt;
margin: 0;
vertical-align: top;
border: 1pt solid #666;
}
th {
font-weight: bold;
text-align: left;
}
[dir=rtl] th {
text-align: right;
}
/*____________ a bit of layout ____________*/
#dokuwiki__header {
border-bottom: 2pt solid #ccc;
}
#dokuwiki__header h1 {
font-size: 1.5em;
}
#dokuwiki__header h1 a {
text-decoration: none;
border-width: 0;
}
#dokuwiki__header h1 img {
float: left;
margin-right: .5em;
}
[dir=rtl] #dokuwiki__header h1 img {
float: right;
margin-right: 0;
margin-left: .5em;
}
.dokuwiki div.footnotes {
clear: both;
border-top: 1pt dotted #999;
margin-top: 10pt;
}
.dokuwiki div.docInfo {
font-size: 90%;
text-align: right;
clear: both;
padding-top: 2pt;
border-top: 1pt solid #999;
margin-top: 10pt;
}
[dir=rtl] .dokuwiki div.docInfo {
text-align: left;
}

201
css/structure.less Normal file
View file

@ -0,0 +1,201 @@
/**
* This file provides styles for the general layout structure.
*/
/*____________ Header ____________*/
/* title, logo, tagline */
#dokuwiki__header {
background: hsla(0,0%,100%,0.5);
h1 {
margin: 0;
font-size: 1.5em;
font-weight: normal;
text-align: center;
img {
margin: .5em;
max-width:90%;
max-height: 6em;
}
span {
display: block;
padding-top: 10px;
}
a {
text-decoration: none;
color: @ini_text;
background-color: inherit;
}
}
p.claim {
font-size: 0.875em;
text-align: center;
display:inline;
margin: 0 auto;
padding: .1em .5em 1em;
/*background-color: @ini_background;
border-radius: 5px;*/
}
}
.headings {
display: flex;
justify-content: center;
flex-direction: column;
}
/*____________ dokuwiki__site ____________*/
/* Sidebar+Article+tools */
#dokuwiki__site {
margin: 0 auto;
/*max-width: @ini_site_width;*/
}
#dokuwiki__site > .site {
padding: 0 .5em;
}
#dokuwiki__site .wrapper {
position: relative;
padding-top: 1.2em;
display:flex;
justify-content: center;
}
/*____________ Sidebar ____________*/
#dokuwiki__sidebar {
width: @ini_sidebar_width;
display: block;
}
/* If sidebar or not sidebar, content make same width */
.showSidebar #dokuwiki__content {
/*max-width: calc(@ini_site_width - @ini_sidebar_width);*/
max-width: @ini_article_width;
min-width:30em;
}
.showSidebar #dokuwiki__content, #dokuwiki__content {
width: 100%;
margin: 0 1em;
}
/* Details of sidebar */
.dokuwiki .sidebar {
font-size: 0.875em;
overflow: hidden;
word-wrap: break-word;
background-color: @ini_background ;
padding:0em 1em 0em 1em;
display:flex;
/*box-shadow: 0 1.2em .5em @ini_text_alt;*/
/* make sidebar more condensed */
h1 {
font-size: 1.714em;
margin-bottom: .292em;
}
h2 {
margin-bottom: .333em;
}
h3 {
margin-bottom: .444em;
}
h4 {
margin-bottom: .5em;
}
h5 {
margin-bottom: .5714em;
}
p,
ul,
ol,
dl,
pre,
table,
fieldset,
blockquote,
address {
margin-bottom: .7em;
}
ul,
ol {
padding-left: .5em;
}
li ul,
li ol {
margin-bottom: 0;
padding: 0;
}
a {
text-decoration:none;
}
}
[dir=rtl] .dokuwiki .sidebar ul,
[dir=rtl] .dokuwiki .sidebar ol {
padding-right: .5em;
}
/*____________ Footer ____________*/
.dokuwiki .wrapper {
margin-bottom: 1.4em;
}
#dokuwiki__footer {
margin-bottom: 1em;
text-align: center;
> .pad {
font-size: 0.875em;
}
div.license {
margin-bottom: 0.5em;
font-size: 100%;
}
div.buttons a {
img {
opacity: 0.5;
}
&:hover img,
&:active img,
&:focus img {
opacity: 1;
}
}
}
[dir=rtl] #dokuwiki__footer .license img {
margin: 0 0 0 .5em;
}
#dokuwiki__footer {
clear: both;
}
/* license note under edit window */
.dokuwiki div.license {
font-size: 93.75%;
}

135
css/tabs.less Normal file
View file

@ -0,0 +1,135 @@
/**
* This file provides the styles for general tabs.
*/
.dokuwiki .tabs > ul,
.dokuwiki ul.tabs {
padding: 0;
margin: 0;
overflow: hidden;
position: relative;
}
/* border underneath */
.dokuwiki .tabs > ul:after,
.dokuwiki ul.tabs:after {
position: absolute;
content: "";
width: 100%;
bottom: 0;
left: 0;
border-bottom: 1px solid @ini_border;
z-index: 1;
}
.dokuwiki .tabs > ul li,
.dokuwiki ul.tabs li {
float: left;
padding: 0;
margin: 0;
list-style: none;
}
[dir=rtl] .dokuwiki .tabs > ul li,
[dir=rtl] .dokuwiki ul.tabs li {
float: right;
}
.dokuwiki .tabs > ul li a,
.dokuwiki ul.tabs li strong,
.dokuwiki ul.tabs li a {
display: inline-block;
padding: .3em .8em;
margin: 0 0 0 .3em;
background-color: @ini_background_neu;
color: @ini_text;
border: 1px solid @ini_border;
border-radius: .5em .5em 0 0;
position: relative;
z-index: 0;
}
[dir=rtl] .dokuwiki .tabs > ul li a,
[dir=rtl] .dokuwiki ul.tabs li strong,
[dir=rtl] .dokuwiki ul.tabs li a {
margin: 0 .3em 0 0;
}
.dokuwiki ul.tabs li strong {
font-weight: normal;
}
.dokuwiki ul.tabs li a:link,
.dokuwiki ul.tabs li a:visited {
}
.dokuwiki .tabs > ul li a:hover,
.dokuwiki .tabs > ul li a:active,
.dokuwiki .tabs > ul li a:focus,
.dokuwiki .tabs > ul li .curid a,
.dokuwiki .tabs > ul .active a,
.dokuwiki ul.tabs li a:hover,
.dokuwiki ul.tabs li a:active,
.dokuwiki ul.tabs li a:focus,
.dokuwiki ul.tabs li.active a,
.dokuwiki ul.tabs li strong {
background-color: @ini_background_alt;
color: @ini_text;
text-decoration: none;
font-weight: normal;
}
.dokuwiki .tabs > ul li .curid a,
.dokuwiki .tabs > ul li .active a,
.dokuwiki .tabs > ul li .active a,
.dokuwiki ul.tabs li.active a,
.dokuwiki ul.tabs li strong {
z-index: 2;
border-bottom-color: @ini_background_alt;
}
/** For plugin childtab **/
.tabblocks {
display:flex;
justify-content: space-between;
align-items: last baseline;
ul {
display: flex;
margin:0;
padding: 0;
}
li {
/*float: left;
margin-right: -1em;
margin-bottom: -1px;
margin-top: -1.5em;
padding: 0.5em 0.1em 0;
*/
overflow: hidden;
margin: 0 0.5em 0 0 ;
padding: 0;
display:inline-block;
span {
font-size: 0.875em;
/*border: solid @ini_border;
border-width: 1px 1px 0;
background-color: @ini_background;
box-shadow: 0 0 .5em @ini_text_alt;
*/
padding: .1em .35em;
display: block;
/*position: absolute;*/
}
/* TODO : c'est là le temps de régler le souci d'image */
svg {
display :none;
}
}
}

114
css/tools.less Normal file
View file

@ -0,0 +1,114 @@
/**
* This file is for tools : usertools, pagetools, usertools, search. And tools.
So, navbar too, and breadcrumbs.
**/
/*____________ Navtool ____________*/
.navtool {
width: @ini_navtool_width;
display: flex;
flex-direction: column;
margin-top: 3.5em;
font-size: .875em;
/* position:fixed;
bottom:0;
*/
/*margin-left: 1em;*/
/*right: calc(@ini_sidebar_width * 2 + @ini_site_width);*/
}
.bartool {
background-color: @ini_background;
padding: 0 1em;
hr {
margin:1em 0;
}
}
/*____________ Usertools ____________*/
/* Link to Connexion, userpage, administration, profil */
.dokuwiki__tools ul, {
margin: 0 auto;
padding: 0;
color: @ini_color1;
}
/* highlight selected tool */
.mode_admin a.action.admin,
.mode_login a.action.login,
.mode_register a.action.register,
.mode_profile a.action.profile,
.mode_recent a.action.recent,
.mode_index a.action.index,
.mode_media a.action.media,
.mode_revisions a.action.revs,
.mode_backlink a.action.backlink,
.mode_subscribe a.action.subscribe {
font-weight: bold;
}
/*____________ Search ____________*/
/* juste the tool in navbar ; result search are in _search.css */
.dokuwiki div.searchtool {
/*float: right;*/
/*width: 29%;*/
}
form.search {
display: block;
margin-bottom: 0.5em;
input {
padding: .35em;
max-width: 100%;
}
button {
background: transparent url(images/search.png) no-repeat 0 0;
border-width: 0;
width: 19px;
height: 14px;
text-indent: -99999px;
margin-left: -20px;
box-shadow: none;
padding: 0;
}
}
[dir=rtl] form.search {
input {
padding: .35em .1em .35em 22px;
}
button {
background-position: 5px 0;
margin-left: 0;
margin-right: -20px;
position: relative;
}
}
/*____________ Pagetools ____________*/
/* Menu tools to edit, history, etc */
.to_top {
/*position:fixed;
bottom:0;
background-color: bisque;*/
position: fixed;
z-index: 101;
right: 10px;
bottom: 10px;
background-color: @ini_background;
padding: 0.3em;
}

105
detail.php Normal file
View file

@ -0,0 +1,105 @@
<?php
/**
* DokuWiki Image Detail Page
*
* @author Andreas Gohr <andi@splitbrain.org>
* @author Anika Henke <anika@selfthinker.org>
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// must be run from within DokuWiki
if (!defined('DOKU_INC')) die();
header('X-UA-Compatible: IE=edge,chrome=1');
?><!DOCTYPE html>
<html lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
<head>
<meta charset="utf-8" />
<title>
<?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?>
[<?php echo strip_tags($conf['title'])?>]
</title>
<script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
<?php tpl_metaheaders()?>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<?php echo tpl_favicon(array('favicon', 'mobile')) ?>
<?php tpl_includeFile('meta.html') ?>
</head>
<body>
<div id="dokuwiki__site"><div id="dokuwiki__top" class="site <?php echo tpl_classes(); ?>">
<?php include('tpl_header.php') ?>
<div class="wrapper group" id="dokuwiki__detail">
<!-- ********** CONTENT ********** -->
<div id="dokuwiki__content"><div class="pad group">
<?php html_msgarea() ?>
<?php if(!$ERROR): ?>
<div class="pageId"><span><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG)); ?></span></div>
<?php endif; ?>
<div class="page group">
<?php tpl_flush() ?>
<?php tpl_includeFile('pageheader.html') ?>
<!-- detail start -->
<?php
if($ERROR):
echo '<h1>'.$ERROR.'</h1>';
else: ?>
<?php if($REV) echo p_locale_xhtml('showrev');?>
<h1><?php echo nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h1>
<?php tpl_img(900,700); /* parameters: maximum width, maximum height (and more) */ ?>
<div class="img_detail">
<?php tpl_img_meta(); ?>
<dl>
<?php
echo '<dt>'.$lang['reference'].':</dt>';
$media_usage = ft_mediause($IMG,true);
if(count($media_usage) > 0){
foreach($media_usage as $path){
echo '<dd>'.html_wikilink($path).'</dd>';
}
}else{
echo '<dd>'.$lang['nothingfound'].'</dd>';
}
?>
</dl>
<p><?php echo $lang['media_acl_warning']; ?></p>
</div>
<?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?>
<?php endif; ?>
</div>
<!-- detail stop -->
<?php tpl_includeFile('pagefooter.html') ?>
<?php tpl_flush() ?>
<?php /* doesn't make sense like this; @todo: maybe add tpl_imginfo()?
<div class="docInfo"><?php tpl_pageinfo(); ?></div>
*/ ?>
</div></div><!-- /content -->
<hr class="a11y" />
<!-- PAGE ACTIONS -->
<?php if (!$ERROR): ?>
<div id="dokuwiki__pagetools">
<h3 class="a11y"><?php echo $lang['page_tools']; ?></h3>
<div class="tools">
<ul>
<?php echo (new \dokuwiki\Menu\DetailMenu())->getListItems(); ?>
</ul>
</div>
</div>
<?php endif; ?>
</div><!-- /wrapper -->
<?php include('tpl_footer.php') ?>
</div></div><!-- /site -->
</body>
</html>

BIN
images/button-dw.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 B

BIN
images/curve.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 KiB

BIN
images/curve2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB

BIN
images/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

BIN
images/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
images/search.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 B

BIN
images/top.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 B

15
lang/en/lang.php Normal file
View file

@ -0,0 +1,15 @@
<?php
// UI, cc0, by Zatalyz
$lang['kh_userpage'] = "Hello";
/**
* style.ini values
*/
$lang['__background_site__'] = 'Color for the very background (behind the content box)';
$lang['__link__'] = 'The general link color';
$lang['__existing__'] = 'The color for links to existing pages';
$lang['__missing__'] = 'The color for links to non-existing pages';
$lang['__site_width__'] = 'The width of the full site (can be any length unit: %, px, em, ...)';
$lang['__sidebar_width__'] = 'The width of the sidebar, if any (can be any length unit: %, px, em, ...)';
$lang['__tablet_width__'] = 'Below screensizes of this width, the site switches to tablet mode';
$lang['__phone_width__'] = 'Below screensizes of this width, the site switches to phone mode';

4
lang/en/style.txt Normal file
View file

@ -0,0 +1,4 @@
If you want to adjust the logo, simply use the Media Manager to upload a ''logo.png'' into the ''wiki'' or the root namespace and it
will be automatically used. You can also upload a ''favicon.ico'' there. If you use a closed
wiki it is recommended to make the ''wiki'' (or root) namespace world readable in the ACL settings or
your logo is not shown to not logged in users.

22
lang/fr/lang.php Normal file
View file

@ -0,0 +1,22 @@
<?php
if (!defined("DOKU_INC")){
die();
}
// UI, cc0, by Zatalyz
$lang['kh_userpage'] = "Bonjour";
/**
* style.ini values
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Schplurtz le Déboulonné <Schplurtz@laposte.net>
* @author Nicolas Friedli <nicolas@theologique.ch>
*/
$lang['__background_site__'] = 'Couleur du fond (derrière la boîte de contenu)';
$lang['__link__'] = 'Couleur générale des liens';
$lang['__existing__'] = 'Couleur des liens pour les pages existantes';
$lang['__missing__'] = 'Couleur des liens pour les pages inexistantes';
$lang['__site_width__'] = 'Largeur du site complet (dans une unité de longueur valide: %, px, em,...)';
$lang['__sidebar_width__'] = 'Largeur de la barre latérale, si existante (dans une unité de longueur valide: %, px, em,...)';
$lang['__tablet_width__'] = 'En dessous de cette largeur, le site passe en mode tablette.';
$lang['__phone_width__'] = 'En dessous de cette largeur, le site passe en mode smartphone.';
$lang['__theme_color__'] = 'Thème de couleur de l\'application web';

1
lang/fr/style.txt Normal file
View file

@ -0,0 +1 @@
Si vous souhaitez modifier le logo, utilisez simplement le gestionnaire de médias et envoyez un fichier nommé "logo.png" dans la catégorie "wiki" ou à la racine. Il sera automatiquement utilisé. Il en est de même pour le "favicon.ico". Si vous utilisez un wiki fermé, il est recommandé de régler les ACL de la racine ou de la catégorie "wiki" pour rendre ces images visibles aux utilisateurs non connectés.

273
main.php Normal file
View file

@ -0,0 +1,273 @@
<?php
/**
* Khum1 DokuWiki Template 2020 (based on Zen, based on Default template)
*
* @link http://dokuwiki.org/template
* @author Zatalyz <zatalyz@liev.re>
* @author Anika Henke <anika@selfthinker.org>
* @author Clarence Lee <clarencedglee@gmail.com>
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
header('X-UA-Compatible: IE=edge,chrome=1');
$hasSidebar = page_findnearest($conf['sidebar']);
$showSidebar = $hasSidebar && ($ACT=='show');
?><!DOCTYPE html>
<html lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
<head>
<meta charset="utf-8" />
<title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
<script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
<?php tpl_metaheaders() ?>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<?php echo tpl_favicon(array('favicon', 'mobile')) ?>
<?php tpl_includeFile('meta.html') ?>
</head>
<body>
<!-- <div id="gen_bar"> Barre générale </div> TODO inclure vraie barre et vérifier syntaxe -->
<?php //include('khanav.php') ?>
<div id="dokuwiki__top" class="site <?php echo tpl_classes(); ?> <?php
echo ($showSidebar) ? 'showSidebar' : ''; ?> <?php echo ($hasSidebar) ? 'hasSidebar' : ''; ?>">
<!-- Jump to content (accessibility -->
<ul class="a11y skip">
<li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content']; ?></a></li>
</ul>
<!-- ********** HEADER ********** -->
<header id="dokuwiki__header">
<!-- Menu spécial mobiles -->
<div class="mobileTools">
<?php echo (new \dokuwiki\Menu\MobileMenu())->getDropdown($lang['tools']); ?>
<?php tpl_searchform(); ?>
<!-- translation (only with Translation Plugin) -->
<?php
$translation = plugin_load('helper','translation');
if ($translation) echo $translation->showTranslations();
?>
</div>
<!-- logo, wiki title, tagline, breadcrumb -->
<div class="headings">
<h1><?php
// get logo either out of the template images folder or data/media folder
$logo = tpl_getMediaFile(array(':wiki:logo.png', ':logo.png', 'images/logo.png'), false);
// display logo and wiki title in a link to the home page
// Add <span>'.$conf['title'].'</span> after img to have Wiki Title display
tpl_link(
wl(),
'<img src="'.$logo.'" '.$logoSize[3].' alt="'.$conf['title'].'" /> ',
'accesskey="h" title="[H] '.$conf['title'].'"'
);
?></h1>
<?php if ($conf['tagline']): ?>
<p class="claim"><?php echo $conf['tagline']; ?></p>
<?php endif ?>
</div>
</header>
<hr class="a11y" />
<!-- /header -->
<div id="dokuwiki__site">
<!--<div class="pad group">-->
<div class="wrapper group">
<!-- ********** Sidebar ********** -->
<nav id="dokuwiki__sidebar">
<div class="biseau_left_top"></div>
<h3 class="toggle"><?php echo $lang['sidebar'] ?></h3>
<div class="pad sidebar include group">
<div class="content"><div class="group">
<?php tpl_flush() ?>
<!-- sidebar content -->
<?php if($showSidebar): ?>
<?php tpl_include_page($conf['sidebar'], true, true) ?>
<?php endif; ?>
</div></div>
</div>
<div class="biseau_2_bottom nomobile"></div>
</nav><!-- /Sidebar -->
<!-- ********** Article ********** -->
<div id="dokuwiki__content"><div class="pad group">
<?php html_msgarea() ?>
<!-- ********** Tab ********** -->
<div class="tabblocks">
<div class="nomobile">
<ul class="tab_ul">
<?php
foreach ( (new \dokuwiki\Menu\PageMenu())->getItems() as $item ) {
if ( preg_match('/^childrenpages_/', $item->getType()) ) {
echo '<li><div class="toptab"></div>'.$item->asHtmlLink(false, true).'</li>';
}
}
?>
</ul>
</div>
</div>
<div class="biseau_right_top"></div>
<div class="page group">
<?php tpl_flush() ?>
<?php tpl_includeFile('pageheader.html') ?>
<!-- wikipage start -->
<?php tpl_toc(false) ?>
<article class="kharticle">
<?php tpl_content(false) ?>
</article>
<!-- wikipage stop -->
<?php tpl_includeFile('pagefooter.html') ?>
</div>
<div class="biseau_2_bottom"></div>
<footer class="article_footer">
<div class="buttons">
<?php
tpl_license('button', true, false, false); // license button, no wrapper
$target = ($conf['target']['extern']) ? 'target="'.$conf['target']['extern'].'"' : '';
?>
<a href="https://dokuwiki.org/" title="Driven by DokuWiki" <?php echo $target?>><img
src="<?php echo tpl_basedir(); ?>images/button-dw.png" width="80" height="15" alt="Driven by DokuWiki" /></a>
</div>
<div class="docInfo"><?php tpl_pageinfo() ?></div>
</footer>
<?php tpl_flush() ?>
</div></div><!-- /article -->
<hr class="a11y" />
<!-- ********** Right menu (tools) ********** -->
<nav class="nomobile navtool">
<div class="biseau_right_top nomobile"></div>
<div class="nomobile bartool"
<!-- searchtool-->
<div class="searchtool nomobile">
<?php tpl_searchform(); ?>
</div>
<!-- You are here -->
<?php if($conf['youarehere']): ?>
<div class="youarehere nomobile"><?php tpl_youarehere() ?></div>
<hr class="nomobile">
<?php endif ?>
<!-- Page Actions -->
<div class="dokuwiki__tools nomobile">
<h3 class="a11y"><?php echo $lang['page_tools']; ?></h3>
<ul>
<?php
$data = array(
//'view' => 'main',
'items' => array(
'edit' => tpl_action('edit', true, 'li', true, '<span>', '</span>'),
'revert' => tpl_action('revert', true, 'li', true, '<span>', '</span>'),
'revisions' => tpl_action('revisions', true, 'li', true, '<span>', '</span>'),
'backlink' => tpl_action('backlink', true, 'li', true, '<span>', '</span>'),
'subscribe' => tpl_action('subscribe', true, 'li', true, '<span>', '</span>'),
//'top' => tpl_action('top', true, 'li', true, '<span>', '</span>')
)
);
// the page tools can be amended through a custom plugin hook
$evt = new Doku_Event('TEMPLATE_PAGETOOLS_DISPLAY', $data);
if($evt->advise_before()){
foreach($evt->data['items'] as $k => $html) echo $html;
}
$evt->advise_after();
unset($data);
unset($evt);
?>
</ul>
</div>
<hr class="nomobile">
<!-- usertools and sitetools -->
<div class="dokuwiki__tools nomobile">
<?php if ($conf['useacl']): ?>
<h3 class="a11y"><?php echo $lang['user_tools']; ?></h3>
<ul><?php
// Afficher lien interwiki user
if (!empty($_SERVER['REMOTE_USER'])) {
echo '<li class="user">';
$loginname = $_SERVER["REMOTE_USER"];
$kh_userpage = tpl_getLang('kh_userpage');
echo "$kh_userpage ";
echo (tpl_getConf("khum1_userpage")
? html_wikilink(tpl_getConf("khum1_userpage_ns").$loginname, hsc($loginname))
: hsc($loginname));
echo '</li>';
}
// le reste des appels (pas mal de modif, attention aux comportements étranges ?)
tpl_toolsevent('tools', array(
tpl_action('admin', true, 'li', true),
tpl_action('profile', true, 'li', true),
tpl_action('media', true, 'li', true),
tpl_action('recent', true, 'li', true),
tpl_action('index', true, 'li', true),
tpl_action('register', true, 'li', true),
tpl_action('login', true, 'li', true),
));
?></ul>
<?php endif ?>
</div>
<hr class="nomobile">
<!-- translation (only with Translation Plugin) -->
<div>
<?php
$translation = plugin_load('helper','translation');
if ($translation) echo $translation->showTranslations();
?>
</div>
<!-- Breadcrumbs -->
<?php if($conf['breadcrumbs']): ?>
<div class="trace nomobile"><div><?php tpl_breadcrumbs() ?></div></div>
<?php endif ?>
</div>
<div class="biseau_2_bottom nomobile"></div>
</nav>
<div class="to_top">
<?php
//tpl_action('top', true, 'li', true, '<img src="images/top.png" alt="go to to site">', '</img>')
//tpl_action('top', true, 'div', true, '<img src="/testsimple/lib/tpl/khum1/images/top.png" alt="go to to site">', '</img>')
//tpl_action('top', true, 'ul', true, 'li class="test"', '</li>')
tpl_action('top', true)
?>
</div>
</div><!-- /wrapper -->
</div><!-- dokuwiki__site-->
<?php //tpl_includeFile('footer.html'); ?>
</div><!-- /site -->
<div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
<div id="screen__mode" class="no"></div><?php /* helper to detect CSS media query in script.js */ ?>
</body>
</html>

44
mediamanager.php Normal file
View file

@ -0,0 +1,44 @@
<?php
/**
* DokuWiki Media Manager Popup
*
* @author Andreas Gohr <andi@splitbrain.org>
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// must be run from within DokuWiki
if (!defined('DOKU_INC')) die();
header('X-UA-Compatible: IE=edge,chrome=1');
?><!DOCTYPE html>
<html lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction'] ?>" class="popup no-js">
<head>
<meta charset="utf-8" />
<title>
<?php echo hsc($lang['mediaselect'])?>
[<?php echo strip_tags($conf['title'])?>]
</title>
<script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
<?php tpl_metaheaders()?>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<?php echo tpl_favicon(array('favicon', 'mobile')) ?>
<?php tpl_includeFile('meta.html') ?>
</head>
<body>
<div id="media__manager" class="dokuwiki">
<?php html_msgarea() ?>
<div id="mediamgr__sidebar"><div class="pad">
<h1><?php echo hsc($lang['mediaselect'])?></h1>
<?php /* keep the id! additional elements are inserted via JS here */?>
<div id="media__opts"></div>
<?php tpl_mediaTree() ?>
</div></div>
<div id="mediamgr__content"><div class="pad">
<?php tpl_mediaContent() ?>
</div></div>
</div>
</body>
</html>

79
script.js Normal file
View file

@ -0,0 +1,79 @@
/**
* We handle several device classes based on browser width.
*
* - desktop: > __tablet_width__ (as set in style.ini)
* - mobile:
* - tablet <= __tablet_width__
* - phone <= __phone_width__
*/
var device_class = ''; // not yet known
var device_classes = 'desktop mobile tablet phone';
function tpl_dokuwiki_mobile(){
// the z-index in mobile.css is (mis-)used purely for detecting the screen mode here
var screen_mode = jQuery('#screen__mode').css('z-index') + '';
// determine our device pattern
// TODO: consider moving into dokuwiki core
switch (screen_mode) {
case '1':
if (device_class.match(/tablet/)) return;
device_class = 'mobile tablet';
break;
case '2':
if (device_class.match(/phone/)) return;
device_class = 'mobile phone';
break;
default:
if (device_class == 'desktop') return;
device_class = 'desktop';
}
jQuery('html').removeClass(device_classes).addClass(device_class);
// handle some layout changes based on change in device
var $handle = jQuery('#dokuwiki__sidebar h3.toggle');
var $toc = jQuery('#dw__toc h3');
if (device_class == 'desktop') {
// reset for desktop mode
if($handle.length) {
$handle[0].setState(1);
$handle.hide();
}
if($toc.length) {
$toc[0].setState(1);
}
}
if (device_class.match(/mobile/)){
// toc and sidebar hiding
if($handle.length) {
$handle.show();
$handle[0].setState(-1);
}
if($toc.length) {
$toc[0].setState(-1);
}
}
}
jQuery(function(){
var resizeTimer;
dw_page.makeToggle('#dokuwiki__sidebar h3.toggle','#dokuwiki__sidebar div.content');
tpl_dokuwiki_mobile();
jQuery(window).on('resize',
function(){
if (resizeTimer) clearTimeout(resizeTimer);
resizeTimer = setTimeout(tpl_dokuwiki_mobile,200);
}
);
// increase sidebar length to match content (desktop mode only)
//var $sidebar = jQuery('.desktop #dokuwiki__sidebar');
//if($sidebar.length) {
// var $content = jQuery('#dokuwiki__content div.page');
// $content.css('min-height', $sidebar.height());
//}
});

130
style.ini Normal file
View file

@ -0,0 +1,130 @@
; Please see http://php.net/manual/en/function.parse-ini-file.php
; for limitations of the ini format used here
; To extend this file or make changes to it, it is recommended to create
; a local conf/tpl/<template-folder-name>/style.ini file to prevent losing
; any changes after an upgrade.
; Please don't forget to copy the section your changes should be under
; (i.e. [stylesheets] or [replacements]) into that file as well.
; Define the stylesheets your template uses here. The second value
; defines for which output media the style should be loaded. Currently
; print, screen and all are supported.
; You can reference CSS and LESS files here. Files referenced here will
; be checked for updates when considering a cache rebuild while files
; included through LESS' @import statements are not
[stylesheets]
css/_imgdetail.css = screen
css/_media_popup.css = screen
css/_media_fullscreen.css = screen
css/_fileuploader.css = screen
css/tabs.less = screen
css/_links.css = screen
css/_footnotes.css = screen
css/_search.css = screen
css/_recent.css = screen
css/_diff.css = screen
css/_edit.css = screen
css/_modal.css = screen
css/_forms.css = screen
css/_admin.less = screen
css/basic.less = screen
css/structure.less = screen
css/misc.less = screen
css/plugin.less = screen
css/tools.less = screen
css/article.less = screen
css/biseau.less = screen
css/mobile.less = all
css/print.css = print
; This section is used to configure some placeholder values used in
; the stylesheets. Changing this file is the simplest method to
; give your wiki a new look.
; Placeholders defined here will also be made available as LESS variables
; (with surrounding underscores removed, and the prefix @ini_ added)
[replacements]
;--------------------------------------------------------------------------
;------ guaranteed dokuwiki color placeholders that every plugin can use
; background color (main, alternative and neutral)
; This template use other way to classified color, see below.
; /!\ if you change it, some plugin make strange colors.
__background__ = "@ini_color4" ; @ini_background
__background_alt__ = "#eee" ; @ini_background_alt TODO : utilisé pour les bordures >< Fond de tableaux, toc, config admin.
__background_neu__ = "#ddd" ; @ini_background_neu
; border color
__border__ = "#ccc" ; @ini_border
; text color (main, alternative and neutral)
__text__ = "@ini_color5" ; @ini_text
__text_alt__ = "#999" ; @ini_text_alt // gris
__text_neu__ = "#666" ; @ini_text_neu // gris sombre presque noir
; highlighted text (e.g. search snippets)
__highlight__ = "#ff9" ; @ini_highlight
; link color
__link__ = "@ini_color1" ; @ini_link
;--------------------------------------------------------------------------
;--- under this line, placeholders are specific at template, note used in plugin
; TODO : search and change...
__background_alt2__ = "#9890bd" ; @ini_background_alt2
; these are used for links
__existing__ = "@ini_link" ; @ini_existing
__missing__ = "#a6006c" ; @ini_missing
; site and sidebar widths
__site_width__ = "75em" ; @ini_site_width
__sidebar_width__ = "20em" ; @ini_sidebar_width
__article_width__ = "50em" ; @ini_article_width
__navtool_width__ = "15em" ; @ini_navtool_width
; cut off points for mobile devices
;__tablet_width__ = "800px" ; @ini_tablet_width
__phone_width__ = "900px" ; @ini_phone_width
;--------------------------------------------------------------------------
; ---- template logical color - Khanat schem
; Primary color : logo, links, titles, background buttons
__color1__ = "#483D8B" ; @ini_color1
; secondary color : other buttons, overview (trop violet...)
__color2__ = "#6359db" ; @ini_color2
; if 3 color is needed
__color3__ = "#6639af" ; @ini_color3 (trop violet aussi...)
; background for text, or text color on colorized background
__color4__ = "#ffffff" ; @ini_color4
; text color, shadow color.
__color5__ = "#333" ; @ini_color5
; Couleurs plus douces
; Bleu tendre et intense, pour fond de bouton...
__color6__ = "#689CD3" ; @ini_color6
; accessibilité : ok en contraste sur fond violet.
__color7__ = "#2F2F2F" ; @ini_color7
;--------------------------------------------------------------------------
;--- Sweet color : some grey and other to border, shadows...
;Grey
__border1__ = "#ccc" ; @ini_border1
; soft grey almost white / gris doux presque blanc
__border2__ = "@ini_border" ; @ini_border2
; gray dark
__border3__ = "#aaa" ; @ini_border3

7
template.info.txt Normal file
View file

@ -0,0 +1,7 @@
base khum1
author Zatalyz
email zatalyz@liev.re
date 2020-04-25
name khum1 DokuWiki Template
desc Generic template for Khaganat. Support a lot of plugin. Try to be responsive and accessible.
url https://git.khaganat.net/zatalyz/khum1-doku