|
| 1 | +.xterm-viewport, |
| 2 | +.xterm-screen { |
| 3 | + &::-webkit-scrollbar-track { |
| 4 | + background: rgba(0, 0, 0, 0); |
| 5 | + cursor: pointer; |
| 6 | + margin: 2px; |
| 7 | + } |
| 8 | + |
| 9 | + &::-webkit-scrollbar { |
| 10 | + width: 6px; |
| 11 | + height: 6px; |
| 12 | + } |
| 13 | + |
| 14 | + &::-webkit-scrollbar-thumb { |
| 15 | + background-color: var(--senary-contrast); |
| 16 | + border-radius: 10px; |
| 17 | + transition: background-color 0.3s ease; |
| 18 | + } |
| 19 | + |
| 20 | + &::-webkit-scrollbar-thumb:hover { |
| 21 | + background-color: var(--quaternary-contrast); |
| 22 | + } |
| 23 | +} |
| 24 | + |
| 25 | +// Override terminal styles |
| 26 | +.xterm { |
| 27 | + height: 100%; |
| 28 | + width: 100%; |
| 29 | +} |
| 30 | + |
| 31 | +.xterm-viewport { |
| 32 | + overflow-y: auto !important; |
| 33 | + height: 100% !important; |
| 34 | + width: 100% !important; |
| 35 | + background-color: var(--octonary-contrast) !important; |
| 36 | + transition: background-color 0.3s ease; |
| 37 | +} |
| 38 | + |
| 39 | +.xterm-screen { |
| 40 | + padding: 10px; |
| 41 | + box-sizing: border-box; |
| 42 | + overflow: visible !important; |
| 43 | + height: 100% !important; |
| 44 | + width: 100% !important; |
| 45 | +} |
| 46 | + |
| 47 | +.xterm-rows { |
| 48 | + height: 100% !important; |
| 49 | + overflow: visible !important; |
| 50 | + color: var(--primary-contrast) !important; |
| 51 | + transition: color 0.3s ease; |
| 52 | + // It is important to not alter the font-size or the selection would lose in precision |
| 53 | + |
| 54 | + .xterm-cursor { |
| 55 | + &.xterm-cursor-outline { |
| 56 | + outline-color: var(--primary-contrast) !important; |
| 57 | + } |
| 58 | + &.xterm-cursor-block { |
| 59 | + background: var(--primary-contrast) !important; |
| 60 | + } |
| 61 | + } |
| 62 | +} |
| 63 | + |
| 64 | +.xterm-selection { |
| 65 | + top: 10px !important; |
| 66 | + left: 10px !important; |
| 67 | + div { |
| 68 | + background-color: transparent !important; |
| 69 | + } |
| 70 | +} |
| 71 | + |
| 72 | +.xterm-decoration-top { |
| 73 | + background-color: var(--quinary-contrast) !important; |
| 74 | +} |
| 75 | + |
| 76 | +.xterm-fg-11 { |
| 77 | + color: var(--electric-violet) !important; |
| 78 | +} |
| 79 | + |
| 80 | +.xterm-fg-4 { |
| 81 | + color: var(--bright-blue) !important; |
| 82 | +} |
| 83 | + |
| 84 | +// progress ### |
| 85 | +.xterm-fg-15 { |
| 86 | + color: var(--secondary-contrast) !important; |
| 87 | +} |
| 88 | + |
| 89 | +.xterm-fg-14 { |
| 90 | + color: var(--vivid-pink) !important; |
| 91 | +} |
| 92 | + |
| 93 | +// > in terminal |
| 94 | +.xterm-fg-5 { |
| 95 | + color: var(--electric-violet) !important; |
| 96 | +} |
| 97 | + |
| 98 | +// error text, warning text |
| 99 | +.xterm-fg-9, |
| 100 | +.xterm-fg-3 { |
| 101 | + color: var(--vivid-pink) !important; |
| 102 | +} |
| 103 | + |
| 104 | +.xterm-fg-10, |
| 105 | +.xterm-fg-2 { |
| 106 | + color: var(--symbolic-green) !important; |
| 107 | +} |
| 108 | + |
| 109 | +// error bg |
| 110 | +.xterm-bg-1 { |
| 111 | + background-color: var(--orange-red) !important; |
| 112 | +} |
| 113 | + |
| 114 | +// error text |
| 115 | +.xterm-fg-257 { |
| 116 | + color: var(--octonary-contrast) !important; |
| 117 | +} |
| 118 | + |
| 119 | +.xterm-fg-8 { |
| 120 | + color: var(--tertiary-contrast) !important; |
| 121 | +} |
0 commit comments