# HG changeset patch # User Christophe Lincoln # Date 1389792269 -3600 # Node ID 0c2b437cde562506b5a656f167782752ca79270f # Parent 14f50bbc616d567dfa5dc29d409394bdc9b758d7 doc: remove old style and prepare for a new one. pangolin: add up-doc diff -r 14f50bbc616d -r 0c2b437cde56 doc/conf/local.php --- a/doc/conf/local.php Wed Jan 15 11:15:02 2014 +0100 +++ b/doc/conf/local.php Wed Jan 15 14:24:29 2014 +0100 @@ -7,7 +7,7 @@ */ $conf['title'] = 'SliTaz Doc'; -$conf['template'] = 'slitaz-orange'; +$conf['template'] = 'slitaz-grey'; $conf['license'] = 'gnufdl'; $conf['tocminheads'] = '4'; $conf['maxtoclevel'] = '2'; diff -r 14f50bbc616d -r 0c2b437cde56 doc/conf/users.auth.php --- a/doc/conf/users.auth.php Wed Jan 15 11:15:02 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -# users.auth.php -# -# Don't modify the lines above -# -# Userfile -# -# Format: -# -# user:MD5password:Real Name:email:groups,comma,seperated - diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-brown/UWEB.css --- a/doc/lib/tpl/slitaz-brown/UWEB.css Wed Jan 15 11:15:02 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -/** - * This stylesheet adds the Universal Wiki Edit Button log to the edit page button - * - * For more info about this Wiki community project visit http://www.aboutus.org/uweb - - -html>body div.dokuwiki form.btn_edit input.button { - padding: 0.125em 0.4em 0.125em 2em; - background: __background__ url(images/UWEB.png) no-repeat 0.2em 0.2em; -} - -/* nice alphatransparency background except for IE <7 */ -html>body div.dokuwiki form.btn_edit input.button { - padding: 0px 0px 0px 18px; - background: url(images/UWEB.png) no-repeat left bottom; -} - diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-brown/design.css --- a/doc/lib/tpl/slitaz-brown/design.css Wed Jan 15 11:15:02 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1101 +0,0 @@ -/** - * Design elements for default Template - * - * @author Andreas Gohr - * @author Anika Henke - */ - -/* -------------- general elements --------------- */ - -/* * { padding: 0; margin: 0; } */ - -/* SliTaz stuff */ -html { - min-height: 102%; -} - -body { - background: #ffffff; - color: black; - font: 13px sans-serif, vernada, arial; - margin: 0; - border-top: 34px solid #f1f1f1; -} - -/* Accessibility */ - -#access { - position: absolute; - top: 0px; - right: 0px; - text-align: right; - width: auto; - margin: 0; - padding: 4px 4px 4px 20px; - font-size: 11px; - font-weight: bold; -} - -#access a { - text-decoration: none; - font-weight: bold -} - -#access a:hover, div.plugin_translation a:hover { - background: transparent; - color: #b64b22; -} - -#access img { - vertical-align: middle; -} - -/* Header and title */ - -#header { - /*background: #f0ba08 url(pics/website/header.png) repeat-x top;*/ - background: #351a0a url(images/header-img.png) no-repeat top right; - color: black; - width: 100%; - height: 42px; - border-top: 1px solid black; - border-bottom: 1px solid #999; - margin-bottom: 33px; -} - -#titre { - position: absolute; - font-size: 14px; - font-weight: bolder ; - left: 180px; - top: 18px; -} - -#logo { - position: absolute; - float: left; - left: 16px; - top: -10px; - width: 200px; - height: 74px; -} - -/* Page content */ - -#content { - background: white; - color: black; - text-align: justify; - height: auto; - margin: 0; - padding: 0px 80px 40px 80px; -} - -#content li, #content-full li { - line-height: 1.5em; - text-align: left; -} - -/* Box and block. */ - -.infobox { - margin: 20px 60px; - padding: 12px; - background: #f8f8f8; -} - -.infobox img { vertical-align: middle; } -/* .infobox:hover { background-color: #f2b21d; } */ -.infobox:hover { background-color: #FBFBFB; } - -.block { - /*padding-bottom: 35%;*/ - color: black; - min-height: 200px; - margin-bottom: 20px; -} - -.block ul { - list-style-type: none; - margin: 0; - padding: 0 20px; -} - -.block_left { - width: 46%; - float: left; - background-color: #eaeaea; - margin: 4px 2px; - padding: 0 10px 10px 10px; -} - -.block_right { - width: 46%; - float: right; - background-color: #eaeaea; - margin: 4px 2px; - padding: 0 10px 10px 10px; -} - -#block_top { - color: black; - background-color: #eaeaea; - min-height: 180px; - margin-bottom: 0; - margin-right: 340px; - padding: 5px 0 0 10px; -} - -#block_nav { - width: 300px; - min-height: 180px; - float: right; - background-color: #eaeaea; - margin: 0; - padding: 5px 0 0 10px; -} - -.infobox, .block_left, .block_right, #block_top, #block_nav, #footer { - -moz-border-radius: 8px; - -webkit-border-radius: 8px; - border-radius: 8px; - -moz-box-shadow: 0 1px 3px #666; - -webkit-box-shadow: 0 1px 3px #666; - box-shadow: 0 1px 3px #666; - /* CSS3 transition */ - -webkit-transition-property: background-color; - -webkit-transition-duration: 2s; - -moz-transition-property: background-color; - -moz-transition-duration: 2s; - transition-property: background-color; - transition-duration: 2s; -} - -#block_nav { - font-weight: bold; -} - -#block_nav a { - text-decoration: none; -} - -#block_nav li a:hover { - color: #b64b22; -} - -#block_nav ul { - margin: 0; - list-style-type: none; -} - -#block_nav h3, #block_top h3 { - font-size: 110%; -} - -.block_left:hover, .block_right:hover, #block_top:hover, -#block_nav:hover, #footer:hover { - background-color: #f8f8f8; -} - -.right_box { - width: 50%; - float: right; -} - -/* Button */ - -.button { margin-left: 20px; } - -.button a { - background-color: #b64b22; - color: #ffffff; - margin-right: 6px; - padding: 6px 10px; - font-size: 14px; - -moz-border-radius: 4px; - -webkit-border-radius: 4px; - border-radius: 4px; - -moz-box-shadow: 0 1px 3px #666; - -webkit-box-shadow: 0 1px 3px #666; - box-shadow: 0 1px 3px #666; -} - -.button a:hover, input[type=submit]:hover { - background-color: #a3431f; - color: #ffffff; -} - -/* HTML styles */ - -h1 { - color: #444444; - background: transparent; - text-align: left; - margin: 0; - font-size: 150%; - font-weight: bold; - padding: 0; -} - -h2 { - color: #b64b22; - padding: 0; - margin: 20px 0 0 0; - font-size: 130%; - font-weight: bold; -} - -h3 { - font-weight: bold; - color: #666666; - background: transparent; -} - -h3 img { - vertical-align: middle; - width: 20px; - height: 20px; - padding-right: 4px; -} - -a { - text-decoration: underline; - color: #103A5E; - background: inherit; -} - -a:hover { - text-decoration: none; - color: blue; - background: inherit; -} - -code { - font-size: 12px; - color: #669900; - background: inherit; -} - -tt { - color: #15EE15; - background: inherit; -} - -img { - border: 0pt none; -} - -pre { - padding: 5px; - color: black; - background: #E1E0B0; -} - -pre.script { - padding: 10px; - color: black; - background: #E8E8E8; - border: 1px inset #606060; -} - -textarea { - background: #E5E5E5; - margin-top: 12px; -} - -.year:after { - /* content: "2007-2014"; */ - content: "2014"; -} - -/* Footer */ - -#footer { - margin: 0px 80px 80px 80px; - padding: 10px; - background: #eaeaea; - color: #666666; - height: 180px; - clear: both; - border-radius: 8px; - -moz-border-radius: 8px; - -webkit-border-radius: 8px; - -moz-box-shadow: 0 1px 3px #666; - -webkit-box-shadow: 0 1px 3px #666; - box-shadow: 0 1px 3px #666; -} -#footer a { - background: inherit; - color: #666666; -} -#footer a:hover { - background: inherit; - color: #333333; -} -#footer ul { - list-style-type: none; -} -#footer li { - padding: 2px; -} -#footer h4 { - margin: 0 20px; - font-size: 125%; -} - -/* the document */ -div.dokuwiki div.page { - text-align: justify; - background: #ffffff; -} - -div.dokuwiki table { - font-size: 100%; -} - -div.dokuwiki tr, -div.dokuwiki td, -div.dokuwiki th { -} - -div.dokuwiki img { - border: 0; -} - -div.dokuwiki p, -div.dokuwiki blockquote, -div.dokuwiki table, -div.dokuwiki pre { - margin: 0 0 1.0em 0; -} - -div.dokuwiki hr { - border: 0px; - border-top: 1px solid __border__; - text-align: center; - height: 0px; -} - -div.dokuwiki div.nothing { - text-align: center; - margin: 2em; -} - -/* ---------------- forms ------------------------ */ - -div.dokuwiki form { - border: none; - display: inline; -} - -div.dokuwiki label.block { - display: block; - text-align: right; - font-weight: bold; - min-height: 20px; - margin: 0; -} - -div.dokuwiki label.simple { - display: block; - text-align: left; - font-weight: normal; -} - -div.dokuwiki label.block input.edit { - width: 50%; -} - -div.dokuwiki fieldset { - width: 300px; - text-align: center; - border: 1px solid __border__; - padding: 0.5em; - margin: auto; -} - -div.dokuwiki textarea.edit { - font-family: monospace; - font-size: 14px; - color: __text__; - background-color: __background__; - border: 1px solid __border__; - padding: 0.3em 0 0 0.3em; - width: 100%; -} - -div.dokuwiki input.edit, -div.dokuwiki select.edit { - font-size: 100%; - border: 1px solid __border__; - color: __text__; - background-color: __background__; - vertical-align: middle; - margin: 1px; - padding: 0.20em 0.3em; - display: inline; -} - -div.dokuwiki select.edit { - padding: 0.1em 0; -} - -div.dokuwiki input.missing { - font-size: 100%; - border: 1px solid __border__; - color: __text__; - background-color: #ffcccc; - vertical-align: middle; - margin: 1px; - padding: 0.20em 0.3em; - display: inline; -} - -/* disabled style - not understood by IE */ -div.dokuwiki textarea.edit[disabled], -div.dokuwiki textarea.edit[readonly], -div.dokuwiki input.edit[disabled], -div.dokuwiki input.edit[readonly], -div.dokuwiki select.edit[disabled] { - background-color: __background_neu__!important; - color: __text_neu__!important; -} - -/* edit form */ -div.dokuwiki div.toolbar, -div.dokuwiki div#wiki__editbar { - margin: 2px 0; - text-align: left; -} -div.dokuwiki div#size__ctl { - float: right; - width: 60px; - height: 2.7em; -} -div.dokuwiki #size__ctl img { - cursor: pointer; -} -div.dokuwiki div#wiki__editbar div.editButtons { - float: left; - padding: 0 1.0em 0.7em 0; -} -div.dokuwiki div#wiki__editbar div.summary { - float: left; -} -div.dokuwiki .nowrap { - white-space: nowrap; -} -div.dokuwiki div#draft__status { - float: right; - color: __text_alt__; -} - -/* --------- buttons ------------------- */ - - -div.dokuwiki input.button, -div.dokuwiki button.button { - border: 0px solid #eaeaea; - color: #0F314E; - background-color: transparent; - vertical-align: middle; - text-decoration: none; - font-size: 12px; - font-weight: bold; - cursor: pointer; - padding: 0; -} - -div.dokuwiki input:hover.button { - color: #DF8F06; -} - -* html div.dokuwiki input.button, -* html div.dokuwiki button.button { - height: 24px; -} - -div.dokuwiki div.secedit input.button { - border: 1px solid #eaeaea; - color: #3E1220; - background-color: transparent; - vertical-align: middle; - text-decoration: none; - margin: 0; - padding: 0; - font-size: 10px; - cursor: pointer; - float: right; - display: inline; -} - -/* ----------- page navigator ------------- */ - -div.dokuwiki div.pagenav { - margin: 1em 0 0 0; -} - -div.dokuwiki div.pagenav-prev { - text-align: right; - float: left; - width: 49% -} - -div.dokuwiki div.pagenav-next { - text-align: left; - float: right; - width: 49% -} - -/* --------------- Links ------------------ */ - -div.dokuwiki a:link, -div.dokuwiki a:visited { - color: __extern__; - text-decoration: none; -} -div.dokuwiki a:hover, -div.dokuwiki a:active { - color: __text__; - text-decoration: underline; -} - -div.dokuwiki h1 a { - color: #3E1220 !important; - text-decoration: none !important; -} - -div.dokuwiki h2 a { - color: #DF8F06 !important; - text-decoration: none !important; - border-left: 10px solid #F3F3F3; - padding: 4px 0px 4px 4px; -} - -div.dokuwiki h3 a, -div.dokuwiki h4 a, -div.dokuwiki h5 a, -div.dokuwiki a.nolink { - color: #6c0023 !important; - text-decoration: none !important; -} - -/* external link */ -div.dokuwiki a.urlextern { - background: transparent url(images/link_icon.gif) 0px 1px no-repeat; - padding: 1px 0px 1px 16px; -} - -/* windows share */ -div.dokuwiki a.windows { - background: transparent url(images/windows.gif) 0px 1px no-repeat; - padding: 1px 0px 1px 16px; -} - -/* interwiki link (icon are set by dokuwiki) */ -div.dokuwiki a.interwiki { -} - -/* link to some embedded media */ -div.dokuwiki a.media { -} - -div.dokuwiki a.urlextern:link, -div.dokuwiki a.windows:link, -div.dokuwiki a.interwiki:link { - color: __extern__; -} - -div.dokuwiki a.urlextern:visited, -div.dokuwiki a.windows:visited, -div.dokuwiki a.interwiki:visited { - color: purple; -} -div.dokuwiki a.urlextern:hover, -div.dokuwiki a.urlextern:active, -div.dokuwiki a.windows:hover, -div.dokuwiki a.windows:active, -div.dokuwiki a.interwiki:hover, -div.dokuwiki a.interwiki:active { - color: __text__; -} - -/* email link */ -div.dokuwiki a.mail { - background: transparent url(images/mail_icon.gif) 0px 1px no-repeat; - padding: 1px 0px 1px 16px; -} - -/* existing wikipage */ -div.dokuwiki a.wikilink1 { - color: #0F314E; - text-decoration: underline; -} -div.dokuwiki a.wikilink1:hover { - text-decoration: none; - color: blue; -} - -/* not existing wikipage */ -div.dokuwiki a.wikilink2 { - color: __missing__ !important; - text-decoration: none !important; - border-bottom: dashed 1px __missing__ !important; -} - -/* ------------- Page elements ----------------- */ - -div.dokuwiki div.preview { - background-color: __background_neu__; - margin: 0 0 0 2em; - padding: 4px; - border: 1px dashed __text__; -} - -div.dokuwiki div.breadcrumbs { - background-color: #f1f1f1; - color: __text_neu__; - font-size: 85%; - padding: 1px 0px 1px 18px; - margin: 0px 100px 0px 100px; -} - -div.dokuwiki span.user { - color: __text_other__; - font-size: 90%; -} - -div.dokuwiki li.minor { - color: __text_neu__; - font-style: italic; -} - -/* embedded images */ -div.dokuwiki img.media { - margin: 3px; -} - -div.dokuwiki img.medialeft { - border: 0; - float: left; - margin: 0 1.5em 0 0; -} - -div.dokuwiki img.mediaright { - border: 0; - float: right; - margin: 0 0 0 1.5em; -} - -div.dokuwiki img.mediacenter { - border: 0; - display: block; - margin: 0 auto; -} - -/* smileys */ -div.dokuwiki img.middle { - vertical-align: middle; -} - -div.dokuwiki acronym { - cursor: help; - border-bottom: 1px dotted __text__; -} - -/* general headline setup */ -div.dokuwiki h1, -div.dokuwiki h2, -div.dokuwiki h3, -div.dokuwiki h4, -div.dokuwiki h5 { - background-color: transparent; - clear: left; -} - -/* unordered lists */ -div.dokuwiki ul { - line-height: 1.5em; - list-style-type: square; - list-style-image: none; - margin: 0 0 0.5em 1.5em; - color: __text_alt__; -} - -/* ordered lists */ -div.dokuwiki ol { - line-height: 1.5em; - list-style-image: none; - margin: 0 0 0.5em 1.5em; - color: __text_alt__; - font-weight: bold; -} - -/* the list items overriding the ul/ol definition */ -div.dokuwiki .li { - color: __text__; - font-weight: normal; -} - -div.dokuwiki ol {list-style-type: decimal} -div.dokuwiki ol ol {list-style-type: upper-roman} -div.dokuwiki ol ol ol {list-style-type: lower-alpha} -div.dokuwiki ol ol ol ol {list-style-type: lower-greek} - -div.dokuwiki li.open { - list-style-image: url(images/open.gif); - /*list-style-type: circle;*/ -} - -div.dokuwiki li.closed { - list-style-image: url(images/closed.gif); - /*list-style-type: disc;*/ -} - -div.dokuwiki blockquote { - border-left: 2px solid __border__; - padding-left: 3px; -} - -div.dokuwiki pre { - font-size: 100%; - padding: 5px; - color: black; - background: #E1E0B0; - border: 0; - overflow: auto; -} - -/* code blocks by indention */ -div.dokuwiki pre.pre { - background-color: __background_other__; -} - -/* code blocks by code tag */ -div.dokuwiki pre.code { - -moz-border-radius: 4px; - -webkit-border-radius: 4px; - background-color: #e6e6be; - color: black; - padding: 5px ; - border: 0; -} - -/* inline code words */ -div.dokuwiki code { - font-size: 120%; - - -} - -/* code blocks by file tag */ -div.dokuwiki pre.file { - background-color: __background_alt__; -} - -/* inline tables */ -div.dokuwiki table.inline { - background-color: __background__; - border-spacing: 0px; - border-collapse: collapse; -} - -div.dokuwiki table.inline th { - padding: 3px; - border: 1px solid __border__; - background-color: __background_alt__; -} - -div.dokuwiki table.inline td { - padding: 3px; - border: 1px solid __border__; -} - -/* ---------- table of contents ------------------- */ - -div.dokuwiki div.toc { - margin: 1.2em 0 0 2em; - float: right; - width: 200px; - font-size: 80%; - clear: both; -} - -div.dokuwiki div.tocheader { - border: 1px solid __border__; - background-color: __background_alt__; - text-align: left; - font-weight: bold; - padding: 3px; - margin-bottom: 2px; -} - -div.dokuwiki span.toc_open, -div.dokuwiki span.toc_close { - border: 0.4em solid __background_alt__; - float: right; - display: block; - margin: 0.4em 3px 0 0; -} - -div.dokuwiki span.toc_open span, -div.dokuwiki span.toc_close span { - display: none; -} - -div.dokuwiki span.toc_open { - margin-top: 0.4em; - border-top: 0.4em solid __text__; -} - -div.dokuwiki span.toc_close { - margin-top: 0; - border-bottom: 0.4em solid __text__; -} - -div.dokuwiki #toc__inside { - border: 1px solid __border__; - background-color: __background__; - text-align: left; - padding: 0.5em 0 0.7em 0; -} - -div.dokuwiki ul.toc { - list-style-type: none; - list-style-image: none; - line-height: 1.2em; - padding-left: 1em; - margin: 0; -} - -div.dokuwiki ul.toc li { - background: transparent url(images/tocdot2.gif) 0 0.6em no-repeat; - padding-left: 0.4em; -} - -div.dokuwiki ul.toc li.clear { - background-image: none; - padding-left: 0.4em; -} - -div.dokuwiki a.toc:link, -div.dokuwiki a.toc:visited { - color: __extern__; -} - -div.dokuwiki a.toc:hover, -div.dokuwiki a.toc:active { - color: __text__; -} - -/* ---------------------------- Diff rendering --------------------------*/ -div.dokuwiki table.diff { - background-color: __background__; - width: 100%; -} -div.dokuwiki td.diff-blockheader { - font-weight: bold; -} -div.dokuwiki table.diff th { - border-bottom: 1px solid __border__; - font-size: 120%; - width: 50%; - font-weight: normal; - text-align: left; -} -div.dokuwiki table.diff td { - font-family: monospace; - font-size: 100%; -} -div.dokuwiki td.diff-addedline { - background-color: #ddffdd; -} -div.dokuwiki td.diff-deletedline { - background-color: #ffffbb; -} -div.dokuwiki td.diff-context { - background-color: __background_neu__; -} -div.dokuwiki table.diff td.diff-addedline strong, -div.dokuwiki table.diff td.diff-deletedline strong { - color: red; -} - -/* --------------------- footnotes -------------------------------- */ - -div.dokuwiki div.footnotes { - clear: both; - border-top: 1px solid __border__; - padding-left: 1em; - margin-top: 1em; -} - -div.dokuwiki div.fn { - font-size: 90%; -} - -div.dokuwiki a.fn_bot { - font-weight: bold; -} - -/* insitu-footnotes */ -div.insitu-footnote { - font-size: 80%; - line-height: 1.2em; - border: 1px solid __border__; - background-color: __background_other__; - text-align: left; - padding: 4px; - max-width: 40%; /* IE's width is handled in javascript */ -} - -/* overcome IE issue with one line code or file boxes which require h. scrolling */ -* html .insitu-footnote pre.code, -* html .insitu-footnote pre.file { - padding-bottom: 18px; -} - -/* --------------- search result formating --------------- */ -div.dokuwiki .search_result { - margin-bottom: 6px; - padding: 0 10px 0 30px; -} - -div.dokuwiki .search_snippet { - color: __text_other__; - font-size: 12px; - margin-left: 20px; -} - -div.dokuwiki .search_sep { - color: __text__; -} - -div.dokuwiki .search_hit { - color: __text__; - background-color: __highlight__; -} -div.dokuwiki strong.search_hit { - font-weight: normal; -} - -div.dokuwiki div.search_quickresult { - margin: 0 0 15px 30px; - padding: 0 10px 10px 0; - border-bottom: 1px dashed __border__; -} -div.dokuwiki div.search_quickresult h3 { - margin: 0 0 1.0em 0; - font-size: 1em; - font-weight: bold; -} - -div.dokuwiki ul.search_quickhits { - margin: 0 0 0.5em 1.0em; -} - -div.dokuwiki ul.search_quickhits li { - margin: 0 1.0em 0 1.0em; - float:left; - width: 30%; -} - -/* ------------------ Additional ---------------------- */ - -div.footerinc { - text-align: left; - margin: 10px 80px; -} -.footerinc a img { - opacity: 0.5; - border: 0; -} - -.footerinc a:hover img { - opacity: 1; -} - -/* ---------- AJAX quicksearch ----------- */ - -div.dokuwiki div.ajax_qsearch { - position: absolute; - right: 237px;; - width: 200px; - opacity: 0.9; - display: none; - font-size: 80%; - line-height: 1.2em; - border: 1px solid __border__; - background-color: __background_other__; - text-align: left; - padding: 4px; -} - -/* --------- Toolbar -------------------- */ -button.toolbutton { - background-color: transparent; - padding: 0px; - margin: 0 1px 0 0; - border: 1px solid __border__; - cursor: pointer; -} - -div.picker { - width: 250px; - border: 1px solid __border__; - background-color: __background_alt__; -} - -button.pickerbutton { - padding: 0px; - margin: 0 1px 1px 0; - border: 0; - background-color: transparent; - font-size: 80%; - cursor: pointer; -} - -/* --------------- Image Details ----------------- */ - -div.dokuwiki div.img_big { - float: left; - margin-right: 0.5em; -} - -div.dokuwiki dl.img_tags dt { - font-weight: bold; - background-color: __background_alt__; -} -div.dokuwiki dl.img_tags dd { - background-color: __background_neu__; -} - -div.dokuwiki div.imagemeta { - color: __text_neu__; - font-size: 70%; - line-height: 95%; -} - -div.dokuwiki div.imagemeta img.thumb { - float:left; - margin-right: 0.1em; -} - -div.notify { - background: #FFCE21; - color: #222; - border: 1px solid #000; - font-size: 90%; - margin: 0; - padding: 4px; - -moz-border-radius: 4px; - -webkit-border-radius: 4px; - border-radius: 4px; - position: absolute; - top: 43px; - right: 24px; - width: 600px; -} - -#access div.notify a { text-decoration: underline; } -#access div.notify a:hover { text-decoration: none; } diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-brown/detail.php --- a/doc/lib/tpl/slitaz-brown/detail.php Wed Jan 15 11:15:02 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,92 +0,0 @@ - - */ - -// must be run from within DokuWiki -if (!defined('DOKU_INC')) die(); - -?> - - - - - - <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?> - [<?php echo strip_tags($conf['title'])?>] - - - - - - - - -
- - -
- - -

- -
- -
- -
-

- -

- -

- -
- '.$lang['img_date'].':
'.strftime($conf['dformat'],$t).'
'; - - $t = tpl_img_getTag('File.Name'); - if($t) print '
'.$lang['img_fname'].':
'.hsc($t).'
'; - - $t = tpl_img_getTag(array('Iptc.Byline','Exif.TIFFArtist','Exif.Artist','Iptc.Credit')); - if($t) print '
'.$lang['img_artist'].':
'.hsc($t).'
'; - - $t = tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright')); - if($t) print '
'.$lang['img_copyr'].':
'.hsc($t).'
'; - - $t = tpl_img_getTag('File.Format'); - if($t) print '
'.$lang['img_format'].':
'.hsc($t).'
'; - - $t = tpl_img_getTag('File.NiceSize'); - if($t) print '
'.$lang['img_fsize'].':
'.hsc($t).'
'; - - $t = tpl_img_getTag('Simple.Camera'); - if($t) print '
'.$lang['img_camera'].':
'.hsc($t).'
'; - - $t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category')); - if($t) print '
'.$lang['img_keywords'].':
'.hsc($t).'
'; - - ?> -
- -
- - -
-
- - - diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-brown/images/UWEB.png Binary file doc/lib/tpl/slitaz-brown/images/UWEB.png has changed diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-brown/images/button-dw.png Binary file doc/lib/tpl/slitaz-brown/images/button-dw.png has changed diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-brown/images/button-xhtml.png Binary file doc/lib/tpl/slitaz-brown/images/button-xhtml.png has changed diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-brown/images/favicon.ico Binary file doc/lib/tpl/slitaz-brown/images/favicon.ico has changed diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-brown/images/header-img.png Binary file doc/lib/tpl/slitaz-brown/images/header-img.png has changed diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-brown/images/link_icon.gif Binary file doc/lib/tpl/slitaz-brown/images/link_icon.gif has changed diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-brown/images/logo.png Binary file doc/lib/tpl/slitaz-brown/images/logo.png has changed diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-brown/images/mail_icon.gif Binary file doc/lib/tpl/slitaz-brown/images/mail_icon.gif has changed diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-brown/images/tools.png Binary file doc/lib/tpl/slitaz-brown/images/tools.png has changed diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-brown/layout.css --- a/doc/lib/tpl/slitaz-brown/layout.css Wed Jan 15 11:15:02 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +0,0 @@ -/** - * Tableless Layout for default template - * - * @author Andreas Gohr - * @author moraes - */ - -/* -------------- top row --------------- */ - -div.dokuwiki .pagename { - float: left; - font-size: 200%; - font-weight: bolder; - color: __background_alt__; - text-align: left; - vertical-align: middle; -} - -div.dokuwiki .pagename a { - color: __extern__ !important; - text-decoration: none !important; -} - -/* --------------- top and bottom bar ---------------- */ - -#bar__bottomleft { margin-top: 3px;} - -div.dokuwiki .bar-left { - float: left; - margin-left: 14px; -} - -div.dokuwiki .bar-right { - float: right; - text-align: right; - margin-right: 14px; -} - -/* ------------- File Metadata ----------------------- */ - -div.dokuwiki div.meta { - clear: both; - margin-top: 1em; - color: #666666; - font-size: 85%; -} - -div.dokuwiki div.meta div.user { - float: left; -} - -div.dokuwiki div.meta div.doc { - text-align: right; -} diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-brown/main.php --- a/doc/lib/tpl/slitaz-brown/main.php Wed Jan 15 11:15:02 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,140 +0,0 @@ - - * - */ - -// must be run from within DokuWiki -if (!defined('DOKU_INC')) die(); - -?> - - - - - - <?php tpl_pagetitle()?> - [<?php echo strip_tags($conf['title'])?>] - - - - - - - - -
- - - - - -
- - -
- -
-

.pngWiki Tools

-
-
-
-
-
- -
- -
-

- The central place for all SliTaz documentation. -

-
-
-

.pngPage Tools

-
-
-
- -
- -
- - - - - - - -
 
- - -
-
- -
-
- -
-
- - -
- - -
- - - - -
- -
- - - diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-brown/media.css --- a/doc/lib/tpl/slitaz-brown/media.css Wed Jan 15 11:15:02 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,200 +0,0 @@ -/** - * The CSS in here cotrols the appearance of the media manager - */ - -#media__manager { - height: 100%; - overflow: hidden; -} - -#media__left { - width: 30%; - border-right: solid 1px __border__; - - height: 100%; - overflow: auto; - position: absolute; - left: 0; -} - -#media__right { - width: 69.7%; - - height: 100%; - overflow: auto; - position: absolute; - right: 0; -} - -#media__manager h1 { - margin: 0; - padding: 0; - margin-bottom: 0.5em; -} - -/* --- Tree formatting --- */ - -#media__tree img { - float:left; - padding: 0.5em 0.3em 0 0; -} - -#media__tree ul { - list-style-type: none; - list-style-image: none; -} - -#media__tree li { - clear: left; - list-style-type: none; - list-style-image: none; -} -*+html #media__tree li, -* html #media__tree li { - border: 1px solid __background__; -}/* I don't understand this, but this fixes a style bug in IE; -it's dirty, so any "real" fixes are welcome */ - -/* --- options --- */ - -#media__opts { - padding-left: 1em; - margin-bottom: 0.5em; -} - -#media__opts input { - float: left; - position: absolute; -} -*+html #media__opts input, -* html #media__opts input { - position: static; -} - -#media__opts label { - display: block; - float: left; - margin-left: 30px; -} -*+html #media__opts label, -* html #media__opts label { - margin-left: 10px; -} - -#media__opts br { - clear: left; -} - -/* --- file list --- */ - -#media__content img.load { - margin: 1em auto; -} - -#media__content #scroll__here { - border: 1px dashed __border__; -} - -#media__content .odd { - background-color: __background_other__; - padding: 0.4em; -} - -#media__content .even { - padding: 0.4em; -} - -#media__content a.mediafile { - margin-right: 1.5em; - font-weight: bold; -} - -#media__content div.detail { - padding: 0.3em 0 0.3em 2em; -} - -#media__content div.detail div.thumb { - float: left; - width: 130px; - text-align: center; - margin-right: 0.4em; -} - - -#media__content img.btn { - vertical-align: text-bottom; -} - -#media__content div.example { - color: __text_neu__; - margin-left: 1em; -} - -/* --- upload form --- */ - -#media__content div.upload { - font-size: 90%; - padding: 0 0.5em 0.5em 0.5em; -} - -#media__content form#dw__upload { - display: block; - border-bottom: solid 1px __border__; - padding: 0 0.5em 1em 0.5em; -} -#media__content form#dw__upload fieldset { - padding: 0; - margin: 0; - border: none; - width: auto; -} -#media__content form#dw__upload p { - text-align: left; - padding: 0.25em 0; - margin: 0; - line-height: 1.0em; -} -#media__content form#dw__upload label.check { - float: none; - width: auto; - margin-left: 11.5em; -} - -/* --- meta edit form --- */ - -#media__content form.meta { - display: block; - padding: 0 0 1em 0; -} - -#media__content form.meta label { - display: block; - width: 25%; - float: left; - font-weight: bold; - margin-left: 1em; - clear: left; -} - -#media__content form.meta .edit { - font: 100% "Lucida Grande", Verdana, Lucida, Helvetica, Arial, sans-serif; - float: left; - width: 70%; - padding-right: 0; - padding-left: 0.2em; - margin: 2px; -} - -#media__content form.meta textarea.edit { - height: 8em; -} - -#media__content form.meta div.metafield { - clear: left; -} - -#media__content form.meta div.buttons { - clear: left; - margin-left: 20%; - padding-left: 1em; -} diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-brown/mediamanager.php --- a/doc/lib/tpl/slitaz-brown/mediamanager.php Wed Jan 15 11:15:02 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,44 +0,0 @@ - - - */ -?> - - - - - <?php echo hsc($lang['mediaselect'])?> - [<?php echo strip_tags($conf['title'])?>] - - - - - - -
-
- -

- - -
- - -
- -
- -
-
- - diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-brown/print.css --- a/doc/lib/tpl/slitaz-brown/print.css Wed Jan 15 11:15:02 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,235 +0,0 @@ - -body { - font: 10pt "Lucida Grande", Verdana, Lucida, Helvetica, Arial, sans-serif; - background-color: White; - color: Black; -} - -table { - font-size: 100%; - padding:0; - margin:0; -} - -tr,td,th {padding:0; margin:0;} - -img {border:0} - -a { - color:#000000; - text-decoration:none; - background: none !important; -} - - -div.meta { - clear:both; - margin-top: 1em; - font-size:70%; - text-align:right; -} - - -div.notify, -div.info, -div.success, -div.error, -div.breadcrumbs, -div.secedit { - display:none; -} - -/* --------------------- Text formating -------------------------------- */ - -/* external link */ -a.urlextern:after { - content: " [" attr(href) "]"; - font-size: 90%; -} - -/* interwiki link */ -a.interwiki:after { - content: " [" attr(href) "]"; - font-size: 90%; -} - -/* email link */ -a.mail:after { - content: " [" attr(href) "]"; - font-size: 90%; -} - -/* existing wikilink */ -a.wikilink1 {text-decoration:underline } - -/* the document */ -div.page { - text-align: justify; -} - -/* general headline setup */ -h1, h2, h3, h4, h5 { - color: Black; - background-color: transparent; - font-family: "Lucida Grande", Verdana, Lucida, Helvetica, Arial, sans-serif; - font-size: 100%; - font-weight: normal; - margin-left: 0; - margin-right: 0; - margin-top: 0; - margin-bottom: 1em; - padding-left: 0; - padding-right: 0; - padding-top: 0.5em; - padding-bottom: 0; - border-bottom: 1px solid #000000; - clear:left; -} - -/* special headlines */ -h1 {font-size: 160%; font-weight: bold;} -h2 {font-size: 150%; } -h3 {font-size: 140%; border-bottom: none; } -h4 {font-size: 120%; border-bottom: none; } -h5 {font-size: 100%; border-bottom: none; } - -/* embedded images */ -img.media { - margin: 3px; -} - -img.medialeft { - border: 0; - float: left; - margin: 0 1.5em 0 0; -} - -img.mediaright { - border: 0; - float: right; - margin: 0 0 0 1.5em; -} - -/* unordered lists */ -ul { - line-height: 1.5em; - list-style-type: square; - margin: 0 0 0.5em 1.5em; - padding: 0; - -} - -/* ordered lists */ -ol { - line-height: 1.5em; - margin: 0 0 0.5em 2.5em; - padding: 0; - font-weight: normal; -} -ol ol { - margin: 0 0 0.5em 1.5em; -} - -div.dokuwiki ol {list-style-type: decimal} -div.dokuwiki ol ol {list-style-type: upper-roman} -div.dokuwiki ol ol ol {list-style-type: lower-alpha} -div.dokuwiki ol ol ol ol {list-style-type: lower-greek} - -/* the list items overriding the ol definition */ -span.li { - font-weight: normal; -} - -/* code blocks by indention */ -pre.pre { - font-size: 8pt; - padding: 0.5em; - border: 1px dashed #000000; - color: Black; - overflow: visible; -} - -/* code blocks by code tag */ -pre.code { - font-size: 8pt; - padding: 0.5em; - border: 1px dashed #000000; - color: Black; - overflow: visible; -} - -/* inline code words */ -code { - font-size: 120%; -} - -/* code blocks by file tag */ -pre.file { - font-size: 8pt; - padding: 0.5em; - border: 1px dotted #000000; - color: Black; - overflow: visible; -} - -/* footnotes */ -div.footnotes{ - clear:both; - border-top: 1px solid #000000; - padding-left: 1em; - margin-top: 1em; -} - -div.fn{ - font-size:90%; -} - -a.fn_top{ - vertical-align:super; - font-size:80%; -} - -a.fn_bot{ - vertical-align:super; - font-size:80%; - font-weight:bold; -} - -acronym{ - border: 0; -} - -/* ---------- inline tables ------------------- */ - -table.inline { - font-size: 80%; - background-color: #ffffff; - border-spacing: 0px; - border-collapse: collapse; -} - -table.inline th { - padding: 3px; - border: 1px solid #000000; - border-bottom: 2px solid #000000; -} - -table.inline td { - padding: 3px; - border: 1px solid #000000; -} - -.leftalign{ - text-align: left; -} - -.centeralign{ - text-align: center; -} - -.rightalign{ - text-align: right; -} - -.toc, .footerinc, .header, .bar, .user {display:none} - diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-brown/rtl.css --- a/doc/lib/tpl/slitaz-brown/rtl.css Wed Jan 15 11:15:02 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,119 +0,0 @@ -/** - * Layout and dedsign corrections for right-to-left languages - * - * @author Andreas Gohr - * @author Dotan Kamber - */ - -.bar-left { - float: right; - text-align: right; -} - -.bar-right { - float: left; - text-align: left; -} - -.pagename { - float: right; - text-align: right; -} - -.logo { - float: left; - text-align: left; -} - -label { - text-align: left; -} - -label.simple { - text-align: right; -} - -div.meta div.user { - float: right -} - -div.meta div.doc { - text-align: left; -} - -/* ------------------ Design corrections --------------------------------- */ - -div.dokuwiki ul, -div.dokuwiki ol { - margin: 0.5em 1.5em 0.5em 0; -} - -div.dokuwiki a.urlextern, -div.dokuwiki a.interwiki, -div.dokuwiki a.windows, -div.dokuwiki a.mail, -div.dokuwiki a.mail.JSnocheck { - /* should work but doesn't - so we just disable icons here*/ - /* - background-position: right 1px; - padding-right: 16px; - */ - background-image: none !important; - padding: 0px 0px 0px 0px; -} - -div.dokuwiki div.secedit input.button { - float: left; -} - -/* headlines */ -div.dokuwiki h1, div.dokuwiki h2, div.dokuwiki h3, div.dokuwiki h4, div.dokuwiki h5 { - clear: right; -} - -/* special headlines */ -div.dokuwiki h1 {margin-left: 0px; margin-right: 0px;} -div.dokuwiki h2 {margin-left: 0px; margin-right: 20px;} -div.dokuwiki h3 {margin-left: 0px; margin-right: 40px;} -div.dokuwiki h4 {margin-left: 0px; margin-right: 60px;} -div.dokuwiki h5 {margin-left: 0px; margin-right: 80px;} - -/* indent different sections */ -div.dokuwiki div.level1 {margin-left: 0px; margin-right: 3px;} -div.dokuwiki div.level2 {margin-left: 0px; margin-right: 23px;} -div.dokuwiki div.level3 {margin-left: 0px; margin-right: 43px;} -div.dokuwiki div.level4 {margin-left: 0px; margin-right: 63px;} -div.dokuwiki div.level5 {margin-left: 0px; margin-right: 83px;} - -/* TOC control */ -div.dokuwiki div.toc { - float: left; -} - -div.dokuwiki div.tocheader { - text-align: right; -} - -div.dokuwiki #toc__inside { - text-align: right; -} - -div.dokuwiki ul.toc { - padding: 0; - padding-right: 1em; -} - -div.dokuwiki ul.toc li { - background-position: right 0.6em; - padding-right:0.4em; - direction: rtl; -} - -div.dokuwiki ul.toc li.clear { - padding-right:0.4em; -} - -div.dokuwiki pre { - text-align: left; -} - diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-brown/style.ini --- a/doc/lib/tpl/slitaz-brown/style.ini Wed Jan 15 11:15:02 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,67 +0,0 @@ -; Please see http://www.php.net/manual/en/function.parse-ini-file.php -; for limitations of the ini format used here - -; Define the stylesheets your template uses here. The second value -; defines for which output media the style should be loaded. Currently -; print, screen and rtl are supported. rtl styles are loaded additionally -; to screen styles if a right-to-left language is selected (eg. hebrew) -[stylesheets] -layout.css = screen -design.css = screen -style.css = screen - -media.css = screen - -UWEB.css = screen - -rtl.css = rtl -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. -[replacements] - -;-------------------------------------------------------------------------- -;------ guaranteed dokuwiki color placeholders that every plugin can use -; main text and background colors -__text__ = "#000" -__background__ = "#fff" -; alternative text and background colors -__text_alt__ = "#638c9c" -__background_alt__ = "#dee7ec" -; neutral text and background colors -__text_neu__ = "#666" -__background_neu__ = "#f5f5f5" -; border color -__border__ = "#dadada" -;-------------------------------------------------------------------------- - -; other text and background colors -__text_other__ = "#ccc" -__background_other__ = "#f7f9fa" - -; these are used for links -__extern__ = "#436976" -__existing__ = "#090" -__missing__ = "#f30" - -; highlighting search snippets -__highlight__ = "#ff9" - - -;-------------------------------------------------------------------------- -;------ for keeping old templates and plugins compatible to the old pattern -; (to be deleted at the next or after next release) -__white__ = "#fff" -__lightgray__ = "#f5f5f5" -__mediumgray__ = "#ccc" -__darkgray__ = "#666" -__black__ = "#000" - -; these are the shades of blue -__lighter__ = "#f7f9fa" -__light__ = "#eef3f8" -__medium__ = "#dee7ec" -__dark__ = "#8cacbb" -__darker__ = "#638c9c" diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-grey/UWEB.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/lib/tpl/slitaz-grey/UWEB.css Wed Jan 15 14:24:29 2014 +0100 @@ -0,0 +1,17 @@ +/** + * This stylesheet adds the Universal Wiki Edit Button log to the edit page button + * + * For more info about this Wiki community project visit http://www.aboutus.org/uweb + + +html>body div.dokuwiki form.btn_edit input.button { + padding: 0.125em 0.4em 0.125em 2em; + background: __background__ url(images/UWEB.png) no-repeat 0.2em 0.2em; +} + +/* nice alphatransparency background except for IE <7 */ +html>body div.dokuwiki form.btn_edit input.button { + padding: 0px 0px 0px 18px; + background: url(images/UWEB.png) no-repeat left bottom; +} + diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-grey/design.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/lib/tpl/slitaz-grey/design.css Wed Jan 15 14:24:29 2014 +0100 @@ -0,0 +1,1017 @@ +/** + * Design elements for default Template + * + * @author Andreas Gohr + * @author Anika Henke + */ + +/* -------------- general elements --------------- */ + +/* * { padding: 0; margin: 0; } */ + +/* SliTaz stuff */ +html { + min-height: 102%; +} + +body { + background: #ffffff; + color: black; + font: 13px sans-serif, vernada, arial; + margin: 0; + min-width: 780px; +} + +/* Languges */ + +#lang { + position: absolute; + top: 40px; + right: 0px; + text-align: right; + width: auto; + margin: 0; + padding: 4px 4px 4px 20px; + font-size: 11px; + font-weight: bold; +} + +#lang a { + text-decoration: none; + font-weight: bold +} + +#lang a:hover, div.plugin_translation a:hover { + background: transparent; + color: #b64b22; +} + +#lang img { + vertical-align: middle; +} + +/* Header and title */ + +#header { + background: #351a0a; + color: #fff; + width: 100%; + height: 40px; +} + +#header h1 { + margin: 0; + padding: 8px 0 0 42px; + width: 250px; +} + +#header h1 a { + color: white; + text-decoration: none; + font-size: 20px; + font-style: italic; +} + +#header h1 a:hover, #network a:hover { + color: #d66018; +} + +/* Logo */ + +#logo { + background: url(images/logo.png) no-repeat left; + position: absolute; + float: left; + left: 0px; + top: 0px; + width: 40px; + height: 40px; +} + +/* SliTaz Network */ + +#network { + float: right; + padding: 10px 5px 0; + font-size: 12px; +} + +#network a { padding: 0 6px; color: #fff; + font-weight: bold; + text-decoration: none;} +#network img { vertical-align: middle; } + +#block { + min-height: 100px; + background: #d66018; + padding: 20px 12% 0; + text-align: center; + color: #333; + border-bottom: 1px solid #f5f5f5; +} + +/* Page content */ + +#content { + background: white; + color: black; + text-align: justify; + height: auto; + margin: 0; + padding: 40px 80px; +} + +#content li, #content-full li { + line-height: 1.5em; + text-align: left; +} + +/* Box and block. */ + +.tools { + width: 100%; + min-height: 30px; + background-color: #cc5b17; + padding: 8px 5px 1px 5px; + margin: 10px 0; + vertical-align: middle; + text-align: left; +} + +.tools img, .tools form { vertical-align: middle; } +.tools span { font-size: 110%; } +div.dokuwiki .tools input.button { + color: #fff; +} +div.dokuwiki .tools input:hover.button { + color: #351a0a; +} + +#footer, .tools { + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + border-radius: 4px; +} + +.right_box { + width: 50%; + float: right; +} + +/* HTML styles */ + +h1, h1 a { + color: #888; + background: transparent; + text-align: left; + margin: 0; + font-size: 130%; + font-weight: bold; + padding: 0; + text-decoration: none !important; +} + +h2, h2 a { + color: #666; + padding: 0; + margin: 20px 0 0 0; + font-size: 130%; + font-weight: bold; + text-decoration: none !important; +} + +h3, .tools span { + font-weight: bold; + color: #666666; + background: transparent; +} + +h3 img { + vertical-align: middle; + width: 20px; + height: 20px; + padding-right: 4px; +} + +a { + text-decoration: underline; + color: #103A5E; + background: inherit; +} + +a:hover { + text-decoration: none; + color: blue; + background: inherit; +} + +code { + font-size: 12px; + color: #669900; + background: inherit; +} + +tt { + color: #15EE15; + background: inherit; +} + +img { + border: 0pt none; +} + +pre { + padding: 5px; + color: black; + background: #E1E0B0; +} + +pre.script { + padding: 10px; + color: black; + background: #E8E8E8; + border: 1px inset #606060; +} + +textarea { + background: #E5E5E5; + margin-top: 12px; +} + +.year:after { + /* content: "2007-2014"; */ + content: "2014"; +} + +/* Footer */ + +#footer { + background: #f1f1f1; + text-align: center; + border-top: 1px solid #ddd; + padding: 40px; + color: #666; + clear: both; + margin-bottom: -2%; +} +#footer a { + background: inherit; + color: #666666; +} +#footer a:hover { + background: inherit; + color: #333333; +} +#footer ul { + list-style-type: none; +} +#footer li { + padding: 2px; +} +#footer h4 { + margin: 0 20px; + font-size: 125%; +} + +/* the document */ +div.dokuwiki div.page { + text-align: justify; + background: #ffffff; +} + +div.dokuwiki table { + font-size: 100%; +} + +div.dokuwiki tr, +div.dokuwiki td, +div.dokuwiki th { +} + +div.dokuwiki img { + border: 0; +} + +div.dokuwiki p, +div.dokuwiki blockquote, +div.dokuwiki table, +div.dokuwiki pre { + margin: 0 0 1.0em 0; +} + +div.dokuwiki hr { + border: 0px; + border-top: 1px solid __border__; + text-align: center; + height: 0px; +} + +div.dokuwiki div.nothing { + text-align: center; + margin: 2em; +} + +/* ---------------- forms ------------------------ */ + +div.dokuwiki form { + border: none; + display: inline; +} + +div.dokuwiki label.block { + display: block; + text-align: right; + font-weight: bold; + min-height: 20px; + margin: 0; +} + +div.dokuwiki label.simple { + display: block; + text-align: left; + font-weight: normal; +} + +div.dokuwiki label.block input.edit { + width: 50%; +} + +div.dokuwiki fieldset { + width: 300px; + text-align: center; + border: 1px solid __border__; + padding: 0.5em; + margin: auto; +} + +div.dokuwiki textarea.edit { + font-family: monospace; + font-size: 14px; + color: __text__; + background-color: __background__; + border: 1px solid __border__; + padding: 0.3em 0 0 0.3em; + width: 100%; +} + +div.dokuwiki input.edit, +div.dokuwiki select.edit { + font-size: 100%; + border: 1px solid __border__; + color: __text__; + background-color: __background__; + vertical-align: middle; + margin: 0px; + padding: 0.20em 0.3em; + display: inline; +} + +div.dokuwiki select.edit { + padding: 0.1em 0; +} + +div.dokuwiki input.missing { + font-size: 100%; + border: 1px solid __border__; + color: __text__; + background-color: #ffcccc; + vertical-align: middle; + margin: 1px; + padding: 0.20em 0.3em; + display: inline; +} + +/* disabled style - not understood by IE */ +div.dokuwiki textarea.edit[disabled], +div.dokuwiki textarea.edit[readonly], +div.dokuwiki input.edit[disabled], +div.dokuwiki input.edit[readonly], +div.dokuwiki select.edit[disabled] { + background-color: __background_neu__!important; + color: __text_neu__!important; +} + +/* edit form */ +div.dokuwiki div.toolbar, +div.dokuwiki div#wiki__editbar { + margin: 2px 0; + text-align: left; +} +div.dokuwiki div#size__ctl { + float: right; + width: 60px; + height: 2.7em; +} +div.dokuwiki #size__ctl img { + cursor: pointer; +} +div.dokuwiki div#wiki__editbar div.editButtons { + float: left; + padding: 0 1.0em 0.7em 0; +} +div.dokuwiki div#wiki__editbar div.summary { + float: left; +} +div.dokuwiki .nowrap { + white-space: nowrap; +} +div.dokuwiki div#draft__status { + float: right; + color: __text_alt__; +} + +/* --------- buttons ------------------- */ + + +div.dokuwiki input.button, +div.dokuwiki button.button { + border: 0px solid #eaeaea; + color: #0F314E; + background-color: transparent; + vertical-align: middle; + text-decoration: none; + font-size: 12px; + font-weight: bold; + cursor: pointer; + padding: 0; +} + +div.dokuwiki input:hover.button { + color: #b64b22; +} + +* html div.dokuwiki input.button, +* html div.dokuwiki button.button { + height: 24px; +} + +div.dokuwiki div.secedit input.button { + border: 1px solid #eaeaea; + color: #3E1220; + background-color: transparent; + vertical-align: middle; + text-decoration: none; + margin: 0; + padding: 0; + font-size: 10px; + cursor: pointer; + float: right; + display: inline; +} + +/* ----------- page navigator ------------- */ + +div.dokuwiki div.pagenav { + margin: 1em 0 0 0; +} + +div.dokuwiki div.pagenav-prev { + text-align: right; + float: left; + width: 49% +} + +div.dokuwiki div.pagenav-next { + text-align: left; + float: right; + width: 49% +} + +/* --------------- Links ------------------ */ + +div.dokuwiki a:link, +div.dokuwiki a:visited { + color: __extern__; + text-decoration: none; +} +div.dokuwiki a:hover, +div.dokuwiki a:active { + color: __text__; + text-decoration: underline; +} + +div.dokuwiki h3 a, +div.dokuwiki h4 a, +div.dokuwiki h5 a, +div.dokuwiki a.nolink { + color: #6c0023 !important; + text-decoration: none !important; +} + +/* external link */ +div.dokuwiki a.urlextern { + background: transparent url(images/link_icon.gif) 0px 1px no-repeat; + padding: 1px 0px 1px 16px; +} + +/* windows share */ +div.dokuwiki a.windows { + background: transparent url(images/windows.gif) 0px 1px no-repeat; + padding: 1px 0px 1px 16px; +} + +/* interwiki link (icon are set by dokuwiki) */ +div.dokuwiki a.interwiki { +} + +/* link to some embedded media */ +div.dokuwiki a.media { +} + +div.dokuwiki a.urlextern:link, +div.dokuwiki a.windows:link, +div.dokuwiki a.interwiki:link { + color: __extern__; +} + +div.dokuwiki a.urlextern:visited, +div.dokuwiki a.windows:visited, +div.dokuwiki a.interwiki:visited { + color: purple; +} +div.dokuwiki a.urlextern:hover, +div.dokuwiki a.urlextern:active, +div.dokuwiki a.windows:hover, +div.dokuwiki a.windows:active, +div.dokuwiki a.interwiki:hover, +div.dokuwiki a.interwiki:active { + color: __text__; +} + +/* email link */ +div.dokuwiki a.mail { + background: transparent url(images/mail_icon.gif) 0px 1px no-repeat; + padding: 1px 0px 1px 16px; +} + +/* existing wikipage */ +div.dokuwiki a.wikilink1 { + color: #0F314E; + text-decoration: underline; +} +div.dokuwiki a.wikilink1:hover { + text-decoration: none; + color: blue; +} + +/* not existing wikipage */ +div.dokuwiki a.wikilink2 { + color: __missing__ !important; + text-decoration: none !important; + border-bottom: dashed 1px __missing__ !important; +} + +/* ------------- Page elements ----------------- */ + +div.dokuwiki div.preview { + background-color: __background_neu__; + margin: 0 0 0 2em; + padding: 4px; + border: 1px dashed __text__; +} + +div.dokuwiki div.breadcrumbs { + background-color: #f1f1f1; + color: __text_neu__; + font-size: 85%; + padding: 1px 0px 1px 18px; + margin: 0px 100px 0px 100px; +} + +div.dokuwiki span.user { + color: __text_other__; + font-size: 90%; +} + +div.dokuwiki li.minor { + color: __text_neu__; + font-style: italic; +} + +/* embedded images */ +div.dokuwiki img.media { + margin: 3px; +} + +div.dokuwiki img.medialeft { + border: 0; + float: left; + margin: 0 1.5em 0 0; +} + +div.dokuwiki img.mediaright { + border: 0; + float: right; + margin: 0 0 0 1.5em; +} + +div.dokuwiki img.mediacenter { + border: 0; + display: block; + margin: 0 auto; +} + +/* smileys */ +div.dokuwiki img.middle { + vertical-align: middle; +} + +div.dokuwiki acronym { + cursor: help; + border-bottom: 1px dotted __text__; +} + +/* general headline setup */ +div.dokuwiki h1, +div.dokuwiki h2, +div.dokuwiki h3, +div.dokuwiki h4, +div.dokuwiki h5 { + background-color: transparent; + clear: left; +} + +/* unordered lists */ +div.dokuwiki ul { + line-height: 1.5em; + list-style-type: square; + list-style-image: none; + margin: 0 0 0.5em 1.5em; + color: __text_alt__; +} + +/* ordered lists */ +div.dokuwiki ol { + line-height: 1.5em; + list-style-image: none; + margin: 0 0 0.5em 1.5em; + color: __text_alt__; + font-weight: bold; +} + +/* the list items overriding the ul/ol definition */ +div.dokuwiki .li { + color: __text__; + font-weight: normal; +} + +div.dokuwiki ol {list-style-type: decimal} +div.dokuwiki ol ol {list-style-type: upper-roman} +div.dokuwiki ol ol ol {list-style-type: lower-alpha} +div.dokuwiki ol ol ol ol {list-style-type: lower-greek} + +div.dokuwiki li.open { + list-style-image: url(images/open.gif); + /*list-style-type: circle;*/ +} + +div.dokuwiki li.closed { + list-style-image: url(images/closed.gif); + /*list-style-type: disc;*/ +} + +div.dokuwiki blockquote { + border-left: 2px solid __border__; + padding-left: 3px; +} + +div.dokuwiki pre { + font-size: 100%; + padding: 5px; + color: black; + background: #E1E0B0; + border: 0; + overflow: auto; +} + +/* code blocks by indention */ +div.dokuwiki pre.pre { + background-color: __background_other__; +} + +/* code blocks by code tag */ +div.dokuwiki pre.code { + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + background-color: #f8f8f8; + border: 1px solid #ddd; + padding: 10px; + +} + +/* inline code words */ +div.dokuwiki code { + font-size: 120%; +} + +/* code blocks by file tag */ +div.dokuwiki pre.file { + background-color: __background_alt__; +} + +/* inline tables */ +div.dokuwiki table.inline { + background-color: __background__; + border-spacing: 0px; + border-collapse: collapse; +} + +div.dokuwiki table.inline th { + padding: 3px; + border: 1px solid __border__; + background-color: __background_alt__; +} + +div.dokuwiki table.inline td { + padding: 3px; + border: 1px solid __border__; +} + +/* ---------- table of contents ------------------- */ + +div.dokuwiki div.toc { + margin: 1.2em 0 0 2em; + float: right; + width: 200px; + font-size: 80%; + clear: both; +} + +div.dokuwiki div.tocheader { + border: 1px solid __border__; + background-color: __background_alt__; + text-align: left; + font-weight: bold; + padding: 3px; + margin-bottom: 2px; +} + +div.dokuwiki span.toc_open, +div.dokuwiki span.toc_close { + border: 0.4em solid __background_alt__; + float: right; + display: block; + margin: 0.4em 3px 0 0; +} + +div.dokuwiki span.toc_open span, +div.dokuwiki span.toc_close span { + display: none; +} + +div.dokuwiki span.toc_open { + margin-top: 0.4em; + border-top: 0.4em solid __text__; +} + +div.dokuwiki span.toc_close { + margin-top: 0; + border-bottom: 0.4em solid __text__; +} + +div.dokuwiki #toc__inside { + border: 1px solid __border__; + background-color: __background__; + text-align: left; + padding: 0.5em 0 0.7em 0; +} + +div.dokuwiki ul.toc { + list-style-type: none; + list-style-image: none; + line-height: 1.2em; + padding-left: 1em; + margin: 0; +} + +div.dokuwiki ul.toc li { + background: transparent url(images/tocdot2.gif) 0 0.6em no-repeat; + padding-left: 0.4em; +} + +div.dokuwiki ul.toc li.clear { + background-image: none; + padding-left: 0.4em; +} + +div.dokuwiki a.toc:link, +div.dokuwiki a.toc:visited { + color: __extern__; +} + +div.dokuwiki a.toc:hover, +div.dokuwiki a.toc:active { + color: __text__; +} + +/* ---------------------------- Diff rendering --------------------------*/ +div.dokuwiki table.diff { + background-color: __background__; + width: 100%; +} +div.dokuwiki td.diff-blockheader { + font-weight: bold; +} +div.dokuwiki table.diff th { + border-bottom: 1px solid __border__; + font-size: 120%; + width: 50%; + font-weight: normal; + text-align: left; +} +div.dokuwiki table.diff td { + font-family: monospace; + font-size: 100%; +} +div.dokuwiki td.diff-addedline { + background-color: #ddffdd; +} +div.dokuwiki td.diff-deletedline { + background-color: #ffffbb; +} +div.dokuwiki td.diff-context { + background-color: __background_neu__; +} +div.dokuwiki table.diff td.diff-addedline strong, +div.dokuwiki table.diff td.diff-deletedline strong { + color: red; +} + +/* --------------------- footnotes -------------------------------- */ + +div.dokuwiki div.footnotes { + clear: both; + border-top: 1px solid __border__; + padding-left: 1em; + margin-top: 1em; +} + +div.dokuwiki div.fn { + font-size: 90%; +} + +div.dokuwiki a.fn_bot { + font-weight: bold; +} + +/* insitu-footnotes */ +div.insitu-footnote { + font-size: 80%; + line-height: 1.2em; + border: 1px solid __border__; + background-color: __background_other__; + text-align: left; + padding: 4px; + max-width: 40%; /* IE's width is handled in javascript */ +} + +/* overcome IE issue with one line code or file boxes which require h. scrolling */ +* html .insitu-footnote pre.code, +* html .insitu-footnote pre.file { + padding-bottom: 18px; +} + +/* --------------- search result formating --------------- */ +div.dokuwiki .search_result { + margin-bottom: 6px; + padding: 0 10px 0 30px; +} + +div.dokuwiki .search_snippet { + color: __text_other__; + font-size: 12px; + margin-left: 20px; +} + +div.dokuwiki .search_sep { + color: __text__; +} + +div.dokuwiki .search_hit { + color: __text__; + background-color: __highlight__; +} +div.dokuwiki strong.search_hit { + font-weight: normal; +} + +div.dokuwiki div.search_quickresult { + margin: 0 0 15px 30px; + padding: 0 10px 10px 0; + border-bottom: 1px dashed __border__; +} +div.dokuwiki div.search_quickresult h3 { + margin: 0 0 1.0em 0; + font-size: 1em; + font-weight: bold; +} + +div.dokuwiki ul.search_quickhits { + margin: 0 0 0.5em 1.0em; +} + +div.dokuwiki ul.search_quickhits li { + margin: 0 1.0em 0 1.0em; + float:left; + width: 30%; +} + +/* ------------------ Additional ---------------------- */ + +div.footerinc { + text-align: left; + margin: 10px 80px; +} +.footerinc a img { + opacity: 0.5; + border: 0; +} + +.footerinc a:hover img { + opacity: 1; +} + +/* ---------- AJAX quicksearch ----------- */ + +div.dokuwiki div.ajax_qsearch { + position: absolute; + right: 237px;; + width: 200px; + opacity: 0.9; + display: none; + font-size: 80%; + line-height: 1.2em; + border: 1px solid __border__; + background-color: __background_other__; + text-align: left; + padding: 4px; +} + +/* --------- Toolbar -------------------- */ +button.toolbutton { + background-color: transparent; + padding: 0px; + margin: 0 1px 0 0; + border: 1px solid __border__; + cursor: pointer; +} + +div.picker { + width: 250px; + border: 1px solid __border__; + background-color: __background_alt__; +} + +button.pickerbutton { + padding: 0px; + margin: 0 1px 1px 0; + border: 0; + background-color: transparent; + font-size: 80%; + cursor: pointer; +} + +/* --------------- Image Details ----------------- */ + +div.dokuwiki div.img_big { + float: left; + margin-right: 0.5em; +} + +div.dokuwiki dl.img_tags dt { + font-weight: bold; + background-color: __background_alt__; +} +div.dokuwiki dl.img_tags dd { + background-color: __background_neu__; +} + +div.dokuwiki div.imagemeta { + color: __text_neu__; + font-size: 70%; + line-height: 95%; +} + +div.dokuwiki div.imagemeta img.thumb { + float:left; + margin-right: 0.1em; +} + +div.notify { + background: #FFCE21; + color: #222; + border: 1px solid #000; + font-size: 90%; + margin: 0; + padding: 4px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + border-radius: 4px; + position: absolute; + top: 140px; + right: 20px; + width: 400px; +} + +#access div.notify a { text-decoration: underline; } +#access div.notify a:hover { text-decoration: none; } diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-grey/detail.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/lib/tpl/slitaz-grey/detail.php Wed Jan 15 14:24:29 2014 +0100 @@ -0,0 +1,92 @@ + + */ + +// must be run from within DokuWiki +if (!defined('DOKU_INC')) die(); + +?> + + + + + + <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?> + [<?php echo strip_tags($conf['title'])?>] + + + + + + + + +
+ + +
+ + +

+ +
+ +
+ +
+

+ +

+ +

+ +
+ '.$lang['img_date'].':
'.strftime($conf['dformat'],$t).'
'; + + $t = tpl_img_getTag('File.Name'); + if($t) print '
'.$lang['img_fname'].':
'.hsc($t).'
'; + + $t = tpl_img_getTag(array('Iptc.Byline','Exif.TIFFArtist','Exif.Artist','Iptc.Credit')); + if($t) print '
'.$lang['img_artist'].':
'.hsc($t).'
'; + + $t = tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright')); + if($t) print '
'.$lang['img_copyr'].':
'.hsc($t).'
'; + + $t = tpl_img_getTag('File.Format'); + if($t) print '
'.$lang['img_format'].':
'.hsc($t).'
'; + + $t = tpl_img_getTag('File.NiceSize'); + if($t) print '
'.$lang['img_fsize'].':
'.hsc($t).'
'; + + $t = tpl_img_getTag('Simple.Camera'); + if($t) print '
'.$lang['img_camera'].':
'.hsc($t).'
'; + + $t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category')); + if($t) print '
'.$lang['img_keywords'].':
'.hsc($t).'
'; + + ?> +
+ +
+ + +
+
+ + + diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-grey/images/UWEB.png Binary file doc/lib/tpl/slitaz-grey/images/UWEB.png has changed diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-grey/images/button-css.png Binary file doc/lib/tpl/slitaz-grey/images/button-css.png has changed diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-grey/images/button-dw.png Binary file doc/lib/tpl/slitaz-grey/images/button-dw.png has changed diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-grey/images/button-rss.png Binary file doc/lib/tpl/slitaz-grey/images/button-rss.png has changed diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-grey/images/button-xhtml.png Binary file doc/lib/tpl/slitaz-grey/images/button-xhtml.png has changed diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-grey/images/favicon.ico Binary file doc/lib/tpl/slitaz-grey/images/favicon.ico has changed diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-grey/images/header-img.png Binary file doc/lib/tpl/slitaz-grey/images/header-img.png has changed diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-grey/images/home.png Binary file doc/lib/tpl/slitaz-grey/images/home.png has changed diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-grey/images/link_icon.gif Binary file doc/lib/tpl/slitaz-grey/images/link_icon.gif has changed diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-grey/images/logo.png Binary file doc/lib/tpl/slitaz-grey/images/logo.png has changed diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-grey/images/mail_icon.gif Binary file doc/lib/tpl/slitaz-grey/images/mail_icon.gif has changed diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-grey/images/network.png Binary file doc/lib/tpl/slitaz-grey/images/network.png has changed diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-grey/images/tools.png Binary file doc/lib/tpl/slitaz-grey/images/tools.png has changed diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-grey/layout.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/lib/tpl/slitaz-grey/layout.css Wed Jan 15 14:24:29 2014 +0100 @@ -0,0 +1,54 @@ +/** + * Tableless Layout for default template + * + * @author Andreas Gohr + * @author moraes + */ + +/* -------------- top row --------------- */ + +div.dokuwiki .pagename { + float: left; + font-size: 200%; + font-weight: bolder; + color: __background_alt__; + text-align: left; + vertical-align: middle; +} + +div.dokuwiki .pagename a { + color: __extern__ !important; + text-decoration: none !important; +} + +/* --------------- top and bottom bar ---------------- */ + +#bar__bottomleft { margin-top: 3px;} + +div.dokuwiki .bar-left { + float: left; + margin-left: 14px; +} + +div.dokuwiki .bar-right { + float: right; + text-align: right; + margin-right: 14px; +} + +/* ------------- File Metadata ----------------------- */ + +div.dokuwiki div.meta { + clear: both; + margin-top: 1em; + color: #666666; + font-size: 85%; +} + +div.dokuwiki div.meta div.user { + float: left; +} + +div.dokuwiki div.meta div.doc { + text-align: right; +} diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-grey/main.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/lib/tpl/slitaz-grey/main.php Wed Jan 15 14:24:29 2014 +0100 @@ -0,0 +1,142 @@ + + * + */ + +// must be run from within DokuWiki +if (!defined('DOKU_INC')) die(); + +?> + + + + + + <?php tpl_pagetitle()?> + [<?php echo strip_tags($conf['title'])?>] + + + + + + +
+ + + + + +
+ + +
+ showTranslations(); + ?> +
+
+ SliTaz GNU/Linux official and community documentation wiki. +
+
+ .png + +
+ + +
+ + + + + +
+
+ + +
+ + + + + + + +
 
+ + +
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
+ + +
+ + +
+ + + + + + + +
+ +
+ + + diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-grey/media.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/lib/tpl/slitaz-grey/media.css Wed Jan 15 14:24:29 2014 +0100 @@ -0,0 +1,200 @@ +/** + * The CSS in here cotrols the appearance of the media manager + */ + +#media__manager { + height: 100%; + overflow: hidden; +} + +#media__left { + width: 30%; + border-right: solid 1px __border__; + + height: 100%; + overflow: auto; + position: absolute; + left: 0; +} + +#media__right { + width: 69.7%; + + height: 100%; + overflow: auto; + position: absolute; + right: 0; +} + +#media__manager h1 { + margin: 0; + padding: 0; + margin-bottom: 0.5em; +} + +/* --- Tree formatting --- */ + +#media__tree img { + float:left; + padding: 0.5em 0.3em 0 0; +} + +#media__tree ul { + list-style-type: none; + list-style-image: none; +} + +#media__tree li { + clear: left; + list-style-type: none; + list-style-image: none; +} +*+html #media__tree li, +* html #media__tree li { + border: 1px solid __background__; +}/* I don't understand this, but this fixes a style bug in IE; +it's dirty, so any "real" fixes are welcome */ + +/* --- options --- */ + +#media__opts { + padding-left: 1em; + margin-bottom: 0.5em; +} + +#media__opts input { + float: left; + position: absolute; +} +*+html #media__opts input, +* html #media__opts input { + position: static; +} + +#media__opts label { + display: block; + float: left; + margin-left: 30px; +} +*+html #media__opts label, +* html #media__opts label { + margin-left: 10px; +} + +#media__opts br { + clear: left; +} + +/* --- file list --- */ + +#media__content img.load { + margin: 1em auto; +} + +#media__content #scroll__here { + border: 1px dashed __border__; +} + +#media__content .odd { + background-color: __background_other__; + padding: 0.4em; +} + +#media__content .even { + padding: 0.4em; +} + +#media__content a.mediafile { + margin-right: 1.5em; + font-weight: bold; +} + +#media__content div.detail { + padding: 0.3em 0 0.3em 2em; +} + +#media__content div.detail div.thumb { + float: left; + width: 130px; + text-align: center; + margin-right: 0.4em; +} + + +#media__content img.btn { + vertical-align: text-bottom; +} + +#media__content div.example { + color: __text_neu__; + margin-left: 1em; +} + +/* --- upload form --- */ + +#media__content div.upload { + font-size: 90%; + padding: 0 0.5em 0.5em 0.5em; +} + +#media__content form#dw__upload { + display: block; + border-bottom: solid 1px __border__; + padding: 0 0.5em 1em 0.5em; +} +#media__content form#dw__upload fieldset { + padding: 0; + margin: 0; + border: none; + width: auto; +} +#media__content form#dw__upload p { + text-align: left; + padding: 0.25em 0; + margin: 0; + line-height: 1.0em; +} +#media__content form#dw__upload label.check { + float: none; + width: auto; + margin-left: 11.5em; +} + +/* --- meta edit form --- */ + +#media__content form.meta { + display: block; + padding: 0 0 1em 0; +} + +#media__content form.meta label { + display: block; + width: 25%; + float: left; + font-weight: bold; + margin-left: 1em; + clear: left; +} + +#media__content form.meta .edit { + font: 100% "Lucida Grande", Verdana, Lucida, Helvetica, Arial, sans-serif; + float: left; + width: 70%; + padding-right: 0; + padding-left: 0.2em; + margin: 2px; +} + +#media__content form.meta textarea.edit { + height: 8em; +} + +#media__content form.meta div.metafield { + clear: left; +} + +#media__content form.meta div.buttons { + clear: left; + margin-left: 20%; + padding-left: 1em; +} diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-grey/mediamanager.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/lib/tpl/slitaz-grey/mediamanager.php Wed Jan 15 14:24:29 2014 +0100 @@ -0,0 +1,44 @@ + + + */ +?> + + + + + <?php echo hsc($lang['mediaselect'])?> + [<?php echo strip_tags($conf['title'])?>] + + + + + + +
+
+ +

+ + +
+ + +
+ +
+ +
+
+ + diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-grey/print.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/lib/tpl/slitaz-grey/print.css Wed Jan 15 14:24:29 2014 +0100 @@ -0,0 +1,235 @@ + +body { + font: 10pt "Lucida Grande", Verdana, Lucida, Helvetica, Arial, sans-serif; + background-color: White; + color: Black; +} + +table { + font-size: 100%; + padding:0; + margin:0; +} + +tr,td,th {padding:0; margin:0;} + +img {border:0} + +a { + color:#000000; + text-decoration:none; + background: none !important; +} + + +div.meta { + clear:both; + margin-top: 1em; + font-size:70%; + text-align:right; +} + + +div.notify, +div.info, +div.success, +div.error, +div.breadcrumbs, +div.secedit { + display:none; +} + +/* --------------------- Text formating -------------------------------- */ + +/* external link */ +a.urlextern:after { + content: " [" attr(href) "]"; + font-size: 90%; +} + +/* interwiki link */ +a.interwiki:after { + content: " [" attr(href) "]"; + font-size: 90%; +} + +/* email link */ +a.mail:after { + content: " [" attr(href) "]"; + font-size: 90%; +} + +/* existing wikilink */ +a.wikilink1 {text-decoration:underline } + +/* the document */ +div.page { + text-align: justify; +} + +/* general headline setup */ +h1, h2, h3, h4, h5 { + color: Black; + background-color: transparent; + font-family: "Lucida Grande", Verdana, Lucida, Helvetica, Arial, sans-serif; + font-size: 100%; + font-weight: normal; + margin-left: 0; + margin-right: 0; + margin-top: 0; + margin-bottom: 1em; + padding-left: 0; + padding-right: 0; + padding-top: 0.5em; + padding-bottom: 0; + border-bottom: 1px solid #000000; + clear:left; +} + +/* special headlines */ +h1 {font-size: 160%; font-weight: bold;} +h2 {font-size: 150%; } +h3 {font-size: 140%; border-bottom: none; } +h4 {font-size: 120%; border-bottom: none; } +h5 {font-size: 100%; border-bottom: none; } + +/* embedded images */ +img.media { + margin: 3px; +} + +img.medialeft { + border: 0; + float: left; + margin: 0 1.5em 0 0; +} + +img.mediaright { + border: 0; + float: right; + margin: 0 0 0 1.5em; +} + +/* unordered lists */ +ul { + line-height: 1.5em; + list-style-type: square; + margin: 0 0 0.5em 1.5em; + padding: 0; + +} + +/* ordered lists */ +ol { + line-height: 1.5em; + margin: 0 0 0.5em 2.5em; + padding: 0; + font-weight: normal; +} +ol ol { + margin: 0 0 0.5em 1.5em; +} + +div.dokuwiki ol {list-style-type: decimal} +div.dokuwiki ol ol {list-style-type: upper-roman} +div.dokuwiki ol ol ol {list-style-type: lower-alpha} +div.dokuwiki ol ol ol ol {list-style-type: lower-greek} + +/* the list items overriding the ol definition */ +span.li { + font-weight: normal; +} + +/* code blocks by indention */ +pre.pre { + font-size: 8pt; + padding: 0.5em; + border: 1px dashed #000000; + color: Black; + overflow: visible; +} + +/* code blocks by code tag */ +pre.code { + font-size: 8pt; + padding: 0.5em; + border: 1px dashed #000000; + color: Black; + overflow: visible; +} + +/* inline code words */ +code { + font-size: 120%; +} + +/* code blocks by file tag */ +pre.file { + font-size: 8pt; + padding: 0.5em; + border: 1px dotted #000000; + color: Black; + overflow: visible; +} + +/* footnotes */ +div.footnotes{ + clear:both; + border-top: 1px solid #000000; + padding-left: 1em; + margin-top: 1em; +} + +div.fn{ + font-size:90%; +} + +a.fn_top{ + vertical-align:super; + font-size:80%; +} + +a.fn_bot{ + vertical-align:super; + font-size:80%; + font-weight:bold; +} + +acronym{ + border: 0; +} + +/* ---------- inline tables ------------------- */ + +table.inline { + font-size: 80%; + background-color: #ffffff; + border-spacing: 0px; + border-collapse: collapse; +} + +table.inline th { + padding: 3px; + border: 1px solid #000000; + border-bottom: 2px solid #000000; +} + +table.inline td { + padding: 3px; + border: 1px solid #000000; +} + +.leftalign{ + text-align: left; +} + +.centeralign{ + text-align: center; +} + +.rightalign{ + text-align: right; +} + +.toc, .footerinc, .header, .bar, .user {display:none} + diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-grey/qrcode.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/lib/tpl/slitaz-grey/qrcode.js Wed Jan 15 14:24:29 2014 +0100 @@ -0,0 +1,733 @@ +/* qr.js -- QR code generator in Javascript (revision 2011-01-19) + * Written by Kang Seonghoon . + * + * This source code is in the public domain; if your jurisdiction does not + * recognize the public domain the terms of Creative Commons CC0 license + * apply. In the other words, you can always do what you want. + */ + +var QRCode = (function(){ + +/* Quick overview: QR code composed of 2D array of modules (a rectangular + * area that conveys one bit of information); some modules are fixed to help + * the recognition of the code, and remaining data modules are further divided + * into 8-bit code words which are augumented by Reed-Solomon error correcting + * codes (ECC). There could be multiple ECCs, in the case the code is so large + * that it is helpful to split the raw data into several chunks. + * + * The number of modules is determined by the code's "version", ranging from 1 + * (21x21) to 40 (177x177). How many ECC bits are used is determined by the + * ECC level (L/M/Q/H). The number and size (and thus the order of generator + * polynomial) of ECCs depend to the version and ECC level. + */ + +// per-version information (cf. JIS X 0510:2004 pp. 30--36, 71) +// +// [0]: the degree of generator polynomial by ECC levels +// [1]: # of code blocks by ECC levels +// [2]: left-top positions of alignment patterns +// +// the number in this table (in particular, [0]) does not exactly match with +// the numbers in the specficiation. see augumenteccs below for the reason. +var VERSIONS = [ + null, + [[10, 7,17,13], [ 1, 1, 1, 1], []], + [[16,10,28,22], [ 1, 1, 1, 1], [4,16]], + [[26,15,22,18], [ 1, 1, 2, 2], [4,20]], + [[18,20,16,26], [ 2, 1, 4, 2], [4,24]], + [[24,26,22,18], [ 2, 1, 4, 4], [4,28]], + [[16,18,28,24], [ 4, 2, 4, 4], [4,32]], + [[18,20,26,18], [ 4, 2, 5, 6], [4,20,36]], + [[22,24,26,22], [ 4, 2, 6, 6], [4,22,40]], + [[22,30,24,20], [ 5, 2, 8, 8], [4,24,44]], + [[26,18,28,24], [ 5, 4, 8, 8], [4,26,48]], + [[30,20,24,28], [ 5, 4,11, 8], [4,28,52]], + [[22,24,28,26], [ 8, 4,11,10], [4,30,56]], + [[22,26,22,24], [ 9, 4,16,12], [4,32,60]], + [[24,30,24,20], [ 9, 4,16,16], [4,24,44,64]], + [[24,22,24,30], [10, 6,18,12], [4,24,46,68]], + [[28,24,30,24], [10, 6,16,17], [4,24,48,72]], + [[28,28,28,28], [11, 6,19,16], [4,28,52,76]], + [[26,30,28,28], [13, 6,21,18], [4,28,54,80]], + [[26,28,26,26], [14, 7,25,21], [4,28,56,84]], + [[26,28,28,30], [16, 8,25,20], [4,32,60,88]], + [[26,28,30,28], [17, 8,25,23], [4,26,48,70,92]], + [[28,28,24,30], [17, 9,34,23], [4,24,48,72,96]], + [[28,30,30,30], [18, 9,30,25], [4,28,52,76,100]], + [[28,30,30,30], [20,10,32,27], [4,26,52,78,104]], + [[28,26,30,30], [21,12,35,29], [4,30,56,82,108]], + [[28,28,30,28], [23,12,37,34], [4,28,56,84,112]], + [[28,30,30,30], [25,12,40,34], [4,32,60,88,116]], + [[28,30,30,30], [26,13,42,35], [4,24,48,72,96,120]], + [[28,30,30,30], [28,14,45,38], [4,28,52,76,100,124]], + [[28,30,30,30], [29,15,48,40], [4,24,50,76,102,128]], + [[28,30,30,30], [31,16,51,43], [4,28,54,80,106,132]], + [[28,30,30,30], [33,17,54,45], [4,32,58,84,110,136]], + [[28,30,30,30], [35,18,57,48], [4,28,56,84,112,140]], + [[28,30,30,30], [37,19,60,51], [4,32,60,88,116,144]], + [[28,30,30,30], [38,19,63,53], [4,28,52,76,100,124,148]], + [[28,30,30,30], [40,20,66,56], [4,22,48,74,100,126,152]], + [[28,30,30,30], [43,21,70,59], [4,26,52,78,104,130,156]], + [[28,30,30,30], [45,22,74,62], [4,30,56,82,108,134,160]], + [[28,30,30,30], [47,24,77,65], [4,24,52,80,108,136,164]], + [[28,30,30,30], [49,25,81,68], [4,28,56,84,112,140,168]]]; + +// mode constants (cf. Table 2 in JIS X 0510:2004 p. 16) +var MODE_TERMINATOR = 0; +var MODE_NUMERIC = 1, MODE_ALPHANUMERIC = 2, MODE_OCTET = 4, MODE_KANJI = 8; + +// validation regexps +var NUMERIC_REGEXP = /^\d*$/; +var ALPHANUMERIC_REGEXP = /^[A-Za-z0-9 $%*+\-./:]*$/; +var ALPHANUMERIC_OUT_REGEXP = /^[A-Z0-9 $%*+\-./:]*$/; + +// ECC levels (cf. Table 22 in JIS X 0510:2004 p. 45) +var ECCLEVEL_L = 1, ECCLEVEL_M = 0, ECCLEVEL_Q = 3, ECCLEVEL_H = 2; + +// GF(2^8)-to-integer mapping with a reducing polynomial x^8+x^4+x^3+x^2+1 +// invariant: GF256_MAP[GF256_INVMAP[i]] == i for all i in [1,256) +var GF256_MAP = [], GF256_INVMAP = [-1]; +for (var i = 0, v = 1; i < 255; ++i) { + GF256_MAP.push(v); + GF256_INVMAP[v] = i; + v = (v * 2) ^ (v >= 128 ? 0x11d : 0); +} + +// generator polynomials up to degree 30 +// (should match with polynomials in JIS X 0510:2004 Appendix A) +// +// generator polynomial of degree K is product of (x-\alpha^0), (x-\alpha^1), +// ..., (x-\alpha^(K-1)). by convention, we omit the K-th coefficient (always 1) +// from the result; also other coefficients are written in terms of the exponent +// to \alpha to avoid the redundant calculation. (see also calculateecc below.) +var GF256_GENPOLY = [[]]; +for (var i = 0; i < 30; ++i) { + var prevpoly = GF256_GENPOLY[i], poly = []; + for (var j = 0; j <= i; ++j) { + var a = (j < i ? GF256_MAP[prevpoly[j]] : 0); + var b = GF256_MAP[(i + (prevpoly[j-1] || 0)) % 255]; + poly.push(GF256_INVMAP[a ^ b]); + } + GF256_GENPOLY.push(poly); +} + +// alphanumeric character mapping (cf. Table 5 in JIS X 0510:2004 p. 19) +var ALPHANUMERIC_MAP = {}; +for (var i = 0; i < 45; ++i) { + ALPHANUMERIC_MAP['0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:'.charAt(i)] = i; +} + +// mask functions in terms of row # and column # +// (cf. Table 20 in JIS X 0510:2004 p. 42) +var MASKFUNCS = [ + function(i,j) { return (i+j) % 2 == 0; }, + function(i,j) { return i % 2 == 0; }, + function(i,j) { return j % 3 == 0; }, + function(i,j) { return (i+j) % 3 == 0; }, + function(i,j) { return (((i/2)|0) + ((j/3)|0)) % 2 == 0; }, + function(i,j) { return (i*j) % 2 + (i*j) % 3 == 0; }, + function(i,j) { return ((i*j) % 2 + (i*j) % 3) % 2 == 0; }, + function(i,j) { return ((i+j) % 2 + (i*j) % 3) % 2 == 0; }]; + +// returns true when the version information has to be embeded. +var needsverinfo = function(ver) { return ver > 6; }; + +// returns the size of entire QR code for given version. +var getsizebyver = function(ver) { return 4 * ver + 17; }; + +// returns the number of bits available for code words in this version. +var nfullbits = function(ver) { + /* + * |<--------------- n --------------->| + * | |<----- n-17 ---->| | + * +-------+ ///+-------+ ---- + * | | ///| | ^ + * | 9x9 | @@@@@ ///| 9x8 | | + * | | # # # @5x5@ # # # | | | + * +-------+ @@@@@ +-------+ | + * # ---| + * ^ | + * # | + * @@@@@ @@@@@ @@@@@ | n + * @5x5@ @5x5@ @5x5@ n-17 + * @@@@@ @@@@@ @@@@@ | | + * # | | + * ////// v | + * //////# ---| + * +-------+ @@@@@ @@@@@ | + * | | @5x5@ @5x5@ | + * | 8x9 | @@@@@ @@@@@ | + * | | v + * +-------+ ---- + * + * when the entire code has n^2 modules and there are m^2-3 alignment + * patterns, we have: + * - 225 (= 9x9 + 9x8 + 8x9) modules for finder patterns and + * format information; + * - 2n-34 (= 2(n-17)) modules for timing patterns; + * - 36 (= 3x6 + 6x3) modules for version information, if any; + * - 25m^2-75 (= (m^2-3)(5x5)) modules for alignment patterns + * if any, but 10m-20 (= 2(m-2)x5) of them overlaps with + * timing patterns. + */ + var v = VERSIONS[ver]; + var nbits = 16*ver*ver + 128*ver + 64; // finder, timing and format info. + if (needsverinfo(ver)) nbits -= 36; // version information + if (v[2].length) { // alignment patterns + nbits -= 25 * v[2].length * v[2].length - 10 * v[2].length - 55; + } + return nbits; +}; + +// returns the number of bits available for data portions (i.e. excludes ECC +// bits but includes mode and length bits) in this version and ECC level. +var ndatabits = function(ver, ecclevel) { + var nbits = nfullbits(ver) & ~7; // no sub-octet code words + var v = VERSIONS[ver]; + nbits -= 8 * v[0][ecclevel] * v[1][ecclevel]; // ecc bits + return nbits; +} + +// returns the number of bits required for the length of data. +// (cf. Table 3 in JIS X 0510:2004 p. 16) +var ndatalenbits = function(ver, mode) { + switch (mode) { + case MODE_NUMERIC: return (ver < 10 ? 10 : ver < 27 ? 12 : 14); + case MODE_ALPHANUMERIC: return (ver < 10 ? 9 : ver < 27 ? 11 : 13); + case MODE_OCTET: return (ver < 10 ? 8 : 16); + case MODE_KANJI: return (ver < 10 ? 8 : ver < 27 ? 10 : 12); + } +}; + +// returns the maximum length of data possible in given configuration. +var getmaxdatalen = function(ver, mode, ecclevel) { + var nbits = ndatabits(ver, ecclevel) - 4 - ndatalenbits(ver, mode); // 4 for mode bits + switch (mode) { + case MODE_NUMERIC: + return ((nbits/10) | 0) * 3 + (nbits%10 < 4 ? 0 : nbits%10 < 7 ? 1 : 2); + case MODE_ALPHANUMERIC: + return ((nbits/11) | 0) * 2 + (nbits%11 < 6 ? 0 : 1); + case MODE_OCTET: + return (nbits/8) | 0; + case MODE_KANJI: + return (nbits/13) | 0; + } +}; + +// checks if the given data can be encoded in given mode, and returns +// the converted data for the further processing if possible. otherwise +// returns null. +// +// this function does not check the length of data; it is a duty of +// encode function below (as it depends on the version and ECC level too). +var validatedata = function(mode, data) { + switch (mode) { + case MODE_NUMERIC: + if (!data.match(NUMERIC_REGEXP)) return null; + return data; + + case MODE_ALPHANUMERIC: + if (!data.match(ALPHANUMERIC_REGEXP)) return null; + return data.toUpperCase(); + + case MODE_OCTET: + if (typeof data === 'string') { // encode as utf-8 string + var newdata = []; + for (var i = 0; i < data.length; ++i) { + var ch = data.charCodeAt(i); + if (ch < 0x80) { + newdata.push(ch); + } else if (ch < 0x800) { + newdata.push(0xc0 | (ch >> 6), + 0x80 | (ch & 0x3f)); + } else if (ch < 0x10000) { + newdata.push(0xe0 | (ch >> 12), + 0x80 | ((ch >> 6) & 0x3f), + 0x80 | (ch & 0x3f)); + } else { + newdata.push(0xf0 | (ch >> 18), + 0x80 | ((ch >> 12) & 0x3f), + 0x80 | ((ch >> 6) & 0x3f), + 0x80 | (ch & 0x3f)); + } + } + return newdata; + } else { + return data; + } + } +}; + +// returns the code words (sans ECC bits) for given data and configurations. +// requires data to be preprocessed by validatedata. no length check is +// performed, and everything has to be checked before calling this function. +var encode = function(ver, mode, data, maxbuflen) { + var buf = []; + var bits = 0, remaining = 8; + var datalen = data.length; + + // this function is intentionally no-op when n=0. + var pack = function(x, n) { + if (n >= remaining) { + buf.push(bits | (x >> (n -= remaining))); + while (n >= 8) buf.push((x >> (n -= 8)) & 255); + bits = 0; + remaining = 8; + } + if (n > 0) bits |= (x & ((1 << n) - 1)) << (remaining -= n); + }; + + var nlenbits = ndatalenbits(ver, mode); + pack(mode, 4); + pack(datalen, nlenbits); + + switch (mode) { + case MODE_NUMERIC: + for (var i = 2; i < datalen; i += 3) { + pack(parseInt(data.substring(i-2,i+1), 10), 10); + } + pack(parseInt(data.substring(i-2), 10), [0,4,7][datalen%3]); + break; + + case MODE_ALPHANUMERIC: + for (var i = 1; i < datalen; i += 2) { + pack(ALPHANUMERIC_MAP[data.charAt(i-1)] * 45 + + ALPHANUMERIC_MAP[data.charAt(i)], 11); + } + if (datalen % 2 == 1) { + pack(ALPHANUMERIC_MAP[data.charAt(i-1)], 6); + } + break; + + case MODE_OCTET: + for (var i = 0; i < datalen; ++i) { + pack(data[i], 8); + } + break; + }; + + // final bits. it is possible that adding terminator causes the buffer + // to overflow, but then the buffer truncated to the maximum size will + // be valid as the truncated terminator mode bits and padding is + // identical in appearance (cf. JIS X 0510:2004 sec 8.4.8). + pack(MODE_TERMINATOR, 4); + if (remaining < 8) buf.push(bits); + + // the padding to fill up the remaining space. we should not add any + // words when the overflow already occurred. + while (buf.length + 1 < maxbuflen) buf.push(0xec, 0x11); + if (buf.length < maxbuflen) buf.push(0xec); + return buf; +}; + +// calculates ECC code words for given code words and generator polynomial. +// +// this is quite similar to CRC calculation as both Reed-Solomon and CRC use +// the certain kind of cyclic codes, which is effectively the division of +// zero-augumented polynomial by the generator polynomial. the only difference +// is that Reed-Solomon uses GF(2^8), instead of CRC's GF(2), and Reed-Solomon +// uses the different generator polynomial than CRC's. +var calculateecc = function(poly, genpoly) { + var modulus = poly.slice(0); + var polylen = poly.length, genpolylen = genpoly.length; + for (var i = 0; i < genpolylen; ++i) modulus.push(0); + for (var i = 0; i < polylen; ) { + var quotient = GF256_INVMAP[modulus[i++]]; + if (quotient >= 0) { + for (var j = 0; j < genpolylen; ++j) { + modulus[i+j] ^= GF256_MAP[(quotient + genpoly[j]) % 255]; + } + } + } + return modulus.slice(polylen); +}; + +// auguments ECC code words to given code words. the resulting words are +// ready to be encoded in the matrix. +// +// the much of actual augumenting procedure follows JIS X 0510:2004 sec 8.7. +// the code is simplified using the fact that the size of each code & ECC +// blocks is almost same; for example, when we have 4 blocks and 46 data words +// the number of code words in those blocks are 11, 11, 12, 12 respectively. +var augumenteccs = function(poly, nblocks, genpoly) { + var subsizes = []; + var subsize = (poly.length / nblocks) | 0, subsize0 = 0; + var pivot = nblocks - poly.length % nblocks; + for (var i = 0; i < pivot; ++i) { + subsizes.push(subsize0); + subsize0 += subsize; + } + for (var i = pivot; i < nblocks; ++i) { + subsizes.push(subsize0); + subsize0 += subsize+1; + } + subsizes.push(subsize0); + + var eccs = []; + for (var i = 0; i < nblocks; ++i) { + eccs.push(calculateecc(poly.slice(subsizes[i], subsizes[i+1]), genpoly)); + } + + var result = []; + var nitemsperblock = (poly.length / nblocks) | 0; + for (var i = 0; i < nitemsperblock; ++i) { + for (var j = 0; j < nblocks; ++j) { + result.push(poly[subsizes[j] + i]); + } + } + for (var j = pivot; j < nblocks; ++j) { + result.push(poly[subsizes[j+1] - 1]); + } + for (var i = 0; i < genpoly.length; ++i) { + for (var j = 0; j < nblocks; ++j) { + result.push(eccs[j][i]); + } + } + return result; +}; + +// auguments BCH(p+q,q) code to the polynomial over GF(2), given the proper +// genpoly. the both input and output are in binary numbers, and unlike +// calculateecc genpoly should include the 1 bit for the highest degree. +// +// actual polynomials used for this procedure are as follows: +// - p=10, q=5, genpoly=x^10+x^8+x^5+x^4+x^2+x+1 (JIS X 0510:2004 Appendix C) +// - p=18, q=6, genpoly=x^12+x^11+x^10+x^9+x^8+x^5+x^2+1 (ibid. Appendix D) +var augumentbch = function(poly, p, genpoly, q) { + var modulus = poly << q; + for (var i = p - 1; i >= 0; --i) { + if ((modulus >> (q+i)) & 1) modulus ^= genpoly << i; + } + return (poly << q) | modulus; +}; + +// creates the base matrix for given version. it returns two matrices, one of +// them is the actual one and the another represents the "reserved" portion +// (e.g. finder and timing patterns) of the matrix. +// +// some entries in the matrix may be undefined, rather than 0 or 1. this is +// intentional (no initialization needed!), and putdata below will fill +// the remaining ones. +var makebasematrix = function(ver) { + var v = VERSIONS[ver], n = getsizebyver(ver); + var matrix = [], reserved = []; + for (var i = 0; i < n; ++i) { + matrix.push([]); + reserved.push([]); + } + + var blit = function(y, x, h, w, bits) { + for (var i = 0; i < h; ++i) { + for (var j = 0; j < w; ++j) { + matrix[y+i][x+j] = (bits[i] >> j) & 1; + reserved[y+i][x+j] = 1; + } + } + }; + + // finder patterns and a part of timing patterns + // will also mark the format information area (not yet written) as reserved. + blit(0, 0, 9, 9, [0x7f, 0x41, 0x5d, 0x5d, 0x5d, 0x41, 0x17f, 0x00, 0x40]); + blit(n-8, 0, 8, 9, [0x100, 0x7f, 0x41, 0x5d, 0x5d, 0x5d, 0x41, 0x7f]); + blit(0, n-8, 9, 8, [0xfe, 0x82, 0xba, 0xba, 0xba, 0x82, 0xfe, 0x00, 0x00]); + + // the rest of timing patterns + for (var i = 9; i < n-8; ++i) { + matrix[6][i] = matrix[i][6] = ~i & 1; + reserved[6][i] = reserved[i][6] = 1; + } + + // alignment patterns + var aligns = v[2], m = aligns.length; + for (var i = 0; i < m; ++i) { + var minj = (i==0 || i==m-1 ? 1 : 0), maxj = (i==0 ? m-1 : m); + for (var j = minj; j < maxj; ++j) { + blit(aligns[i], aligns[j], 5, 5, [0x1f, 0x11, 0x15, 0x11, 0x1f]); + } + } + + // version information + if (needsverinfo(ver)) { + var code = augumentbch(ver, 6, 0x1f25, 12); + var k = 0; + for (var i = 0; i < 6; ++i) { + for (var j = 0; j < 3; ++j) { + matrix[i][(n-11)+j] = matrix[(n-11)+j][i] = (code >> k++) & 1; + reserved[i][(n-11)+j] = reserved[(n-11)+j][i] = 1; + } + } + } + + return {matrix: matrix, reserved: reserved}; +}; + +// fills the data portion (i.e. unmarked in reserved) of the matrix with given +// code words. the size of code words should be no more than available bits, +// and remaining bits are padded to 0 (cf. JIS X 0510:2004 sec 8.7.3). +var putdata = function(matrix, reserved, buf) { + var n = matrix.length; + var k = 0, dir = -1; + for (var i = n-1; i >= 0; i -= 2) { + if (i == 6) --i; // skip the entire timing pattern column + var jj = (dir < 0 ? n-1 : 0); + for (var j = 0; j < n; ++j) { + for (var ii = i; ii > i-2; --ii) { + if (!reserved[jj][ii]) { + // may overflow, but (undefined >> x) + // is 0 so it will auto-pad to zero. + matrix[jj][ii] = (buf[k >> 3] >> (~k&7)) & 1; + ++k; + } + } + jj += dir; + } + dir = -dir; + } + return matrix; +}; + +// XOR-masks the data portion of the matrix. repeating the call with the same +// arguments will revert the prior call (convenient in the matrix evaluation). +var maskdata = function(matrix, reserved, mask) { + var maskf = MASKFUNCS[mask]; + var n = matrix.length; + for (var i = 0; i < n; ++i) { + for (var j = 0; j < n; ++j) { + if (!reserved[i][j]) matrix[i][j] ^= maskf(i,j); + } + } + return matrix; +} + +// puts the format information. +var putformatinfo = function(matrix, reserved, ecclevel, mask) { + var n = matrix.length; + var code = augumentbch((ecclevel << 3) | mask, 5, 0x537, 10) ^ 0x5412; + for (var i = 0; i < 15; ++i) { + var r = [0,1,2,3,4,5,7,8,n-7,n-6,n-5,n-4,n-3,n-2,n-1][i]; + var c = [n-1,n-2,n-3,n-4,n-5,n-6,n-7,n-8,7,5,4,3,2,1,0][i]; + matrix[r][8] = matrix[8][c] = (code >> i) & 1; + // we don't have to mark those bits reserved; always done + // in makebasematrix above. + } + return matrix; +}; + +// evaluates the resulting matrix and returns the score (lower is better). +// (cf. JIS X 0510:2004 sec 8.8.2) +// +// the evaluation procedure tries to avoid the problematic patterns naturally +// occuring from the original matrix. for example, it penaltizes the patterns +// which just look like the finder pattern which will confuse the decoder. +// we choose the mask which results in the lowest score among 8 possible ones. +// +// note: zxing seems to use the same procedure and in many cases its choice +// agrees to ours, but sometimes it does not. practically it doesn't matter. +var evaluatematrix = function(matrix) { + // N1+(k-5) points for each consecutive row of k same-colored modules, where k >= 5. no overlapping row counts. + var PENALTY_CONSECUTIVE = 3; + // N2 points for each 2x2 block of same-colored modules. Overlapping block does count. + var PENALTY_TWOBYTWO = 3; + // N3 points for each pattern with >4W:1B:1W:3B:1W:1B or + // 1B:1W:3B:1W:1B:>4W, or their multiples (e.g. highly unlikely, but 13W:3B:3W:9B:3W:3B counts). + var PENALTY_FINDERLIKE = 40; + // N4*k points for every (5*k)% deviation from 50% black density. + // i.e. k=1 for 55~60% and 40~45%, k=2 for 60~65% and 35~40%, etc. + var PENALTY_DENSITY = 10; + + var evaluategroup = function(groups) { // assumes [W,B,W,B,W,...,B,W] + var score = 0; + for (var i = 0; i < groups.length; ++i) { + if (groups[i] >= 5) score += PENALTY_CONSECUTIVE + (groups[i]-5); + } + for (var i = 5; i < groups.length; i += 2) { + var p = groups[i]; + if (groups[i-1] == p && groups[i-2] == 3*p && groups[i-3] == p && + groups[i-4] == p && (groups[i-5] >= 4*p || groups[i+1] >= 4*p)) { + // this part differs from zxing... + score += PENALTY_FINDERLIKE; + } + } + return score; + }; + + var n = matrix.length; + var score = 0, nblacks = 0; + for (var i = 0; i < n; ++i) { + var row = matrix[i]; + var groups; + + // evaluate the current row + groups = [0]; // the first empty group of white + for (var j = 0; j < n; ) { + var k; + for (k = 0; j < n && row[j]; ++k) ++j; + groups.push(k); + for (k = 0; j < n && !row[j]; ++k) ++j; + groups.push(k); + } + score += evaluategroup(groups); + + // evaluate the current column + groups = [0]; + for (var j = 0; j < n; ) { + var k; + for (k = 0; j < n && matrix[j][i]; ++k) ++j; + groups.push(k); + for (k = 0; j < n && !matrix[j][i]; ++k) ++j; + groups.push(k); + } + score += evaluategroup(groups); + + // check the 2x2 box and calculate the density + var nextrow = matrix[i+1] || []; + nblacks += row[0]; + for (var j = 1; j < n; ++j) { + var p = row[j]; + nblacks += p; + // at least comparison with next row should be strict... + if (row[j-1] == p && nextrow[j] === p && nextrow[j-1] === p) { + score += PENALTY_TWOBYTWO; + } + } + } + + score += PENALTY_DENSITY * ((Math.abs(nblacks / n / n - 0.5) / 0.05) | 0); + return score; +}; + +// returns the fully encoded QR code matrix which contains given data. +// it also chooses the best mask automatically when mask is -1. +var generate = function(data, ver, mode, ecclevel, mask) { + var v = VERSIONS[ver]; + var buf = encode(ver, mode, data, ndatabits(ver, ecclevel) >> 3); + buf = augumenteccs(buf, v[1][ecclevel], GF256_GENPOLY[v[0][ecclevel]]); + + var result = makebasematrix(ver); + var matrix = result.matrix, reserved = result.reserved; + putdata(matrix, reserved, buf); + + if (mask < 0) { + // find the best mask + maskdata(matrix, reserved, 0); + putformatinfo(matrix, reserved, ecclevel, 0); + var bestmask = 0, bestscore = evaluatematrix(matrix); + maskdata(matrix, reserved, 0); + for (mask = 1; mask < 8; ++mask) { + maskdata(matrix, reserved, mask); + putformatinfo(matrix, reserved, ecclevel, mask); + var score = evaluatematrix(matrix); + if (bestscore > score) { + bestscore = score; + bestmask = mask; + } + maskdata(matrix, reserved, mask); + } + mask = bestmask; + } + + maskdata(matrix, reserved, mask); + putformatinfo(matrix, reserved, ecclevel, mask); + return matrix; +}; + +// the public interface is trivial; the options available are as follows: +// +// - version: an integer in [1,40]. when omitted (or -1) the smallest possible +// version is chosen. +// - mode: one of 'numeric', 'alphanumeric', 'octet'. when omitted the smallest +// possible mode is chosen. +// - ecclevel: one of 'L', 'M', 'Q', 'H'. defaults to 'L'. +// - mask: an integer in [0,7]. when omitted (or -1) the best mask is chosen. +// +// for generate{HTML,PNG}: +// +// - modulesize: a number. this is a size of each modules in pixels, and +// defaults to 5px. +// - margin: a number. this is a size of margin in *modules*, and defaults to +// 4 (white modules). the specficiation mandates the margin no less than 4 +// modules, so it is better not to alter this value unless you know what +// you're doing. +var QRCode = { + 'generate': function(data, options) { + var MODES = {'numeric': MODE_NUMERIC, 'alphanumeric': MODE_ALPHANUMERIC, + 'octet': MODE_OCTET}; + var ECCLEVELS = {'L': ECCLEVEL_L, 'M': ECCLEVEL_M, 'Q': ECCLEVEL_Q, + 'H': ECCLEVEL_H}; + + options = options || {}; + var ver = options.version || -1; + var ecclevel = ECCLEVELS[(options.ecclevel || 'L').toUpperCase()]; + var mode = options.mode ? MODES[options.mode.toLowerCase()] : -1; + var mask = 'mask' in options ? options.mask : -1; + + if (mode < 0) { + if (typeof data === 'string') { + if (data.match(NUMERIC_REGEXP)) { + mode = MODE_NUMERIC; + } else if (data.match(ALPHANUMERIC_OUT_REGEXP)) { + // while encode supports case-insensitive + // encoding, we restrict the data to be + // uppercased when auto-selecting the mode. + mode = MODE_ALPHANUMERIC; + } else { + mode = MODE_OCTET; + } + } else { + mode = MODE_OCTET; + } + } else if (!(mode == MODE_NUMERIC || mode == MODE_ALPHANUMERIC || + mode == MODE_OCTET)) { + throw 'invalid or unsupported mode'; + } + + data = validatedata(mode, data); + if (data === null) throw 'invalid data format'; + + if (ecclevel < 0 || ecclevel > 3) throw 'invalid ECC level'; + + if (ver < 0) { + for (ver = 1; ver <= 40; ++ver) { + if (data.length <= getmaxdatalen(ver, mode, ecclevel)) break; + } + if (ver > 40) throw 'too large data'; + } else if (ver < 1 || ver > 40) { + throw 'invalid version'; + } + + if (mask != -1 && (mask < 0 || mask > 8)) throw 'invalid mask'; + + return generate(data, ver, mode, ecclevel, mask); + }, + + + 'generatePNG': function(data, options) { + options = options || {}; + var matrix = QRCode['generate'](data, options); + var modsize = Math.max(options.modulesize || 5, 0.5); + var margin = Math.max(options.margin || 4, 0.0); + var n = matrix.length; + var size = modsize * (n + 2 * margin); + + var canvas = document.createElement('canvas'), context; + canvas.width = canvas.height = size; + context = canvas.getContext('2d'); + if (!context) throw 'canvas support is needed for PNG output'; + + context.fillStyle = '#fff'; + context.fillRect(0, 0, size, size); + context.fillStyle = '#000'; + for (var i = 0; i < n; ++i) { + for (var j = 0; j < n; ++j) { + if (matrix[i][j]) { + context.fillRect(modsize * (margin + j), modsize * (margin + i), modsize, modsize); + } + } + } + //context.fillText('evaluation: ' + evaluatematrix(matrix), 10, 10); + return canvas.toDataURL(); + } +}; + +return QRCode; +})(); diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-grey/rtl.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/lib/tpl/slitaz-grey/rtl.css Wed Jan 15 14:24:29 2014 +0100 @@ -0,0 +1,119 @@ +/** + * Layout and dedsign corrections for right-to-left languages + * + * @author Andreas Gohr + * @author Dotan Kamber + */ + +.bar-left { + float: right; + text-align: right; +} + +.bar-right { + float: left; + text-align: left; +} + +.pagename { + float: right; + text-align: right; +} + +.logo { + float: left; + text-align: left; +} + +label { + text-align: left; +} + +label.simple { + text-align: right; +} + +div.meta div.user { + float: right +} + +div.meta div.doc { + text-align: left; +} + +/* ------------------ Design corrections --------------------------------- */ + +div.dokuwiki ul, +div.dokuwiki ol { + margin: 0.5em 1.5em 0.5em 0; +} + +div.dokuwiki a.urlextern, +div.dokuwiki a.interwiki, +div.dokuwiki a.windows, +div.dokuwiki a.mail, +div.dokuwiki a.mail.JSnocheck { + /* should work but doesn't - so we just disable icons here*/ + /* + background-position: right 1px; + padding-right: 16px; + */ + background-image: none !important; + padding: 0px 0px 0px 0px; +} + +div.dokuwiki div.secedit input.button { + float: left; +} + +/* headlines */ +div.dokuwiki h1, div.dokuwiki h2, div.dokuwiki h3, div.dokuwiki h4, div.dokuwiki h5 { + clear: right; +} + +/* special headlines */ +div.dokuwiki h1 {margin-left: 0px; margin-right: 0px;} +div.dokuwiki h2 {margin-left: 0px; margin-right: 20px;} +div.dokuwiki h3 {margin-left: 0px; margin-right: 40px;} +div.dokuwiki h4 {margin-left: 0px; margin-right: 60px;} +div.dokuwiki h5 {margin-left: 0px; margin-right: 80px;} + +/* indent different sections */ +div.dokuwiki div.level1 {margin-left: 0px; margin-right: 3px;} +div.dokuwiki div.level2 {margin-left: 0px; margin-right: 23px;} +div.dokuwiki div.level3 {margin-left: 0px; margin-right: 43px;} +div.dokuwiki div.level4 {margin-left: 0px; margin-right: 63px;} +div.dokuwiki div.level5 {margin-left: 0px; margin-right: 83px;} + +/* TOC control */ +div.dokuwiki div.toc { + float: left; +} + +div.dokuwiki div.tocheader { + text-align: right; +} + +div.dokuwiki #toc__inside { + text-align: right; +} + +div.dokuwiki ul.toc { + padding: 0; + padding-right: 1em; +} + +div.dokuwiki ul.toc li { + background-position: right 0.6em; + padding-right:0.4em; + direction: rtl; +} + +div.dokuwiki ul.toc li.clear { + padding-right:0.4em; +} + +div.dokuwiki pre { + text-align: left; +} + diff -r 14f50bbc616d -r 0c2b437cde56 doc/lib/tpl/slitaz-grey/style.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/lib/tpl/slitaz-grey/style.ini Wed Jan 15 14:24:29 2014 +0100 @@ -0,0 +1,67 @@ +; Please see http://www.php.net/manual/en/function.parse-ini-file.php +; for limitations of the ini format used here + +; Define the stylesheets your template uses here. The second value +; defines for which output media the style should be loaded. Currently +; print, screen and rtl are supported. rtl styles are loaded additionally +; to screen styles if a right-to-left language is selected (eg. hebrew) +[stylesheets] +layout.css = screen +design.css = screen +style.css = screen + +media.css = screen + +UWEB.css = screen + +rtl.css = rtl +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. +[replacements] + +;-------------------------------------------------------------------------- +;------ guaranteed dokuwiki color placeholders that every plugin can use +; main text and background colors +__text__ = "#000" +__background__ = "#fff" +; alternative text and background colors +__text_alt__ = "#638c9c" +__background_alt__ = "#dee7ec" +; neutral text and background colors +__text_neu__ = "#666" +__background_neu__ = "#f5f5f5" +; border color +__border__ = "#dadada" +;-------------------------------------------------------------------------- + +; other text and background colors +__text_other__ = "#ccc" +__background_other__ = "#f7f9fa" + +; these are used for links +__extern__ = "#436976" +__existing__ = "#090" +__missing__ = "#f30" + +; highlighting search snippets +__highlight__ = "#ff9" + + +;-------------------------------------------------------------------------- +;------ for keeping old templates and plugins compatible to the old pattern +; (to be deleted at the next or after next release) +__white__ = "#fff" +__lightgray__ = "#f5f5f5" +__mediumgray__ = "#ccc" +__darkgray__ = "#666" +__black__ = "#000" + +; these are the shades of blue +__lighter__ = "#f7f9fa" +__light__ = "#eef3f8" +__medium__ = "#dee7ec" +__dark__ = "#8cacbb" +__darker__ = "#638c9c" diff -r 14f50bbc616d -r 0c2b437cde56 pangolin/pangolin --- a/pangolin/pangolin Wed Jan 15 11:15:02 2014 +0100 +++ b/pangolin/pangolin Wed Jan 15 14:24:29 2014 +0100 @@ -2,7 +2,7 @@ # # Pangolin admin utility # -# Copyright (C) 2012 SliTaz GNU/Linux - BSD License +# Copyright (C) 2012-2014 SliTaz GNU/Linux - BSD License # # Authors : Christophe Lincoln # @@ -20,6 +20,7 @@ Commands: up-www Update website www.slitaz.org up-forum Update forum.slitaz.org theme + up-doc Update doc.slitaz.org theme and configs up-hg Update Hg web interface hg.slitaz.org adduser Add a user to Hg. stats Display some server stats. @@ -28,23 +29,49 @@ EOT } +# While libtaz.sh is not installed on Pangolin +# +newline() { + echo "" +} + +boldify() { + echo -e "\\033[1m$@\\033[0m" ;; +} + +# +# handle commands +# + case "$1" in up-www) # Update website from repo. - echo "Updating: www.slitaz.org..." - cd ${WEBSITE} && hg pull -u ;; + newline + boldify "Updating: www.slitaz.org..." + cd ${WEBSITE} && hg pull -u + newline;; up-forum) # Update forum.slitaz.org theme - echo "Updating: forum.slitaz.org..." + newline + boldify "Updating: forum.slitaz.org..." cd ${REPOS}/slitaz-forge && hg up - cp -a forum/my-templates ${WWW}/forum.slitaz.org/public_html ;; + cp -a forum/my-templates ${WWW}/forum.slitaz.org/public_html + newline ;; + up-doc) + # Update doc.slitaz.org theme + newline + boldify "Updating: doc.slitaz.org..." + cd ${REPOS}/slitaz-forge && hg up + cp -a doc/* ${WWW}/doc.slitaz.org/public_html + newline ;; up-hg) # Update hg.slitaz.org template. - echo -e "\nUpdating Mercurial template..." + newline + boldify "Updating Mercurial template..." cd $REPOS/slitaz-dev-tools && hg update cp -a slitaz-mercurial-style/* $PYTHON_LIB/site-packages/mercurial chown -R root.root $PYTHON_LIB/site-packages/mercurial/templates - echo "" ;; + newline ;; adduser) [ ! "$2" ] && echo "Missing user name arg" && exit 0 [ ! "$3" ] && echo "Missing password arg" && exit 0