Merge branch 'master' into dev10
This commit is contained in:
commit
6df8a83677
@ -25,6 +25,10 @@
|
|||||||
- Modifications :
|
- Modifications :
|
||||||
- Aperçu de la police dans les sélecteurs.
|
- Aperçu de la police dans les sélecteurs.
|
||||||
- Gestion du canal de mise à jour selon la version installée
|
- Gestion du canal de mise à jour selon la version installée
|
||||||
|
- Module Blog : position des boutons d'édition de l'article au-dessus des commentaires.
|
||||||
|
- Module Gallery :
|
||||||
|
- choix de la vignette d'album
|
||||||
|
- Tri ordre naturel de la galerie et des images de la galerie
|
||||||
- Mises à jour :
|
- Mises à jour :
|
||||||
- Configurations Code Mirror pour TinyMCE et standalone
|
- Configurations Code Mirror pour TinyMCE et standalone
|
||||||
|
|
||||||
|
5
core/vendor/tinymce/init.js
vendored
5
core/vendor/tinymce/init.js
vendored
@ -32,10 +32,7 @@ tinymce.init({
|
|||||||
lineNumbers: true
|
lineNumbers: true
|
||||||
},
|
},
|
||||||
width: 800, // Default value is 800
|
width: 800, // Default value is 800
|
||||||
height: 500, // Default value is 550
|
height: 500 // Default value is 550
|
||||||
cssFiles: [
|
|
||||||
'theme/3024-day.css'
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
// Cibles de la target
|
// Cibles de la target
|
||||||
target_list: [
|
target_list: [
|
||||||
|
@ -1,38 +0,0 @@
|
|||||||
/*
|
|
||||||
|
|
||||||
Name: 3024 day
|
|
||||||
Author: Jan T. Sott (http://github.com/idleberg)
|
|
||||||
|
|
||||||
CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
|
|
||||||
Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
.cm-s-3024-day.CodeMirror {background: #f7f7f7; color: #3a3432;}
|
|
||||||
.cm-s-3024-day div.CodeMirror-selected {background: #d6d5d4 !important;}
|
|
||||||
|
|
||||||
.cm-s-3024-day .CodeMirror-gutters {background: #f7f7f7; border-right: 0px;}
|
|
||||||
.cm-s-3024-day .CodeMirror-guttermarker { color: #db2d20; }
|
|
||||||
.cm-s-3024-day .CodeMirror-guttermarker-subtle { color: #807d7c; }
|
|
||||||
.cm-s-3024-day .CodeMirror-linenumber {color: #807d7c;}
|
|
||||||
|
|
||||||
.cm-s-3024-day .CodeMirror-cursor {border-left: 1px solid #5c5855 !important;}
|
|
||||||
|
|
||||||
.cm-s-3024-day span.cm-comment {color: #cdab53;}
|
|
||||||
.cm-s-3024-day span.cm-atom {color: #a16a94;}
|
|
||||||
.cm-s-3024-day span.cm-number {color: #a16a94;}
|
|
||||||
|
|
||||||
.cm-s-3024-day span.cm-property, .cm-s-3024-day span.cm-attribute {color: #01a252;}
|
|
||||||
.cm-s-3024-day span.cm-keyword {color: #db2d20;}
|
|
||||||
.cm-s-3024-day span.cm-string {color: #fded02;}
|
|
||||||
|
|
||||||
.cm-s-3024-day span.cm-variable {color: #01a252;}
|
|
||||||
.cm-s-3024-day span.cm-variable-2 {color: #01a0e4;}
|
|
||||||
.cm-s-3024-day span.cm-def {color: #e8bbd0;}
|
|
||||||
.cm-s-3024-day span.cm-bracket {color: #3a3432;}
|
|
||||||
.cm-s-3024-day span.cm-tag {color: #db2d20;}
|
|
||||||
.cm-s-3024-day span.cm-link {color: #a16a94;}
|
|
||||||
.cm-s-3024-day span.cm-error {background: #db2d20; color: #5c5855;}
|
|
||||||
|
|
||||||
.cm-s-3024-day .CodeMirror-activeline-background {background: #e8f2ff !important;}
|
|
||||||
.cm-s-3024-day .CodeMirror-matchingbracket { text-decoration: underline; color: #a16a94 !important;}
|
|
@ -1,37 +0,0 @@
|
|||||||
/*
|
|
||||||
|
|
||||||
Name: 3024 night
|
|
||||||
Author: Jan T. Sott (http://github.com/idleberg)
|
|
||||||
|
|
||||||
CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
|
|
||||||
Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
.cm-s-3024-night.CodeMirror {background: #090300; color: #d6d5d4;}
|
|
||||||
.cm-s-3024-night div.CodeMirror-selected {background: #3a3432 !important;}
|
|
||||||
.cm-s-3024-night .CodeMirror-gutters {background: #090300; border-right: 0px;}
|
|
||||||
.cm-s-3024-night .CodeMirror-guttermarker { color: #db2d20; }
|
|
||||||
.cm-s-3024-night .CodeMirror-guttermarker-subtle { color: #5c5855; }
|
|
||||||
.cm-s-3024-night .CodeMirror-linenumber {color: #5c5855;}
|
|
||||||
|
|
||||||
.cm-s-3024-night .CodeMirror-cursor {border-left: 1px solid #807d7c !important;}
|
|
||||||
|
|
||||||
.cm-s-3024-night span.cm-comment {color: #cdab53;}
|
|
||||||
.cm-s-3024-night span.cm-atom {color: #a16a94;}
|
|
||||||
.cm-s-3024-night span.cm-number {color: #a16a94;}
|
|
||||||
|
|
||||||
.cm-s-3024-night span.cm-property, .cm-s-3024-night span.cm-attribute {color: #01a252;}
|
|
||||||
.cm-s-3024-night span.cm-keyword {color: #db2d20;}
|
|
||||||
.cm-s-3024-night span.cm-string {color: #fded02;}
|
|
||||||
|
|
||||||
.cm-s-3024-night span.cm-variable {color: #01a252;}
|
|
||||||
.cm-s-3024-night span.cm-variable-2 {color: #01a0e4;}
|
|
||||||
.cm-s-3024-night span.cm-def {color: #e8bbd0;}
|
|
||||||
.cm-s-3024-night span.cm-bracket {color: #d6d5d4;}
|
|
||||||
.cm-s-3024-night span.cm-tag {color: #db2d20;}
|
|
||||||
.cm-s-3024-night span.cm-link {color: #a16a94;}
|
|
||||||
.cm-s-3024-night span.cm-error {background: #db2d20; color: #807d7c;}
|
|
||||||
|
|
||||||
.cm-s-3024-night .CodeMirror-activeline-background {background: #2F2F2F !important;}
|
|
||||||
.cm-s-3024-night .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
|
|
@ -1,5 +0,0 @@
|
|||||||
.cm-s-ambiance.CodeMirror {
|
|
||||||
-webkit-box-shadow: none;
|
|
||||||
-moz-box-shadow: none;
|
|
||||||
box-shadow: none;
|
|
||||||
}
|
|
File diff suppressed because one or more lines are too long
@ -1,36 +0,0 @@
|
|||||||
/*
|
|
||||||
|
|
||||||
Name: Base16 Default Dark
|
|
||||||
Author: Chris Kempson (http://chriskempson.com)
|
|
||||||
|
|
||||||
CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-chrome-devtools)
|
|
||||||
Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
.cm-s-base16-dark.CodeMirror {background: #151515; color: #e0e0e0;}
|
|
||||||
.cm-s-base16-dark div.CodeMirror-selected {background: #303030 !important;}
|
|
||||||
.cm-s-base16-dark .CodeMirror-gutters {background: #151515; border-right: 0px;}
|
|
||||||
.cm-s-base16-dark .CodeMirror-guttermarker { color: #ac4142; }
|
|
||||||
.cm-s-base16-dark .CodeMirror-guttermarker-subtle { color: #505050; }
|
|
||||||
.cm-s-base16-dark .CodeMirror-linenumber {color: #505050;}
|
|
||||||
.cm-s-base16-dark .CodeMirror-cursor {border-left: 1px solid #b0b0b0 !important;}
|
|
||||||
|
|
||||||
.cm-s-base16-dark span.cm-comment {color: #8f5536;}
|
|
||||||
.cm-s-base16-dark span.cm-atom {color: #aa759f;}
|
|
||||||
.cm-s-base16-dark span.cm-number {color: #aa759f;}
|
|
||||||
|
|
||||||
.cm-s-base16-dark span.cm-property, .cm-s-base16-dark span.cm-attribute {color: #90a959;}
|
|
||||||
.cm-s-base16-dark span.cm-keyword {color: #ac4142;}
|
|
||||||
.cm-s-base16-dark span.cm-string {color: #f4bf75;}
|
|
||||||
|
|
||||||
.cm-s-base16-dark span.cm-variable {color: #90a959;}
|
|
||||||
.cm-s-base16-dark span.cm-variable-2 {color: #6a9fb5;}
|
|
||||||
.cm-s-base16-dark span.cm-def {color: #d28445;}
|
|
||||||
.cm-s-base16-dark span.cm-bracket {color: #e0e0e0;}
|
|
||||||
.cm-s-base16-dark span.cm-tag {color: #ac4142;}
|
|
||||||
.cm-s-base16-dark span.cm-link {color: #aa759f;}
|
|
||||||
.cm-s-base16-dark span.cm-error {background: #ac4142; color: #b0b0b0;}
|
|
||||||
|
|
||||||
.cm-s-base16-dark .CodeMirror-activeline-background {background: #202020 !important;}
|
|
||||||
.cm-s-base16-dark .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
|
|
@ -1,36 +0,0 @@
|
|||||||
/*
|
|
||||||
|
|
||||||
Name: Base16 Default Light
|
|
||||||
Author: Chris Kempson (http://chriskempson.com)
|
|
||||||
|
|
||||||
CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-chrome-devtools)
|
|
||||||
Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
.cm-s-base16-light.CodeMirror {background: #f5f5f5; color: #202020;}
|
|
||||||
.cm-s-base16-light div.CodeMirror-selected {background: #e0e0e0 !important;}
|
|
||||||
.cm-s-base16-light .CodeMirror-gutters {background: #f5f5f5; border-right: 0px;}
|
|
||||||
.cm-s-base16-light .CodeMirror-guttermarker { color: #ac4142; }
|
|
||||||
.cm-s-base16-light .CodeMirror-guttermarker-subtle { color: #b0b0b0; }
|
|
||||||
.cm-s-base16-light .CodeMirror-linenumber {color: #b0b0b0;}
|
|
||||||
.cm-s-base16-light .CodeMirror-cursor {border-left: 1px solid #505050 !important;}
|
|
||||||
|
|
||||||
.cm-s-base16-light span.cm-comment {color: #8f5536;}
|
|
||||||
.cm-s-base16-light span.cm-atom {color: #aa759f;}
|
|
||||||
.cm-s-base16-light span.cm-number {color: #aa759f;}
|
|
||||||
|
|
||||||
.cm-s-base16-light span.cm-property, .cm-s-base16-light span.cm-attribute {color: #90a959;}
|
|
||||||
.cm-s-base16-light span.cm-keyword {color: #ac4142;}
|
|
||||||
.cm-s-base16-light span.cm-string {color: #f4bf75;}
|
|
||||||
|
|
||||||
.cm-s-base16-light span.cm-variable {color: #90a959;}
|
|
||||||
.cm-s-base16-light span.cm-variable-2 {color: #6a9fb5;}
|
|
||||||
.cm-s-base16-light span.cm-def {color: #d28445;}
|
|
||||||
.cm-s-base16-light span.cm-bracket {color: #202020;}
|
|
||||||
.cm-s-base16-light span.cm-tag {color: #ac4142;}
|
|
||||||
.cm-s-base16-light span.cm-link {color: #aa759f;}
|
|
||||||
.cm-s-base16-light span.cm-error {background: #ac4142; color: #505050;}
|
|
||||||
|
|
||||||
.cm-s-base16-light .CodeMirror-activeline-background {background: #DDDCDC !important;}
|
|
||||||
.cm-s-base16-light .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
|
|
@ -1,30 +0,0 @@
|
|||||||
/* Port of TextMate's Blackboard theme */
|
|
||||||
|
|
||||||
.cm-s-blackboard.CodeMirror { background: #0C1021; color: #F8F8F8; }
|
|
||||||
.cm-s-blackboard .CodeMirror-selected { background: #253B76 !important; }
|
|
||||||
.cm-s-blackboard .CodeMirror-gutters { background: #0C1021; border-right: 0; }
|
|
||||||
.cm-s-blackboard .CodeMirror-guttermarker { color: #FBDE2D; }
|
|
||||||
.cm-s-blackboard .CodeMirror-guttermarker-subtle { color: #888; }
|
|
||||||
.cm-s-blackboard .CodeMirror-linenumber { color: #888; }
|
|
||||||
.cm-s-blackboard .CodeMirror-cursor { border-left: 1px solid #A7A7A7 !important; }
|
|
||||||
|
|
||||||
.cm-s-blackboard .cm-keyword { color: #FBDE2D; }
|
|
||||||
.cm-s-blackboard .cm-atom { color: #D8FA3C; }
|
|
||||||
.cm-s-blackboard .cm-number { color: #D8FA3C; }
|
|
||||||
.cm-s-blackboard .cm-def { color: #8DA6CE; }
|
|
||||||
.cm-s-blackboard .cm-variable { color: #FF6400; }
|
|
||||||
.cm-s-blackboard .cm-operator { color: #FBDE2D;}
|
|
||||||
.cm-s-blackboard .cm-comment { color: #AEAEAE; }
|
|
||||||
.cm-s-blackboard .cm-string { color: #61CE3C; }
|
|
||||||
.cm-s-blackboard .cm-string-2 { color: #61CE3C; }
|
|
||||||
.cm-s-blackboard .cm-meta { color: #D8FA3C; }
|
|
||||||
.cm-s-blackboard .cm-builtin { color: #8DA6CE; }
|
|
||||||
.cm-s-blackboard .cm-tag { color: #8DA6CE; }
|
|
||||||
.cm-s-blackboard .cm-attribute { color: #8DA6CE; }
|
|
||||||
.cm-s-blackboard .cm-header { color: #FF6400; }
|
|
||||||
.cm-s-blackboard .cm-hr { color: #AEAEAE; }
|
|
||||||
.cm-s-blackboard .cm-link { color: #8DA6CE; }
|
|
||||||
.cm-s-blackboard .cm-error { background: #9D1E15; color: #F8F8F8; }
|
|
||||||
|
|
||||||
.cm-s-blackboard .CodeMirror-activeline-background {background: #3C3636 !important;}
|
|
||||||
.cm-s-blackboard .CodeMirror-matchingbracket {outline:1px solid grey;color:white !important}
|
|
@ -1,23 +0,0 @@
|
|||||||
.cm-s-cobalt.CodeMirror { background: #002240; color: white; }
|
|
||||||
.cm-s-cobalt div.CodeMirror-selected { background: #b36539 !important; }
|
|
||||||
.cm-s-cobalt .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; }
|
|
||||||
.cm-s-cobalt .CodeMirror-guttermarker { color: #ffee80; }
|
|
||||||
.cm-s-cobalt .CodeMirror-guttermarker-subtle { color: #d0d0d0; }
|
|
||||||
.cm-s-cobalt .CodeMirror-linenumber { color: #d0d0d0; }
|
|
||||||
.cm-s-cobalt .CodeMirror-cursor { border-left: 1px solid white !important; }
|
|
||||||
|
|
||||||
.cm-s-cobalt span.cm-comment { color: #08f; }
|
|
||||||
.cm-s-cobalt span.cm-atom { color: #845dc4; }
|
|
||||||
.cm-s-cobalt span.cm-number, .cm-s-cobalt span.cm-attribute { color: #ff80e1; }
|
|
||||||
.cm-s-cobalt span.cm-keyword { color: #ffee80; }
|
|
||||||
.cm-s-cobalt span.cm-string { color: #3ad900; }
|
|
||||||
.cm-s-cobalt span.cm-meta { color: #ff9d00; }
|
|
||||||
.cm-s-cobalt span.cm-variable-2, .cm-s-cobalt span.cm-tag { color: #9effff; }
|
|
||||||
.cm-s-cobalt span.cm-variable-3, .cm-s-cobalt span.cm-def { color: white; }
|
|
||||||
.cm-s-cobalt span.cm-bracket { color: #d8d8d8; }
|
|
||||||
.cm-s-cobalt span.cm-builtin, .cm-s-cobalt span.cm-special { color: #ff9e59; }
|
|
||||||
.cm-s-cobalt span.cm-link { color: #845dc4; }
|
|
||||||
.cm-s-cobalt span.cm-error { color: #9d1e15; }
|
|
||||||
|
|
||||||
.cm-s-cobalt .CodeMirror-activeline-background {background: #002D57 !important;}
|
|
||||||
.cm-s-cobalt .CodeMirror-matchingbracket {outline:1px solid grey;color:white !important}
|
|
@ -1,23 +0,0 @@
|
|||||||
.cm-s-eclipse span.cm-meta {color: #FF1717;}
|
|
||||||
.cm-s-eclipse span.cm-keyword { line-height: 1em; font-weight: bold; color: #7F0055; }
|
|
||||||
.cm-s-eclipse span.cm-atom {color: #219;}
|
|
||||||
.cm-s-eclipse span.cm-number {color: #164;}
|
|
||||||
.cm-s-eclipse span.cm-def {color: #00f;}
|
|
||||||
.cm-s-eclipse span.cm-variable {color: black;}
|
|
||||||
.cm-s-eclipse span.cm-variable-2 {color: #0000C0;}
|
|
||||||
.cm-s-eclipse span.cm-variable-3 {color: #0000C0;}
|
|
||||||
.cm-s-eclipse span.cm-property {color: black;}
|
|
||||||
.cm-s-eclipse span.cm-operator {color: black;}
|
|
||||||
.cm-s-eclipse span.cm-comment {color: #3F7F5F;}
|
|
||||||
.cm-s-eclipse span.cm-string {color: #2A00FF;}
|
|
||||||
.cm-s-eclipse span.cm-string-2 {color: #f50;}
|
|
||||||
.cm-s-eclipse span.cm-qualifier {color: #555;}
|
|
||||||
.cm-s-eclipse span.cm-builtin {color: #30a;}
|
|
||||||
.cm-s-eclipse span.cm-bracket {color: #cc7;}
|
|
||||||
.cm-s-eclipse span.cm-tag {color: #170;}
|
|
||||||
.cm-s-eclipse span.cm-attribute {color: #00c;}
|
|
||||||
.cm-s-eclipse span.cm-link {color: #219;}
|
|
||||||
.cm-s-eclipse span.cm-error {color: #f00;}
|
|
||||||
|
|
||||||
.cm-s-eclipse .CodeMirror-activeline-background {background: #e8f2ff !important;}
|
|
||||||
.cm-s-eclipse .CodeMirror-matchingbracket {outline:1px solid grey; color:black !important;}
|
|
@ -1,13 +0,0 @@
|
|||||||
.cm-s-elegant span.cm-number, .cm-s-elegant span.cm-string, .cm-s-elegant span.cm-atom {color: #762;}
|
|
||||||
.cm-s-elegant span.cm-comment {color: #262; font-style: italic; line-height: 1em;}
|
|
||||||
.cm-s-elegant span.cm-meta {color: #555; font-style: italic; line-height: 1em;}
|
|
||||||
.cm-s-elegant span.cm-variable {color: black;}
|
|
||||||
.cm-s-elegant span.cm-variable-2 {color: #b11;}
|
|
||||||
.cm-s-elegant span.cm-qualifier {color: #555;}
|
|
||||||
.cm-s-elegant span.cm-keyword {color: #730;}
|
|
||||||
.cm-s-elegant span.cm-builtin {color: #30a;}
|
|
||||||
.cm-s-elegant span.cm-link {color: #762;}
|
|
||||||
.cm-s-elegant span.cm-error {background-color: #fdd;}
|
|
||||||
|
|
||||||
.cm-s-elegant .CodeMirror-activeline-background {background: #e8f2ff !important;}
|
|
||||||
.cm-s-elegant .CodeMirror-matchingbracket {outline:1px solid grey; color:black !important;}
|
|
@ -1,32 +0,0 @@
|
|||||||
.cm-s-erlang-dark.CodeMirror { background: #002240; color: white; }
|
|
||||||
.cm-s-erlang-dark div.CodeMirror-selected { background: #b36539 !important; }
|
|
||||||
.cm-s-erlang-dark .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; }
|
|
||||||
.cm-s-erlang-dark .CodeMirror-guttermarker { color: white; }
|
|
||||||
.cm-s-erlang-dark .CodeMirror-guttermarker-subtle { color: #d0d0d0; }
|
|
||||||
.cm-s-erlang-dark .CodeMirror-linenumber { color: #d0d0d0; }
|
|
||||||
.cm-s-erlang-dark .CodeMirror-cursor { border-left: 1px solid white !important; }
|
|
||||||
|
|
||||||
.cm-s-erlang-dark span.cm-atom { color: #f133f1; }
|
|
||||||
.cm-s-erlang-dark span.cm-attribute { color: #ff80e1; }
|
|
||||||
.cm-s-erlang-dark span.cm-bracket { color: #ff9d00; }
|
|
||||||
.cm-s-erlang-dark span.cm-builtin { color: #eaa; }
|
|
||||||
.cm-s-erlang-dark span.cm-comment { color: #77f; }
|
|
||||||
.cm-s-erlang-dark span.cm-def { color: #e7a; }
|
|
||||||
.cm-s-erlang-dark span.cm-keyword { color: #ffee80; }
|
|
||||||
.cm-s-erlang-dark span.cm-meta { color: #50fefe; }
|
|
||||||
.cm-s-erlang-dark span.cm-number { color: #ffd0d0; }
|
|
||||||
.cm-s-erlang-dark span.cm-operator { color: #d55; }
|
|
||||||
.cm-s-erlang-dark span.cm-property { color: #ccc; }
|
|
||||||
.cm-s-erlang-dark span.cm-qualifier { color: #ccc; }
|
|
||||||
.cm-s-erlang-dark span.cm-quote { color: #ccc; }
|
|
||||||
.cm-s-erlang-dark span.cm-special { color: #ffbbbb; }
|
|
||||||
.cm-s-erlang-dark span.cm-string { color: #3ad900; }
|
|
||||||
.cm-s-erlang-dark span.cm-string-2 { color: #ccc; }
|
|
||||||
.cm-s-erlang-dark span.cm-tag { color: #9effff; }
|
|
||||||
.cm-s-erlang-dark span.cm-variable { color: #50fe50; }
|
|
||||||
.cm-s-erlang-dark span.cm-variable-2 { color: #e0e; }
|
|
||||||
.cm-s-erlang-dark span.cm-variable-3 { color: #ccc; }
|
|
||||||
.cm-s-erlang-dark span.cm-error { color: #9d1e15; }
|
|
||||||
|
|
||||||
.cm-s-erlang-dark .CodeMirror-activeline-background {background: #013461 !important;}
|
|
||||||
.cm-s-erlang-dark .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;}
|
|
@ -1,45 +0,0 @@
|
|||||||
/*
|
|
||||||
http://lesscss.org/ dark theme
|
|
||||||
Ported to CodeMirror by Peter Kroon
|
|
||||||
*/
|
|
||||||
.cm-s-lesser-dark {
|
|
||||||
line-height: 1.3em;
|
|
||||||
}
|
|
||||||
.cm-s-lesser-dark.CodeMirror { background: #262626; color: #EBEFE7; text-shadow: 0 -1px 1px #262626; }
|
|
||||||
.cm-s-lesser-dark div.CodeMirror-selected {background: #45443B !important;} /* 33322B*/
|
|
||||||
.cm-s-lesser-dark .CodeMirror-cursor { border-left: 1px solid white !important; }
|
|
||||||
.cm-s-lesser-dark pre { padding: 0 8px; }/*editable code holder*/
|
|
||||||
|
|
||||||
.cm-s-lesser-dark.CodeMirror span.CodeMirror-matchingbracket { color: #7EFC7E; }/*65FC65*/
|
|
||||||
|
|
||||||
.cm-s-lesser-dark .CodeMirror-gutters { background: #262626; border-right:1px solid #aaa; }
|
|
||||||
.cm-s-lesser-dark .CodeMirror-guttermarker { color: #599eff; }
|
|
||||||
.cm-s-lesser-dark .CodeMirror-guttermarker-subtle { color: #777; }
|
|
||||||
.cm-s-lesser-dark .CodeMirror-linenumber { color: #777; }
|
|
||||||
|
|
||||||
.cm-s-lesser-dark span.cm-keyword { color: #599eff; }
|
|
||||||
.cm-s-lesser-dark span.cm-atom { color: #C2B470; }
|
|
||||||
.cm-s-lesser-dark span.cm-number { color: #B35E4D; }
|
|
||||||
.cm-s-lesser-dark span.cm-def {color: white;}
|
|
||||||
.cm-s-lesser-dark span.cm-variable { color:#D9BF8C; }
|
|
||||||
.cm-s-lesser-dark span.cm-variable-2 { color: #669199; }
|
|
||||||
.cm-s-lesser-dark span.cm-variable-3 { color: white; }
|
|
||||||
.cm-s-lesser-dark span.cm-property {color: #92A75C;}
|
|
||||||
.cm-s-lesser-dark span.cm-operator {color: #92A75C;}
|
|
||||||
.cm-s-lesser-dark span.cm-comment { color: #666; }
|
|
||||||
.cm-s-lesser-dark span.cm-string { color: #BCD279; }
|
|
||||||
.cm-s-lesser-dark span.cm-string-2 {color: #f50;}
|
|
||||||
.cm-s-lesser-dark span.cm-meta { color: #738C73; }
|
|
||||||
.cm-s-lesser-dark span.cm-qualifier {color: #555;}
|
|
||||||
.cm-s-lesser-dark span.cm-builtin { color: #ff9e59; }
|
|
||||||
.cm-s-lesser-dark span.cm-bracket { color: #EBEFE7; }
|
|
||||||
.cm-s-lesser-dark span.cm-tag { color: #669199; }
|
|
||||||
.cm-s-lesser-dark span.cm-attribute {color: #00c;}
|
|
||||||
.cm-s-lesser-dark span.cm-header {color: #a0a;}
|
|
||||||
.cm-s-lesser-dark span.cm-quote {color: #090;}
|
|
||||||
.cm-s-lesser-dark span.cm-hr {color: #999;}
|
|
||||||
.cm-s-lesser-dark span.cm-link {color: #00c;}
|
|
||||||
.cm-s-lesser-dark span.cm-error { color: #9d1e15; }
|
|
||||||
|
|
||||||
.cm-s-lesser-dark .CodeMirror-activeline-background {background: #3C3A3A !important;}
|
|
||||||
.cm-s-lesser-dark .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;}
|
|
@ -1,35 +0,0 @@
|
|||||||
/****************************************************************/
|
|
||||||
/* Based on mbonaci's Brackets mbo theme */
|
|
||||||
/* https://github.com/mbonaci/global/blob/master/Mbo.tmTheme */
|
|
||||||
/* Create your own: http://tmtheme-editor.herokuapp.com */
|
|
||||||
/****************************************************************/
|
|
||||||
|
|
||||||
.cm-s-mbo.CodeMirror {background: #2c2c2c; color: #ffffec;}
|
|
||||||
.cm-s-mbo div.CodeMirror-selected {background: #716C62 !important;}
|
|
||||||
.cm-s-mbo .CodeMirror-gutters {background: #4e4e4e; border-right: 0px;}
|
|
||||||
.cm-s-mbo .CodeMirror-guttermarker { color: white; }
|
|
||||||
.cm-s-mbo .CodeMirror-guttermarker-subtle { color: grey; }
|
|
||||||
.cm-s-mbo .CodeMirror-linenumber {color: #dadada;}
|
|
||||||
.cm-s-mbo .CodeMirror-cursor {border-left: 1px solid #ffffec !important;}
|
|
||||||
|
|
||||||
.cm-s-mbo span.cm-comment {color: #95958a;}
|
|
||||||
.cm-s-mbo span.cm-atom {color: #00a8c6;}
|
|
||||||
.cm-s-mbo span.cm-number {color: #00a8c6;}
|
|
||||||
|
|
||||||
.cm-s-mbo span.cm-property, .cm-s-mbo span.cm-attribute {color: #9ddfe9;}
|
|
||||||
.cm-s-mbo span.cm-keyword {color: #ffb928;}
|
|
||||||
.cm-s-mbo span.cm-string {color: #ffcf6c;}
|
|
||||||
.cm-s-mbo span.cm-string.cm-property {color: #ffffec;}
|
|
||||||
|
|
||||||
.cm-s-mbo span.cm-variable {color: #ffffec;}
|
|
||||||
.cm-s-mbo span.cm-variable-2 {color: #00a8c6;}
|
|
||||||
.cm-s-mbo span.cm-def {color: #ffffec;}
|
|
||||||
.cm-s-mbo span.cm-bracket {color: #fffffc; font-weight: bold;}
|
|
||||||
.cm-s-mbo span.cm-tag {color: #9ddfe9;}
|
|
||||||
.cm-s-mbo span.cm-link {color: #f54b07;}
|
|
||||||
.cm-s-mbo span.cm-error {border-bottom: #636363; color: #ffffec;}
|
|
||||||
.cm-s-mbo span.cm-qualifier {color: #ffffec;}
|
|
||||||
|
|
||||||
.cm-s-mbo .CodeMirror-activeline-background {background: #494b41 !important;}
|
|
||||||
.cm-s-mbo .CodeMirror-matchingbracket {color: #222 !important;}
|
|
||||||
.cm-s-mbo .CodeMirror-matchingtag {background: rgba(255, 255, 255, .37);}
|
|
@ -1,44 +0,0 @@
|
|||||||
/*
|
|
||||||
MDN-LIKE Theme - Mozilla
|
|
||||||
Ported to CodeMirror by Peter Kroon <plakroon@gmail.com>
|
|
||||||
Report bugs/issues here: https://github.com/codemirror/CodeMirror/issues
|
|
||||||
GitHub: @peterkroon
|
|
||||||
|
|
||||||
The mdn-like theme is inspired on the displayed code examples at: https://developer.mozilla.org/en-US/docs/Web/CSS/animation
|
|
||||||
|
|
||||||
*/
|
|
||||||
.cm-s-mdn-like.CodeMirror { color: #999; background-color: #fff; }
|
|
||||||
.cm-s-mdn-like .CodeMirror-selected { background: #cfc !important; }
|
|
||||||
|
|
||||||
.cm-s-mdn-like .CodeMirror-gutters { background: #f8f8f8; border-left: 6px solid rgba(0,83,159,0.65); color: #333; }
|
|
||||||
.cm-s-mdn-like .CodeMirror-linenumber { color: #aaa; margin-left: 3px; }
|
|
||||||
div.cm-s-mdn-like .CodeMirror-cursor { border-left: 2px solid #222; }
|
|
||||||
|
|
||||||
.cm-s-mdn-like .cm-keyword { color: #6262FF; }
|
|
||||||
.cm-s-mdn-like .cm-atom { color: #F90; }
|
|
||||||
.cm-s-mdn-like .cm-number { color: #ca7841; }
|
|
||||||
.cm-s-mdn-like .cm-def { color: #8DA6CE; }
|
|
||||||
.cm-s-mdn-like span.cm-variable-2, .cm-s-mdn-like span.cm-tag { color: #690; }
|
|
||||||
.cm-s-mdn-like span.cm-variable-3, .cm-s-mdn-like span.cm-def { color: #07a; }
|
|
||||||
|
|
||||||
.cm-s-mdn-like .cm-variable { color: #07a; }
|
|
||||||
.cm-s-mdn-like .cm-property { color: #905; }
|
|
||||||
.cm-s-mdn-like .cm-qualifier { color: #690; }
|
|
||||||
|
|
||||||
.cm-s-mdn-like .cm-operator { color: #cda869; }
|
|
||||||
.cm-s-mdn-like .cm-comment { color:#777; font-weight:normal; }
|
|
||||||
.cm-s-mdn-like .cm-string { color:#07a; font-style:italic; }
|
|
||||||
.cm-s-mdn-like .cm-string-2 { color:#bd6b18; } /*?*/
|
|
||||||
.cm-s-mdn-like .cm-meta { color: #000; } /*?*/
|
|
||||||
.cm-s-mdn-like .cm-builtin { color: #9B7536; } /*?*/
|
|
||||||
.cm-s-mdn-like .cm-tag { color: #997643; }
|
|
||||||
.cm-s-mdn-like .cm-attribute { color: #d6bb6d; } /*?*/
|
|
||||||
.cm-s-mdn-like .cm-header { color: #FF6400; }
|
|
||||||
.cm-s-mdn-like .cm-hr { color: #AEAEAE; }
|
|
||||||
.cm-s-mdn-like .cm-link { color:#ad9361; font-style:italic; text-decoration:none; }
|
|
||||||
.cm-s-mdn-like .cm-error { border-bottom: 1px solid red; }
|
|
||||||
|
|
||||||
div.cm-s-mdn-like .CodeMirror-activeline-background {background: #efefff;}
|
|
||||||
div.cm-s-mdn-like span.CodeMirror-matchingbracket {outline:1px solid grey; color: inherit;}
|
|
||||||
|
|
||||||
.cm-s-mdn-like.CodeMirror { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFcAAAAyCAYAAAAp8UeFAAAHvklEQVR42s2b63bcNgyEQZCSHCdt2vd/0tWF7I+Q6XgMXiTtuvU5Pl57ZQKkKHzEAOtF5KeIJBGJ8uvL599FRFREZhFx8DeXv8trn68RuGaC8TRfo3SNp9dlDDHedyLyTUTeRWStXKPZrjtpZxaRw5hPqozRs1N8/enzIiQRWcCgy4MUA0f+XWliDhyL8Lfyvx7ei/Ae3iQFHyw7U/59pQVIMEEPEz0G7XiwdRjzSfC3UTtz9vchIntxvry5iMgfIhJoEflOz2CQr3F5h/HfeFe+GTdLaKcu9L8LTeQb/R/7GgbsfKedyNdoHsN31uRPWrfZ5wsj/NzzRQHuToIdU3ahwnsKPxXCjJITuOsi7XLc7SG/v5GdALs7wf8JjTFiB5+QvTEfRyGOfX3Lrx8wxyQi3sNq46O7QahQiCsRFgqddjBouVEHOKDgXAQHD9gJCr5sMKkEdjwsarG/ww3BMHBU7OBjXnzdyY7SfCxf5/z6ATccrwlKuwC/jhznnPF4CgVzhhVf4xp2EixcBActO75iZ8/fM9zAs2OMzKdslgXWJ9XG8PQoOAMA5fGcsvORgv0doBXyHrCwfLJAOwo71QLNkb8n2Pl6EWiR7OCibtkPaz4Kc/0NNAze2gju3zOwekALDaCFPI5vjPFmgGY5AZqyGEvH1x7QfIb8YtxMnA/b+QQ0aQDAwc6JMFg8CbQZ4qoYEEHbRwNojuK3EHwd7VALSgq+MNDKzfT58T8qdpADrgW0GmgcAS1lhzztJmkAzcPNOQbsWEALBDSlMKUG0Eq4CLAQWvEVQ9WU57gZJwZtgPO3r9oBTQ9WO8TjqXINx8R0EYpiZEUWOF3FxkbJkgU9B2f41YBrIj5ZfsQa0M5kTgiAAqM3ShXLgu8XMqcrQBvJ0CL5pnTsfMB13oB8athpAq2XOQmcGmoACCLydx7nToa23ATaSIY2ichfOdPTGxlasXMLaL0MLZAOwAKIM+y8CmicobGdCcbbK9DzN+yYGVoNNI5iUKTMyYOjPse4A8SM1MmcXgU0toOq1yO/v8FOxlASyc7TgeYaAMBJHcY1CcCwGI/TK4AmDbDyKYBBtFUkRwto8gygiQEaByFgJ00BH2M8JWwQS1nafDXQCidWyOI8AcjDCSjCLk8ngObuAm3JAHAdubAmOaK06V8MNEsKPJOhobSprwQa6gD7DclRQdqcwL4zxqgBrQcabUiBLclRDKAlWp+etPkBaNMA0AKlrHwTdEByZAA4GM+SNluSY6wAzcMNewxmgig5Ks0nkrSpBvSaQHMdKTBAnLojOdYyGpQ254602ZILPdTD1hdlggdIm74jbTp8vDwF5ZYUeLWGJpWsh6XNyXgcYwVoJQTEhhTYkxzZjiU5npU2TaB979TQehlaAVq4kaGpiPwwwLkYUuBbQwocyQTv1tA0+1UFWoJF3iv1oq+qoSk8EQdJmwHkziIF7oOZk14EGitibAdjLYYK78H5vZOhtWpoI0ATGHs0Q8OMb4Ey+2bU2UYztCtA0wFAs7TplGLRVQCcqaFdGSPCeTI1QNIC52iWNzof6Uib7xjEp07mNNoUYmVosVItHrHzRlLgBn9LFyRHaQCtVUMbtTNhoXWiTOO9k/V8BdAc1Oq0ArSQs6/5SU0hckNy9NnXqQY0PGYo5dWJ7nINaN6o958FWin27aBaWRka1r5myvLOAm0j30eBJqCxHLReVclxhxOEN2JfDWjxBtAC7MIH1fVaGdoOp4qJYDgKtKPSFNID2gSnGldrCqkFZ+5UeQXQBIRrSwocbdZYQT/2LwRahBPBXoHrB8nxaGROST62DKUbQOMMzZIC9abkuELfQzQALWTnDNAm8KHWFOJgJ5+SHIvTPcmx1xQyZRhNL5Qci689aXMEaN/uNIWkEwDAvFpOZmgsBaaGnbs1NPa1Jm32gBZAIh1pCtG7TSH4aE0y1uVY4uqoFPisGlpP2rSA5qTecWn5agK6BzSpgAyD+wFaqhnYoSZ1Vwr8CmlTQbrcO3ZaX0NAEyMbYaAlyquFoLKK3SPby9CeVUPThrSJmkCAE0CrKUQadi4DrdSlWhmah0YL9z9vClH59YGbHx1J8VZTyAjQepJjmXwAKTDQI3omc3p1U4gDUf6RfcdYfrUp5ClAi2J3Ba6UOXGo+K+bQrjjssitG2SJzshaLwMtXgRagUNpYYoVkMSBLM+9GGiJZMvduG6DRZ4qc04DMPtQQxOjEtACmhO7K1AbNbQDEggZyJwscFpAGwENhoBeUwh3bWolhe8BTYVKxQEWrSUn/uhcM5KhvUu/+eQu0Lzhi+VrK0PrZZNDQKs9cpYUuFYgMVpD4/NxenJTiMCNqdUEUf1qZWjppLT5qSkkUZbCwkbZMSuVnu80hfSkzRbQeqCZSAh6huR4VtoM2gHAlLf72smuWgE+VV7XpE25Ab2WFDgyhnSuKbs4GuGzCjR+tIoUuMFg3kgcWKLTwRqanJQ2W00hAsenfaApRC42hbCvK1SlE0HtE9BGgneJO+ELamitD1YjjOYnNYVcraGhtKkW0EqVVeDx733I2NH581k1NNxNLG0i0IJ8/NjVaOZ0tYZ2Vtr0Xv7tPV3hkWp9EFkgS/J0vosngTaSoaG06WHi+xObQkaAdlbanP8B2+2l0f90LmUAAAAASUVORK5CYII=); }
|
|
@ -1,45 +0,0 @@
|
|||||||
/* Based on the theme at http://bonsaiden.github.com/JavaScript-Garden */
|
|
||||||
|
|
||||||
/*<!--match-->*/
|
|
||||||
.cm-s-midnight span.CodeMirror-matchhighlight { background: #494949; }
|
|
||||||
.cm-s-midnight.CodeMirror-focused span.CodeMirror-matchhighlight { background: #314D67 !important; }
|
|
||||||
|
|
||||||
/*<!--activeline-->*/
|
|
||||||
.cm-s-midnight .CodeMirror-activeline-background {background: #253540 !important;}
|
|
||||||
|
|
||||||
.cm-s-midnight.CodeMirror {
|
|
||||||
background: #0F192A;
|
|
||||||
color: #D1EDFF;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cm-s-midnight.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}
|
|
||||||
|
|
||||||
.cm-s-midnight div.CodeMirror-selected {background: #314D67 !important;}
|
|
||||||
.cm-s-midnight .CodeMirror-gutters {background: #0F192A; border-right: 1px solid;}
|
|
||||||
.cm-s-midnight .CodeMirror-guttermarker { color: white; }
|
|
||||||
.cm-s-midnight .CodeMirror-guttermarker-subtle { color: #d0d0d0; }
|
|
||||||
.cm-s-midnight .CodeMirror-linenumber {color: #D0D0D0;}
|
|
||||||
.cm-s-midnight .CodeMirror-cursor {
|
|
||||||
border-left: 1px solid #F8F8F0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cm-s-midnight span.cm-comment {color: #428BDD;}
|
|
||||||
.cm-s-midnight span.cm-atom {color: #AE81FF;}
|
|
||||||
.cm-s-midnight span.cm-number {color: #D1EDFF;}
|
|
||||||
|
|
||||||
.cm-s-midnight span.cm-property, .cm-s-midnight span.cm-attribute {color: #A6E22E;}
|
|
||||||
.cm-s-midnight span.cm-keyword {color: #E83737;}
|
|
||||||
.cm-s-midnight span.cm-string {color: #1DC116;}
|
|
||||||
|
|
||||||
.cm-s-midnight span.cm-variable {color: #FFAA3E;}
|
|
||||||
.cm-s-midnight span.cm-variable-2 {color: #FFAA3E;}
|
|
||||||
.cm-s-midnight span.cm-def {color: #4DD;}
|
|
||||||
.cm-s-midnight span.cm-bracket {color: #D1EDFF;}
|
|
||||||
.cm-s-midnight span.cm-tag {color: #449;}
|
|
||||||
.cm-s-midnight span.cm-link {color: #AE81FF;}
|
|
||||||
.cm-s-midnight span.cm-error {background: #F92672; color: #F8F8F0;}
|
|
||||||
|
|
||||||
.cm-s-midnight .CodeMirror-matchingbracket {
|
|
||||||
text-decoration: underline;
|
|
||||||
color: white !important;
|
|
||||||
}
|
|
@ -1,31 +0,0 @@
|
|||||||
/* Based on Sublime Text's Monokai theme */
|
|
||||||
|
|
||||||
.cm-s-monokai.CodeMirror {background: #272822; color: #f8f8f2;}
|
|
||||||
.cm-s-monokai div.CodeMirror-selected {background: #49483E !important;}
|
|
||||||
.cm-s-monokai .CodeMirror-gutters {background: #272822; border-right: 0px;}
|
|
||||||
.cm-s-monokai .CodeMirror-guttermarker { color: white; }
|
|
||||||
.cm-s-monokai .CodeMirror-guttermarker-subtle { color: #d0d0d0; }
|
|
||||||
.cm-s-monokai .CodeMirror-linenumber {color: #d0d0d0;}
|
|
||||||
.cm-s-monokai .CodeMirror-cursor {border-left: 1px solid #f8f8f0 !important;}
|
|
||||||
|
|
||||||
.cm-s-monokai span.cm-comment {color: #75715e;}
|
|
||||||
.cm-s-monokai span.cm-atom {color: #ae81ff;}
|
|
||||||
.cm-s-monokai span.cm-number {color: #ae81ff;}
|
|
||||||
|
|
||||||
.cm-s-monokai span.cm-property, .cm-s-monokai span.cm-attribute {color: #a6e22e;}
|
|
||||||
.cm-s-monokai span.cm-keyword {color: #f92672;}
|
|
||||||
.cm-s-monokai span.cm-string {color: #e6db74;}
|
|
||||||
|
|
||||||
.cm-s-monokai span.cm-variable {color: #a6e22e;}
|
|
||||||
.cm-s-monokai span.cm-variable-2 {color: #9effff;}
|
|
||||||
.cm-s-monokai span.cm-def {color: #fd971f;}
|
|
||||||
.cm-s-monokai span.cm-bracket {color: #f8f8f2;}
|
|
||||||
.cm-s-monokai span.cm-tag {color: #f92672;}
|
|
||||||
.cm-s-monokai span.cm-link {color: #ae81ff;}
|
|
||||||
.cm-s-monokai span.cm-error {background: #f92672; color: #f8f8f0;}
|
|
||||||
|
|
||||||
.cm-s-monokai .CodeMirror-activeline-background {background: #373831 !important;}
|
|
||||||
.cm-s-monokai .CodeMirror-matchingbracket {
|
|
||||||
text-decoration: underline;
|
|
||||||
color: white !important;
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
.cm-s-neat span.cm-comment { color: #a86; }
|
|
||||||
.cm-s-neat span.cm-keyword { line-height: 1em; font-weight: bold; color: blue; }
|
|
||||||
.cm-s-neat span.cm-string { color: #a22; }
|
|
||||||
.cm-s-neat span.cm-builtin { line-height: 1em; font-weight: bold; color: #077; }
|
|
||||||
.cm-s-neat span.cm-special { line-height: 1em; font-weight: bold; color: #0aa; }
|
|
||||||
.cm-s-neat span.cm-variable { color: black; }
|
|
||||||
.cm-s-neat span.cm-number, .cm-s-neat span.cm-atom { color: #3a3; }
|
|
||||||
.cm-s-neat span.cm-meta {color: #555;}
|
|
||||||
.cm-s-neat span.cm-link { color: #3a3; }
|
|
||||||
|
|
||||||
.cm-s-neat .CodeMirror-activeline-background {background: #e8f2ff !important;}
|
|
||||||
.cm-s-neat .CodeMirror-matchingbracket {outline:1px solid grey; color:black !important;}
|
|
@ -1,43 +0,0 @@
|
|||||||
/* neo theme for codemirror */
|
|
||||||
|
|
||||||
/* Color scheme */
|
|
||||||
|
|
||||||
.cm-s-neo.CodeMirror {
|
|
||||||
background-color:#ffffff;
|
|
||||||
color:#2e383c;
|
|
||||||
line-height:1.4375;
|
|
||||||
}
|
|
||||||
.cm-s-neo .cm-comment {color:#75787b}
|
|
||||||
.cm-s-neo .cm-keyword, .cm-s-neo .cm-property {color:#1d75b3}
|
|
||||||
.cm-s-neo .cm-atom,.cm-s-neo .cm-number {color:#75438a}
|
|
||||||
.cm-s-neo .cm-node,.cm-s-neo .cm-tag {color:#9c3328}
|
|
||||||
.cm-s-neo .cm-string {color:#b35e14}
|
|
||||||
.cm-s-neo .cm-variable,.cm-s-neo .cm-qualifier {color:#047d65}
|
|
||||||
|
|
||||||
|
|
||||||
/* Editor styling */
|
|
||||||
|
|
||||||
.cm-s-neo pre {
|
|
||||||
padding:0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cm-s-neo .CodeMirror-gutters {
|
|
||||||
border:none;
|
|
||||||
border-right:10px solid transparent;
|
|
||||||
background-color:transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cm-s-neo .CodeMirror-linenumber {
|
|
||||||
padding:0;
|
|
||||||
color:#e0e2e5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cm-s-neo .CodeMirror-guttermarker { color: #1d75b3; }
|
|
||||||
.cm-s-neo .CodeMirror-guttermarker-subtle { color: #e0e2e5; }
|
|
||||||
|
|
||||||
.cm-s-neo div.CodeMirror-cursor {
|
|
||||||
width: auto;
|
|
||||||
border: 0;
|
|
||||||
background: rgba(155,157,162,0.37);
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
@ -1,26 +0,0 @@
|
|||||||
/* Loosely based on the Midnight Textmate theme */
|
|
||||||
|
|
||||||
.cm-s-night.CodeMirror { background: #0a001f; color: #f8f8f8; }
|
|
||||||
.cm-s-night div.CodeMirror-selected { background: #447 !important; }
|
|
||||||
.cm-s-night .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; }
|
|
||||||
.cm-s-night .CodeMirror-guttermarker { color: white; }
|
|
||||||
.cm-s-night .CodeMirror-guttermarker-subtle { color: #bbb; }
|
|
||||||
.cm-s-night .CodeMirror-linenumber { color: #f8f8f8; }
|
|
||||||
.cm-s-night .CodeMirror-cursor { border-left: 1px solid white !important; }
|
|
||||||
|
|
||||||
.cm-s-night span.cm-comment { color: #6900a1; }
|
|
||||||
.cm-s-night span.cm-atom { color: #845dc4; }
|
|
||||||
.cm-s-night span.cm-number, .cm-s-night span.cm-attribute { color: #ffd500; }
|
|
||||||
.cm-s-night span.cm-keyword { color: #599eff; }
|
|
||||||
.cm-s-night span.cm-string { color: #37f14a; }
|
|
||||||
.cm-s-night span.cm-meta { color: #7678e2; }
|
|
||||||
.cm-s-night span.cm-variable-2, .cm-s-night span.cm-tag { color: #99b2ff; }
|
|
||||||
.cm-s-night span.cm-variable-3, .cm-s-night span.cm-def { color: white; }
|
|
||||||
.cm-s-night span.cm-bracket { color: #8da6ce; }
|
|
||||||
.cm-s-night span.cm-comment { color: #6900a1; }
|
|
||||||
.cm-s-night span.cm-builtin, .cm-s-night span.cm-special { color: #ff9e59; }
|
|
||||||
.cm-s-night span.cm-link { color: #845dc4; }
|
|
||||||
.cm-s-night span.cm-error { color: #9d1e15; }
|
|
||||||
|
|
||||||
.cm-s-night .CodeMirror-activeline-background {background: #1C005A !important;}
|
|
||||||
.cm-s-night .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;}
|
|
@ -1,36 +0,0 @@
|
|||||||
/*
|
|
||||||
|
|
||||||
Name: Paraíso (Dark)
|
|
||||||
Author: Jan T. Sott
|
|
||||||
|
|
||||||
Color scheme by Jan T. Sott (https://github.com/idleberg/Paraiso-CodeMirror)
|
|
||||||
Inspired by the art of Rubens LP (http://www.rubenslp.com.br)
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
.cm-s-paraiso-dark.CodeMirror {background: #2f1e2e; color: #b9b6b0;}
|
|
||||||
.cm-s-paraiso-dark div.CodeMirror-selected {background: #41323f !important;}
|
|
||||||
.cm-s-paraiso-dark .CodeMirror-gutters {background: #2f1e2e; border-right: 0px;}
|
|
||||||
.cm-s-paraiso-dark .CodeMirror-guttermarker { color: #ef6155; }
|
|
||||||
.cm-s-paraiso-dark .CodeMirror-guttermarker-subtle { color: #776e71; }
|
|
||||||
.cm-s-paraiso-dark .CodeMirror-linenumber {color: #776e71;}
|
|
||||||
.cm-s-paraiso-dark .CodeMirror-cursor {border-left: 1px solid #8d8687 !important;}
|
|
||||||
|
|
||||||
.cm-s-paraiso-dark span.cm-comment {color: #e96ba8;}
|
|
||||||
.cm-s-paraiso-dark span.cm-atom {color: #815ba4;}
|
|
||||||
.cm-s-paraiso-dark span.cm-number {color: #815ba4;}
|
|
||||||
|
|
||||||
.cm-s-paraiso-dark span.cm-property, .cm-s-paraiso-dark span.cm-attribute {color: #48b685;}
|
|
||||||
.cm-s-paraiso-dark span.cm-keyword {color: #ef6155;}
|
|
||||||
.cm-s-paraiso-dark span.cm-string {color: #fec418;}
|
|
||||||
|
|
||||||
.cm-s-paraiso-dark span.cm-variable {color: #48b685;}
|
|
||||||
.cm-s-paraiso-dark span.cm-variable-2 {color: #06b6ef;}
|
|
||||||
.cm-s-paraiso-dark span.cm-def {color: #f99b15;}
|
|
||||||
.cm-s-paraiso-dark span.cm-bracket {color: #b9b6b0;}
|
|
||||||
.cm-s-paraiso-dark span.cm-tag {color: #ef6155;}
|
|
||||||
.cm-s-paraiso-dark span.cm-link {color: #815ba4;}
|
|
||||||
.cm-s-paraiso-dark span.cm-error {background: #ef6155; color: #8d8687;}
|
|
||||||
|
|
||||||
.cm-s-paraiso-dark .CodeMirror-activeline-background {background: #4D344A !important;}
|
|
||||||
.cm-s-paraiso-dark .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
|
|
@ -1,36 +0,0 @@
|
|||||||
/*
|
|
||||||
|
|
||||||
Name: Paraíso (Light)
|
|
||||||
Author: Jan T. Sott
|
|
||||||
|
|
||||||
Color scheme by Jan T. Sott (https://github.com/idleberg/Paraiso-CodeMirror)
|
|
||||||
Inspired by the art of Rubens LP (http://www.rubenslp.com.br)
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
.cm-s-paraiso-light.CodeMirror {background: #e7e9db; color: #41323f;}
|
|
||||||
.cm-s-paraiso-light div.CodeMirror-selected {background: #b9b6b0 !important;}
|
|
||||||
.cm-s-paraiso-light .CodeMirror-gutters {background: #e7e9db; border-right: 0px;}
|
|
||||||
.cm-s-paraiso-light .CodeMirror-guttermarker { color: black; }
|
|
||||||
.cm-s-paraiso-light .CodeMirror-guttermarker-subtle { color: #8d8687; }
|
|
||||||
.cm-s-paraiso-light .CodeMirror-linenumber {color: #8d8687;}
|
|
||||||
.cm-s-paraiso-light .CodeMirror-cursor {border-left: 1px solid #776e71 !important;}
|
|
||||||
|
|
||||||
.cm-s-paraiso-light span.cm-comment {color: #e96ba8;}
|
|
||||||
.cm-s-paraiso-light span.cm-atom {color: #815ba4;}
|
|
||||||
.cm-s-paraiso-light span.cm-number {color: #815ba4;}
|
|
||||||
|
|
||||||
.cm-s-paraiso-light span.cm-property, .cm-s-paraiso-light span.cm-attribute {color: #48b685;}
|
|
||||||
.cm-s-paraiso-light span.cm-keyword {color: #ef6155;}
|
|
||||||
.cm-s-paraiso-light span.cm-string {color: #fec418;}
|
|
||||||
|
|
||||||
.cm-s-paraiso-light span.cm-variable {color: #48b685;}
|
|
||||||
.cm-s-paraiso-light span.cm-variable-2 {color: #06b6ef;}
|
|
||||||
.cm-s-paraiso-light span.cm-def {color: #f99b15;}
|
|
||||||
.cm-s-paraiso-light span.cm-bracket {color: #41323f;}
|
|
||||||
.cm-s-paraiso-light span.cm-tag {color: #ef6155;}
|
|
||||||
.cm-s-paraiso-light span.cm-link {color: #815ba4;}
|
|
||||||
.cm-s-paraiso-light span.cm-error {background: #ef6155; color: #776e71;}
|
|
||||||
|
|
||||||
.cm-s-paraiso-light .CodeMirror-activeline-background {background: #CFD1C4 !important;}
|
|
||||||
.cm-s-paraiso-light .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
|
|
@ -1,50 +0,0 @@
|
|||||||
/**
|
|
||||||
* Pastel On Dark theme ported from ACE editor
|
|
||||||
* @license MIT
|
|
||||||
* @copyright AtomicPages LLC 2014
|
|
||||||
* @author Dennis Thompson, AtomicPages LLC
|
|
||||||
* @version 1.1
|
|
||||||
* @source https://github.com/atomicpages/codemirror-pastel-on-dark-theme
|
|
||||||
*/
|
|
||||||
|
|
||||||
.cm-s-pastel-on-dark.CodeMirror {
|
|
||||||
background: #2c2827;
|
|
||||||
color: #8F938F;
|
|
||||||
line-height: 1.5;
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
.cm-s-pastel-on-dark div.CodeMirror-selected { background: rgba(221,240,255,0.2) !important; }
|
|
||||||
.cm-s-pastel-on-dark .CodeMirror-gutters {
|
|
||||||
background: #34302f;
|
|
||||||
border-right: 0px;
|
|
||||||
padding: 0 3px;
|
|
||||||
}
|
|
||||||
.cm-s-pastel-on-dark .CodeMirror-guttermarker { color: white; }
|
|
||||||
.cm-s-pastel-on-dark .CodeMirror-guttermarker-subtle { color: #8F938F; }
|
|
||||||
.cm-s-pastel-on-dark .CodeMirror-linenumber { color: #8F938F; }
|
|
||||||
.cm-s-pastel-on-dark .CodeMirror-cursor { border-left: 1px solid #A7A7A7 !important; }
|
|
||||||
.cm-s-pastel-on-dark span.cm-comment { color: #A6C6FF; }
|
|
||||||
.cm-s-pastel-on-dark span.cm-atom { color: #DE8E30; }
|
|
||||||
.cm-s-pastel-on-dark span.cm-number { color: #CCCCCC; }
|
|
||||||
.cm-s-pastel-on-dark span.cm-property { color: #8F938F; }
|
|
||||||
.cm-s-pastel-on-dark span.cm-attribute { color: #a6e22e; }
|
|
||||||
.cm-s-pastel-on-dark span.cm-keyword { color: #AEB2F8; }
|
|
||||||
.cm-s-pastel-on-dark span.cm-string { color: #66A968; }
|
|
||||||
.cm-s-pastel-on-dark span.cm-variable { color: #AEB2F8; }
|
|
||||||
.cm-s-pastel-on-dark span.cm-variable-2 { color: #BEBF55; }
|
|
||||||
.cm-s-pastel-on-dark span.cm-variable-3 { color: #DE8E30; }
|
|
||||||
.cm-s-pastel-on-dark span.cm-def { color: #757aD8; }
|
|
||||||
.cm-s-pastel-on-dark span.cm-bracket { color: #f8f8f2; }
|
|
||||||
.cm-s-pastel-on-dark span.cm-tag { color: #C1C144; }
|
|
||||||
.cm-s-pastel-on-dark span.cm-link { color: #ae81ff; }
|
|
||||||
.cm-s-pastel-on-dark span.cm-qualifier,.cm-s-pastel-on-dark span.cm-builtin { color: #C1C144; }
|
|
||||||
.cm-s-pastel-on-dark span.cm-error {
|
|
||||||
background: #757aD8;
|
|
||||||
color: #f8f8f0;
|
|
||||||
}
|
|
||||||
.cm-s-pastel-on-dark .CodeMirror-activeline-background { background: rgba(255, 255, 255, 0.031) !important; }
|
|
||||||
.cm-s-pastel-on-dark .CodeMirror-matchingbracket {
|
|
||||||
border: 1px solid rgba(255,255,255,0.25);
|
|
||||||
color: #8F938F !important;
|
|
||||||
margin: -1px -1px 0 -1px;
|
|
||||||
}
|
|
@ -1,23 +0,0 @@
|
|||||||
.cm-s-rubyblue.CodeMirror { background: #112435; color: white; }
|
|
||||||
.cm-s-rubyblue div.CodeMirror-selected { background: #38566F !important; }
|
|
||||||
.cm-s-rubyblue .CodeMirror-gutters { background: #1F4661; border-right: 7px solid #3E7087; }
|
|
||||||
.cm-s-rubyblue .CodeMirror-guttermarker { color: white; }
|
|
||||||
.cm-s-rubyblue .CodeMirror-guttermarker-subtle { color: #3E7087; }
|
|
||||||
.cm-s-rubyblue .CodeMirror-linenumber { color: white; }
|
|
||||||
.cm-s-rubyblue .CodeMirror-cursor { border-left: 1px solid white !important; }
|
|
||||||
|
|
||||||
.cm-s-rubyblue span.cm-comment { color: #999; font-style:italic; line-height: 1em; }
|
|
||||||
.cm-s-rubyblue span.cm-atom { color: #F4C20B; }
|
|
||||||
.cm-s-rubyblue span.cm-number, .cm-s-rubyblue span.cm-attribute { color: #82C6E0; }
|
|
||||||
.cm-s-rubyblue span.cm-keyword { color: #F0F; }
|
|
||||||
.cm-s-rubyblue span.cm-string { color: #F08047; }
|
|
||||||
.cm-s-rubyblue span.cm-meta { color: #F0F; }
|
|
||||||
.cm-s-rubyblue span.cm-variable-2, .cm-s-rubyblue span.cm-tag { color: #7BD827; }
|
|
||||||
.cm-s-rubyblue span.cm-variable-3, .cm-s-rubyblue span.cm-def { color: white; }
|
|
||||||
.cm-s-rubyblue span.cm-bracket { color: #F0F; }
|
|
||||||
.cm-s-rubyblue span.cm-link { color: #F4C20B; }
|
|
||||||
.cm-s-rubyblue span.CodeMirror-matchingbracket { color:#F0F !important; }
|
|
||||||
.cm-s-rubyblue span.cm-builtin, .cm-s-rubyblue span.cm-special { color: #FF9D00; }
|
|
||||||
.cm-s-rubyblue span.cm-error { color: #AF2018; }
|
|
||||||
|
|
||||||
.cm-s-rubyblue .CodeMirror-activeline-background {background: #173047 !important;}
|
|
@ -1,165 +0,0 @@
|
|||||||
/*
|
|
||||||
Solarized theme for code-mirror
|
|
||||||
http://ethanschoonover.com/solarized
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
Solarized color pallet
|
|
||||||
http://ethanschoonover.com/solarized/img/solarized-palette.png
|
|
||||||
*/
|
|
||||||
|
|
||||||
.solarized.base03 { color: #002b36; }
|
|
||||||
.solarized.base02 { color: #073642; }
|
|
||||||
.solarized.base01 { color: #586e75; }
|
|
||||||
.solarized.base00 { color: #657b83; }
|
|
||||||
.solarized.base0 { color: #839496; }
|
|
||||||
.solarized.base1 { color: #93a1a1; }
|
|
||||||
.solarized.base2 { color: #eee8d5; }
|
|
||||||
.solarized.base3 { color: #fdf6e3; }
|
|
||||||
.solarized.solar-yellow { color: #b58900; }
|
|
||||||
.solarized.solar-orange { color: #cb4b16; }
|
|
||||||
.solarized.solar-red { color: #dc322f; }
|
|
||||||
.solarized.solar-magenta { color: #d33682; }
|
|
||||||
.solarized.solar-violet { color: #6c71c4; }
|
|
||||||
.solarized.solar-blue { color: #268bd2; }
|
|
||||||
.solarized.solar-cyan { color: #2aa198; }
|
|
||||||
.solarized.solar-green { color: #859900; }
|
|
||||||
|
|
||||||
/* Color scheme for code-mirror */
|
|
||||||
|
|
||||||
.cm-s-solarized {
|
|
||||||
line-height: 1.45em;
|
|
||||||
color-profile: sRGB;
|
|
||||||
rendering-intent: auto;
|
|
||||||
}
|
|
||||||
.cm-s-solarized.cm-s-dark {
|
|
||||||
color: #839496;
|
|
||||||
background-color: #002b36;
|
|
||||||
text-shadow: #002b36 0 1px;
|
|
||||||
}
|
|
||||||
.cm-s-solarized.cm-s-light {
|
|
||||||
background-color: #fdf6e3;
|
|
||||||
color: #657b83;
|
|
||||||
text-shadow: #eee8d5 0 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cm-s-solarized .CodeMirror-widget {
|
|
||||||
text-shadow: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.cm-s-solarized .cm-keyword { color: #cb4b16 }
|
|
||||||
.cm-s-solarized .cm-atom { color: #d33682; }
|
|
||||||
.cm-s-solarized .cm-number { color: #d33682; }
|
|
||||||
.cm-s-solarized .cm-def { color: #2aa198; }
|
|
||||||
|
|
||||||
.cm-s-solarized .cm-variable { color: #268bd2; }
|
|
||||||
.cm-s-solarized .cm-variable-2 { color: #b58900; }
|
|
||||||
.cm-s-solarized .cm-variable-3 { color: #6c71c4; }
|
|
||||||
|
|
||||||
.cm-s-solarized .cm-property { color: #2aa198; }
|
|
||||||
.cm-s-solarized .cm-operator {color: #6c71c4;}
|
|
||||||
|
|
||||||
.cm-s-solarized .cm-comment { color: #586e75; font-style:italic; }
|
|
||||||
|
|
||||||
.cm-s-solarized .cm-string { color: #859900; }
|
|
||||||
.cm-s-solarized .cm-string-2 { color: #b58900; }
|
|
||||||
|
|
||||||
.cm-s-solarized .cm-meta { color: #859900; }
|
|
||||||
.cm-s-solarized .cm-qualifier { color: #b58900; }
|
|
||||||
.cm-s-solarized .cm-builtin { color: #d33682; }
|
|
||||||
.cm-s-solarized .cm-bracket { color: #cb4b16; }
|
|
||||||
.cm-s-solarized .CodeMirror-matchingbracket { color: #859900; }
|
|
||||||
.cm-s-solarized .CodeMirror-nonmatchingbracket { color: #dc322f; }
|
|
||||||
.cm-s-solarized .cm-tag { color: #93a1a1 }
|
|
||||||
.cm-s-solarized .cm-attribute { color: #2aa198; }
|
|
||||||
.cm-s-solarized .cm-header { color: #586e75; }
|
|
||||||
.cm-s-solarized .cm-quote { color: #93a1a1; }
|
|
||||||
.cm-s-solarized .cm-hr {
|
|
||||||
color: transparent;
|
|
||||||
border-top: 1px solid #586e75;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
.cm-s-solarized .cm-link { color: #93a1a1; cursor: pointer; }
|
|
||||||
.cm-s-solarized .cm-special { color: #6c71c4; }
|
|
||||||
.cm-s-solarized .cm-em {
|
|
||||||
color: #999;
|
|
||||||
text-decoration: underline;
|
|
||||||
text-decoration-style: dotted;
|
|
||||||
}
|
|
||||||
.cm-s-solarized .cm-strong { color: #eee; }
|
|
||||||
.cm-s-solarized .cm-error,
|
|
||||||
.cm-s-solarized .cm-invalidchar {
|
|
||||||
color: #586e75;
|
|
||||||
border-bottom: 1px dotted #dc322f;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cm-s-solarized.cm-s-dark .CodeMirror-selected {
|
|
||||||
background: #073642;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cm-s-solarized.cm-s-light .CodeMirror-selected {
|
|
||||||
background: #eee8d5;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Editor styling */
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Little shadow on the view-port of the buffer view */
|
|
||||||
.cm-s-solarized.CodeMirror {
|
|
||||||
-moz-box-shadow: inset 7px 0 12px -6px #000;
|
|
||||||
-webkit-box-shadow: inset 7px 0 12px -6px #000;
|
|
||||||
box-shadow: inset 7px 0 12px -6px #000;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Gutter border and some shadow from it */
|
|
||||||
.cm-s-solarized .CodeMirror-gutters {
|
|
||||||
border-right: 1px solid;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Gutter colors and line number styling based of color scheme (dark / light) */
|
|
||||||
|
|
||||||
/* Dark */
|
|
||||||
.cm-s-solarized.cm-s-dark .CodeMirror-gutters {
|
|
||||||
background-color: #002b36;
|
|
||||||
border-color: #00232c;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cm-s-solarized.cm-s-dark .CodeMirror-linenumber {
|
|
||||||
text-shadow: #021014 0 -1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Light */
|
|
||||||
.cm-s-solarized.cm-s-light .CodeMirror-gutters {
|
|
||||||
background-color: #fdf6e3;
|
|
||||||
border-color: #eee8d5;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Common */
|
|
||||||
.cm-s-solarized .CodeMirror-linenumber {
|
|
||||||
color: #586e75;
|
|
||||||
padding: 0 5px;
|
|
||||||
}
|
|
||||||
.cm-s-solarized .CodeMirror-guttermarker-subtle { color: #586e75; }
|
|
||||||
.cm-s-solarized.cm-s-dark .CodeMirror-guttermarker { color: #ddd; }
|
|
||||||
.cm-s-solarized.cm-s-light .CodeMirror-guttermarker { color: #cb4b16; }
|
|
||||||
|
|
||||||
.cm-s-solarized .CodeMirror-gutter .CodeMirror-gutter-text {
|
|
||||||
color: #586e75;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cm-s-solarized .CodeMirror-lines .CodeMirror-cursor {
|
|
||||||
border-left: 1px solid #819090;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
Active line. Negative margin compensates left padding of the text in the
|
|
||||||
view-port
|
|
||||||
*/
|
|
||||||
.cm-s-solarized.cm-s-dark .CodeMirror-activeline-background {
|
|
||||||
background: rgba(255, 255, 255, 0.10);
|
|
||||||
}
|
|
||||||
.cm-s-solarized.cm-s-light .CodeMirror-activeline-background {
|
|
||||||
background: rgba(0, 0, 0, 0.10);
|
|
||||||
}
|
|
@ -1,28 +0,0 @@
|
|||||||
.cm-s-the-matrix.CodeMirror { background: #000000; color: #00FF00; }
|
|
||||||
.cm-s-the-matrix div.CodeMirror-selected { background: #2D2D2D !important; }
|
|
||||||
.cm-s-the-matrix .CodeMirror-gutters { background: #060; border-right: 2px solid #00FF00; }
|
|
||||||
.cm-s-the-matrix .CodeMirror-guttermarker { color: #0f0; }
|
|
||||||
.cm-s-the-matrix .CodeMirror-guttermarker-subtle { color: white; }
|
|
||||||
.cm-s-the-matrix .CodeMirror-linenumber { color: #FFFFFF; }
|
|
||||||
.cm-s-the-matrix .CodeMirror-cursor { border-left: 1px solid #00FF00 !important; }
|
|
||||||
|
|
||||||
.cm-s-the-matrix span.cm-keyword {color: #008803; font-weight: bold;}
|
|
||||||
.cm-s-the-matrix span.cm-atom {color: #3FF;}
|
|
||||||
.cm-s-the-matrix span.cm-number {color: #FFB94F;}
|
|
||||||
.cm-s-the-matrix span.cm-def {color: #99C;}
|
|
||||||
.cm-s-the-matrix span.cm-variable {color: #F6C;}
|
|
||||||
.cm-s-the-matrix span.cm-variable-2 {color: #C6F;}
|
|
||||||
.cm-s-the-matrix span.cm-variable-3 {color: #96F;}
|
|
||||||
.cm-s-the-matrix span.cm-property {color: #62FFA0;}
|
|
||||||
.cm-s-the-matrix span.cm-operator {color: #999}
|
|
||||||
.cm-s-the-matrix span.cm-comment {color: #CCCCCC;}
|
|
||||||
.cm-s-the-matrix span.cm-string {color: #39C;}
|
|
||||||
.cm-s-the-matrix span.cm-meta {color: #C9F;}
|
|
||||||
.cm-s-the-matrix span.cm-qualifier {color: #FFF700;}
|
|
||||||
.cm-s-the-matrix span.cm-builtin {color: #30a;}
|
|
||||||
.cm-s-the-matrix span.cm-bracket {color: #cc7;}
|
|
||||||
.cm-s-the-matrix span.cm-tag {color: #FFBD40;}
|
|
||||||
.cm-s-the-matrix span.cm-attribute {color: #FFF700;}
|
|
||||||
.cm-s-the-matrix span.cm-error {color: #FF0000;}
|
|
||||||
|
|
||||||
.cm-s-the-matrix .CodeMirror-activeline-background {background: #040;}
|
|
@ -1,36 +0,0 @@
|
|||||||
/*
|
|
||||||
|
|
||||||
Name: Tomorrow Night - Eighties
|
|
||||||
Author: Chris Kempson
|
|
||||||
|
|
||||||
CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
|
|
||||||
Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
.cm-s-tomorrow-night-eighties.CodeMirror {background: #000000; color: #CCCCCC;}
|
|
||||||
.cm-s-tomorrow-night-eighties div.CodeMirror-selected {background: #2D2D2D !important;}
|
|
||||||
.cm-s-tomorrow-night-eighties .CodeMirror-gutters {background: #000000; border-right: 0px;}
|
|
||||||
.cm-s-tomorrow-night-eighties .CodeMirror-guttermarker { color: #f2777a; }
|
|
||||||
.cm-s-tomorrow-night-eighties .CodeMirror-guttermarker-subtle { color: #777; }
|
|
||||||
.cm-s-tomorrow-night-eighties .CodeMirror-linenumber {color: #515151;}
|
|
||||||
.cm-s-tomorrow-night-eighties .CodeMirror-cursor {border-left: 1px solid #6A6A6A !important;}
|
|
||||||
|
|
||||||
.cm-s-tomorrow-night-eighties span.cm-comment {color: #d27b53;}
|
|
||||||
.cm-s-tomorrow-night-eighties span.cm-atom {color: #a16a94;}
|
|
||||||
.cm-s-tomorrow-night-eighties span.cm-number {color: #a16a94;}
|
|
||||||
|
|
||||||
.cm-s-tomorrow-night-eighties span.cm-property, .cm-s-tomorrow-night-eighties span.cm-attribute {color: #99cc99;}
|
|
||||||
.cm-s-tomorrow-night-eighties span.cm-keyword {color: #f2777a;}
|
|
||||||
.cm-s-tomorrow-night-eighties span.cm-string {color: #ffcc66;}
|
|
||||||
|
|
||||||
.cm-s-tomorrow-night-eighties span.cm-variable {color: #99cc99;}
|
|
||||||
.cm-s-tomorrow-night-eighties span.cm-variable-2 {color: #6699cc;}
|
|
||||||
.cm-s-tomorrow-night-eighties span.cm-def {color: #f99157;}
|
|
||||||
.cm-s-tomorrow-night-eighties span.cm-bracket {color: #CCCCCC;}
|
|
||||||
.cm-s-tomorrow-night-eighties span.cm-tag {color: #f2777a;}
|
|
||||||
.cm-s-tomorrow-night-eighties span.cm-link {color: #a16a94;}
|
|
||||||
.cm-s-tomorrow-night-eighties span.cm-error {background: #f2777a; color: #6A6A6A;}
|
|
||||||
|
|
||||||
.cm-s-tomorrow-night-eighties .CodeMirror-activeline-background {background: #343600 !important;}
|
|
||||||
.cm-s-tomorrow-night-eighties .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
|
|
@ -1,30 +0,0 @@
|
|||||||
.cm-s-twilight.CodeMirror { background: #141414; color: #f7f7f7; } /**/
|
|
||||||
.cm-s-twilight .CodeMirror-selected { background: #323232 !important; } /**/
|
|
||||||
|
|
||||||
.cm-s-twilight .CodeMirror-gutters { background: #222; border-right: 1px solid #aaa; }
|
|
||||||
.cm-s-twilight .CodeMirror-guttermarker { color: white; }
|
|
||||||
.cm-s-twilight .CodeMirror-guttermarker-subtle { color: #aaa; }
|
|
||||||
.cm-s-twilight .CodeMirror-linenumber { color: #aaa; }
|
|
||||||
.cm-s-twilight .CodeMirror-cursor { border-left: 1px solid white !important; }
|
|
||||||
|
|
||||||
.cm-s-twilight .cm-keyword { color: #f9ee98; } /**/
|
|
||||||
.cm-s-twilight .cm-atom { color: #FC0; }
|
|
||||||
.cm-s-twilight .cm-number { color: #ca7841; } /**/
|
|
||||||
.cm-s-twilight .cm-def { color: #8DA6CE; }
|
|
||||||
.cm-s-twilight span.cm-variable-2, .cm-s-twilight span.cm-tag { color: #607392; } /**/
|
|
||||||
.cm-s-twilight span.cm-variable-3, .cm-s-twilight span.cm-def { color: #607392; } /**/
|
|
||||||
.cm-s-twilight .cm-operator { color: #cda869; } /**/
|
|
||||||
.cm-s-twilight .cm-comment { color:#777; font-style:italic; font-weight:normal; } /**/
|
|
||||||
.cm-s-twilight .cm-string { color:#8f9d6a; font-style:italic; } /**/
|
|
||||||
.cm-s-twilight .cm-string-2 { color:#bd6b18 } /*?*/
|
|
||||||
.cm-s-twilight .cm-meta { background-color:#141414; color:#f7f7f7; } /*?*/
|
|
||||||
.cm-s-twilight .cm-builtin { color: #cda869; } /*?*/
|
|
||||||
.cm-s-twilight .cm-tag { color: #997643; } /**/
|
|
||||||
.cm-s-twilight .cm-attribute { color: #d6bb6d; } /*?*/
|
|
||||||
.cm-s-twilight .cm-header { color: #FF6400; }
|
|
||||||
.cm-s-twilight .cm-hr { color: #AEAEAE; }
|
|
||||||
.cm-s-twilight .cm-link { color:#ad9361; font-style:italic; text-decoration:none; } /**/
|
|
||||||
.cm-s-twilight .cm-error { border-bottom: 1px solid red; }
|
|
||||||
|
|
||||||
.cm-s-twilight .CodeMirror-activeline-background {background: #27282E !important;}
|
|
||||||
.cm-s-twilight .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;}
|
|
@ -1,32 +0,0 @@
|
|||||||
/* Taken from the popular Visual Studio Vibrant Ink Schema */
|
|
||||||
|
|
||||||
.cm-s-vibrant-ink.CodeMirror { background: black; color: white; }
|
|
||||||
.cm-s-vibrant-ink .CodeMirror-selected { background: #35493c !important; }
|
|
||||||
|
|
||||||
.cm-s-vibrant-ink .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; }
|
|
||||||
.cm-s-vibrant-ink .CodeMirror-guttermarker { color: white; }
|
|
||||||
.cm-s-vibrant-ink .CodeMirror-guttermarker-subtle { color: #d0d0d0; }
|
|
||||||
.cm-s-vibrant-ink .CodeMirror-linenumber { color: #d0d0d0; }
|
|
||||||
.cm-s-vibrant-ink .CodeMirror-cursor { border-left: 1px solid white !important; }
|
|
||||||
|
|
||||||
.cm-s-vibrant-ink .cm-keyword { color: #CC7832; }
|
|
||||||
.cm-s-vibrant-ink .cm-atom { color: #FC0; }
|
|
||||||
.cm-s-vibrant-ink .cm-number { color: #FFEE98; }
|
|
||||||
.cm-s-vibrant-ink .cm-def { color: #8DA6CE; }
|
|
||||||
.cm-s-vibrant-ink span.cm-variable-2, .cm-s-vibrant span.cm-tag { color: #FFC66D }
|
|
||||||
.cm-s-vibrant-ink span.cm-variable-3, .cm-s-vibrant span.cm-def { color: #FFC66D }
|
|
||||||
.cm-s-vibrant-ink .cm-operator { color: #888; }
|
|
||||||
.cm-s-vibrant-ink .cm-comment { color: gray; font-weight: bold; }
|
|
||||||
.cm-s-vibrant-ink .cm-string { color: #A5C25C }
|
|
||||||
.cm-s-vibrant-ink .cm-string-2 { color: red }
|
|
||||||
.cm-s-vibrant-ink .cm-meta { color: #D8FA3C; }
|
|
||||||
.cm-s-vibrant-ink .cm-builtin { color: #8DA6CE; }
|
|
||||||
.cm-s-vibrant-ink .cm-tag { color: #8DA6CE; }
|
|
||||||
.cm-s-vibrant-ink .cm-attribute { color: #8DA6CE; }
|
|
||||||
.cm-s-vibrant-ink .cm-header { color: #FF6400; }
|
|
||||||
.cm-s-vibrant-ink .cm-hr { color: #AEAEAE; }
|
|
||||||
.cm-s-vibrant-ink .cm-link { color: blue; }
|
|
||||||
.cm-s-vibrant-ink .cm-error { border-bottom: 1px solid red; }
|
|
||||||
|
|
||||||
.cm-s-vibrant-ink .CodeMirror-activeline-background {background: #27282E !important;}
|
|
||||||
.cm-s-vibrant-ink .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;}
|
|
@ -1,51 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright (C) 2011 by MarkLogic Corporation
|
|
||||||
Author: Mike Brevoort <mike@brevoort.com>
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
||||||
*/
|
|
||||||
.cm-s-xq-dark.CodeMirror { background: #0a001f; color: #f8f8f8; }
|
|
||||||
.cm-s-xq-dark .CodeMirror-selected { background: #27007A !important; }
|
|
||||||
.cm-s-xq-dark .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; }
|
|
||||||
.cm-s-xq-dark .CodeMirror-guttermarker { color: #FFBD40; }
|
|
||||||
.cm-s-xq-dark .CodeMirror-guttermarker-subtle { color: #f8f8f8; }
|
|
||||||
.cm-s-xq-dark .CodeMirror-linenumber { color: #f8f8f8; }
|
|
||||||
.cm-s-xq-dark .CodeMirror-cursor { border-left: 1px solid white !important; }
|
|
||||||
|
|
||||||
.cm-s-xq-dark span.cm-keyword {color: #FFBD40;}
|
|
||||||
.cm-s-xq-dark span.cm-atom {color: #6C8CD5;}
|
|
||||||
.cm-s-xq-dark span.cm-number {color: #164;}
|
|
||||||
.cm-s-xq-dark span.cm-def {color: #FFF; text-decoration:underline;}
|
|
||||||
.cm-s-xq-dark span.cm-variable {color: #FFF;}
|
|
||||||
.cm-s-xq-dark span.cm-variable-2 {color: #EEE;}
|
|
||||||
.cm-s-xq-dark span.cm-variable-3 {color: #DDD;}
|
|
||||||
.cm-s-xq-dark span.cm-property {}
|
|
||||||
.cm-s-xq-dark span.cm-operator {}
|
|
||||||
.cm-s-xq-dark span.cm-comment {color: gray;}
|
|
||||||
.cm-s-xq-dark span.cm-string {color: #9FEE00;}
|
|
||||||
.cm-s-xq-dark span.cm-meta {color: yellow;}
|
|
||||||
.cm-s-xq-dark span.cm-qualifier {color: #FFF700;}
|
|
||||||
.cm-s-xq-dark span.cm-builtin {color: #30a;}
|
|
||||||
.cm-s-xq-dark span.cm-bracket {color: #cc7;}
|
|
||||||
.cm-s-xq-dark span.cm-tag {color: #FFBD40;}
|
|
||||||
.cm-s-xq-dark span.cm-attribute {color: #FFF700;}
|
|
||||||
.cm-s-xq-dark span.cm-error {color: #f00;}
|
|
||||||
|
|
||||||
.cm-s-xq-dark .CodeMirror-activeline-background {background: #27282E !important;}
|
|
||||||
.cm-s-xq-dark .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;}
|
|
@ -1,43 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright (C) 2011 by MarkLogic Corporation
|
|
||||||
Author: Mike Brevoort <mike@brevoort.com>
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
||||||
*/
|
|
||||||
.cm-s-xq-light span.cm-keyword {line-height: 1em; font-weight: bold; color: #5A5CAD; }
|
|
||||||
.cm-s-xq-light span.cm-atom {color: #6C8CD5;}
|
|
||||||
.cm-s-xq-light span.cm-number {color: #164;}
|
|
||||||
.cm-s-xq-light span.cm-def {text-decoration:underline;}
|
|
||||||
.cm-s-xq-light span.cm-variable {color: black; }
|
|
||||||
.cm-s-xq-light span.cm-variable-2 {color:black;}
|
|
||||||
.cm-s-xq-light span.cm-variable-3 {color: black; }
|
|
||||||
.cm-s-xq-light span.cm-property {}
|
|
||||||
.cm-s-xq-light span.cm-operator {}
|
|
||||||
.cm-s-xq-light span.cm-comment {color: #0080FF; font-style: italic;}
|
|
||||||
.cm-s-xq-light span.cm-string {color: red;}
|
|
||||||
.cm-s-xq-light span.cm-meta {color: yellow;}
|
|
||||||
.cm-s-xq-light span.cm-qualifier {color: grey}
|
|
||||||
.cm-s-xq-light span.cm-builtin {color: #7EA656;}
|
|
||||||
.cm-s-xq-light span.cm-bracket {color: #cc7;}
|
|
||||||
.cm-s-xq-light span.cm-tag {color: #3F7F7F;}
|
|
||||||
.cm-s-xq-light span.cm-attribute {color: #7F007F;}
|
|
||||||
.cm-s-xq-light span.cm-error {color: #f00;}
|
|
||||||
|
|
||||||
.cm-s-xq-light .CodeMirror-activeline-background {background: #e8f2ff !important;}
|
|
||||||
.cm-s-xq-light .CodeMirror-matchingbracket {outline:1px solid grey;color:black !important;background:yellow;}
|
|
@ -37,7 +37,7 @@ class blog extends common {
|
|||||||
|
|
||||||
public static $users = [];
|
public static $users = [];
|
||||||
|
|
||||||
const BLOG_VERSION = '1.8';
|
const BLOG_VERSION = '1.9';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Édition
|
* Édition
|
||||||
|
@ -15,7 +15,38 @@
|
|||||||
<?php echo $this->getData(['user', $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'userId']), 'lastname']); ?>
|
<?php echo $this->getData(['user', $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'userId']), 'lastname']); ?>
|
||||||
<!-- </h4> -->
|
<!-- </h4> -->
|
||||||
</p>
|
</p>
|
||||||
|
<?php if($this->getUser('group') >= self::GROUP_ADMIN): ?>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col3">
|
||||||
|
<?php echo template::button('blogBack', [
|
||||||
|
'class' => 'buttonGrey',
|
||||||
|
'href' => helper::baseUrl() . $this->getUrl(0),
|
||||||
|
'ico' => 'left',
|
||||||
|
'value' => 'Retour'
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
|
<div class="col3 offset6">
|
||||||
|
<?php echo template::button('blogEdit', [
|
||||||
|
'class' => 'buttonBlue',
|
||||||
|
'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $this->getUrl(1) . '/' . $_SESSION['csrf'],
|
||||||
|
'value' => 'Editer'
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php else: ?>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col2">
|
||||||
|
<?php echo template::button('blogBack', [
|
||||||
|
'class' => 'buttonGrey',
|
||||||
|
'href' => helper::baseUrl() . $this->getUrl(0),
|
||||||
|
'ico' => 'left',
|
||||||
|
'value' => 'Retour'
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
|
<div class="col10">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
<div class="clearBoth"></div>
|
<div class="clearBoth"></div>
|
||||||
<h3 id="comment">
|
<h3 id="comment">
|
||||||
<?php $commentsNb = count($this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'comment'])); ?>
|
<?php $commentsNb = count($this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'comment'])); ?>
|
||||||
@ -102,36 +133,4 @@
|
|||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php if($this->getUser('group') >= self::GROUP_ADMIN): ?>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col3">
|
|
||||||
<?php echo template::button('blogBack', [
|
|
||||||
'class' => 'buttonGrey',
|
|
||||||
'href' => helper::baseUrl() . $this->getUrl(0),
|
|
||||||
'ico' => 'left',
|
|
||||||
'value' => 'Retour'
|
|
||||||
]); ?>
|
|
||||||
</div>
|
|
||||||
<div class="col3 offset6">
|
|
||||||
<?php echo template::button('blogEdit', [
|
|
||||||
'class' => 'buttonBlue',
|
|
||||||
'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $this->getUrl(1) . '/' . $_SESSION['csrf'],
|
|
||||||
'value' => 'Editer'
|
|
||||||
]); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col2">
|
|
||||||
<?php echo template::button('blogBack', [
|
|
||||||
'class' => 'buttonGrey',
|
|
||||||
'href' => helper::baseUrl() . $this->getUrl(0),
|
|
||||||
'ico' => 'left',
|
|
||||||
'value' => 'Retour'
|
|
||||||
]); ?>
|
|
||||||
</div>
|
|
||||||
<div class="col10">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php echo $module::$pages; ?>
|
<?php echo $module::$pages; ?>
|
||||||
|
@ -22,6 +22,12 @@ class gallery extends common {
|
|||||||
'index' => self::GROUP_VISITOR
|
'index' => self::GROUP_VISITOR
|
||||||
];
|
];
|
||||||
|
|
||||||
|
public static $sort = [
|
||||||
|
'asc' => 'Tri alphabétique naturel',
|
||||||
|
'dsc' => 'Tri alphabétique naturel inverse',
|
||||||
|
'none' => 'Aucun tri',
|
||||||
|
];
|
||||||
|
|
||||||
public static $directories = [];
|
public static $directories = [];
|
||||||
|
|
||||||
public static $firstPictures = [];
|
public static $firstPictures = [];
|
||||||
@ -39,7 +45,7 @@ class gallery extends common {
|
|||||||
// Liste des galeries
|
// Liste des galeries
|
||||||
$galleries = $this->getData(['module', $this->getUrl(0)]);
|
$galleries = $this->getData(['module', $this->getUrl(0)]);
|
||||||
if($galleries) {
|
if($galleries) {
|
||||||
ksort($galleries);
|
ksort($galleries,SORT_NATURAL);
|
||||||
foreach($galleries as $galleryId => $gallery) {
|
foreach($galleries as $galleryId => $gallery) {
|
||||||
// Erreur dossier vide
|
// Erreur dossier vide
|
||||||
if(is_dir($gallery['config']['directory'])) {
|
if(is_dir($gallery['config']['directory'])) {
|
||||||
@ -55,7 +61,7 @@ class gallery extends common {
|
|||||||
self::$galleries[] = [
|
self::$galleries[] = [
|
||||||
$gallery['config']['name'],
|
$gallery['config']['name'],
|
||||||
$gallery['config']['directory'],
|
$gallery['config']['directory'],
|
||||||
template::button('galleryConfigEdit' . $galleryId, [
|
template::button('galleryConfigEdit' . $galleryId , [
|
||||||
'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $galleryId . '/' . $_SESSION['csrf'],
|
'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $galleryId . '/' . $_SESSION['csrf'],
|
||||||
'value' => template::ico('pencil')
|
'value' => template::ico('pencil')
|
||||||
]),
|
]),
|
||||||
@ -73,7 +79,8 @@ class gallery extends common {
|
|||||||
$this->setData(['module', $this->getUrl(0), $galleryId, [
|
$this->setData(['module', $this->getUrl(0), $galleryId, [
|
||||||
'config' => [
|
'config' => [
|
||||||
'name' => $this->getInput('galleryConfigName'),
|
'name' => $this->getInput('galleryConfigName'),
|
||||||
'directory' => $this->getInput('galleryConfigDirectory', helper::FILTER_STRING_SHORT, true)
|
'directory' => $this->getInput('galleryConfigDirectory', helper::FILTER_STRING_SHORT, true),
|
||||||
|
'sort' => $this->getInput('galleryConfigSort')
|
||||||
],
|
],
|
||||||
'legend' => []
|
'legend' => []
|
||||||
]]);
|
]]);
|
||||||
@ -165,16 +172,24 @@ class gallery extends common {
|
|||||||
// Supprime l'ancienne galerie
|
// Supprime l'ancienne galerie
|
||||||
$this->deleteData(['module', $this->getUrl(0), $this->getUrl(2)]);
|
$this->deleteData(['module', $this->getUrl(0), $this->getUrl(2)]);
|
||||||
}
|
}
|
||||||
|
// légendes
|
||||||
$legends = [];
|
$legends = [];
|
||||||
foreach((array) $this->getInput('legend', null) as $file => $legend) {
|
foreach((array) $this->getInput('legend', null) as $file => $legend) {
|
||||||
$file = str_replace('.','',$file);
|
$file = str_replace('.','',$file);
|
||||||
$legends[$file] = helper::filter($legend, helper::FILTER_STRING_SHORT);
|
$legends[$file] = helper::filter($legend, helper::FILTER_STRING_SHORT);
|
||||||
}
|
}
|
||||||
|
// Photo de la page de garde de l'album
|
||||||
|
$homePictures = [];
|
||||||
|
foreach((array) $this->getInput('homePicture', null) as $file => $homePicture) {
|
||||||
|
// null : pas de variable définie (compatibilité) ou choix non effectif
|
||||||
|
$homePictures[$file] = $file === 0 ? null : helper::filter($file, helper::FILTER_STRING_SHORT) ;
|
||||||
|
}
|
||||||
$this->setData(['module', $this->getUrl(0), $galleryId, [
|
$this->setData(['module', $this->getUrl(0), $galleryId, [
|
||||||
'config' => [
|
'config' => [
|
||||||
'name' => $this->getInput('galleryEditName', helper::FILTER_STRING_SHORT, true),
|
'name' => $this->getInput('galleryEditName', helper::FILTER_STRING_SHORT, true),
|
||||||
'directory' => $this->getInput('galleryEditDirectory', helper::FILTER_STRING_SHORT, true)
|
'directory' => $this->getInput('galleryEditDirectory', helper::FILTER_STRING_SHORT, true),
|
||||||
|
'homePicture' => $homePictures[$file],
|
||||||
|
'sort' => $this->getInput('galleryEditSort')
|
||||||
],
|
],
|
||||||
'legend' => $legends
|
'legend' => $legends
|
||||||
]]);
|
]]);
|
||||||
@ -193,6 +208,11 @@ class gallery extends common {
|
|||||||
if($fileInfos->isDot() === false AND $fileInfos->isFile() AND @getimagesize($fileInfos->getPathname())) {
|
if($fileInfos->isDot() === false AND $fileInfos->isFile() AND @getimagesize($fileInfos->getPathname())) {
|
||||||
self::$pictures[$fileInfos->getFilename()] = [
|
self::$pictures[$fileInfos->getFilename()] = [
|
||||||
$fileInfos->getFilename(),
|
$fileInfos->getFilename(),
|
||||||
|
template::checkbox( 'homePicture[' . $fileInfos->getFilename() . ']', true, '', [
|
||||||
|
'checked' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2),'config', 'homePicture']) === $fileInfos->getFilename() ? true : false,
|
||||||
|
'class' => 'homePicture'
|
||||||
|
|
||||||
|
]),
|
||||||
template::text('legend[' . $fileInfos->getFilename() . ']', [
|
template::text('legend[' . $fileInfos->getFilename() . ']', [
|
||||||
'value' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'legend', str_replace('.','',$fileInfos->getFilename())])
|
'value' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'legend', str_replace('.','',$fileInfos->getFilename())])
|
||||||
])
|
])
|
||||||
@ -200,7 +220,17 @@ class gallery extends common {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Tri des images par ordre alphabétique
|
// Tri des images par ordre alphabétique
|
||||||
ksort(self::$pictures);
|
switch ($this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'config', 'sort'])) {
|
||||||
|
case 'none':
|
||||||
|
break;
|
||||||
|
case 'dsc':
|
||||||
|
krsort(self::$pictures,SORT_NATURAL);
|
||||||
|
break;
|
||||||
|
case 'asc':
|
||||||
|
default:
|
||||||
|
ksort(self::$pictures,SORT_NATURAL);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
@ -235,7 +265,17 @@ class gallery extends common {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Tri des images par ordre alphabétique
|
// Tri des images par ordre alphabétique
|
||||||
ksort(self::$pictures);
|
switch ($this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'config', 'sort'])) {
|
||||||
|
case 'none':
|
||||||
|
break;
|
||||||
|
case 'dsc':
|
||||||
|
krsort(self::$pictures,SORT_NATURAL);
|
||||||
|
break;
|
||||||
|
case 'asc':
|
||||||
|
default:
|
||||||
|
ksort(self::$pictures,SORT_NATURAL);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Affichage du template
|
// Affichage du template
|
||||||
if(self::$pictures) {
|
if(self::$pictures) {
|
||||||
@ -271,7 +311,6 @@ class gallery extends common {
|
|||||||
continue(2);
|
continue(2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
|
@ -35,11 +35,19 @@
|
|||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col6">
|
||||||
|
<?php echo template::select('galleryConfigSort', $module::$sort, [
|
||||||
|
'label' => 'Tri des images',
|
||||||
|
'help' => 'Les images sont triées par nom de fichier grâce à la méthode naturelle qui donne de meilleurs résultats lorsque les images sont numérotées.'
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php if($module::$galleries): ?>
|
<?php if($module::$galleries): ?>
|
||||||
<?php echo template::table([4, 6, 1, 1], $module::$galleries, ['Nom', 'Dossier cible', '', '']); ?>
|
<?php echo template::table([4, 6, 1, 1], $module::$galleries, ['Nom', 'Dossier cible', '', '']); ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?php echo template::speech('Aucune galerie.'); ?>
|
<?php echo template::speech('Aucune galerie.'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -49,3 +49,8 @@ setInterval(function() {
|
|||||||
directoryDOM.on("change", function() {
|
directoryDOM.on("change", function() {
|
||||||
directoryOldDOM.val($(this).val());
|
directoryOldDOM.val($(this).val());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('.homePicture').click(function(){
|
||||||
|
$('.homePicture').prop('checked', false);
|
||||||
|
$(this).prop('checked', true);
|
||||||
|
});
|
@ -34,10 +34,19 @@
|
|||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col6">
|
||||||
|
<?php echo template::select('galleryEditSort', $module::$sort, [
|
||||||
|
'selected' => $this->getData(['module', $this->getUrl(0), $this->getUrl(2), 'config', 'sort']),
|
||||||
|
'label' => 'Tri des images',
|
||||||
|
'help' => 'Les images sont triées par nom de fichier grâce à la méthode naturelle qui donne de meilleurs résultats lorsque les images sont numérotées.'
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php if($module::$pictures): ?>
|
<?php if($module::$pictures): ?>
|
||||||
<?php echo template::table([4, 8], $module::$pictures, ['Image', 'Légende']); ?>
|
<?php echo template::table([4, 1, 7], $module::$pictures, ['Image', 'Album','Légende']); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo template::formClose(); ?>
|
<?php echo template::formClose(); ?>
|
@ -9,7 +9,13 @@
|
|||||||
<a
|
<a
|
||||||
href="<?php echo helper::baseUrl() . $this->getUrl(0); ?>/<?php echo $galleryId; ?>"
|
href="<?php echo helper::baseUrl() . $this->getUrl(0); ?>/<?php echo $galleryId; ?>"
|
||||||
class="galleryPicture"
|
class="galleryPicture"
|
||||||
style="background-image:url('<?php echo helper::baseUrl(false) . $module::$firstPictures[$galleryId]; ?>')"
|
style="background-image:url('<?php
|
||||||
|
if ($this->getData(['module', $this->getUrl(0), $galleryId, 'config', 'homePicture']) === null ) {
|
||||||
|
echo helper::baseUrl(false) . $module::$firstPictures[$galleryId];
|
||||||
|
} else {
|
||||||
|
echo helper::baseUrl(false) . $this->getData(['module', $this->getUrl(0), $galleryId, 'config', 'directory']) . '/' . $this->getData(['module', $this->getUrl(0), $galleryId, 'config', 'homePicture']);
|
||||||
|
}
|
||||||
|
?>')"
|
||||||
>
|
>
|
||||||
<div class="galleryName"><?php echo $gallery['config']['name']; ?></div>
|
<div class="galleryName"><?php echo $gallery['config']['name']; ?></div>
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user