UNPKG

react-terminal-viewer

Version:

<h1 align="center"> react-terminal-viewer </h1>

144 lines (121 loc) 2.18 kB
.terminal-viewer-header { display: flex; padding: 12px 16px; background: #1e2a3d; border-bottom: 1px solid #4d545e; } .terminal-viewer-header-tab { display: flex; flex-grow: 1; align-items: center; margin-right: 16px; overflow-x: auto; white-space: nowrap; } .terminal-viewer-header-tab-item { display: flex; align-items: center; padding: 0 12px; color: #878c96; cursor: pointer; // & + & { // margin-left: -8px; // } &:hover { color: #fff; } &.active { padding: 4px 12px; color: #fff; background: #4a525e; border-radius: 16px; } } .terminal-viewer-header-action { display: flex; flex-shrink: 0; align-items: center; } .terminal-viewer-input-wrapper { display: flex; align-items: center; min-width: 280px; padding: 4px 12px; color: #fff; background-color: #4a525e; border-radius: 4px; &:hover { box-shadow: 0 0 0 1px#d4d6d9; .input-suffix-clear { display: flex; } .input-suffix-search-tool { display: flex; } } } input.terminal-viewer-input { flex-grow: 1; height: 24px; margin: 0; padding: 0; color: #fff; background-color: #4a525e; border: 0; outline: none; &::placeholder { color: #fff; } &:hover { border: none; outline: none; } &:focus { border: none; outline: none; } } .terminal-viewer-input-suffix { display: flex; flex-shrink: 0; align-items: center; .anticon-search { font-size: 16px; } > * { margin-left: 8px; } } .input-suffix-clear { display: none; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; } .input-suffix-search-result { font-size: 12px; } .input-suffix-search-tool { display: none; align-items: center; justify-content: center; padding: 2px 4px; font-size: 12px; background: #878c96; border-radius: 4px; cursor: pointer; } .input-suffix-search--disabled { cursor: not-allowed; pointer-events: none; } .terminal-viewer-header-refresh { display: flex; align-items: center; justify-content: center; margin-right: 16px; color: #fff; font-size: 16px; cursor: pointer; }