mirror of
https://github.com/atom/atom.git
synced 2026-01-20 20:38:09 -05:00
Use ‘atom-workspace-axis’ custom tag name instead of ‘div’
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user