Valider d12f9efe rédigé par nicolas.dorigny@gmail.com's avatar nicolas.dorigny@gmail.com
Parcourir les fichiers

Prise en compte du plugin Simple C

parent 06db7b81
Chargement en cours
Chargement en cours
Chargement en cours
Chargement en cours
+1 −0
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -21,6 +21,7 @@ content/recherche.html -text
content/rubrique.html -text
content/sommaire.html -text
css/geshi.css -text
css/simplec.css -text
extra/dist.html -text
footer/dist.html -text
formulaires/recherche.html -text
+95 −95
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -4,102 +4,102 @@
	avec un contraste minimum de 4.5
*/

.coloration_code .spip_spip2 .imp {font-weight: bold; color: #FF8282;}
.coloration_code .spip_spip2 .coMULTI {color: #AF9C9C; font-style: italic;}
.coloration_code .spip_spip2 .es0 {color: #A8B7E0; font-weight: bold;}
.coloration_code .spip_spip2 .re0 {color: #F97E32;}
.coloration_code .spip_spip2 .re1 {color: #FFAB00;} /* #BALISE */
.coloration_code .spip_spip2 .re2 {color: #72A9FB;}
.coloration_code .spip_spip2 .re4 {color: #FF82B7;} /* crochets et parenthèses */
.coloration_code .spip_spip2 .re10 {color: #72A9FB;}
.coloration_code .spip_spip2 .re11 {color: #72A9FB;} /* <BOUCLE_ */
.coloration_code .spip_spip2 .re12 {color: #7ED9FF;} /* (TABLES) */
.coloration_code .spip_spip2 .re13 {color: #BFAFFF;}
.coloration_code .spip_spip2 .re15 {color: #72A9FB;}
.coloration_code .spip_spip2 .re20 {color: #6CA0FB;}
.coloration_code .spip_spip2 .re21 {color: #EDE199}
.coloration_code .spip_spip2 .re22 {color: #BB9B75;}
.coloration_code .spip_spip2 .re23 {color: #EDE199;}
.coloration_code .spip_spip2 .re30 {color: #DEFF00}
.coloration_code .spip_spip2 .re31 {color: #DEFF00}
.coloration_code .spip_spip2 .re40 {color: #DEFF00;} /* {argument} */
.coloration_code .spip_spip2 .re41 {color: #DEFF00;}
.coloration_code .spip_spip2 .re50 {color: #FE7A3A;} /* |filtre */
.coloration_code .spip_spip2 .re102 {color:#FF7968; font-weight:bold;}
.coloration_code .spip_spip2 span.xtra { display:block; }
.spip_spip2 .imp, .spip2 .imp {font-weight: bold; color: #FF8282;}
.spip_spip2 .coMULTI, .spip2 .coMULTI {color: #AF9C9C; font-style: italic;}
.spip_spip2 .es0, .spip2 .es0 {color: #A8B7E0; font-weight: bold;}
.spip_spip2 .re0, .spip2 .re0 {color: #F97E32;}
.spip_spip2 .re1, .spip2 .re1 {color: #FFAB00;} /* #BALISE */
.spip_spip2 .re2, .spip2 .re2 {color: #72A9FB;}
.spip_spip2 .re4, .spip2 .re4 {color: #FF82B7;} /* crochets et parenthèses */
.spip_spip2 .re10, .spip2 .re10 {color: #72A9FB;}
.spip_spip2 .re11, .spip2 .re11 {color: #72A9FB;} /* <BOUCLE_ */
.spip_spip2 .re12, .spip2 .re12 {color: #7ED9FF;} /* (TABLES) */
.spip_spip2 .re13, .spip2 .re13 {color: #BFAFFF;}
.spip_spip2 .re15, .spip2 .re15 {color: #72A9FB;}
.spip_spip2 .re20, .spip2 .re20 {color: #6CA0FB;}
.spip_spip2 .re21, .spip2 .re21 {color: #EDE199}
.spip_spip2 .re22, .spip2 .re22 {color: #BB9B75;}
.spip_spip2 .re23, .spip2 .re23 {color: #EDE199;}
.spip_spip2 .re30, .spip2 .re30 {color: #DEFF00}
.spip_spip2 .re31, .spip2 .re31 {color: #DEFF00}
.spip_spip2 .re40, .spip2 .re40 {color: #DEFF00;} /* {argument} */
.spip_spip2 .re41, .spip2 .re41 {color: #DEFF00;}
.spip_spip2 .re50, .spip2 .re50 {color: #FE7A3A;} /* |filtre */
.spip_spip2 .re102, .spip2 .re102 {color:#FF7968; font-weight:bold;}
.spip_spip2 span.xtra, .spip2 span.xtra { display:block; }

.coloration_code .spip_php .imp {font-weight: bold; color: #FF8282;}
.coloration_code .spip_php .de1 {color: #FFFFFF;} /* textes */
.coloration_code .spip_php .kw1 {color: #4BBAFF;} /* return if else for */
.coloration_code .spip_php .kw2 {color: #4BBAFF;} /* function true false */
.coloration_code .spip_php .kw3 {color: #EDE199;} /* array isset define */
.coloration_code .spip_php .co1 {color: #AEAEAE;} /* // commentaire */
.coloration_code .spip_php .co2 {color: #AEAEAE;}
.coloration_code .spip_php .co3 {color: #FFC10E;} /* <<<EOF */
.coloration_code .spip_php .co4 {color: #00bbdd;}
.coloration_code .spip_php .coMULTI {color: #AF9C9C; font-style: italic;}
.coloration_code .spip_php .es_h {color: #00bbdd; font-weight: bold;}
.coloration_code .spip_php .es_h {color: #00bbdd; font-weight: bold;}
.coloration_code .spip_php .br0 {color: #EDE199;} /* () {} */
.coloration_code .spip_php .sy0 {color: #EDE199;} /* , ! = ->  & */
.coloration_code .spip_php .st0 {color: #FFC10E;} /* "chaine" */
.coloration_code .spip_php .st_h {color: #FFC10E;} /* 'chaine' */
.coloration_code .spip_php .nu0 {color: #DF7BE1;} /* 109 */
.coloration_code .spip_php .nu8 {color: #1DB3A7;}
.coloration_code .spip_php .nu12 {color: #1DB3A7;}
.coloration_code .spip_php .nu19 {color:#DF7BE1;} /* 0 */
.coloration_code .spip_php .me1 {color: #FE7A3A;} /* cle : $tab->cle */
.coloration_code .spip_php .me2 {color: #FE7A3A;}
.coloration_code .spip_php .re0 {color: #FE7A3A;} /* $param : function f($param) */
.coloration_code .spip_php span.xtra { display:block; }
.spip_php .imp, .php .imp {font-weight: bold; color: #FF8282;}
.spip_php .de1, .php .de1 {color: #FFFFFF;} /* textes */
.spip_php .kw1, .php .kw1 {color: #4BBAFF;} /* return if else for */
.spip_php .kw2, .php .kw2 {color: #4BBAFF;} /* function true false */
.spip_php .kw3, .php .kw3 {color: #EDE199;} /* array isset define */
.spip_php .co1, .php .co1 {color: #AEAEAE;} /* // commentaire */
.spip_php .co2, .php .co2 {color: #AEAEAE;}
.spip_php .co3, .php .co3 {color: #FFC10E;} /* <<<EOF */
.spip_php .co4, .php .co4 {color: #00bbdd;}
.spip_php .coMULTI, .php .coMULTI {color: #AF9C9C; font-style: italic;}
.spip_php .es_h, .php .es_h {color: #00bbdd; font-weight: bold;}
.spip_php .es_h, .php .es_h {color: #00bbdd; font-weight: bold;}
.spip_php .br0, .php .br0 {color: #EDE199;} /* () {} */
.spip_php .sy0, .php .sy0 {color: #EDE199;} /* , ! = ->  & */
.spip_php .st0, .php .st0 {color: #FFC10E;} /* "chaine" */
.spip_php .st_h, .php .st_h {color: #FFC10E;} /* 'chaine' */
.spip_php .nu0, .php .nu0 {color: #DF7BE1;} /* 109 */
.spip_php .nu8, .php .nu8 {color: #1DB3A7;}
.spip_php .nu12, .php .nu12 {color: #1DB3A7;}
.spip_php .nu19, .php .nu19 {color:#DF7BE1;} /* 0 */
.spip_php .me1, .php .me1 {color: #FE7A3A;} /* cle : $tab->cle */
.spip_php .me2, .php .me2 {color: #FE7A3A;}
.spip_php .re0, .php .re0 {color: #FE7A3A;} /* $param : function f($param) */
.spip_php span.xtra, .php span.xtra { display:block; }

.coloration_code .spip_xml .imp {font-weight: bold; color: #FF8282;}
.coloration_code .spip_xml .es_h {color: #A8B7E0; font-weight: bold;}
.coloration_code .spip_xml .br0 {color: #66cc66;}
.coloration_code .spip_xml .sy0 {color: #66cc66;}
.coloration_code .spip_xml .st0 {color: #C9CA37;} /* <x y='valeur' /> */
.coloration_code .spip_xml .sc-1 {color: #aaaaaa; font-style: italic;}
.coloration_code .spip_xml .sc0 {color: #00bbdd;}
.coloration_code .spip_xml .sc1 {color: #EDE199;} /* entités &machin; */
.coloration_code .spip_xml .sc2 {color: #58ADB5;}
.coloration_code .spip_xml .sc3 {color: #aaaaaa;} /* = (attr='valeur') */
.coloration_code .spip_xml .re0 {color: #7BCA2A;} /* <x attribut='z' /> */
.coloration_code .spip_xml .re1, /* <balise */
.coloration_code .spip_xml .re2 {color: #7EBAFF;} /* /> */
.coloration_code .spip_xml span.xtra { display:block; }
.spip_xml .imp, .xml .imp {font-weight: bold; color: #FF8282;}
.spip_xml .es_h, .xml .es_h {color: #A8B7E0; font-weight: bold;}
.spip_xml .br0, .xml .br0 {color: #66cc66;}
.spip_xml .sy0, .xml .sy0 {color: #66cc66;}
.spip_xml .st0, .xml .st0 {color: #C9CA37;} /* <x y='valeur' /> */
.spip_xml .sc-1, .xml .sc-1 {color: #aaaaaa; font-style: italic;}
.spip_xml .sc0, .xml .sc0 {color: #00bbdd;}
.spip_xml .sc1, .xml .sc1 {color: #EDE199;} /* entités &machin; */
.spip_xml .sc2, .xml .sc2 {color: #58ADB5;}
.spip_xml .sc3, .xml .sc3 {color: #aaaaaa;} /* = (attr='valeur') */
.spip_xml .re0, .xml .re0 {color: #7BCA2A;} /* <x attribut='z' /> */
.spip_xml .re1, .xml .re1 {color: #7EBAFF;} /* <balise */
.spip_xml .re2, .xml .re2 {color: #7EBAFF;} /* /> */
.spip_xml span.xtra, .xml span.xtra { display:block; }

.coloration_code .spip_css .imp {font-weight: bold; color: #FF8282;}
.coloration_code .spip_css .kw1 {color: #EDE199; font-weight: bold;}
.coloration_code .spip_css .kw2 {color: #F87B70;}
.coloration_code .spip_css .co1 {color: #a1a100;}
.coloration_code .spip_css .co2 {color: #FE7A3A; font-style: italic;}
.coloration_code .spip_css .coMULTI {color: #aaaaaa; font-style: italic;}
.coloration_code .spip_css .es_h {color: #A8B7E0; font-weight: bold;}
.coloration_code .spip_css .br0 {color: #7BCA2A;}
.coloration_code .spip_css .sy0 {color: #7BCA2A;}
.coloration_code .spip_css .st0 {color: #C9CA37;}
.coloration_code .spip_css .nu0 {color: #cc66cc;}
.coloration_code .spip_css .re0 {color: #FFC10E;}
.coloration_code .spip_css .re1 {color: #AF9C9C;}
.coloration_code .spip_css .re2 {color: #7EBAFF;}
.coloration_code .spip_css .re3 {color: #E78E09;}
.coloration_code .spip_css span.xtra { display:block; }
.spip_css .imp, .css .imp {font-weight: bold; color: #FF8282;}
.spip_css .kw1, .css .kw1 {color: #EDE199; font-weight: bold;}
.spip_css .kw2, .css .kw2 {color: #F87B70;}
.spip_css .co1, .css .co1 {color: #a1a100;}
.spip_css .co2, .css .co2 {color: #FE7A3A; font-style: italic;}
.spip_css .coMULTI, .css .coMULTI {color: #aaaaaa; font-style: italic;}
.spip_css .es_h, .css .es_h {color: #A8B7E0; font-weight: bold;}
.spip_css .br0, .css .br0 {color: #7BCA2A;}
.spip_css .sy0, .css .sy0 {color: #7BCA2A;}
.spip_css .st0, .css .st0 {color: #C9CA37;}
.spip_css .nu0, .css .nu0 {color: #cc66cc;}
.spip_css .re0, .css .re0 {color: #FFC10E;}
.spip_css .re1, .css .re1 {color: #AF9C9C;}
.spip_css .re2, .css .re2 {color: #7EBAFF;}
.spip_css .re3, .css .re3 {color: #E78E09;}
.spip_css span.xtra, .css span.xtra { display:block; }

.coloration_code .spip_bash .imp {font-weight: bold; color: #FF8282;}
.coloration_code .spip_bash .kw1 {color: #EDE199; font-weight: bold;}
.coloration_code .spip_bash .kw2 {color: #F87B70; font-weight: bold;}
.coloration_code .spip_bash .kw3 {color: #a1a100; font-weight: bold;}
.coloration_code .spip_bash .co0 {color: #7EBAFF; font-style: italic;}
.coloration_code .spip_bash .co1 {color: #cc66cc;}
.coloration_code .spip_bash .co2 {color: #C9CA37; font-style: italic;}
.coloration_code .spip_bash .es_h {color: #A8B7E0; font-weight: bold;}
.coloration_code .spip_bash .br0 {color: #cc66cc; font-weight: bold;}
.coloration_code .spip_bash .sy0 {color: #EDE199; font-weight: bold;}
.coloration_code .spip_bash .st0 {color: #FFC10E;}
.coloration_code .spip_bash .nu0 {color: #EDE199;}
.coloration_code .spip_bash .re0 {color: #7BCA2A;}
.coloration_code .spip_bash .re1 {color: #7BCA2A;}
.coloration_code .spip_bash .re2 {color: #7BCA2A;}
.coloration_code .spip_bash .re4 {color: #7BCA2A;}
.coloration_code .spip_bash .re5 {color: #7BCA2A;}
.coloration_code .spip_bash span.xtra { display:block; } 
.spip_bash .imp, .bash .imp {font-weight: bold; color: #FF8282;}
.spip_bash .kw1, .bash .kw1 {color: #EDE199; font-weight: bold;}
.spip_bash .kw2, .bash .kw2 {color: #F87B70; font-weight: bold;}
.spip_bash .kw3, .bash .kw3 {color: #a1a100; font-weight: bold;}
.spip_bash .co0, .bash .co0 {color: #7EBAFF; font-style: italic;}
.spip_bash .co1, .bash .co1 {color: #cc66cc;}
.spip_bash .co2, .bash .co2 {color: #C9CA37; font-style: italic;}
.spip_bash .es_h, .bash .es_h {color: #A8B7E0; font-weight: bold;}
.spip_bash .br0, .bash .br0 {color: #cc66cc; font-weight: bold;}
.spip_bash .sy0, .bash .sy0 {color: #EDE199; font-weight: bold;}
.spip_bash .st0, .bash .st0 {color: #FFC10E;}
.spip_bash .nu0, .bash .nu0 {color: #EDE199;}
.spip_bash .re0, .bash .re0 {color: #7BCA2A;}
.spip_bash .re1, .bash .re1 {color: #7BCA2A;}
.spip_bash .re2, .bash .re2 {color: #7BCA2A;}
.spip_bash .re4, .bash .re4 {color: #7BCA2A;}
.spip_bash .re5, .bash .re5 {color: #7BCA2A;}
.spip_bash span.xtra, .bash span.xtra { display:block; } 

css/simplec.css

0 → 100644
+168 −0
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
/* Code pour SPIP */

pre,
code,
kbd,
samp,
var,
tt { }

/* Text preformaté simple */
pre {
	overflow-x: auto; /* Ajoute un scroll horizontal en cas de dépassement */
	padding:    12px;
}

/* Blocs de code */
.simplec_code {
	margin-bottom: 1.5em;
}

.simplec_code pre {
	overflow:      hidden;
	position:      relative;
	padding:       1.5em;
	margin:        0;
	font-size:     0.95em;
	-moz-tab-size: 4;
	tab-size:      4;
	color:         white;
	background:    #003E4B;
	line-height:   1.5;
	border:        none;
}

.simplec_code pre[class]::before {
	content:        attr(class);
	position:       absolute;
	top:            0.5em;
	right:          0.5em;
	line-height:    1;
	text-transform: lowercase;
	font-size:      .9rem;
	color:          #A4A4A4 !important;
}

.simplec_code pre code {
	display:    block;
	background: transparent;
	overflow:   auto;
}

.simplec_code pre code br { display: none !important; }

/* patch pour SPIP qui génère des <br> intempestifs, cf.: https://core.spip.net/issues/2504 */

/* Variantes par langage */

.simplec_code pre.spip,
.simplec_code pre.spip_spip2,
.simplec_code pre.spip2 { border-color: rgb(164, 102, 157); }

.simplec_code pre.spip::before,
.simplec_code pre.spip_spip2::before,
.simplec_code pre.spip2::before { color: rgb(208, 150, 173); }

.simplec_code pre.html { border-color: rgb(236, 102, 43); }

.simplec_code pre.html::before { color: rgb(245, 166, 43); }

.simplec_code pre.spip_css,
.simplec_code pre.css { border-color: rgb(133, 202, 21); }

.simplec_code pre.spip_css::before,
.simplec_code pre.css::before { color: rgb(133, 202, 21); }

.simplec_code pre.less { border-color: rgb(64, 126, 214); }

.simplec_code pre.less::before { color: rgb(145, 190, 249); }

.simplec_code pre.sass,
.simplec_code pre.scss { border-color: rgb(207, 100, 154); }

.simplec_code pre.sass::before,
.simplec_code pre.scss::before { color: rgb(207, 100, 154); }

.simplec_code pre.js { border-color: rgb(228, 162, 39); }

.simplec_code pre.js::before { color: rgb(253, 178, 43); }

.simplec_code pre.spip_php,
.simplec_code pre.php { border-color: rgb(98, 129, 184); }

.simplec_code pre.spip_php::before,
.simplec_code pre.php::before { color: rgb(132, 169, 238); }

.simplec_code pre.spip_xml,
.simplec_code pre.xml { border-color: rgb(229, 184, 3); }

.simplec_code pre.spip_xml::before,
.simplec_code pre.xml::before { color: rgb(229, 184, 3); }

.simplec_code pre.md { border-color: rgb(121, 195, 210); }

.simplec_code pre.md::before { color: rgb(121, 195, 210); }

/* http://hex2rgba.devoth.com */

/* bouton de copie du code */
.simplec_code {
	position: relative;
}

.simplec_code .copy-button {
	display:        none;
	position:       absolute;
	top:            0.5em;;
	right:          4em;
	margin:         0;
	padding:        0;
	background:     transparent;
	border:         0;
	border-radius:  0;
	outline:        0;
	text-transform: lowercase;
	line-height:    1;
	font-size:      .9rem;
	font-family:    Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;
	color:          #A4A4A4;
	cursor:         pointer;
}

.simplec_code:hover .copy-button,
.simplec_code .copy-button.copied {
	display: inline-block;
}

.simplec_code .copy-button:hover,
.simplec_code .copy-button.copied {
	color: white !important; transition: color 250ms ease-out;
}

.simplec_code .copy-button.copied span:before {
	content: '\2713\a0';
}

/* debug */
/*.spip_code { background: orange !important; }
.spip_cadre { background: red !important; }*/

kbd {
	white-space:      nowrap;
	padding:          .1em .3em;
	background-color: #EEEEEE;
	border:           1px solid #AAAAAA;
	border-radius:    4px;
	box-shadow:       0 2px 0 rgba(0, 0, 0, 0.2), 0 0 0 1px #FFFFFF inset;
	color:            #333333;
}

samp {
	font-weight: bold;
}

var {
	font-style: italic;
}

/* end */
 No newline at end of file
+2 −0
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -21,6 +21,8 @@
	<necessite nom="Zcore" compatibilite="[2.6.2;]" />
	<necessite nom="scssphp" compatibilite="[1.2.1;]" />
	
	<utilise nom="simplec" compatibilite="[1.2.0;]" />

	<chemin path="" />

</paquet>
 No newline at end of file