From 149319bb8c7b1394a443f0877c3460cd362aa815 Mon Sep 17 00:00:00 2001 From: julieng Date: Fri, 17 Sep 2021 20:58:15 +0200 Subject: move *.html to *.md --- files/fr/web/css/_colon_any-link/index.html | 73 ----------------------------- files/fr/web/css/_colon_any-link/index.md | 73 +++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+), 73 deletions(-) delete mode 100644 files/fr/web/css/_colon_any-link/index.html create mode 100644 files/fr/web/css/_colon_any-link/index.md (limited to 'files/fr/web/css/_colon_any-link') diff --git a/files/fr/web/css/_colon_any-link/index.html b/files/fr/web/css/_colon_any-link/index.html deleted file mode 100644 index 689e4d42b2..0000000000 --- a/files/fr/web/css/_colon_any-link/index.html +++ /dev/null @@ -1,73 +0,0 @@ ---- -title: ':any-link' -slug: 'Web/CSS/:any-link' -tags: - - CSS - - Experimental - - Pseudo-classe - - Reference -translation_of: 'Web/CSS/:any-link' ---- -
{{CSSRef}}
- -

La pseudo-classe :any-link permet de représenter un élément qui agit comme la source de l'ancre d'un hyperlien (qu'il ait été visité ou non). Elle permet donc de cibler les éléments {{HTMLElement("a")}}, {{HTMLElement("area")}} ou {{HTMLElement("link")}} avec un attribut href. Autrement dit, elle cible les éléments qui correspondent à {{cssxref(":link")}} ou à {{cssxref(":visited")}}.

- -
/* cible tous les éléments qui seraient ciblés par */
-/* :link ou :visited */
-:any-link {
-  color: green;
-  font-weight: bold;
-}
- -

Syntaxe

- -{{csssyntax}} - -

Exemples

- -

CSS

- -
:any-link {
-  color: green;
-  font-weight: bold;
-}
-
-/* Pour les navigateurs WebKit */
-:-webkit-any-link {
-  color: green;
-  font-weight: bold;
-}
-
- -

HTML

- -
<a href="https://mozilla.org">Une page différente</a><br>
-<a href="#">Une ancre</a><br>
-<a>Un lien sans cible (n'est pas mis en forme)</a>
- -

Résultat

- -

{{EmbedLiveSample("Exemples","100%","100%")}}

- -

Spécifications

- - - - - - - - - - - - - - - - -
SpécificationÉtatCommentaires
{{SpecName("CSS4 Selectors", "#the-any-link-pseudo", ":any-link")}}{{Spec2('CSS4 Selectors')}}Définition initiale.
- -

Compatibilité des navigateurs

- -

{{Compat("css.selectors.any-link")}}

diff --git a/files/fr/web/css/_colon_any-link/index.md b/files/fr/web/css/_colon_any-link/index.md new file mode 100644 index 0000000000..689e4d42b2 --- /dev/null +++ b/files/fr/web/css/_colon_any-link/index.md @@ -0,0 +1,73 @@ +--- +title: ':any-link' +slug: 'Web/CSS/:any-link' +tags: + - CSS + - Experimental + - Pseudo-classe + - Reference +translation_of: 'Web/CSS/:any-link' +--- +
{{CSSRef}}
+ +

La pseudo-classe :any-link permet de représenter un élément qui agit comme la source de l'ancre d'un hyperlien (qu'il ait été visité ou non). Elle permet donc de cibler les éléments {{HTMLElement("a")}}, {{HTMLElement("area")}} ou {{HTMLElement("link")}} avec un attribut href. Autrement dit, elle cible les éléments qui correspondent à {{cssxref(":link")}} ou à {{cssxref(":visited")}}.

+ +
/* cible tous les éléments qui seraient ciblés par */
+/* :link ou :visited */
+:any-link {
+  color: green;
+  font-weight: bold;
+}
+ +

Syntaxe

+ +{{csssyntax}} + +

Exemples

+ +

CSS

+ +
:any-link {
+  color: green;
+  font-weight: bold;
+}
+
+/* Pour les navigateurs WebKit */
+:-webkit-any-link {
+  color: green;
+  font-weight: bold;
+}
+
+ +

HTML

+ +
<a href="https://mozilla.org">Une page différente</a><br>
+<a href="#">Une ancre</a><br>
+<a>Un lien sans cible (n'est pas mis en forme)</a>
+ +

Résultat

+ +

{{EmbedLiveSample("Exemples","100%","100%")}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + +
SpécificationÉtatCommentaires
{{SpecName("CSS4 Selectors", "#the-any-link-pseudo", ":any-link")}}{{Spec2('CSS4 Selectors')}}Définition initiale.
+ +

Compatibilité des navigateurs

+ +

{{Compat("css.selectors.any-link")}}

-- cgit v1.2.3-54-g00ecf