diff --git a/dist/impression.css b/dist/impression.css index 9b304f93f3a4c6e350885a3a14e1239c31a4c744..2003d2e885e2609fb6bec8445e084c32a23e4f5f 100755 --- a/dist/impression.css +++ b/dist/impression.css @@ -24,7 +24,7 @@ h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; font-size: 1em; font-weight: nor /* on affiche l'URL cible a la suite des liens sortants (!) ---------------------------------------------- */ a { color: #520; text-decoration: underline; } -a.spip_out:after, a.spip_glossaire:after,a.spip_mailto:after { display: inline; content: " [" attr(href) "]"; } +a.spip_out:after, a.spip_glossaire:after, a.spip_mail:after { display: inline; content: " [" attr(href) "]"; } /* Un peu de coquetterie diff --git a/ecrire/inc/lien.php b/ecrire/inc/lien.php index 28a77a5487c03ca2433656933d2b3c429ea16bf6..d13ff7d6983eef4701d042bf9870389e17ef1eed 100644 --- a/ecrire/inc/lien.php +++ b/ecrire/inc/lien.php @@ -25,8 +25,8 @@ function inc_lien_dist($lien, $texte, $class='', $title='', $hlang='', $lang='', { if (substr($lien,0,1) == '#') # ancres pures (internes a la page) $class = 'spip_ancre'; - elseif (preg_match('/^\s*mailto:/',$lien)) # pseudo URL de mail - $class = "spip_mailto"; + elseif (preg_match('/^\s*mail:/',$lien)) # pseudo URL de mail + $class = "spip_mail"; elseif (preg_match('/^<html>/',$lien)) # cf traiter_lien_explicite $class = "spip_url spip_out"; elseif (!$class) $class = "spip_out"; # si pas spip_in|spip_glossaire @@ -226,7 +226,7 @@ function calculer_url ($ref, $texte='', $pour='url', $connect='') { return $r ? $r : traiter_lien_explicite($ref, $texte, $pour, $connect); } -define('_EXTRAIRE_LIEN', ",^\s*(http:?/?/?|mailto:?)\s*$,iS"); +define('_EXTRAIRE_LIEN', ",^\s*(http:?/?/?|mail:?)\s*$,iS"); // http://doc.spip.org/@traiter_lien_explicite function traiter_lien_explicite ($ref, $texte='', $pour='url', $connect='') @@ -241,7 +241,7 @@ function traiter_lien_explicite ($ref, $texte='', $pour='url', $connect='') $lien = "http://".$lien; else if (strpos($lien, "@") && email_valide($lien)) { if (!$texte) $texte = $lien; - $lien = "mailto:".$lien; + $lien = "mail:".$lien; } if ($pour == 'url') return $lien; diff --git a/prive/spip_style.css b/prive/spip_style.css index 63d7a5ccf5b5814ba5f5a5c969247f8a34dae0d8..0abcd766427cd3583a03eb17971d5f9f976ba200 100644 --- a/prive/spip_style.css +++ b/prive/spip_style.css @@ -17,7 +17,7 @@ blockquote.spip { margin: 2em 0; padding-left: 1em; border-left: 0.30em solid; } blockquote.spip_poesie { margin: 2em 0; padding-left: 1em; border-left: 1px solid; font-family: Garamond, Georgia, Times, serif; } blockquote.spip_poesie div { text-indent: -3em; margin-left: 3em; } -.spip_code, .spip_cadre { font-family: Courier, "Courier New", monospace; color: #009; } +.spip_code, .spip_cadre { font-family: Courier, "Courier New", monospace; color: #036; } .spip_cadre { width: 99%; background-color: #F4F8F8; border: 1px inset; } div.spip_code, .spip_cadre { margin-bottom: 1em; } @@ -51,7 +51,8 @@ a.spip_note {} /* liens vers notes de bas de page */ a.spip_ancre {} /* liens internes a la page */ a.spip_in { color: #900; } /* liens internes */ a.spip_out { color: #009; } /* liens sortants */ -a.spip_mailto:before { content: "\002709"; } /* liens vers un email */ +a.spip_mail { color: #900; } +a.spip_mail:before { content: "\002709"; } /* liens vers un email */ a.spip_url { color: #009; } /* liens url sortants */ a.spip_glossaire { color: #060; } /* liens vers encyclopedie */ a.spip_glossaire:hover { text-decoration: underline overline; }