HLayout.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. @font-face {
  2. font-family: 'Open Sans';
  3. src: url('OpenSans-Regular.ttf') format('truetype') /* Safari, Android, iOS */
  4. }
  5. body,html {
  6. position:relative;
  7. width:100%;
  8. height:100%;
  9. margin:0px;
  10. padding:0px;
  11. }
  12. * {
  13. box-sizing: border-box;
  14. -moz-box-sizing: border-box;
  15. -webkit-box-sizing: border-box;
  16. }
  17. .layout-container {
  18. box-sizing: border-box;
  19. -moz-box-sizing: border-box;
  20. -webkit-box-sizing: border-box;
  21. padding:5px;
  22. position:absolute;
  23. top:0px;
  24. bottom:0px;
  25. left:0px;
  26. right:0px;
  27. display:flex;
  28. background: #333;
  29. }
  30. section {
  31. display:flex;
  32. flex:1 0 auto;
  33. background:transparent;
  34. }
  35. /* Hide any 3rd component on a splitter*/
  36. section > *:nth-child(n+3) {
  37. display:none;
  38. }
  39. section.vertical {
  40. flex-direction: row;
  41. }
  42. section.horizontal {
  43. flex-direction: column;
  44. }
  45. /*
  46. section.horizontal > .splitter {
  47. cursor:s-resize;
  48. }
  49. section.vertical > .splitter {
  50. cursor:e-resize;
  51. }
  52. .splitter {
  53. background: transparent;
  54. flex-basis:6px;
  55. flex-grow: 0;
  56. min-width:6px;
  57. min-height:6px;
  58. }*/
  59. /* AKA PAne */
  60. .hpane {
  61. /*box-shadow: 0px 0px 10px #000;*/
  62. position:relative;
  63. overflow:hidden;
  64. flex: 1 1 auto;
  65. flex-direction: column;
  66. /* Theme part */
  67. background: #EEE;
  68. color: #333;
  69. transition: border 1s ease;
  70. opacity:1;
  71. }
  72. .hpane.discover {
  73. box-sizing: border-box;
  74. -moz-box-sizing: border-box;
  75. -webkit-box-sizing: border-box;
  76. gborder: solid 40px #999;
  77. transition: border 1s ease;
  78. }
  79. .hpane.detached {
  80. position:Fixed;
  81. /*width:20%;*/
  82. /*height:50%;*/
  83. z-index:99;
  84. box-shadow: 0px 0px 10px #000;
  85. }
  86. .hpane.detached.moving {
  87. opacity: 0.5;
  88. pointer-events: none;
  89. }
  90. .hpane.preview {
  91. background: #555;
  92. border: dashed 1px #FFF;
  93. }
  94. .hpane >header {
  95. padding:10px;
  96. background: #555;
  97. color:#FFF;
  98. font-family: 'Open Sans';
  99. text-transform:uppercase;
  100. font-weight: 700;
  101. -webkit-touch-callout: none; /* iOS Safari */
  102. -webkit-user-select: none; /* Chrome/Safari/Opera */
  103. -khtml-user-select: none; /* Konqueror */
  104. -moz-user-select: none; /* Firefox */
  105. -ms-user-select: none; /* IE/Edge */
  106. user-select: none;
  107. }
  108. .hpane .hcontent {
  109. overflow:auto;
  110. position:absolute;
  111. top:40px;
  112. bottom:0px;
  113. left:0px;
  114. right:0px;
  115. padding:5px;
  116. background: #EEE;
  117. color:#333;
  118. font-family: 'Open Sans';
  119. -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  120. -moz-box-sizing: border-box; /* Firefox, other Gecko */
  121. box-sizing: border-box; /* Opera/IE 8+ */
  122. }
  123. .attach-preview {
  124. position:fixed;
  125. background: rgba(0,0,0,0.2);
  126. border: dashed 1px #777;
  127. z-index:90;
  128. pointer-events:none;
  129. transition: all 0.2s;
  130. }
  131. section.horizontal {
  132. cursor:s-resize;
  133. }
  134. section.vertical {
  135. cursor:e-resize;
  136. }
  137. section.horizontal > *:first-child {
  138. rborder: solid 1px #F00;
  139. margin-bottom:7px;
  140. }
  141. section.vertical > *:first-child {
  142. rborder: solid 1px #F00;
  143. margin-right:7px;
  144. }
  145. section > * {
  146. cursor:initial;
  147. }