pulsar/static/panes.less

108 lines
1.9 KiB
Plaintext
Raw Normal View History

2013-09-06 21:42:45 +04:00
@import "ui-variables";
// Pane-items are things that go inside a pane. Like the UI-Demo, the
// settings-view, the archive-view, the image-view. Etc. Basically a non-
// editor resource with a tab.
atom-pane-container {
position: relative;
display: flex;
flex: 1;
2016-06-28 09:18:37 +03:00
min-width: 0;
min-height: 0;
2014-01-09 01:39:58 +04:00
atom-pane-axis {
position: relative;
display: flex;
flex: 1;
2016-06-28 09:18:37 +03:00
min-width: 0;
min-height: 0;
& > atom-pane-resize-handle {
position: relative;
&:before {
content: "";
position: absolute;
z-index: 3;
}
}
}
atom-pane-axis.vertical {
flex-direction: column;
& > atom-pane-resize-handle {
border-bottom: none;
&:before {
height: 8px;
top: -4px;
left: 0;
right: 0;
cursor: row-resize;
}
}
2014-01-09 01:39:58 +04:00
}
atom-pane-axis.horizontal {
flex-direction: row;
& > atom-pane-resize-handle {
border-right: none;
&:before {
width: 8px;
left: -4px;
top: 0;
bottom: 0;
cursor: col-resize;
}
}
2014-01-09 01:39:58 +04:00
}
atom-pane {
position: relative;
display: flex;
flex: 1;
flex-direction: column;
overflow: visible;
min-width: 0;
min-height: 0;
2014-01-09 01:39:58 +04:00
.item-views {
flex: 1;
display: flex;
min-width: 0;
min-height: 0;
position: relative;
.pane-item {
color: @text-color;
background-color: @pane-item-background-color;
}
> *, > atom-text-editor.react > * {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
2014-01-09 01:39:58 +04:00
}
}
2013-09-06 21:42:45 +04:00
}
// Windows doesn't have row- and col-resize cursors
.platform-win32 {
atom-pane-container {
atom-pane-axis.vertical {
& > atom-pane-resize-handle {
cursor: ns-resize;
}
}
2015-06-17 03:23:41 +03:00
atom-pane-axis.horizontal {
& > atom-pane-resize-handle {
cursor: ew-resize;
}
}
}
}