提交 464f1a75 编写于 作者: D Daniel Imms

Pull in xterm.css changes that resolve .terminal naming issue

See sourcelair/xterm.js#1068
上级 b3201a12
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information. * Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/ *--------------------------------------------------------------------------------------------*/
/** /**
* xterm.js: xterm, in the browser * Copyright (c) 2014 The xterm.js authors. All rights reserved.
* Copyright (c) 2014-2016, SourceLair Private Company (www.sourcelair.com (MIT License)
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License) * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
* https://github.com/chjj/term.js * https://github.com/chjj/term.js
* @license MIT
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
* Default styles for xterm.js * Default styles for xterm.js
*/ */
.panel.terminal { .xterm {
font-family: courier-new, courier, monospace; font-family: courier-new, courier, monospace;
font-feature-settings: "liga" 0; font-feature-settings: "liga" 0;
position: relative; position: relative;
...@@ -48,12 +48,12 @@ ...@@ -48,12 +48,12 @@
-webkit-user-select: none; -webkit-user-select: none;
} }
.panel.terminal.focus, .xterm.focus,
.panel.terminal:focus { .xterm:focus {
outline: none; outline: none;
} }
.panel.terminal .xterm-helpers { .xterm .xterm-helpers {
position: absolute; position: absolute;
top: 0; top: 0;
/** /**
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
z-index: 10; z-index: 10;
} }
.panel.terminal .xterm-helper-textarea { .xterm .xterm-helper-textarea {
/* /*
* HACK: to fix IE's blinking cursor * HACK: to fix IE's blinking cursor
* Move textarea out of the screen to the far left, so that the cursor is not visible. * Move textarea out of the screen to the far left, so that the cursor is not visible.
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
resize: none; resize: none;
} }
.panel.terminal .composition-view { .xterm .composition-view {
/* TODO: Composition position got messed up somewhere */ /* TODO: Composition position got messed up somewhere */
background: #000; background: #000;
color: #FFF; color: #FFF;
...@@ -91,38 +91,38 @@ ...@@ -91,38 +91,38 @@
z-index: 1; z-index: 1;
} }
.panel.terminal .composition-view.active { .xterm .composition-view.active {
display: block; display: block;
} }
.panel.terminal .xterm-viewport { .xterm .xterm-viewport {
/* On OS X this is required in order for the scroll bar to appear fully opaque */ /* On OS X this is required in order for the scroll bar to appear fully opaque */
background-color: #000; background-color: #000;
overflow-y: scroll; overflow-y: scroll;
} }
.panel.terminal canvas { .xterm canvas {
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
} }
.panel.terminal .xterm-scroll-area { .xterm .xterm-scroll-area {
visibility: hidden; visibility: hidden;
} }
.panel.terminal .xterm-char-measure-element { .xterm .xterm-char-measure-element {
display: inline-block; display: inline-block;
visibility: hidden; visibility: hidden;
position: absolute; position: absolute;
left: -9999em; left: -9999em;
} }
.panel.terminal.enable-mouse-events { .xterm.enable-mouse-events {
/* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */ /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */
cursor: default; cursor: default;
} }
.panel.terminal:not(.enable-mouse-events) { .xterm:not(.enable-mouse-events) {
cursor: text; cursor: text;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册