mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
remove 'add tab' tab
This commit is contained in:
@@ -15,15 +15,10 @@ class Tabs extends Pane
|
||||
initialize: ->
|
||||
tab = this
|
||||
# click tab
|
||||
$(document).delegate '#tabs ul li:not(.add) a', 'click', ->
|
||||
$(document).delegate '#tabs ul a', 'click', ->
|
||||
tab.switchToTab this
|
||||
false
|
||||
|
||||
# click 'add' tab
|
||||
$(document).delegate '#tabs .add a', 'click', ->
|
||||
tab.addTab()
|
||||
false
|
||||
|
||||
toggle: ->
|
||||
if $('#tabs').length
|
||||
@hideTabs()
|
||||
|
||||
@@ -19,31 +19,6 @@
|
||||
padding: 3px 0 0 0;
|
||||
}
|
||||
|
||||
#tabs .add a {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
|
||||
margin-top: 2px;
|
||||
margin-left: 10px;
|
||||
padding: 2px;
|
||||
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
text-shadow: #000 1px 1px 0;
|
||||
background: #d8d7d8;
|
||||
border: 1px solid #a0a0a0;
|
||||
border-bottom: none;
|
||||
|
||||
-webkit-border-top-right-radius: 10px 5px;
|
||||
-webkit-border-top-left-radius: 10px 5px;
|
||||
-webkit-box-shadow: inset 0 1px 0 white;
|
||||
}
|
||||
#tabs .add span {
|
||||
display: block;
|
||||
margin-top: -4px;
|
||||
}
|
||||
|
||||
#tabs ul {
|
||||
list-style: none;
|
||||
border-bottom: 1px solid #a0a0a0;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<div id="tabs">
|
||||
<ul class="clearfix">
|
||||
<li class="active"><a href="#">untitled</a></li>
|
||||
<li class="add"><a href="#"><span>+</span></a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user