layout.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. /* ======================= Layout ======================= */
  2. * {
  3. box-sizing: border-box;
  4. }
  5. html, body {
  6. position: relative;
  7. margin: 0px;
  8. overflow: hidden;
  9. background: var(--body-background);
  10. color: var(--body-color);
  11. font-family: sans-serif;
  12. }
  13. html {
  14. height: 100%;
  15. }
  16. body { height: 100%; }
  17. header, footer {
  18. height: var(--header-height);
  19. width: 100%;
  20. padding: .5rem;
  21. display: flex;
  22. position: relative;
  23. align-items: center;
  24. background: var(--chrome-background);
  25. color: var(--chrome-color);
  26. border-color: var(--chrome-border);
  27. }
  28. main {
  29. height: calc(100% - var(--header-height));
  30. display: flex;
  31. justify-content: center;
  32. }
  33. header button, footer button {
  34. height: calc(var(--header-height) - 1rem);
  35. flex-shrink: 0;
  36. line-height: 1rem;
  37. min-width: 2rem;
  38. }
  39. button {
  40. padding: .25rem .5rem;
  41. }
  42. .custom-widgets input[type=file]::file-selector-button {
  43. padding: .25rem .5rem;
  44. }
  45. button span {
  46. display: inline-block;
  47. vertical-align: bottom;
  48. }
  49. button svg + span {
  50. margin-left: .25em;
  51. }
  52. button *{
  53. height: 100%;
  54. }
  55. .spacer {
  56. height: 1px;
  57. width: 100%;
  58. flex-shrink: 1;
  59. }
  60. header > * + *, footer > * + *{
  61. margin-left: .5rem;
  62. }
  63. header > * {
  64. z-index: 2;
  65. }
  66. main > section {
  67. position: relative;
  68. border-top: 1px solid var(--chrome-border);
  69. }
  70. main > aside {
  71. position: relative;
  72. color: var(--chrome-color);
  73. background: var(--chrome-background);
  74. }
  75. input, select {
  76. max-width: 100%;
  77. }
  78. audio {
  79. width: 100%;
  80. }
  81. #offscreen {
  82. display: none;
  83. }
  84. section > *:first-child {
  85. margin-top: 0px;
  86. }
  87. .wide-body main > section {
  88. max-width: calc(100vh - var(--header-height));
  89. max-height: 100vw;
  90. width: 100%;
  91. height: 100%;
  92. }
  93. .wide-body main > aside {
  94. width: 100%;
  95. max-width: calc(100vw - 100vh + var(--header-height));
  96. }
  97. .narrow-body main {
  98. flex-direction: column;
  99. }
  100. .narrow-body aside, .narrow-body .current-tab {
  101. border-left: 0px;
  102. }
  103. .narrow-body main aside {
  104. max-width: 100%;
  105. height: calc(100% - 100vw - var(--header-height));
  106. }
  107. .narrow-body voice-graph-2d {
  108. max-width: calc(60vh - var(--header-height) * .6);
  109. max-height: 100%;
  110. margin: auto;
  111. bottom: 0px;
  112. position: relative;
  113. }
  114. .narrow-body main > section {
  115. max-height: 60%;
  116. height: 100vw;
  117. flex-shrink: 0;
  118. }
  119. .narrow-body main > aside {
  120. max-height: calc(100% - 100vw);
  121. min-height: 40%;
  122. height: 100%;
  123. }
  124. .narrow-body .loading-message {
  125. display: none !important;
  126. }
  127. section > h2:first-child {
  128. margin-top: 0px;
  129. margin-bottom: 0px;
  130. }
  131. section > h2:first-child + p {
  132. margin-top: 0px;
  133. }
  134. voice-graph-2d {
  135. position: absolute;
  136. top: 0px;
  137. bottom: 0px;
  138. width: 100%;
  139. }
  140. .hidden {
  141. display: none;
  142. }
  143. .scrolling-text-box {
  144. overflow-y: auto;
  145. height: 6em;
  146. border: 1px solid var(--chrome-border);
  147. padding: 1em;
  148. }
  149. .scrolling-text-box *:first-child {
  150. margin-top: 0px;
  151. }
  152. .scrolling-text-box *:last-child {
  153. margin-bottom: 0px;
  154. }
  155. /*
  156. input, button, select, textarea {
  157. font-size: inherit;
  158. }
  159. */