index.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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. font-family: courier-new, courier, monospace;
  38. font-feature-settings: "liga" 0;
  39. position: relative;
  40. user-select: none;
  41. -ms-user-select: none;
  42. -webkit-user-select: none;
  43. }
  44. .xterm.focus,
  45. .xterm:focus {
  46. outline: none;
  47. }
  48. .xterm .xterm-helpers {
  49. position: absolute;
  50. top: 0;
  51. /**
  52. * The z-index of the helpers must be higher than the canvases in order for
  53. * IMEs to appear on top.
  54. */
  55. z-index: 10;
  56. }
  57. .xterm .xterm-helper-textarea {
  58. /*
  59. * HACK: to fix IE's blinking cursor
  60. * Move textarea out of the screen to the far left, so that the cursor is not visible.
  61. */
  62. position: absolute;
  63. opacity: 0;
  64. left: -9999em;
  65. top: 0;
  66. width: 0;
  67. height: 0;
  68. z-index: -10;
  69. /** Prevent wrapping so the IME appears against the textarea at the correct position */
  70. white-space: nowrap;
  71. overflow: hidden;
  72. resize: none;
  73. }
  74. .xterm .composition-view {
  75. /* TODO: Composition position got messed up somewhere */
  76. background: #000;
  77. color: #FFF;
  78. display: none;
  79. position: absolute;
  80. white-space: nowrap;
  81. z-index: 1;
  82. }
  83. .xterm .composition-view.active {
  84. display: block;
  85. }
  86. .xterm .xterm-viewport {
  87. /* On OS X this is required in order for the scroll bar to appear fully opaque */
  88. background-color: #000;
  89. overflow-y: scroll;
  90. cursor: default;
  91. position: absolute;
  92. right: 0;
  93. left: 0;
  94. top: 0;
  95. bottom: 0;
  96. }
  97. .xterm .xterm-screen {
  98. position: relative;
  99. }
  100. .xterm .xterm-screen canvas {
  101. position: absolute;
  102. left: 0;
  103. top: 0;
  104. }
  105. .xterm .xterm-scroll-area {
  106. visibility: hidden;
  107. }
  108. .xterm .xterm-char-measure-element {
  109. display: inline-block;
  110. visibility: hidden;
  111. position: absolute;
  112. left: -9999em;
  113. }
  114. .xterm.enable-mouse-events {
  115. /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */
  116. cursor: default;
  117. }
  118. .xterm:not(.enable-mouse-events) {
  119. cursor: text;
  120. }