JSFiddle - React, Tailwind, and code Playground
by Thierryh
HTML
<div class="navigation">
<ul class="nav menu nav-pills">
<li class="item-464 current active"><a href="/"><img src="/images/nav-home-icon.png" alt="Главная"></a></li><li class="item-444 deeper parent"><a href="/index.php/sample-sites">Новости</a><ul class="nav-child unstyled small"><li class="item-473"><a href="/index.php/getting-started">Все</a></li><li class="item-474 deeper parent"><a href="/index.php/news/news-europe">Европа</a><ul class="nav-child unstyled small"><li class="item-476"><a href="/index.php/news/news-europe/news-england">Англия</a></li><li class="item-477"><a href="/">Германия</a></li><li class="item-478"><a href="/index.php/getting-started">Голландия</a></li><li class="item-479"><a href="/index.php/getting-started">Испания</a></li><li class="item-480"><a href="/index.php/getting-started">Италия</a></li><li class="item-481"><a href="/index.php/getting-started">Португалия</a></li><li class="item-482"><a href="/index.php/getting-started">Франция</a></li><li class="item-483"><a href="/">Лига Чемпионов</a></li><li class="item-484"><a href="/">Лига Европы</a></li></ul></li><li class="item-475"><a href="/index.php/getting-started">Америка</a></li></ul></li><li class="item-207 deeper parent"><a href="/">Чемпионаты</a><ul class="nav-child unstyled small"><li class="item-489 deeper parent"><a href="/">Англия</a><ul class="nav-child unstyled small"><li class="item-495"><a href="/">Премьер-Лига</a></li><li class="item-496"><a href="/">Чемпионшип</a></li><li class="item-497"><a href="/">Лига Один</a></li><li class="item-498"><a href="/">Лига Два</a></li><li class="item-499"><a href="/">Конференция</a></li><li class="item-500"><a href="/">Кубок Англии</a></li><li class="item-501"><a href="/">Кубок Лиги</a></li></ul></li><li class="item-490 deeper parent"><a href="/">Германия</a><ul class="nav-child unstyled small"><li class="item-502"><a href="/">Бундеслига</a></li></ul></li><li class="item-491"><a href="/">Испания</a></li><li class="item-492 deeper...
CSS
.navigation {
padding: 0 10px; /*поля вокург текста, от текста до границы*/
border-top: 1px solid rgba(0,0,0,0.075);
border-bottom: 5px solid #08C;
margin-bottom: 15px;/*внутренний отступ,от нижнего края элемента*/
border-left: 1px solid rgba(0,0,0,0.075);
border-right: 1px solid rgba(0,0,0,0.075);
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
position: relative;/*Положение элемента устанавливается относительно его исходного места. Добавление свойств left, top, right и bottom изменяет позицию элемента и сдвигает его в ту или иную сторону от первоначального расположения.*/
background-color: #EDEDED;
font-size: 18px;
text-decoration: none;
text-transform: uppercase;
height: 40px;
list-style:none;
}
.nav {
margin-left: 0;
margin-bottom: 18px;
list-style: none;
}
ul, ol {
padding: 0;
margin: 0 0 9px 25px;
}
.navigation .nav > li {
position: relative;
}
.nav-tabs > li, .nav-pills > li { /*вывод в строку*/
float: left;
}
li {
line-height: 18px;
display: list-item;
text-align: -webkit-match-parent;
}
.navbar-inner, .nav-list > .active > a, .nav-list > .active > a:hover, .dropdown-menu li > a:hover, .dropdown-menu .active > a, .dropdown-menu .active > a:hover, .nav-pills > .active > a, .nav-pills > .active > a:hover, .btn-primary {
background: #08C;
}
.nav-pills > .active > a, .nav-pills > .active > a:hover {
color: #fff;
background-color: #08c;
}
.nav-pills > li > a {
padding-top: 12px;
padding-bottom: 12px;
margin-top: 0;
margin-bottom: 0;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}
.nav-tabs > li > a, .nav-pills > li > a {
padding-right: 12px;
padding-left: 12px;
margin-right: 2px;
line-height: 14px;
}
.nav > li > a {
display: block;
}
a {
color: #08c;
text-decoration: none;
}
.nav-pills > li > a {
padding-top: 12px;
padding-bottom: 12px;
margin-top: 0;
margin-bottom: 0;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius:...