From 7a551d0717c1ffabea2788b89cdc2a3b7754b95e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Wed, 17 Jan 2024 14:34:17 +0100 Subject: [PATCH] update conf from sources --- conf/ggp.html | 60 ----- conf/ggp.less | 550 ------------------------------------------- conf/mimoza.css | 29 ++- conf/minimaxing.css | 88 ++++--- conf/minimaxing.less | 78 +++--- conf/pheditor.php | 79 ++++--- 6 files changed, 150 insertions(+), 734 deletions(-) delete mode 100755 conf/ggp.html delete mode 100755 conf/ggp.less diff --git a/conf/ggp.html b/conf/ggp.html deleted file mode 100755 index 35ff878..0000000 --- a/conf/ggp.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - {PAGE_TITLE_HEAD - }{WIKI_TITLE} - - - - - {HEAD} - - - - - -
- -
-
-

{PAGE_TITLE} {( plugin:VERSIONS_LIST )}

-
- - {
ERROR
} - {CONTENT} - {plugin:TAG_LIST} - {CONTENT_FORM} - - - -
- - - - - - - - - - - -
{RENAME_TEXT }{RENAME_INPUT }{plugin:TOOLBAR_TEXTAREA}{SHOW_PAGE   }{SYNTAX}
{CONTENT_TEXTAREA}
{FORM_PASSWORD}{ FORM_PASSWORD_INPUT}{ plugin:CAPTCHA_QUESTION}{ plugin:CAPTCHA_INPUT}{ EDIT_SUMMARY_TEXT}{ EDIT_SUMMARY_INPUT}{ CONTENT_SUBMIT}{ CONTENT_PREVIEW}{plugin:RESIZE_TEXTAREA}
- {/CONTENT_FORM}
- - -
{SEARCH_FORM}{SEARCH_INPUT}{SEARCH_SUBMIT}{/SEARCH_FORM} Powered by LionWiki-t2t -
- -
- -
- - diff --git a/conf/ggp.less b/conf/ggp.less deleted file mode 100755 index 57a52c7..0000000 --- a/conf/ggp.less +++ /dev/null @@ -1,550 +0,0 @@ -/*----- - © 2012 GGP & al.jes, certains droits réservés… - http://geekygoblin.org - http://aljes.me - Cette oeuvre est libre, vous pouvez la copier, la diffuser et la modifier selon les termes de la licence Art Libre - http://www.artlibre.org - http://geekygoblin.org/mentions.htm ------*/ - -/* 0 - Préliminaires */ - - - - -/* font colors:*/ -@MainColor: #__COLOR__; -/* or D17732 */ -@FontColor: darken(desaturate(@MainColor, 80%),30%) ; -@SecondaryColor: spin(@LinkColor, 25) ; -@LinkColor: @MainColor; -@LinkColorHover: spin(@LinkColor, 180) ; - -/* background color: */ -@BackgroundColor: #fAfAfA; - -/*@BackgroundColor: contrast(@FontColor,#444,#999) ;*/ -/*@BackgroundColor: contrast(@FontColor) ; */ - -/*@BackgroundColor: mix(@MainColor, @LinkColor) ; */ - - - - - - -/* for diff tool */ -@RedBrick: #7F4736; - -/* INITIAL SETTINGS -@MainColor: #292929 ; -@SecondaryColor: #42C200 ; -@LinkColor: #328cc1 ; -@LinkColorHover: #d9b310 ; -@BackgroundColor: #FAFAFA ; -*/ - - -/* 1 - Typographie */ - -@MainFontFamily: Fengardo; -@MainFontFamilyEdit:Fengardo; - -@font-face { - font-family: @MainFontFamily; - font-style: normal; - font-weight: normal; - src: url(../fonts/fengardoneue-regular.woff) format('woff'), url(../fonts/fengardoneue-regular.otf) format('opentype'), url(../fonts/fengardoneue-regular.svg) format('svg'); -} - -@font-face { - font-family: Fengardo; - font-style: italic; - src: url(../fonts/fengardoneue-italic.otf) format('opentype'); -} - -@font-face { - font-family: Fengardo; - font-weight: bold; - /*font-weight: 500;*/ - src: url(../fonts/fengardoneue-black.woff) format('woff'), url(../fonts/fengardoneue-black.otf) format('opentype'), url(../fonts/fengardoneue-black.svg) format('svg'); -} - -/* 2 - Général */ - -#header li {float: left; list-style: none; position: relative; width: 25%; } - -/*ul li {list-style: none;} -ul li::before {content: "– ";}*/ -/*hr::after {content: "⁂";}*/ -/* 3 - Titres */ -/* 4 - Menus */ -/* 5 - Colophon */ - -* { - border: 1; - box-sizing: border-box; - font: inherit; - font-size: 100%; - line-height: 1.5 !important; - max-width: 100%; - /*outline: 0; - text-decoration: none;*/ - vertical-align: baseline; -} -html { - background-color: @BackgroundColor; - color: @FontColor; - font-family: Fengardo, sans-serif; - font-size: 125%; - -epub-hyphens: auto; - -moz-hyphens: auto; - -webkit-hyphens: auto; - hyphens: auto; - text-align: justify; -} -body { - margin: 0 auto; - max-width: 700px; - width: 85%; -} -img.border { - border: solid 1px @MainColor; -} -em, i { - font-style: italic; -} -strong, b { - font-weight: bold; -} - -b i { - font-weight: bolder; - font-weight: 900; - font-style: italic; -} - -li { - ul { - margin-top: 0.5rem; - margin-bottom: 0.5rem; - margin-left: 0rem; - } - ol { - margin-bottom: 0; - margin-left: 2rem; - } - dl { - margin-bottom: 0; - margin-left: 2rem; - } -} -dd { - ul { - margin-bottom: 0; - margin-left: 2rem; - } - ol { - margin-bottom: 0; - margin-left: 2rem; - } - dl { - margin-bottom: 0; - margin-left: 2rem; - } -} -blockquote { - margin-left: 1rem; - p { - &::before { - content: "— "; - } - } -} -q { - &::before { - content: "« "; - } - &::after { - content: " »"; - } -} -code { - font-family: monospace; - font-size: 0.8rem; - -epub-hyphens: none; - -moz-hyphens: none; - -webkit-hyphens: none; - hyphens: none; -} -pre { - code { - display: block; - overflow: auto; - } -} -a { - /* border-bottom: 1px solid @SecondaryColor; */ - color: inherit; - margin-bottom: -1px; - text-decoration: none; - color: @LinkColor; - &:hover { - border-color: inherit; - color: @LinkColorHover; - text-decoration: underline; - } - &:focus { - border-color: inherit; - color: @LinkColorHover; - text-decoration: none; - } -} -abbr { - border-bottom: 1px dashed @SecondaryColor; - margin-bottom: -1px; -} -acronym { - border-bottom: 1px dashed @SecondaryColor; - margin-bottom: -1px; -} -a.definition { - border-bottom: 1px dashed @SecondaryColor; - margin-bottom: -1px; -} -a.no-border { - border: 0; -} -hr { - border: 1; - /*height: 1rem;*/ - margin: 1rem auto; - width: 1; -} -.skip { - font-size: 0.7rem; - margin-bottom: 0.3rem; - text-align: right; - p { - margin: 0; - } - a { - margin-left: 1rem; - } -} - -/* disable par-edit visibility anytime */ - -h2 .par-edit,h3 .par-edit,h4 .par-edit,h5 .par-edit,h6 .par-edit{visibility:hidden;font-size:x-small;} - -h2:hover .par-edit,h3:hover .par-edit,h4:hover .par-edit,h5:hover .par-edit,h6:hover .par-edit{visibility:visible} - - -h1 { - font-family: Fengardo; - text-align: center; - font-size: 1.6rem; - font-weight: bold; - margin: 1.1rem 0; - text-transform: uppercase; -} -h2 { - text-align: center; - font-size: 1.5rem; - font-weight: bold; - margin: 1rem 0 0.5rem 0; - font-variant: small-caps; -} -h3 { - text-align: left; - font-size: 1.3rem; - font-weight: bold; - margin: 0.7rem 0 0 0; - font-variant: small-caps; -} -h4 { - text-align: left; - font-size: 1.2rem; - margin: 0.8rem 0 0 0; - font-style: italic; - font-variant: normal; - font-weight: normal; - text-transform: none; -} -h5 { - text-align: left; - font-size: 1.1rem; - margin: 0.9rem 0 0 0; - font-style: italic; - font-variant: normal; - font-weight: normal; - text-transform: none; -} -h6 { - text-align: left; - font-size: 1rem; - font-style: italic; - font-variant: normal; - font-weight: normal; - text-transform: none; -} - -table { - border-collapse: collapse; - empty-cells: show; - border-spacing: 0; - border: 2px solid #999; - margin: 10px 10px 20px 50px; - padding: 10px 10px 10px 10px; -} - -th, -td { - padding: .3em .5em; - margin: 5; - vertical-align: top; - border: 1px solid #999; - text-align: left; -} -.form th, -td { - padding: .3em .5em; - /*margin: 0;*/ - vertical-align: top; - border: 1px solid #999; - text-align: left; -} -th { - font-weight: bold; - background-color: #ddd; -} -[dir=rtl] td, -[dir=rtl] th { - text-align: right; -} - - -.sub { - font-size: 1rem; - font-style: italic; - font-variant: normal; - font-weight: normal; - text-transform: none; -} -.menu { - text-align: center; - li { - display: inline-block; - list-style: none; - margin: 0 1rem; - &::before { - content: ""; - } - } -} -.table { - li { - list-style-type: lower-roman; - } -} -.sommaire { - li { - list-style-type: none; - } -} -.colophon { - font-size: 0.6rem; - margin-top: 1rem; - text-align: center; -} -.logo { - font-size: 0.6rem; - margin-top: 1rem; - text-align: center; - a { - border: 0; - } - img { - width: 20%; - } -} - -#editor table { - border: 0px solid #999; -} - - -#editor td { - border: 0px solid #999; -} - - - -/* LionWiki specific */ - -a.pending { - color: @RedBrick; -} -h2 span.par-edit, h3 span.par-edit, h4 span.par-edit, h5 span.par-edit, h6 span.par-edit { - /*float: right;*/ - display: none; - font-size: small; -} -h2:hover span.par-edit, h3:hover span.par-edit, h4:hover span.par-edit, h5:hover span.par-edit, h6:hover span.par-edit { - display: inline; - font-size: small; -} -h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover { - background-color: transparent; -} -.pageLinks { - padding-left: 1em; - padding-right: 1em; - margin-top: 0; - margin-bottom: 0; -} -.pageLinks a { - font-weight: bold; - text-decoration: none; -} -#headerLinks td { - border-bottom: 1px dashed #ccc !important; -} -#footerLinks td { - border-top: 1px dashed #ccc !important; -} -#mainContent { - padding: 1em; - background-color: white; -} -#mainContent h2:first-child { - margin-top: 0px; -} -.error { - color: #F25A5A; - font-weight: bold; -} -.contentTextarea { - width: 90%; - font-family: @MainFontFamilyEdit; - font-size: 105%; -} -#diff { - white-space: pre-wrap; - word-wrap: break-word; - white-space: -moz-pre-wrap; - white-space: -pre-wrap; - white-space: -o-pre-wrap; - width: 97%; -} -#diff ins { - color: green; - text-decoration: none; - font-weight: bold; -} -#diff del { - color: red; - text-decoration: line-through; -} -#diff .orig { - color: #666; -} -#toc { - /*border: 1px dashed #11141A;*/ - margin: 2em 1em 2em 1em; - padding: 5px 5px 5px 5px; - /*float: right;*/ - padding-right: 2em; - /*text-align: right;*/ - list-style: none; - background: #eee; - clear: none; - display: block; -} -#toc ul { - list-style: none; - padding-left: 1em; -} -#toc li { - /*font-size: 11px;*/ - padding-left: 1em; -} - -/* Plugins LionWiki*/ - -.tagList { - padding: 0.2em 0.4em 0.2em 0.4em; - margin-top: 0.5em; - border: 1px dashed #31343A; - background: #eee; - clear: right; -} -.tagCloud { - float: right; - width: 200px; - padding: 0.5em; - margin: 1em; - border: 1px dashed #31343A; - background: #eee; - clear: right; -} -.pageVersionsList { - letter-spacing: 0px; - font-variant: normal; - font-size: 12px; -} -table.wikitable { - border-collapse: collapse; - border: 1px solid #ccc; -} -table.wikitable td { - border: 1px solid #ccc; - text-align: center; - vertical-align: middle; - padding: 2px; -} -table.wikitable td.em { - background: #ccc; - font-weight: bold; -} -table, #previewPane table { - border-collapse: collapse; - empty-cells: show; - border-spacing: 0; - border: 1px solid #999; -} -.form table { - border-collapse: collapse; - empty-cells: hide; - border-spacing: 0; - border: 0px solid #fff; -} -th, td, #previewPane th, #previewPane td { - padding: .3em .5em; - margin: 0; - vertical-align: top; - border: 1px solid #999; - text-align: left; -} -.form th, td { - padding: .3em .5em; - margin: 0; - vertical-align: top; - border: 0px solid #999; - text-align: left; -} -th, thead, #previewPane th, #previewPane thead { - font-weight: bold; - background-color: #ddd; -} -[dir=rtl] td, [dir=rtl] th { - text-align: right; -} -.resizeTextarea a { - text-decoration: none; -} - -progress { color: @MainColor; background-color: @BackgroundColor - #111; border-radius: 0px; border: solid 1px; width: 10em; height: 1em;} -progress::-moz-progress-bar { background: @MainColor;} -progress::-webkit-progress-value { background: @MainColor;} -progress::-webkit-progress-bar { background: @MainColor;} diff --git a/conf/mimoza.css b/conf/mimoza.css index fe7fdc0..434d8b7 100644 --- a/conf/mimoza.css +++ b/conf/mimoza.css @@ -17,8 +17,7 @@ @font-face { font-family: "Luciole"; - src: url("../fonts/Luciole-Regular.woff") format("woff"), - url("../fonts/Luciole-Regular.woff2") format("woff2"); + src: url("../fonts/Luciole-Regular.woff") format("woff"); font-style: normal; font-weight: normal; text-rendering: optimizeLegibility; @@ -26,8 +25,7 @@ @font-face { font-family: "Luciole"; - src: url("../fonts/Luciole-Bold.woff") format("woff"), - url("../fonts/Luciole-Bold.woff2") format("woff2"); + src: url("../fonts/Luciole-Bold.woff") format("woff"); font-style: normal; font-weight: 700; text-rendering: optimizeLegibility; @@ -35,8 +33,7 @@ @font-face { font-family: "Luciole"; - src: url("../fonts/Luciole-Italic.woff") format("woff"), - url("../fonts/Luciole-Italic.woff2") format("woff2"); + src: url("../fonts/Luciole-Italic.woff") format("woff"); font-style: italic; font-weight: normal; text-rendering: optimizeLegibility; @@ -44,13 +41,13 @@ @font-face { font-family: "Luciole"; - src: url("../fonts/Luciole-BoldItalic.woff") format("woff"), - url("../fonts/Luciole-BoldItalic.woff2") format("woff2"); + src: url("../fonts/Luciole-BoldItalic.woff") format("woff"); font-style: italic; font-weight: 700; text-rendering: optimizeLegibility; } + html { font-family: "Luciole", Arial, Helvetica, sans-serif; } @@ -204,6 +201,7 @@ pre { color: white; background-color: black; } + pre code { background: none; } @@ -215,6 +213,7 @@ img { /* lionwiki */ +p span.full-edit, h2 span.par-edit, h3 span.par-edit, h4 span.par-edit, @@ -223,6 +222,7 @@ h6 span.par-edit { float: right; display: none; } +p:hover span.full-edit, h2:hover span.par-edit, h3:hover span.par-edit, h4:hover span.par-edit, @@ -325,3 +325,16 @@ progress::-webkit-progress-bar { .todotxt_date { background-color: #f2f2f2; } + + +@media (prefers-color-scheme: dark) { + + body { + filter: invert(100%) hue-rotate(180deg); + } + + html { + background-color: #111; + } + +} diff --git a/conf/minimaxing.css b/conf/minimaxing.css index 69e9bcf..f416b75 100755 --- a/conf/minimaxing.css +++ b/conf/minimaxing.css @@ -3,18 +3,18 @@ -------------- - Minimaxing - -------------- - + a template for Lionwiki-t2t https://lionwiki-t2t.sourceforge.io/ - - based on - + + based on + https://html5up.net/minimaxing licence Creative Commons Attribution 3.0 Unported http://creativecommons.org/licenses/by/3.0/ - + ----------------------------*/ -/* This CSS file was generated from the minimaxing.less template. +/* This CSS file was generated from the minimaxing.less template. See http://lesscss.org/ */ /* @@ -26,9 +26,9 @@ You can create your own manuscript / handwriting font on http://www.myscriptfont #8B9AB8 : lighter grey blue #7B8AA8 : light grey blue #56A3B5 : turquoise blue - #B1494D : brick red + #B1494D : brick red #465E7C : dark blue - #549136 : green + #549136 : green #799037 : grass green #D07732 : orange #754496 : purple @@ -36,10 +36,10 @@ You can create your own manuscript / handwriting font on http://www.myscriptfont */ /* define mixin */ /* we disable it as it's sometimes a problem with lesscss -.generateColor() { +.generateColor() { @background-color: color(~`@{all-background-colors}.split(',')[Math.floor(Math.random()*@{all-background-colors}.split(',').length)]`); } -.generateColor(); +.generateColor(); */ /* This line below will use a random main color: */ /* @fg: @background-color; */ @@ -110,9 +110,8 @@ You can create your own manuscript / handwriting font on http://www.myscriptfont @font-face { font-family: Fengardo; font-weight: bold; - src: url(../fonts/fengardoneue-black.woff) format('woff'), url(../fonts/fengardoneue-black.otf) format('opentype'), url(../fonts/fengardoneue-black.svg) format('svg'); - /*font-weight: 500;*/ + src: url(../fonts/fengardoneue-black.woff) format('woff'), url(../fonts/fengardoneue-black.otf) format('opentype'), url(../fonts/fengardoneue-black.svg) format('svg'); } @font-face { font-family: 'Fengardo Neue'; @@ -126,12 +125,12 @@ You can create your own manuscript / handwriting font on http://www.myscriptfont http://nodethirtythree.com | @nodethirtythree Released under the Creative Commons Attribution 3.0 license (nodethirtythree.com/license) * http://html5up.net/minimaxing/ - + Based also on the work from http://wiki.lapetitesissone.fr/index.php?page=Lionwiki */ /* LionWiki specific */ a.pending { - color: #7f4736; + color: #7F4736; } h2 span.par-edit, h3 span.par-edit, @@ -285,7 +284,7 @@ th, td, #previewPane th, #previewPane td { - padding: .3em .5em; + padding: 0.3em 0.5em; margin: 0; vertical-align: top; border: 1px solid #999; @@ -293,7 +292,7 @@ td, } .form th, td { - padding: .3em .5em; + padding: 0.3em 0.5em; margin: 0; vertical-align: top; border: 0px solid #999; @@ -335,7 +334,7 @@ body { font-size: 12pt; /*font-family: sans-serif;*/ /*background-color: (@Bg-extra-light/1.1 + #111);*/ - background-color: #ffffff; + background-color: #fff; font-family: Ubuntu; color: #656c61; } @@ -371,7 +370,7 @@ h1 a { color: #5d2c0b; } #header-wrapper h1 { - color: #ffffff; + color: #fff; line-height: 1.3em; border-bottom: none; } @@ -387,14 +386,14 @@ h1 a { color: #000019; } #header nav { - color: #ffffff; + color: #fff; text-transform: lowercase; } #header nav a, #header nav li a { display: inline-block; text-decoration: none; - color: #ffffff; + color: #fff; } #header nav li a:hover, #header nav li a:active { @@ -405,13 +404,13 @@ h1 a { h2 { font-size: 1.6em; letter-spacing: 1px; - margin-bottom: 0.0em; + margin-bottom: 0em; margin-top: 1.8em; } h3, h4 { color: #283121; - margin-bottom: 0.0em; + margin-bottom: 0em; margin-top: 1.4em; } h3 { @@ -422,7 +421,7 @@ h4 { } p, ul { - margin-bottom: 1.0em; + margin-bottom: 1em; overflow-wrap: break-word; word-wrap: break-word; -ms-word-break: break-all; @@ -452,18 +451,19 @@ s { } ::selection { background: #0b3c5d; - color: #ffffff; + color: #fff; } ::-moz-selection { background: #0b3c5d; - color: #ffffff; + color: #fff; } pre { background-color: #f3fbff; line-height: 1.5em; font-family: Monospace; font-size: 11pt; - margin: 1.0em; + margin: 1em; + overflow: auto; } code, blockquote, @@ -472,6 +472,7 @@ dt { font-family: Monospace; font-size: 11pt; /*margin: 1.0em;*/ + overflow: auto; } dd { line-height: 1.5em; @@ -521,7 +522,7 @@ li { } /* If you don't like color highlight when you're over a list, comment the next 2 entries */ #main ul:hover { - background-color: #ffffff; + background-color: #fff; } #main ul li:hover, ul li:active { @@ -535,7 +536,7 @@ a { a:hover { text-decoration: none; background-color: #407192; - color: #ffffff; + color: #fff; } ul.small-image-list li { margin-bottom: 1.5em; @@ -561,8 +562,8 @@ a.toolbarTextareaItem { border-radius: 6px; text-transform: lowercase; text-decoration: none; - color: #ffffff; - font-size: 1.0em; + color: #fff; + font-size: 1em; letter-spacing: -1px; border: solid 1px #0b3c5d; box-shadow: inset 0px 0px 0px 1px #0b3c5d; @@ -570,10 +571,10 @@ a.toolbarTextareaItem { .button:hover, a.toolbarTextareaItem:hover { background-color: #1c4d6e; - color: #ffffff; + color: #fff; } a.toolbarTextareaItem b { - color: #ffffff; + color: #fff; } #copyright { font-size: 0.6em; @@ -689,7 +690,7 @@ input.submit:hover { #banner-wrapper h2 { border-bottom: none; color: white; - font-size: 2.0em; + font-size: 2em; text-align: center; } #banner-wrapper a { @@ -744,7 +745,7 @@ input.submit:hover { opacity: 0.8; } #main { - background-color: #ffffff; + background-color: #fff; padding: 2% 0 2% 0; padding-top: -20px; } @@ -879,7 +880,7 @@ input.submit:hover { opacity: 0.8; } #main { - background-color: #ffffff; + background-color: #fff; padding: 3% 0 3% 0; margin-left: 8px; margin-right: 4px; @@ -1033,7 +1034,7 @@ input.submit:hover { } #main { /*overflow: auto;*/ - background-color: #ffffff; + background-color: #fff; margin-left: 8px; margin-right: 4px; } @@ -1068,7 +1069,7 @@ input.submit:hover { .mycontent tr { background: #83b4d5; /*rgba(16,80,112,0.2);*/ - color: #111111; + color: #111; } .mycontent tr a:hover, .mycontent #header-wrapper a:hover { @@ -1112,7 +1113,7 @@ progress::-webkit-progress-bar { width: 65%; border: 2px solid #5d2c0b; background-color: #5d2c0b; - height: 50px; + min-height: 50px; margin-top: 8px; margin-bottom: 8px; font-family: Ubuntu; @@ -1131,7 +1132,7 @@ progress::-webkit-progress-bar { min-width: 100%; padding: 0px; padding-top: 0px; - height: 46px; + min-height: 46px; line-height: 46px; color: #fff; text-decoration: none; @@ -1201,6 +1202,15 @@ progress::-webkit-progress-bar { iframe { filter: invert(100%) hue-rotate(180deg); } + #header-wrapper { + filter: invert(100%) hue-rotate(180deg); + } + h1, + h2, + h3, + h4 { + color: #0b3c5d; + } /* Improve contrast on icons. */ .icon { filter: invert(15%) hue-rotate(180deg); diff --git a/conf/minimaxing.less b/conf/minimaxing.less index fc45e63..f13d521 100755 --- a/conf/minimaxing.less +++ b/conf/minimaxing.less @@ -1,24 +1,24 @@ - + /*----------------------- -------------- - Minimaxing - -------------- - + a template for Lionwiki-t2t https://lionwiki-t2t.sourceforge.io/ - - based on - + + based on + https://html5up.net/minimaxing licence Creative Commons Attribution 3.0 Unported http://creativecommons.org/licenses/by/3.0/ - + ----------------------------*/ -/* This CSS file was generated from the minimaxing.less template. +/* This CSS file was generated from the minimaxing.less template. See http://lesscss.org/ */ @@ -41,9 +41,9 @@ You can create your own manuscript / handwriting font on http://www.myscriptfont #8B9AB8 : lighter grey blue #7B8AA8 : light grey blue #56A3B5 : turquoise blue - #B1494D : brick red + #B1494D : brick red #465E7C : dark blue - #549136 : green + #549136 : green #799037 : grass green #D07732 : orange #754496 : purple @@ -54,10 +54,10 @@ You can create your own manuscript / handwriting font on http://www.myscriptfont /* define mixin */ /* we disable it as it's sometimes a problem with lesscss -.generateColor() { +.generateColor() { @background-color: color(~`@{all-background-colors}.split(',')[Math.floor(Math.random()*@{all-background-colors}.split(',').length)]`); } -.generateColor(); +.generateColor(); */ /* This line below will use a random main color: */ @@ -76,15 +76,15 @@ You can create your own manuscript / handwriting font on http://www.myscriptfont /* @fg: #__COLOR__; */ - + /* Header color */ /* You can use a shade of MainColor: */ -@HeaderColor: (@fg - #111); +@HeaderColor: (@fg - #111); /* or a complementary color: */ /*@HeaderColor: (#ffffff - @fg - (#ffffff - @fg)/3); */ -@HeaderColor: spin(@fg, 180); +@HeaderColor: spin(@fg, 180); @MainFontColor: (#878e83 - #222); @@ -129,7 +129,7 @@ You can create your own manuscript / handwriting font on http://www.myscriptfont @heading: @fg; @heading-weight: bold; /* normal or bold */ @font: Ubuntu; -@font-heading: Fengardo Neue; +@font-heading: Fengardo Neue; @Bg-dark: (@fg - #121212); @@ -177,7 +177,7 @@ You can create your own manuscript / handwriting font on http://www.myscriptfont http://nodethirtythree.com | @nodethirtythree Released under the Creative Commons Attribution 3.0 license (nodethirtythree.com/license) * http://html5up.net/minimaxing/ - + Based also on the work from http://wiki.lapetitesissone.fr/index.php?page=Lionwiki */ @@ -234,7 +234,7 @@ h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover { font-size: 105%; } -.markItUpEditor +.markItUpEditor { width: 90%; font-family: @fontEdit; @@ -371,13 +371,13 @@ th, thead, #previewPane th, #previewPane thead { word-break: break-all; /* Instead use this non-standard one: */ word-break: break-word; - + /* Adds a hyphen where the word breaks, if supported (No Blink) */ -ms-hyphens: auto; -moz-hyphens: auto; -webkit-hyphens: auto; hyphens: auto; -} +} @@ -492,12 +492,12 @@ s { } ::selection { - background: @fg; + background: @fg; color: @bg; } - + ::-moz-selection { - background: @fg; + background: @fg; color: @bg; } @@ -533,7 +533,7 @@ img { /*float: left;*/ /*margin: 2px 1.25em 0 0;*/ margin: 1.5em; - + max-width: 50%; max-height: 500px; padding:1px; @@ -556,13 +556,13 @@ img.noborder { position: absolute; z-index: 10; } - + .img-circle { border-radius: 50%; border: solid 0px ; min-width:100px; max-width:200px; - background: @HeaderColor; + background: @HeaderColor; } @@ -701,7 +701,7 @@ a.toolbarTextareaItem b { body { font-size: (@MainFontSize + 0); } - + section, article { margin: 0 0 60px 0; } @@ -838,7 +838,7 @@ a.toolbarTextareaItem b { body { font-size: (@MainFontSize + 1); } - + section, article { margin: 10px 10px 50px 10px; } @@ -978,7 +978,7 @@ a.toolbarTextareaItem b { body { font-size: (@MainFontSize + 1); } - + h2 { font-size: 1.4em; } @@ -1098,7 +1098,7 @@ a.toolbarTextareaItem b { #footer-wrapper section, #footer-wrapper article { border-bottom: solid 1px #ced0b7; } - + /* important for markitup : */ .contentTextarea { @@ -1108,7 +1108,7 @@ a.toolbarTextareaItem b { padding: 0px; margin-left: -0.25px; } - + #main { /*overflow: auto;*/ background-color: @bg; @@ -1117,12 +1117,12 @@ a.toolbarTextareaItem b { } /* from 5grid/core.css */ - + .\35 grid { /*overflow: hidden;*/ /* prevent horizontal scroll */ - overflow: visible; + overflow: visible; } - + } @@ -1215,7 +1215,7 @@ progress::-webkit-progress-bar { width: 65%; border: 2px solid @HeaderColor; background-color: @HeaderColor; - height: 50px; + min-height: 50px; margin-top: 8px; margin-bottom: 8px; font-family: @font; @@ -1226,10 +1226,10 @@ progress::-webkit-progress-bar { /*cursor: pointer;*/ text-align: center; vertical-align: middle; - + /*transition: box-shadow 0.25s cubic-bezier(0.08, 0.59, 0.29, 0.99) 0s, color 0.25s cubic-bezier(0.08, 0.59, 0.29, 0.99) 0s, border-color 0.25s cubic-bezier(0.08, 0.59, 0.29, 0.99) 0s, transform 0.25s cubic-bezier(0.08, 0.59, 0.29, 0.99) 0s, background-color 0.25s cubic-bezier(0.08, 0.59, 0.29, 0.99) 0s;*/ - + border-radius: 0px; } @@ -1239,7 +1239,7 @@ progress::-webkit-progress-bar { padding: 0px; padding-top : 0px; - height: 46px; + min-height: 46px; line-height:46px; color: #fff; text-decoration: none; @@ -1298,11 +1298,11 @@ progress::-webkit-progress-bar { img, video, iframe { filter: invert(100%) hue-rotate(180deg); } - + #header-wrapper { filter: invert(100%) hue-rotate(180deg); } - + h1, h2, h3, h4 { color: @fg; } diff --git a/conf/pheditor.php b/conf/pheditor.php index 5e92729..86f11ef 100755 --- a/conf/pheditor.php +++ b/conf/pheditor.php @@ -8,6 +8,7 @@ * Release under MIT license */ +/* "admin" by default */ define('PASSWORD', '__PASSWORD_SHA1__'); define('DS', DIRECTORY_SEPARATOR); define('MAIN_DIR', __DIR__); @@ -20,7 +21,7 @@ define('HISTORY_PATH', MAIN_DIR . DS . '.phedhistory'); define('MAX_HISTORY_FILES', 5); define('WORD_WRAP', true); define('PERMISSIONS', 'newfile,newdir,editfile,deletefile,deletedir,renamefile,renamedir,changepassword,uploadfile,terminal'); // empty means all -define('PATTERN_FILES', '/^[A-Za-z0-9-_.\/]*\.(txt|php|htm|html|js|css|tpl|md|xml|json|t2t)$/i'); // empty means no pattern +define('PATTERN_FILES', '/^[A-Za-z0-9-_.\/]*\.(txt|php|htm|html|js|css|tpl|md|xml|json|t2t|less)$/i'); // empty means no pattern //define('PATTERN_FILES', ''); // empty means no pattern define('PATTERN_DIRECTORIES', '/^((?!backup).)*$/i'); // empy means no pattern define('TERMINAL_COMMANDS', 'ls,ll,cp,rm,mv,whoami,pidof,pwd,whereis,kill,php,date,cd,mkdir,chmod,chown,rmdir,touch,cat,git,find,grep,echo,tar,zip,unzip,whatis,composer,help'); @@ -194,6 +195,10 @@ if (isset($_POST['action'])) { } } + if (is_writable(__FILE__) === false) { + die(json_error('File is not writable')); + } + file_put_contents(__FILE__, implode($contents)); echo json_success('Password changed successfully'); @@ -474,11 +479,13 @@ function json_success($message, $params = []) Pheditor + +