Skip to content

Commit

Permalink
Use ‘atom-workspace-axis’ custom tag name instead of ‘div’
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Sobo committed Oct 9, 2014
1 parent 8941b97 commit 8e06e88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
5 changes: 2 additions & 3 deletions src/workspace-element.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ class WorkspaceElement extends HTMLElement
@classList.add 'workspace'
@setAttribute 'tabindex', -1


@verticalAxis = document.createElement('div')
@verticalAxis = document.createElement('atom-workspace-axis')
@verticalAxis.classList.add('vertical')

@horizontalAxis = document.createElement('div')
@horizontalAxis = document.createElement('atom-workspace-axis')
@horizontalAxis.classList.add('horizontal')
@horizontalAxis.appendChild(@verticalAxis)

Expand Down
12 changes: 6 additions & 6 deletions static/workspace-view.less
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ atom-workspace {
background-color: @app-background-color;
font-family: @font-family;

> .horizontal {
atom-workspace-axis.horizontal {
display: -webkit-flex;
height: 100%;
}

> .vertical {
display: -webkit-flex;
-webkit-flex: 1;
-webkit-flex-flow: column;
}
atom-workspace-axis.vertical {
display: -webkit-flex;
-webkit-flex: 1;
-webkit-flex-flow: column;
}
}

0 comments on commit 8e06e88

Please sign in to comment.