Skip to content

Commit

Permalink
fix border #1
Browse files Browse the repository at this point in the history
  • Loading branch information
popomore committed Apr 10, 2013
1 parent af3d08b commit 87d95d9
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 136 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## 演示文档

<link type="text/css" rel="stylesheet" media="screen" href="src/nav.css">
<link type="text/css" rel="stylesheet" media="screen" href="dist/nav.css">

### 默认用法

Expand Down
122 changes: 0 additions & 122 deletions src/nav.css

This file was deleted.

38 changes: 25 additions & 13 deletions src/nav.styl
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
@import 'nib'

// mixin
linear-gradient(from, to)
background -webkit-linear-gradient(top, from, to)
background -moz-linear-gradient(top, from, to)
filter unquote('progid:DXImageTransform.Microsoft.Gradient(startColorstr=' + from + ', endColorstr=' + to + ')')
linearGradient(from, to)
f = unquote('#' + from)
t = unquote('#' + to)
ief = '#FF' + from
iet = '#FF' + to
background: -webkit-linear-gradient(top, f, t)
background: -moz-linear-gradient(top, f, t)
background: -ms-linear-gradient(f, t)
background: -o-linear-gradient(f, t)
filter: unquote('progid:DXImageTransform.Microsoft.gradient(startColorstr=' + ief + ', endColorstr=' + iet + ')')

.ui-nav
position: relative
Expand All @@ -23,7 +29,7 @@ linear-gradient(from, to)
margin: 0
padding-left: 10px
border-radius: 2px 2px 0 0
linear-gradient(#F39100, #F17A00)
linearGradient(F39100, F17A00)

.ui-nav-item
float: left
Expand All @@ -39,8 +45,8 @@ linear-gradient(from, to)
font-weight: bold
font-size: 14px
&:hover
linear-gradient(#F49C25, #F49726)
//background: #F38F26
color: #fff
linearGradient(F49C25, F49726)
border-radius: 2px 2px 0 0

.ui-nav-item-current a,
Expand All @@ -61,30 +67,36 @@ linear-gradient(from, to)
float: left
margin: 5px 10px 0 0
a
display: inline-block
*display: inline
zoom: 1
padding: 0 15px
height: 24px
height: 26px
line-height: 26px
background: transparent
border: 1px solid transparent
_border-color: tomato
_filter:chroma(color=tomato)
color: #868686
font-weight: normal
font-size: 12px
border-radius: 3px
&:hover
height: 24px
line-height: 24px
padding: 0 14px
background: transparent
filter: none
box-shadow: 0px -1px 0px #F6F6F6
border: 1px solid #CECECE
border-radius: 3px

.ui-nav-subitem-current a,
.ui-nav-subitem-current a:hover
height: 24px
line-height: 24px
padding: 0 14px
border-left: 1px solid #DADADA
border-right: 1px solid #DADADA
border-top: 1px solid #BEBEBE
border-bottom: 1px solid transparent
_border-bottom: 1px solid #DADADA
box-shadow: inset 0px 1px 0px #DADADA
background: #E7E7E7

Expand All @@ -94,7 +106,7 @@ linear-gradient(from, to)
border-left: 1px solid #CCCCCC
border-right: 1px solid #CCCCCC
border-bottom: 1px solid #CCCCCC
linear-gradient(#FEFEFE, #F7F7F7)
linearGradient(FEFEFE, F7F7F7)

// 控制二级导航显隐
.ui-nav-item-current .ui-nav-submain
Expand Down

0 comments on commit 87d95d9

Please sign in to comment.