Новости Joomla

0 Пользователей и 1 Гость просматривают эту тему.
  • 5 Ответов
  • 9089 Просмотров
*

koshsh

  • Захожу иногда
  • 278
  • 8 / 0
Здравствуйте, подскажите как изменить стиль одного пункта меню Joomla и вообще возможно ли это?
Например так, чтоб один пункт был другого цвета, ну чтоб выделялся...
*

jem777

  • Завсегдатай
  • 1666
  • 119 / 2
Ну видимо через CSS. Присвоить свой стиль для item100002 где Itemid можно узнать в меню сайта.
*

koshsh

  • Захожу иногда
  • 278
  • 8 / 0
Спасибо за ответ jem777 ... Понял, но как то страшно вато лесть в файл меню.css, там темный лес  :o
вот посмотрите,

Код
/* TransMenu
-------------------------------------------------
Originally developed by Aaron Boodman
http://www.youngpup.net/
--------------------------------------------------
NOTE: TransMenu background and some
configurations are located in the ja-transmenu.js.
-------------------------------------------------*/


/* this is the clipping region for the menu. it's width and height get set by script, depending on the size of the items table */
.transMenu {
position: absolute;
overflow: hidden;
left: -1000px;
top: -1000px;
}

/* this is the main container for the menu itself. it's width and height get set by script, depending on the size of the items table */
.transMenu .content {
position: absolute;
}

/* this table comprises all menu items. each TR is one item. It is relatively positioned so that the shadow and background transparent divs can be positioned underneath it */
.transMenu .items {
position: relative;
left: 0px;
top: 0px;
z-index: 2;
font-size: 11px;
        font-weight: 700;
}

.transMenu.top .items {
}

/* this DIV is the semi-transparent white background of each menu. the -moz-opacity is a proprietary way to get transparency in mozilla, the filter is for IE/windows 5.0+. */
/* we set the background color in script because ie mac does not use it; that browser only uses a semi-transparent white PNG that the spacer gif inside this DIV is replaced by */
.transMenu .background {
position: absolute;
left: 0px;
top: 0px;
z-index: 1;
-moz-opacity: .8;
filter: alpha(opacity=80);
}

/* same concept as .background, but this is the sliver of shadow on the right of the menu. It's left, height, and background are set by script. In IE5/mac, it uses a PNG */
.transMenu .shadowRight {
width: 2px;
position: absolute;
z-index: 3;
top: 3px;
-moz-opacity: .2;
filter: alpha(opacity=20);
}

/* same concept as .background, but this is the sliver of shadow on the bottom of the menu. It's top, width, and background are set by script. In IE5/mac, it uses a PNG */
.transMenu .shadowBottom {
position: absolute;
z-index: 1;
left: 3px;
height: 2px;
-moz-opacity: .2;
filter: alpha(opacity=20);
}

/* each TR.item is one menu item */
.transMenu .item {
border: none;
color: #5A5A5A;
text-decoration: none;
text-transform: none; /* this is a hack for mac/ie5, whom incorrectly cascades the border properties of the parent table to each row */
cursor: pointer;
font-weight: normal;
}

/* this is the class that is used when the mouse is over an item. script sets the row to this class when required. */
.transMenu .item.hover {
color: #FFFFFF;
background: #C0C0C0;
}

/* this is either the dingbat that indicates there is a submenu, or a spacer gif in it's place. We give it extra margin to create some space between the text and the dingbat */
.transMenu .item img {
margin-left: 10px;
}

/* ----------------------------------------------------------------
- Added classes by Khanh - 050629
- Style and mark-up improved by Hieu Nguyen & Ha Le Viet - 060718
-------------------------------------------------------------------*/
.transMenu .item#active, .transMenu .item#active:hover {
background: #3F89C3;
color: #FFFFFF!important;
font-weight: bold; /* -moz-opacity: .6;
filter: alpha(opacity=60); */
}

/* For first level menu.*/
#ja-transmenu {
font-weight: bold;
margin: 0;
}

#ja-transmenu li {
font-weight: bold;
margin: 0;
padding: 0;
background: none;
}

#ja-transmenu li a {
font-weight: bold;
margin: 0;
padding: 0;
display: block;
height: 25px;
line-height: 25px;
padding-left: 15px;
background: url(../../images/bullet-menu.gif) no-repeat left bottom #FFFFFF;
text-decoration: none;
text-transform: uppercase;
}

#ja-transmenu li a:hover {
color: #3F89C3;
background: url(../../images/bullet-menu.gif) no-repeat left top #FFFFFF;
font-weight: bold;
}

a.havechild-mainlevel-trans {
background: url(img/arrow-off2.gif) center right no-repeat;
font-weight: bold;
}

a.havechild-mainlevel-trans-last {
background: url(img/arrow-off2.gif) center right no-repeat;
font-weight: bold;
}

a.havechild-mainlevel-active-trans-last,
a.havechild-mainlevel-active-trans-last:active {
font-weight: bold;
background: url(../../images/bullet-menu.gif) no-repeat left top #FFFFFF;
color: #3F89C3;
font-weight: bold;
}

a.havechild-mainlevel-active-trans,
a.havechild-mainlevel-active-trans:active {
font-weight: bold;
background: url(../../images/bullet-menu.gif) no-repeat left top #FFFFFF;
color: #3F89C3;
font-weight: bold;

a.jahover {
background: url(../../images/bullet-menu.gif) no-repeat left top #FFFFFF;
color: #3F89C3;
font-weight: bold;
}

a.jahover-active {
background: url(../../images/bullet-menu.gif) no-repeat left top #FFFFFF;
color: #3F89C3;
font-weight: bold;
}

a.mainlevel-trans {
font-weight: bold;
}

a.mainlevel-trans:hover,
a.mainlevel-trans:active {
           font-weight: bold;
            color: #3F89C3;
  background: url(../../images/bullet-menu.gif) no-repeat left top #FFFFFF;
}

a.mainlevel-active-trans,
a.mainlevel-active-trans:hover,
a.mainlevel-active-trans:active {
background: url(../../images/bullet-menu.gif) no-repeat left top #FFFFFF;
color: #3F89C3;
font-weight: bold;
}

*

jem777

  • Завсегдатай
  • 1666
  • 119 / 2
Лучше ссылку на сайт дайте, может и сможем тогда чем нибудь помочь.

А где этот CSS находится в системе?
я никак его никак его найти не могу!
заранее спасибо!
*

dynamit

  • Завсегдатай
  • 1744
  • 265 / 0
  • Winter Is Coming
папка template шаблона -> папка CSS -> файл(-ы)  .css 
ТАМ ГДЕ ТЫ НИЧЕГО НЕ МОЖЕШЬ, ТЫ НЕ ДОЛЖЕН НИЧЕГО ХОТЕТЬ
==========================================================
Сайты на Joomla!. Верстка. Консультации.  ||  Яндекс уже не ищет, он уже продает (с)  ||    Создание шаблона для Joomla 2.5
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Helix Ultimate - изменить font-weight

Автор kunsaid

Ответов: 3
Просмотров: 2123
Последний ответ 30.04.2024, 18:40:24
от kunsaid
Изменить заголовок в шапке сайта

Автор kunsaid

Ответов: 0
Просмотров: 2773
Последний ответ 03.12.2022, 18:34:32
от kunsaid
Кликабельность псевдоэлемента в пункте меню

Автор vasilii.pupkov

Ответов: 4
Просмотров: 3440
Последний ответ 29.12.2021, 23:15:38
от v42bis
Выпадающее меню

Автор DrShepard

Ответов: 10
Просмотров: 2978
Последний ответ 20.10.2021, 12:36:16
от DrShepard
Как закруглить края выпадающего меню?

Автор coliandra

Ответов: 1
Просмотров: 1464
Последний ответ 11.12.2020, 21:15:57
от effrit