From ad402a9c7727753e158607678e2a853351b75414 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Tue, 27 Jul 2021 06:48:54 +0200 Subject: Create a French translation for CSS `:local-link` pseudo class reference. (#1711) * Initial FR translation * Minor indent fix / no spacing for macros Spaces (2) rather than tabs and macros are most of the time called without spaces between curly braces (though that doesn't change the result in anyway) * missing space Co-authored-by: SphinxKnight --- files/fr/web/css/_colon_local-link/index.html | 52 +++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 files/fr/web/css/_colon_local-link/index.html diff --git a/files/fr/web/css/_colon_local-link/index.html b/files/fr/web/css/_colon_local-link/index.html new file mode 100644 index 0000000000..9f86e4fbd7 --- /dev/null +++ b/files/fr/web/css/_colon_local-link/index.html @@ -0,0 +1,52 @@ +--- +title: ':local-link' +slug: 'Web/CSS/:local-link' +browser-compat: css.selectors.local-link +translation_of: Web/CSS/:local-link +--- +

{{CSSRef}}

+ +

La pseudo-classe CSS :local-link représente un lien vers le même document. Il s'agit donc d'un élément qui est l'ancre source d'un lien hypertexte dont la cible est une URL absolue correspondant à l'URL du document contenant l'élément.

+ +
/* Sélectionne n'importe quel <a> ciblant le document courant */
+a:local-link {
+  color: green;
+}
+
+ +

Syntaxe

+ +

{{csssyntax}}

+ +

Exemples

+ +

HTML

+ +
<a href="#target">Voici un lien vers la page courante.</a><br>
+<a href="https://example.com">Voici un lien externe</a><br>
+
+ +

CSS

+ +
a:local-link {
+  color: green;
+}
+
+ +

Résultat

+ +

{{EmbedLiveSample("Examples")}}

+ +

Spécifications

+ +

{{Specifications}}

+ +

Compatibilité des navigateurs

+ +

{{Compat}}

+ +

Voir aussi

+ + -- cgit v1.2.3-54-g00ecf