xterm.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. .xterm {
  2. cursor: text;
  3. position: relative;
  4. user-select: none;
  5. -ms-user-select: none;
  6. -webkit-user-select: none;
  7. }
  8. .xterm.focus,
  9. .xterm:focus {
  10. outline: none;
  11. }
  12. .xterm .xterm-helpers {
  13. position: absolute;
  14. top: 0;
  15. /**
  16. * The z-index of the helpers must be higher than the canvases in order for
  17. * IMEs to appear on top.
  18. */
  19. z-index: 5;
  20. }
  21. .xterm .xterm-helper-textarea {
  22. padding: 0;
  23. border: 0;
  24. margin: 0;
  25. /* Move textarea out of the screen to the far left, so that the cursor is not visible */
  26. position: absolute;
  27. opacity: 0;
  28. left: -9999em;
  29. top: 0;
  30. width: 0;
  31. height: 0;
  32. z-index: -5;
  33. /** Prevent wrapping so the IME appears against the textarea at the correct position */
  34. white-space: nowrap;
  35. overflow: hidden;
  36. resize: none;
  37. }
  38. .xterm .composition-view {
  39. /* TODO: Composition position got messed up somewhere */
  40. background: #000;
  41. color: #FFF;
  42. display: none;
  43. position: absolute;
  44. white-space: nowrap;
  45. z-index: 1;
  46. }
  47. .xterm .composition-view.active {
  48. display: block;
  49. }
  50. @media screen and (orientation: portrait) {
  51. #terminal { zoom: 1.2 !important; }
  52. }
  53. @media screen and (orientation: landscape) {
  54. #terminal { zoom: 1.2 !important;}
  55. }
  56. body {
  57. margin: 8px;
  58. height: 100%;
  59. width: 100%;
  60. background-color: rgb(13,17,23);
  61. overflow: hidden;
  62. }
  63. .xterm .xterm-viewport {
  64. /* On OS X this is required in order for the scroll bar to appear fully opaque */
  65. background-color: rgb(13,17,23) !important;
  66. overflow-y: scroll;
  67. cursor: default;
  68. position: absolute;
  69. right: 0;
  70. left: 0;
  71. top: 0;
  72. bottom: 0;
  73. }
  74. .xterm .xterm-screen {
  75. position: relative;
  76. }
  77. .xterm .xterm-screen canvas {
  78. position: absolute;
  79. left: 0;
  80. top: 0;
  81. }
  82. .xterm .xterm-scroll-area {
  83. visibility: hidden;
  84. }
  85. .xterm-char-measure-element {
  86. display: inline-block;
  87. visibility: hidden;
  88. position: absolute;
  89. top: 0;
  90. left: -9999em;
  91. line-height: normal;
  92. }
  93. .xterm.enable-mouse-events {
  94. /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */
  95. cursor: default;
  96. }
  97. .xterm.xterm-cursor-pointer,
  98. .xterm .xterm-cursor-pointer {
  99. cursor: pointer;
  100. }
  101. .xterm.column-select.focus {
  102. /* Column selection mode */
  103. cursor: crosshair;
  104. }
  105. .xterm .xterm-accessibility,
  106. .xterm .xterm-message {
  107. position: absolute;
  108. left: 0;
  109. top: 0;
  110. bottom: 0;
  111. right: 0;
  112. z-index: 10;
  113. color: transparent;
  114. }
  115. .xterm .live-region {
  116. position: absolute;
  117. left: -9999px;
  118. width: 1px;
  119. height: 1px;
  120. overflow: hidden;
  121. }
  122. .xterm-dim {
  123. opacity: 0.5;
  124. }
  125. .xterm-underline-1 { text-decoration: underline; }
  126. .xterm-underline-2 { text-decoration: double underline; }
  127. .xterm-underline-3 { text-decoration: wavy underline; }
  128. .xterm-underline-4 { text-decoration: dotted underline; }
  129. .xterm-underline-5 { text-decoration: dashed underline; }
  130. .xterm-strikethrough {
  131. text-decoration: line-through;
  132. }
  133. .xterm-screen .xterm-decoration-container .xterm-decoration {
  134. z-index: 6;
  135. position: absolute;
  136. }
  137. .xterm-decoration-overview-ruler {
  138. z-index: 7;
  139. position: absolute;
  140. top: 0;
  141. right: 0;
  142. pointer-events: none;
  143. }
  144. .xterm-decoration-top {
  145. z-index: 2;
  146. position: relative;
  147. }