-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new tab button #55
base: gh-pages
Are you sure you want to change the base?
Changes from 4 commits
59ee8ab
f3647b4
2391d97
1b8e31e
aa33b30
61e7dd6
cba0f08
2e0e66f
33eba30
7590ce3
476d233
7a517d2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.DS_Store | ||
bower_components/ | ||
node_modules/ | ||
.jshintrc | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,15 +12,41 @@ activeTabBackgroundColor = #fff | |
background #dee1e6 | ||
border-radius 5px 5px 0 0 | ||
overflow hidden | ||
display flex | ||
|
||
* | ||
box-sizing inherit | ||
font inherit | ||
|
||
.new-tab-button-wrapper | ||
display: inline-flex | ||
align-items: center | ||
justify-content: center | ||
margin-left: 0 | ||
|
||
.new-tab-button | ||
height: 30px | ||
width: 30px | ||
line-height: 0 | ||
border-radius: 50% | ||
font-weight: 100 | ||
font-size: 16px | ||
padding: 0 | ||
border: none | ||
background: none | ||
color: #555 | ||
box-shadow: none | ||
transition: background 0.35s | ||
cursor default | ||
|
||
&:hover | ||
background: rgba(150, 150, 150, 0.25) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove the colons. |
||
|
||
.chrome-tabs-content | ||
position relative | ||
width 100% | ||
height 100% | ||
transition: width 0.1s | ||
|
||
.chrome-tab | ||
position absolute | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,7 +112,8 @@ | |
</div> | ||
</div> | ||
|
||
<script src="https://unpkg.com/draggabilly@2.2.0/dist/draggabilly.pkgd.min.js"></script> | ||
<!-- <script src="https://unpkg.com/draggabilly@2.2.0/dist/draggabilly.pkgd.min.js"></script> --> | ||
<script src="js/draggabilly.min.js"></script> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While it may make sense to bring in Draggabilly directly as you have done here, if we decided to do so I’d want to separate that out from this PR so it’s only concern is the new tab button (and I’d also want to remove the commented line). |
||
<script src="js/chrome-tabs.js"></script> | ||
<script> | ||
var el = document.querySelector('.chrome-tabs') | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this line.