Инструменты пользователя

Инструменты сайта


wiki:tips:local-links-with-icons

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Следующая версия
Предыдущая версия
wiki:tips:local-links-with-icons [2023/09/03 04:23] – создано vladpolskiywiki:tips:local-links-with-icons [2025/01/19 13:47] (текущий) vladpolskiy
Строка 1: Строка 1:
 ====== Внутренние ссылки со значками ====== ====== Внутренние ссылки со значками ======
  
-Отредактируйте файл «design.css», изменив описание для «div.dokuwiki a.wikilink1»:+Отредактируйте файл «_links.css» в папке ''dokuwiki/lib/tpl/dokuwiki/css'', изменив описание для «div.dokuwiki a.wikilink1»:
  
 <code css> <code css>
Строка 8: Строка 8:
   padding-left:0.4em;    padding-left:0.4em; 
 } }
 +</code>
 +Оригинальный файл links.css
 +<code css _links.css [enable_line_numbers="true"]>
 +/**
 + * This file provides styles for all types of links.
 + */
 +
 +/*____________ links to wiki pages ____________*/
 +
 +/* existing wikipage */
 +.dokuwiki a.wikilink1 {
 +}
 +/* not existing wikipage */
 +.dokuwiki a.wikilink2 {
 +    text-decoration: none;
 +}
 +.dokuwiki a.wikilink2:link,
 +.dokuwiki a.wikilink2:visited {
 +    border-bottom: 1px dashed;
 +}
 +.dokuwiki a.wikilink2:hover,
 +.dokuwiki a.wikilink2:active,
 +.dokuwiki a.wikilink2:focus {
 +    border-bottom-width: 0;
 +}
 +
 +/* any link to current page */
 +.dokuwiki span.curid a {
 +    font-weight: bold;
 +}
 +
 +/*____________ other link types ____________*/
 +
 +.dokuwiki a.urlextern,
 +.dokuwiki a.windows,
 +.dokuwiki a.mail,
 +.dokuwiki a.mediafile,
 +.dokuwiki a.interwiki {
 +    background-size: 1.2em;
 +    background-repeat: no-repeat;
 +    background-position: 0 center;
 +    padding: 0 0 0 1.4em;
 +}
 +/* external link */
 +.dokuwiki a.urlextern {
 +    background-image: url(../../images/external-link.svg);
 +}
 +/* windows share */
 +.dokuwiki a.windows {
 +    background-image: url(../../images/unc.svg);
 +}
 +/* email link */
 +.dokuwiki a.mail {
 +    background-image: url(../../images/email.svg);
 +}
 +
 +/* icons of the following are set by dokuwiki in lib/exe/css.php */
 +/* link to some embedded media */
 +.dokuwiki a.mediafile {
 +}
 +/* interwiki link */
 +.dokuwiki a.interwiki {
 +}
 +
 +/* RTL corrections; if link icons don't work as expected, remove the following lines */
 +[dir=rtl] .dokuwiki a.urlextern,
 +[dir=rtl] .dokuwiki a.windows,
 +[dir=rtl] .dokuwiki a.mail,
 +[dir=rtl] .dokuwiki a.interwiki,
 +[dir=rtl] .dokuwiki a.mediafile {
 +    background-position: right center;
 +    padding: 0 18px 0 0;
 +}
 +
 </code> </code>
wiki/tips/local-links-with-icons.1693704197.txt.gz · Последнее изменение: vladpolskiy