mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Tabs
This commit is contained in:
115
HTML/tabs.html
115
HTML/tabs.html
@@ -1,24 +1,99 @@
|
||||
<html>
|
||||
<head>
|
||||
<link href="css/tabs.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<style>
|
||||
* { margin: 0; padding: 0; }
|
||||
body {
|
||||
font: 12px "Lucida Grande", Helvetica, Arial, serif;
|
||||
overflow: hidden;
|
||||
}
|
||||
iframe { border: 0; }
|
||||
|
||||
<div id="tabs">
|
||||
<ul class="clearfix">
|
||||
<li class="active"><a href="#">untitled</a></li>
|
||||
<li class="add"><a href="#"><span>+</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
.clearfix:after {
|
||||
visibility: hidden;
|
||||
display: block;
|
||||
font-size: 0;
|
||||
content: " ";
|
||||
clear: both;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
<div class="content">
|
||||
<iframe src="editor.html" width="100%" height="100%"></iframe>
|
||||
</div>
|
||||
#tabs {
|
||||
background: -webkit-gradient(linear, left top, left bottom, from(#EEEEEE), to(#D8D7D8));
|
||||
padding: 3px 0 0 0;
|
||||
}
|
||||
|
||||
<script src="vendor/jquery.js"></script>
|
||||
<script src="ace/ace.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="lib/osx.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="lib/tabs.js"></script>
|
||||
#tabs .add a {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
|
||||
</body>
|
||||
</html>
|
||||
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;
|
||||
}
|
||||
#tabs ul li { display: inline; }
|
||||
|
||||
#tabs ul li.active a {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
height: 8px;
|
||||
|
||||
background: #eee;
|
||||
padding-top: 4px;
|
||||
}
|
||||
|
||||
#tabs ul li a {
|
||||
display: block;
|
||||
float: left;
|
||||
text-decoration: none;
|
||||
position: relative;
|
||||
height: 8px;
|
||||
|
||||
padding: 3px 50px 7px;
|
||||
margin: 0 -5px 0 0;
|
||||
color: #222;
|
||||
background: #d8d7d8;
|
||||
|
||||
-webkit-border-top-right-radius: 10px 20px;
|
||||
-webkit-border-top-left-radius: 10px 20px;
|
||||
-webkit-box-shadow: inset 1px 1px 0 white;
|
||||
|
||||
border: 1px solid #a0a0a0;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.content {
|
||||
-webkit-box-shadow: inset 0 1px 0 white;
|
||||
-moz-box-shadow: inset 0 1px 0 white;
|
||||
height: 97%;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div id="tabs">
|
||||
<ul class="clearfix">
|
||||
<li class="active"><a href="#">untitled</a></li>
|
||||
<li class="add"><a href="#"><span>+</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<iframe src="editor.html" width="100%" height="100%"></iframe>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user