Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(shared-docs): remove xterm dependency #2043

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
102 changes: 1 addition & 101 deletions docs/styles/_resets.scss
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,7 @@
}
}

.cm-scroller,
.xterm-viewport,
.xterm-screen {
.cm-scroller {
&::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0);
cursor: pointer;
Expand All @@ -374,104 +372,6 @@
}
}

// Override terminal styles
.xterm {
height: 100%;
width: 100%;
}

.xterm-viewport {
overflow-y: auto !important;
height: 100% !important;
width: 100% !important;
background-color: var(--octonary-contrast) !important;
transition: background-color 0.3s ease;
}

.xterm-screen {
padding: 10px;
box-sizing: border-box;
overflow: visible !important;
height: 100% !important;
width: 100% !important;
}

.xterm-rows {
height: 100% !important;
overflow: visible !important;
color: var(--primary-contrast) !important;
transition: color 0.3s ease;
// It is important to not alter the font-size or the selection would lose in precision

.xterm-cursor {
&.xterm-cursor-outline {
outline-color: var(--primary-contrast) !important;
}
&.xterm-cursor-block {
background: var(--primary-contrast) !important;
}
}
}

.xterm-selection {
top: 10px !important;
left: 10px !important;
div {
background-color: transparent !important;
}
}

.xterm-decoration-top {
background-color: var(--quinary-contrast) !important;
}

.xterm-fg-11 {
color: var(--electric-violet) !important;
}

.xterm-fg-4 {
color: var(--bright-blue) !important;
}

// progress ###
.xterm-fg-15 {
color: var(--secondary-contrast) !important;
}

.xterm-fg-14 {
color: var(--vivid-pink) !important;
}

// > in terminal
.xterm-fg-5 {
color: var(--electric-violet) !important;
}

// error text, warning text
.xterm-fg-9,
.xterm-fg-3 {
color: var(--vivid-pink) !important;
}

.xterm-fg-10,
.xterm-fg-2 {
color: var(--symbolic-green) !important;
}

// error bg
.xterm-bg-1 {
background-color: var(--orange-red) !important;
}

// error text
.xterm-fg-257 {
color: var(--octonary-contrast) !important;
}

.xterm-fg-8 {
color: var(--tertiary-contrast) !important;
}

[docs-breadcrumb] {
height: 2.5625rem;
}
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,6 @@
"wait-on": "^7.0.0",
"which": "^4.0.0",
"ws": "^8.8.0",
"xterm": "^5.3.0",
"xterm-addon-fit": "^0.8.0",
"yaml": "^2.0.0",
"zone.js": "^0.14.0"
},
Expand Down
18 changes: 0 additions & 18 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,6 @@ __metadata:
wait-on: "npm:^7.0.0"
which: "npm:^4.0.0"
ws: "npm:^8.8.0"
xterm: "npm:^5.3.0"
xterm-addon-fit: "npm:^0.8.0"
yaml: "npm:^2.0.0"
yargs: "npm:^17.0.0"
zone.js: "npm:^0.14.0"
Expand Down Expand Up @@ -16783,22 +16781,6 @@ __metadata:
languageName: node
linkType: hard

"xterm-addon-fit@npm:^0.8.0":
version: 0.8.0
resolution: "xterm-addon-fit@npm:0.8.0"
peerDependencies:
xterm: ^5.0.0
checksum: 10c0/39f77c9ec74bcc048ad74fbc4b9d610070c0a67971837f7edf92a8d21d65189c887986713d6ab22c04e2704253022488324d27fdb2425dc8aa95a9b679703101
languageName: node
linkType: hard

"xterm@npm:^5.3.0":
version: 5.3.0
resolution: "xterm@npm:5.3.0"
checksum: 10c0/39bf5ea933cc2f65d5970560d065b4db645ed03c820bcf6c6239bd504e41a876ab1a773ad9e4e09476ba85a4891534702b9fbb885b0838d79e6620ed2f856bae
languageName: node
linkType: hard

"y18n@npm:^4.0.0":
version: 4.0.3
resolution: "y18n@npm:4.0.3"
Expand Down