xterm.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. /**
  2. * Copyright (c) 2014 The xterm.js authors. All rights reserved.
  3. * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
  4. * https://github.com/chjj/term.js
  5. * @license MIT
  6. *
  7. * Permission is hereby granted, free of charge, to any person obtaining a copy
  8. * of this software and associated documentation files (the "Software"), to deal
  9. * in the Software without restriction, including without limitation the rights
  10. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  11. * copies of the Software, and to permit persons to whom the Software is
  12. * furnished to do so, subject to the following conditions:
  13. *
  14. * The above copyright notice and this permission notice shall be included in
  15. * all copies or substantial portions of the Software.
  16. *
  17. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  20. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  21. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  22. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  23. * THE SOFTWARE.
  24. *
  25. * Originally forked from (with the author's permission):
  26. * Fabrice Bellard's javascript vt100 for jslinux:
  27. * http://bellard.org/jslinux/
  28. * Copyright (c) 2011 Fabrice Bellard
  29. * The original design remains. The terminal itself
  30. * has been extended to include xterm CSI codes, among
  31. * other features.
  32. */
  33. /**
  34. * Default styles for xterm.js
  35. */
  36. .xterm {
  37. position: relative;
  38. user-select: none;
  39. -ms-user-select: none;
  40. -webkit-user-select: none;
  41. }
  42. .xterm.focus,
  43. .xterm:focus {
  44. outline: none;
  45. }
  46. .xterm .xterm-helpers {
  47. position: absolute;
  48. top: 0;
  49. /**
  50. * The z-index of the helpers must be higher than the canvases in order for
  51. * IMEs to appear on top.
  52. */
  53. z-index: 5;
  54. }
  55. .xterm .xterm-helper-textarea {
  56. padding: 0;
  57. border: 0;
  58. margin: 0;
  59. /* Move textarea out of the screen to the far left, so that the cursor is not visible */
  60. position: absolute;
  61. opacity: 0;
  62. left: -9999em;
  63. top: 0;
  64. width: 0;
  65. height: 0;
  66. z-index: -5;
  67. /** Prevent wrapping so the IME appears against the textarea at the correct position */
  68. white-space: nowrap;
  69. overflow: hidden;
  70. resize: none;
  71. }
  72. .xterm .composition-view {
  73. /* TODO: Composition position got messed up somewhere */
  74. background: #000;
  75. color: #FFF;
  76. display: none;
  77. position: absolute;
  78. white-space: nowrap;
  79. z-index: 1;
  80. }
  81. .xterm .composition-view.active {
  82. display: block;
  83. }
  84. .xterm .xterm-viewport {
  85. /* On OS X this is required in order for the scroll bar to appear fully opaque */
  86. background-color: #000;
  87. overflow-y: scroll;
  88. cursor: default;
  89. position: absolute;
  90. right: 0;
  91. left: 0;
  92. top: 0;
  93. bottom: 0;
  94. }
  95. .xterm .xterm-screen {
  96. position: relative;
  97. }
  98. .xterm .xterm-screen canvas {
  99. position: absolute;
  100. left: 0;
  101. top: 0;
  102. }
  103. .xterm .xterm-scroll-area {
  104. visibility: hidden;
  105. }
  106. .xterm-char-measure-element {
  107. display: inline-block;
  108. visibility: hidden;
  109. position: absolute;
  110. top: 0;
  111. left: -9999em;
  112. line-height: normal;
  113. }
  114. .xterm {
  115. cursor: text;
  116. }
  117. .xterm.enable-mouse-events {
  118. /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */
  119. cursor: default;
  120. }
  121. .xterm.xterm-cursor-pointer,
  122. .xterm .xterm-cursor-pointer {
  123. cursor: pointer;
  124. }
  125. .xterm.column-select.focus {
  126. /* Column selection mode */
  127. cursor: crosshair;
  128. }
  129. .xterm .xterm-accessibility,
  130. .xterm .xterm-message {
  131. position: absolute;
  132. left: 0;
  133. top: 0;
  134. bottom: 0;
  135. right: 0;
  136. z-index: 10;
  137. color: transparent;
  138. }
  139. .xterm .live-region {
  140. position: absolute;
  141. left: -9999px;
  142. width: 1px;
  143. height: 1px;
  144. overflow: hidden;
  145. }
  146. .xterm-dim {
  147. opacity: 0.5;
  148. }
  149. .xterm-underline {
  150. text-decoration: underline;
  151. }
  152. .xterm-strikethrough {
  153. text-decoration: line-through;
  154. }
  155. .xterm-screen .xterm-decoration-container .xterm-decoration {
  156. z-index: 6;
  157. position: absolute;
  158. }