Новости Joomla

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

Seal_LOSrec

  • Осваиваюсь на форуме
  • 25
  • 1 / 0
Меняем меню.
« : 26.04.2014, 18:51:27 »
Здравствуйте! Решил создать еще одно меню с маленькими изменениями, а именно: меню на всю ширину листа, всего 3 "ячейки" и каждая должна занимать 1/3 всей области меню, слева и справа должны быть углы закруглены.
Сегодня с 10 часов сижу в коде и не смог сделать "нормально". Всегда какие-то баги. А некоторые пункты вообще не смог реализовать. По сути такое же меню, что и главное у меня, но там есть эти маленькие изменения.
Добрые люди, подскажите пожалуйста, что отвечает за каждый пункт, который мне требуется изменить? Я как понимаю, нужно само гласное меню CSS править, но уж что-то не получается. Искал через FireBug - видать не там ищу, потому что результата нет. Вот сам код, который пытаюсь изменить:

Код
ul.art-smenu
{
  font-size: 13px;
  font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;
  font-weight: normal;
  font-style: normal;
}

#art-smenu-bg, .art-smenu a
{
  -webkit-background-origin: border !important;
  -moz-background-origin: border !important;
  background-origin: border-box !important;
}

#art-smenu-bg
{
  display: block;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

ul.art-smenu a, ul.art-smenu a:link, ul.art-smenu a:visited, ul.art-smenu a:hover
{
  outline: none;
  position: relative;
  z-index: 11;
}

ul.art-smenu, ul.art-smenu ul
{
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  list-style-type: none;
}

ul.art-smenu li
{
  position: relative;
  z-index: 5;
  display: block;
  float: left;
  background: none;
  margin: 0;
  padding: 0;
  border: 0;
}

ul.art-smenu li:hover
{
  z-index: 10000;
  white-space: normal;
}

ul.art-smenu:after, ul.art-smenu ul:after
{
  content: ".";
  height: 0;
  display: block;
  visibility: hidden;
  overflow: hidden;
  clear: both;
}

ul.art-smenu, ul.art-smenu ul
{
  min-height: 0;
}

ul.art-smenu
{
  display: inline-block;
  vertical-align: bottom;
  padding-left: 3px;
  padding-right: 3px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.art-smenu-extra1
{
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  background-position: center;
}

.art-smenu-extra2
{
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
  height: auto;
  background-position: center;
}

ul.art-smenu>li
{
  margin-left: 1px;
}

ul.art-smenu>li:first-child
{
  margin-left: 0;
}

ul.art-smenu>li:last-child, ul.art-smenu>li.last-child
{
  margin-right: 0;
}

ul.art-smenu>li>a
{
  background: #D1D1D1;
  background: linear-gradient(top, #FAFAFA 0, #A6A6A6 100%) no-repeat;
  background: -webkit-linear-gradient(top, #FAFAFA 0, #A6A6A6 100%) no-repeat;
  background: -moz-linear-gradient(top, #FAFAFA 0, #A6A6A6 100%) no-repeat;
  background: -o-linear-gradient(top, #FAFAFA 0, #A6A6A6 100%) no-repeat;
  background: -ms-linear-gradient(top, #FAFAFA 0, #A6A6A6 100%) no-repeat;
  background: linear-gradient(top, #FAFAFA 0, #A6A6A6 100%) no-repeat;
  -svg-background: linear-gradient(top, #FAFAFA 0, #A6A6A6 100%) no-repeat;
  padding: 0 50px;
  margin: 0 auto;
  position: relative;
  display: block;
  height: 34px;
  cursor: pointer;
  text-decoration: none;
  color: #000000;
  line-height: 34px;
  text-align: center;
}

.art-smenu a, .art-smenu a:link, .art-smenu a:visited, .art-smenu a.active, .art-smenu a:hover
{
  font-size: 13px;
  font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;
  font-weight: normal;
  font-style: normal;
  text-decoration: none;
  text-transform: uppercase;
  text-align: left;
}

ul.art-smenu>li>a.active
{
  padding: 0 50px;
  margin: 0 auto;
  color: #000000;
  text-decoration: none;
}

ul.art-smenu>li>a:visited, ul.art-smenu>li>a:hover, ul.art-smenu>li:hover>a
{
  text-decoration: none;
}

ul.art-smenu>li>a:hover, .desktop ul.art-smenu>li:hover>a
{
  background: #EB242A;
  background: linear-gradient(top, #F16A6E 0, #E9161D 60%, #B11016 100%) no-repeat;
  background: -webkit-linear-gradient(top, #F16A6E 0, #E9161D 60%, #B11016 100%) no-repeat;
  background: -moz-linear-gradient(top, #F16A6E 0, #E9161D 60%, #B11016 100%) no-repeat;
  background: -o-linear-gradient(top, #F16A6E 0, #E9161D 60%, #B11016 100%) no-repeat;
  background: -ms-linear-gradient(top, #F16A6E 0, #E9161D 60%, #B11016 100%) no-repeat;
  background: linear-gradient(top, #F16A6E 0, #E9161D 60%, #B11016 100%) no-repeat;
  -svg-background: linear-gradient(top, #F16A6E 0, #E9161D 60%, #B11016 100%) no-repeat;
  padding: 0 50px;
  margin: 0 auto;
}

ul.art-smenu>li>a:hover, .desktop-nav ul.art-smenu>li:hover>a
{
  color: #FFFFFF;
  text-decoration: none;
}

ul.art-smenu>li:before
{
  position: absolute;
  display: block;
  content: ' ';
  top: 0;
  left: -1px;
  width: 1px;
  height: 34px;
  background: url('../images/menuseparator.png') center center no-repeat;
}

ul.art-smenu>li:first-child:before
{
  display: none;
}

ul.art-smenu li li a
{
  background: #B9C2CB;
  background: transparent;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  padding: 0 50px;
  margin: 0 auto;
}

ul.art-smenu li li
{
  float: none;
  width: auto;
  margin-top: 0;
  margin-bottom: 0;
}

.desktop-nav ul.art-smenu li li ul>li:first-child
{
  margin-top: 0;
}

ul.art-smenu li li ul>li:last-child
{
  margin-bottom: 0;
}

.art-smenu ul a
{
  display: block;
  white-space: nowrap;
  height: 24px;
  min-width: 7em;
  border: 0 solid transparent;
  text-align: left;
  line-height: 24px;
  color: #6A7D90;
  font-size: 13px;
  font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;
  text-decoration: none;
  margin: 0;
}

.art-smenu ul a:link, .art-smenu ul a:visited, .art-smenu ul a.active, .art-smenu ul a:hover
{
  text-align: left;
  line-height: 24px;
  color: #6A7D90;
  font-size: 13px;
  font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;
  text-decoration: none;
  margin: 0;
}

ul.art-smenu ul li a:hover, .desktop ul.art-smenu ul li:hover>a
{
  background: #FFFFFF;
  background: transparent;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  margin: 0 auto;
}

.art-smenu ul a:hover
{
  text-decoration: underline;
}

.art-smenu ul li a:hover
{
  color: #F05305;
}

.desktop-nav .art-smenu ul li:hover>a
{
  color: #F05305;
}

ul.art-smenu ul:before
{
  background: #EFF2F5;
  -webkit-border-radius: 0 0 10px 10px;
  -moz-border-radius: 0 0 10px 10px;
  border-radius: 0 0 10px 10px;
  margin: 0 auto;
  display: block;
  position: absolute;
  content: ' ';
  z-index: 1;
}

.desktop-nav ul.art-smenu li:hover>ul
{
  visibility: visible;
  top: 100%;
}

.desktop-nav ul.art-smenu li li:hover>ul
{
  top: 0;
  left: 100%;
}

ul.art-smenu ul
{
  visibility: hidden;
  position: absolute;
  z-index: 10;
  left: 0;
  top: 0;
  background-image: url('../images/spacer.gif');
}

.desktop-nav ul.art-smenu>li>ul
{
  padding: 35px 55px 55px 55px;
  margin: -10px 0 0 -30px;
}

.desktop-nav ul.art-smenu ul ul
{
  padding: 55px 55px 55px 36px;
  margin: -55px 0 0 15px;
}

.desktop-nav ul.art-smenu ul.art-smenu-left-to-right
{
  right: auto;
  left: 0;
  margin: -10px 0 0 -30px;
}

.desktop-nav ul.art-smenu ul.art-smenu-right-to-left
{
  left: auto;
  right: 0;
  margin: -10px -30px 0 0;
}

.desktop-nav ul.art-smenu li li:hover>ul.art-smenu-left-to-right
{
  right: auto;
  left: 100%;
}

.desktop-nav ul.art-smenu li li:hover>ul.art-smenu-right-to-left
{
  left: auto;
  right: 100%;
}

.desktop-nav ul.art-smenu ul ul.art-smenu-left-to-right
{
  right: auto;
  left: 0;
  padding: 55px 55px 55px 36px;
  margin: -55px 0 0 15px;
}

.desktop-nav ul.art-smenu ul ul.art-smenu-right-to-left
{
  left: auto;
  right: 0;
  padding: 55px 36px 55px 55px;
  margin: -55px 15px 0 0;
}

.desktop-nav ul.art-smenu li ul>li:first-child
{
  margin-top: 0;
}

.desktop-nav ul.art-smenu li ul>li:last-child
{
  margin-bottom: 0;
}

.desktop-nav ul.art-smenu ul ul:before
{
  border-radius: 10px;
  top: 30px;
  bottom: 30px;
  right: 30px;
  left: 11px;
}

.desktop-nav ul.art-smenu>li>ul:before
{
  top: 10px;
  right: 30px;
  bottom: 30px;
  left: 30px;
}

.desktop-nav ul.art-smenu>li>ul.art-smenu-left-to-right:before
{
  right: 30px;
  left: 30px;
}

.desktop-nav ul.art-smenu>li>ul.art-smenu-right-to-left:before
{
  right: 30px;
  left: 30px;
}

.desktop-nav ul.art-smenu ul ul.art-smenu-left-to-right:before
{
  right: 30px;
  left: 11px;
}

.desktop-nav ul.art-smenu ul ul.art-smenu-right-to-left:before
{
  right: 11px;
  left: 30px;
}
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Кликабельность псевдоэлемента в пункте меню

Автор vasilii.pupkov

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

Автор DrShepard

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

Автор coliandra

Ответов: 1
Просмотров: 1462
Последний ответ 11.12.2020, 21:15:57
от effrit
При прокрутке страницы виджет залезает на меню

Автор coliandra

Ответов: 2
Просмотров: 1379
Последний ответ 27.11.2020, 11:33:58
от coliandra
Как убрать маркер только из одного пункта меню.

Автор kuraev64

Ответов: 2
Просмотров: 1627
Последний ответ 20.07.2020, 11:18:44
от kuraev64