Hello friends, I am using the stylebot extension that allows you to edit or add CSS to web pages:
As the publication says, I am trying to agregar contenido a hipervínculos por defecto distinto a los visitados
.
I am doing this with CSS:
a.question-hyperlink {
font-family: Calibri;
font-weight: 100;
font-style: italic;
}
a.question-hyperlink {
color: #c27ba0;
}
a.question-hyperlink::before {
content: "[New] -> ";
}
a.question-hyperlink:visited {
color: #f6b26b;
}
a.question-hyperlink:visited::before {
content: "[Rev] -> ";
}
but I am not getting the expected result since the visited links; The content added to the default ones continues to appear [New] ->
and not this [Rev] ->
, which would be the expected content:
Can't: https://developer.mozilla.org/es/docs/Web/CSS/:visited
Styles defined by the pseudo-class
:visited
will be overridden by any subsequent link-related pseudo-classes (:link
,:hover
or:active
) that have at least the same specificity. To style the links appropriately, place the rule:visited
after the rule:link
but before the:hover
and rules:active
, as defined by the orderLVHA
::link
—:visited
—:hover
— :active
.style restrictions
see Privacy and the selector
:visited