panes.less 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. @import "ui-variables";
  2. // Pane-items are things that go inside a pane. Like the UI-Demo, the
  3. // settings-view, the archive-view, the image-view. Etc. Basically a non-
  4. // editor resource with a tab.
  5. atom-pane-container {
  6. position: relative;
  7. display: flex;
  8. flex: 1;
  9. min-width: 0;
  10. min-height: 0;
  11. atom-pane-axis {
  12. position: relative;
  13. display: flex;
  14. flex: 1;
  15. min-width: 0;
  16. min-height: 0;
  17. & > atom-pane-resize-handle {
  18. position: relative;
  19. &:before {
  20. content: "";
  21. position: absolute;
  22. z-index: 11;
  23. }
  24. }
  25. }
  26. atom-pane-axis.vertical {
  27. flex-direction: column;
  28. & > atom-pane-resize-handle {
  29. border-bottom: none;
  30. &:before {
  31. height: 8px;
  32. top: -4px;
  33. left: 0;
  34. right: 0;
  35. cursor: row-resize;
  36. }
  37. }
  38. }
  39. atom-pane-axis.horizontal {
  40. flex-direction: row;
  41. & > atom-pane-resize-handle {
  42. border-right: none;
  43. &:before {
  44. width: 8px;
  45. left: -4px;
  46. top: 0;
  47. bottom: 0;
  48. cursor: col-resize;
  49. }
  50. }
  51. }
  52. atom-pane {
  53. position: relative;
  54. display: flex;
  55. flex: 1;
  56. flex-direction: column;
  57. overflow: visible;
  58. min-width: 0;
  59. min-height: 0;
  60. .item-views {
  61. flex: 1;
  62. display: flex;
  63. min-width: 0;
  64. min-height: 0;
  65. position: relative;
  66. .pane-item {
  67. color: @text-color;
  68. background-color: @pane-item-background-color;
  69. }
  70. > *, > atom-text-editor.react > * {
  71. position: absolute;
  72. top: 0;
  73. right: 0;
  74. bottom: 0;
  75. left: 0;
  76. }
  77. }
  78. }
  79. }
  80. // Windows doesn't have row- and col-resize cursors
  81. .platform-win32 {
  82. atom-pane-container {
  83. atom-pane-axis.vertical {
  84. & > atom-pane-resize-handle {
  85. cursor: ns-resize;
  86. }
  87. }
  88. atom-pane-axis.horizontal {
  89. & > atom-pane-resize-handle {
  90. cursor: ew-resize;
  91. }
  92. }
  93. }
  94. }
  95. .atom-pane-cursor-overlay {
  96. position: fixed;
  97. top: 0;
  98. bottom: 0;
  99. left: 0;
  100. right: 0;
  101. z-index: 4;
  102. &.horizontal {
  103. cursor: col-resize;
  104. }
  105. &.vertical {
  106. cursor: row-resize;
  107. }
  108. }