Skip to content

Instantly share code, notes, and snippets.

@wk-j
Forked from dtinth/atom-perspective.less
Last active August 29, 2015 14:24
Show Gist options
  • Save wk-j/f1a90bb2fefdae865a9d to your computer and use it in GitHub Desktop.
Save wk-j/f1a90bb2fefdae865a9d to your computer and use it in GitHub Desktop.
#atom-perspective() {
@viewing-distance: 12in;
@rotation: 20deg;
.tree-view-scroller {
transform: translateY(-10vh) perspective(@viewing-distance) rotateY(@rotation);
padding-top: 12vh;
padding-bottom: 12vh;
transform-origin: left;
width: 120%;
height: 120%;
}
body /deep/ atom-text-editor-minimap {
transform: perspective(@viewing-distance) rotateY(-@rotation);
transform-origin: right;
}
}
#atom-perspective;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment