Skip to content

Commit

Permalink
repl: introduce .monaco-workbench selector and remove unused css
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed May 13, 2020
1 parent 1de3cce commit ecf39a0
Showing 1 changed file with 13 additions and 36 deletions.
49 changes: 13 additions & 36 deletions src/vs/workbench/contrib/debug/browser/media/repl.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@

/* Debug repl */

.repl {
.monaco-workbench .repl {
height: 100%;
box-sizing: border-box;
overflow: hidden;
}

.repl .repl-tree .monaco-tl-contents {
.monaco-workbench .repl .repl-tree .monaco-tl-contents {
user-select: text;
-webkit-user-select: text;
white-space: pre;
}

.repl .repl-tree.word-wrap .monaco-tl-contents {
.monaco-workbench .repl .repl-tree.word-wrap .monaco-tl-contents {
/* Wrap words but also do not trim whitespace #6275 */
word-wrap: break-word;
white-space: pre-wrap;
Expand All @@ -30,15 +30,15 @@
cursor: pointer;
}

.repl .repl-tree .output.expression.value-and-source {
.monaco-workbench .repl .repl-tree .output.expression.value-and-source {
display: flex;
}

.repl .repl-tree .output.expression.value-and-source .value {
.monaco-workbench .repl .repl-tree .output.expression.value-and-source .value {
flex: 1;
}

.repl .repl-tree .monaco-tl-contents .arrow {
.monaco-workbench .repl .repl-tree .monaco-tl-contents .arrow {
position:absolute;
left: 2px;
opacity: 0.25;
Expand All @@ -48,7 +48,7 @@
opacity: 0.4;
}

.repl .repl-tree .output.expression.value-and-source .source {
.monaco-workbench .repl .repl-tree .output.expression.value-and-source .source {
margin-left: 4px;
margin-right: 8px;
cursor: pointer;
Expand All @@ -59,32 +59,21 @@
max-width: 150px;
}

.repl .repl-tree .output.expression > .value,
.repl .repl-tree .evaluation-result.expression > .value {
.monaco-workbench .repl .repl-tree .output.expression > .value,
.monaco-workbench .repl .repl-tree .evaluation-result.expression > .value {
margin-left: 0px;
}

.repl .repl-tree .output.expression > .annotation,
.repl .repl-tree .evaluation-result.expression > .annotation {
font-size: inherit;
padding-left: 6px;
}

.repl .repl-tree .output.expression .name:not(:empty) {
.monaco-workbench .repl .repl-tree .output.expression .name:not(:empty) {
margin-right: 6px;
}

.repl .repl-input-wrapper {
.monaco-workbench .repl .repl-input-wrapper {
display: flex;
align-items: center;
}

/* Only show 'stale expansion' info when the element gets expanded. */
.repl .repl-tree .evaluation-result > .annotation::before {
content: '';
}

.repl .repl-input-wrapper .repl-input-chevron {
.monaco-workbench .repl .repl-input-wrapper .repl-input-chevron {
padding: 0 6px 0 8px;
width: 16px;
height: 100%;
Expand All @@ -95,22 +84,10 @@
}

/* Output coloring and styling */
.repl .repl-tree .output.expression > .ignore {
.monaco-workbench .repl .repl-tree .output.expression > .ignore {
font-style: italic;
}

.monaco-workbench.vs .repl .repl-tree .output.expression > .annotation {
color: #007ACC;
}

.monaco-workbench.vs-dark .repl .repl-tree .output.expression > .annotation {
color: #1B80B2;
}

.monaco-workbench.hc-black .repl .repl-tree .output.expression > .annotation {
color: #0000FF;
}

.monaco-workbench.vs .repl .repl-tree .output.expression > .warn {
color: #cd9731;
}
Expand Down

0 comments on commit ecf39a0

Please sign in to comment.