Refactored navigation
This commit is contained in:
parent
51f174b97f
commit
031ae7756e
9 changed files with 152 additions and 72 deletions
Binary file not shown.
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.7 KiB |
|
@ -74,7 +74,7 @@ header {
|
|||
font-size:24px;
|
||||
line-height:36px;
|
||||
font-weight:500;
|
||||
color:#567;
|
||||
color:$style_color;
|
||||
text-shadow: 0 1px 1px #FFF;
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,9 @@ header {
|
|||
float: right;
|
||||
margin-right:10px;
|
||||
.btn {
|
||||
margin-left:8px;
|
||||
margin-left:7px;
|
||||
background: #F1F1F1;
|
||||
border: 1px solid #CCC;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -96,8 +98,8 @@ header {
|
|||
float: right;
|
||||
margin-right: 55px;
|
||||
|
||||
.search-input {
|
||||
width:130px;
|
||||
.search-input {
|
||||
@extend .span2;
|
||||
background-image: url("icon-search.png");
|
||||
background-repeat: no-repeat;
|
||||
background-position: 10px;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* Main Menu of Application
|
||||
*
|
||||
*/
|
||||
nav.main_menu {
|
||||
ul.main_menu {
|
||||
border-radius: 4px;
|
||||
margin: auto;
|
||||
margin:30px 0;
|
||||
|
@ -13,9 +13,7 @@ nav.main_menu {
|
|||
background-image: -webkit-linear-gradient(#eee 6.6%, #dfdfdf);
|
||||
background-image: -moz-linear-gradient(#eee 6.6%, #dfdfdf);
|
||||
background-image: -o-linear-gradient(#eee 6.6%, #dfdfdf);
|
||||
display:table;
|
||||
table-layout:fixed;
|
||||
width:100%;
|
||||
position:relative;
|
||||
@include shade;
|
||||
.count {
|
||||
position: relative;
|
||||
|
@ -39,10 +37,14 @@ nav.main_menu {
|
|||
text-shadow:none;
|
||||
color:$style_color;
|
||||
}
|
||||
a {
|
||||
display:table-cell;
|
||||
text-align:center;
|
||||
font-weight:bold;
|
||||
li {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
display: table-cell;
|
||||
width: 1%;
|
||||
border-right: 1px solid #DDD;
|
||||
border-left: 1px solid #EEE;
|
||||
|
||||
&:first-child{
|
||||
-webkit-border-top-left-radius: 4px;
|
||||
-webkit-border-bottom-left-radius: 4px;
|
||||
|
@ -52,22 +54,7 @@ nav.main_menu {
|
|||
border-bottom-left-radius: 4px;
|
||||
border-left: 0;
|
||||
}
|
||||
padding: 9px 2px;
|
||||
color: $style_color;
|
||||
position: relative;
|
||||
margin: 0;
|
||||
text-shadow:0 1px 1px white;
|
||||
border-right: 1px solid #DDD;
|
||||
border-left: 1px solid #EEE;
|
||||
|
||||
&.home {
|
||||
background: url(home_icon.PNG) no-repeat center center;
|
||||
text-indent:-9999px;
|
||||
img {
|
||||
position:relative;
|
||||
top:4px;
|
||||
}
|
||||
}
|
||||
&.current {
|
||||
background-color:#D5D5D5;
|
||||
border-bottom: 1px solid #567;
|
||||
|
@ -80,11 +67,28 @@ nav.main_menu {
|
|||
}
|
||||
}
|
||||
|
||||
&.wide {
|
||||
width:185px;
|
||||
@media (min-width: 1080px) and (max-width: 1200px) { width:160px; }
|
||||
&.home {
|
||||
a {
|
||||
background: url(home_icon.PNG) no-repeat center center;
|
||||
text-indent:-9999px;
|
||||
min-width:20px;
|
||||
img {
|
||||
position:relative;
|
||||
top:4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
a {
|
||||
display: block;
|
||||
text-align: center;
|
||||
font-weight:bold;
|
||||
height:35px;
|
||||
line-height:36px;
|
||||
color: $style_color;
|
||||
text-shadow:0 1px 1px white;
|
||||
|
||||
}
|
||||
}
|
||||
/*
|
||||
* End of Main Menu
|
||||
|
|
|
@ -9,19 +9,21 @@
|
|||
*
|
||||
*/
|
||||
.ui_modern {
|
||||
nav.main_menu {
|
||||
ul.main_menu {
|
||||
background:none;
|
||||
box-shadow:none;
|
||||
@include border-radius(0px);
|
||||
border:none;
|
||||
border-bottom:2px solid #456;
|
||||
|
||||
a {
|
||||
li {
|
||||
border:none;
|
||||
|
||||
&.current {
|
||||
border-bottom:2px solid #f90;
|
||||
background-color:#fff;
|
||||
position:relative;
|
||||
top:1px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue