Skip to content

Instantly share code, notes, and snippets.

@DawnPaladin
Forked from dtinth/atom-perspective.less
Last active August 29, 2015 14:24
Show Gist options
  • Save DawnPaladin/a78781de4559ad2367ce to your computer and use it in GitHub Desktop.
Save DawnPaladin/a78781de4559ad2367ce to your computer and use it in GitHub Desktop.
#atom-perspective() {
@viewing-distance: 24in;
@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