first commit
This commit is contained in:
@@ -0,0 +1,154 @@
|
||||
/* terminal-core-view/index.wxss */
|
||||
|
||||
.tc-root {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #1a1a1a;
|
||||
color: #d4d4d4;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* 终端输出区 */
|
||||
.tc-viewport {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.tc-lines {
|
||||
padding: 2px 4px;
|
||||
}
|
||||
|
||||
.tc-row {
|
||||
position: relative;
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
.tc-rich-row {
|
||||
display: block;
|
||||
font-family: "Courier New", "Menlo", monospace;
|
||||
font-size: 13px;
|
||||
line-height: 1.25;
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
/* 光标 */
|
||||
.tc-cursor {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 8px;
|
||||
height: 1.25em;
|
||||
background: rgba(255, 255, 255, 0.75);
|
||||
pointer-events: none;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* 触控工具栏 */
|
||||
.tc-touch-bar {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
overflow-x: scroll;
|
||||
padding: 4px 6px;
|
||||
background: #252525;
|
||||
border-top: 1rpx solid #333;
|
||||
gap: 4px;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.tc-key {
|
||||
flex-shrink: 0;
|
||||
min-width: 44px;
|
||||
font-size: 12px;
|
||||
font-family: "Courier New", monospace;
|
||||
background: #2e2e2e;
|
||||
color: #ccc;
|
||||
border: 1rpx solid #444;
|
||||
border-radius: 4px;
|
||||
padding: 0 8px;
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
}
|
||||
|
||||
.tc-key-enter {
|
||||
background: #1a3a5c;
|
||||
border-color: #4a9eff;
|
||||
color: #4a9eff;
|
||||
}
|
||||
|
||||
/* 输入栏 */
|
||||
.tc-input-bar {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 5px 8px;
|
||||
background: #1e1e1e;
|
||||
border-top: 1rpx solid #333;
|
||||
}
|
||||
|
||||
.tc-input {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
height: 36px;
|
||||
border-radius: 6px;
|
||||
border: 1rpx solid #444;
|
||||
background: #2a2a2a;
|
||||
color: #d4d4d4;
|
||||
font-size: 13px;
|
||||
font-family: "Courier New", monospace;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.tc-send-btn {
|
||||
flex-shrink: 0;
|
||||
width: 44px;
|
||||
height: 36px;
|
||||
background: #4a9eff;
|
||||
color: #fff;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
border-radius: 6px;
|
||||
border: none;
|
||||
line-height: 36px;
|
||||
text-align: center;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* 状态栏 */
|
||||
.tc-status-bar {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 3px 8px;
|
||||
background: #141414;
|
||||
border-top: 1rpx solid #2a2a2a;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.tc-state-chip {
|
||||
padding: 1px 6px;
|
||||
border-radius: 3px;
|
||||
font-size: 11px;
|
||||
background: #2a2a2a;
|
||||
color: #888;
|
||||
}
|
||||
|
||||
.tc-state-chip.tc-state-connected { background: #1a3a1a; color: #4caf50; }
|
||||
.tc-state-chip.tc-state-connecting { background: #2a2a00; color: #ffc107; }
|
||||
.tc-state-chip.tc-state-auth_pending { background: #2a2a00; color: #ffc107; }
|
||||
.tc-state-chip.tc-state-error { background: #3a1a1a; color: #f44336; }
|
||||
.tc-state-chip.tc-state-disconnected { background: #2a2a2a; color: #666; }
|
||||
|
||||
.tc-title {
|
||||
flex: 1;
|
||||
font-size: 11px;
|
||||
color: #888;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
Reference in New Issue
Block a user