Skip to content

Instantly share code, notes, and snippets.

@smockle
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smockle/d75d1802456c742270fc to your computer and use it in GitHub Desktop.
Save smockle/d75d1802456c742270fc to your computer and use it in GitHub Desktop.
Atom Editor One Dark theme modifications for OS X.
// Hide icons in tabs
.tab-bar li.tab .title:before {
display: none;
}
// Left align close button and modified indicator in tabs
.tab-bar .tab.active .title,
.tab-bar .tab .title {
padding-left: 28px;
}
.tab-bar .tab .close-icon {
right: initial;
margin-right: auto;
margin-left: 10px;
}
.tab-bar .tab.modified:not(:hover) .close-icon {
right: initial;
}
// Size tabs to fit available space
.tab-bar .tab.active[data-type="TextEditor"],
.tab-bar .tab {
max-width: none;
min-width: initial;
width: auto;
padding: 0;
}
.tab-bar .tab.active {
flex: 1;
}
// Don't show blue indicator in an empty tab-bar
.tab-bar:empty:before {
background: transparent;
}
@smockle
Copy link
Author

smockle commented Apr 21, 2015

Now an Atom Editor package: https://atom.io/packages/close-on-left.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment