Radoslaw 2 Posted July 17, 2017 Report Share Posted July 17, 2017 Необходимо изменить фон закрепленных топиков в списке тем. Знакок скрепки совсем незаметный, не видна граница между закрепленными топиками и обычными в списке. Нужно выделять закрепленные топики цветом, аналогично скрытым. Где и как это можно сделать? Обратиться Quote Link to comment Share on other sites More sharing options...
Павел 139 Posted July 18, 2017 Report Share Posted July 18, 2017 Для этого необходимо дописать дополнительный класс к элементу li. Открываем шаблон forums > front > forums и находим: <li class="ipsDataItem ipsDataItem_responsivePhoto {{if $row->unread()}}ipsDataItem_unread{{endif}} {{if method_exists( $row, 'tableClass' ) && $row->tableClass()}}ipsDataItem_{$row->tableClass()}{{endif}} {{if $row->hidden()}}ipsModerated{{endif}}" data-rowID='{$row->$idField}' itemprop="itemListElement" itemscope itemtype="http://schema.org/Article"> Меняем на: <li class="ipsDataItem ipsDataItem_responsivePhoto {{if $row->unread()}}ipsDataItem_unread{{endif}} {{if method_exists( $row, 'tableClass' ) && $row->tableClass()}}ipsDataItem_{$row->tableClass()}{{endif}} {{if $row->hidden()}}ipsModerated{{endif}} {{if $row->mapped('pinned')}}pinnedT{{endif}}" data-rowID='{$row->$idField}' itemprop="itemListElement" itemscope itemtype="http://schema.org/Article"> Теперь в custom.css можно использовать такую конструкцию; ol.cTopicList li.pinnedT {background:black} 1 Обратиться Quote Link to comment Share on other sites More sharing options...
Radoslaw 2 Posted July 19, 2017 Author Report Share Posted July 19, 2017 Спасибо, а как сделать, чтобы красились все закрепленные топики, а не через строчку? Обратиться Quote Link to comment Share on other sites More sharing options...
Павел 139 Posted July 19, 2017 Report Share Posted July 19, 2017 2 часа назад, Radoslaw сказал: Спасибо, а как сделать, чтобы красились все закрепленные топики, а не через строчку? В таком случае стоит использовать !important: ol.cTopicList li.pinnedT {background:black !important} Обратиться Quote Link to comment Share on other sites More sharing options...
Radoslaw 2 Posted July 19, 2017 Author Report Share Posted July 19, 2017 Чудесно!) Обратиться Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.