8,957
edits
No edit summary |
No edit summary |
||
Line 366: | Line 366: | ||
/* | /* Скрытие оригинального текста и замена на "Comments" */ | ||
a[rel="discussion"] span { | a[rel="discussion"] span { | ||
display: inline-block; /* Для корректного позиционирования */ | |||
position: relative; | position: relative; | ||
color: transparent; /* Скрываем оригинальный текст для доступности */ | |||
} | } | ||
/* Отображение текста "Comments" */ | |||
a[rel="discussion"] span::before { | a[rel="discussion"] span::before { | ||
content: "Comments"; | |||
position: absolute; | position: absolute; | ||
top: 0; | top: 0; | ||
left: 0; | left: 0; | ||
color: #0645AD; /* Цвет текста, как у ссылок MediaWiki */ | |||
} | } | ||
/* | /* Подчеркивание при наведении, как у ссылок */ | ||
a[rel="discussion"]:hover { | a[rel="discussion"]:hover span::before { | ||
text-decoration: underline; | text-decoration: underline; | ||
text-decoration-color: #0645AD; /* Цвет подчеркивания, как у ссылок */ | |||
} | } | ||