Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"number-no-trailing-zeros": true,
"selector-combinator-space-after": "always",
"selector-combinator-space-before": "always",
"selector-list-comma-newline-after": "always",
"selector-list-comma-space-before": "never",
"selector-pseudo-element-colon-notation": "double",
"selector-type-case": "lower",
Expand Down
4 changes: 3 additions & 1 deletion bin/prettier.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const args = [
"*.js",
"src/*.js",
"src/*/*.js",
"src/components/**/*.css",
"src/*/!(mochitest)**/*.js",
"src/*/!(mochitest)*/**/*.js"
];
Expand All @@ -25,7 +26,8 @@ const prettierProc = spawn(prettierCmd, prettierArgs);
prettierProc.stdout.on("data", data => console.log(`${data}`));
prettierProc.stderr.on("data", data => console.log(`stderr: ${data}`));
prettierProc.on("close", code =>
console.log(`prettier exited with code ${code}`));
console.log(`prettier exited with code ${code}`)
);
prettierProc.on("error", error => {
if (error.code == "ENOENT") {
console.log(`Hmm, could not find the path ${cmd}.`);
Expand Down
20 changes: 13 additions & 7 deletions src/components/Editor/Editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
--debug-line-border: rgb(145, 188, 219);
--editor-searchbar-height: 27px;
--editor-second-searchbar-height: 27px;

}

.theme-dark .editor-wrapper {
Expand All @@ -23,8 +22,7 @@
--theme-conditional-breakpoint-color: #ccd1d5;
}

.out-of-scope .CodeMirror-line,
.out-of-scope .CodeMirror-linenumber {
.out-of-scope .CodeMirror-line, .out-of-scope .CodeMirror-linenumber {
opacity: 0.8;
}

Expand Down Expand Up @@ -178,17 +176,25 @@ html[dir="rtl"] .editor-mount {
}

@keyframes fade-highlight-out {
0% { background-color: var(--theme-highlight-gray); }
100% { background-color: transparent; }
0% {
background-color: var(--theme-highlight-gray);
}
100% {
background-color: transparent;
}
}

.theme-dark .highlight-line .CodeMirror-line {
animation: fade-highlight-out-dark 1.5s normal forwards;
}

@keyframes fade-highlight-out-dark {
0% { background-color: var(--theme-content-color3); }
100% { background-color: transparent; }
0% {
background-color: var(--theme-content-color3);
}
100% {
background-color: transparent;
}
}

.welcomebox {
Expand Down
6 changes: 2 additions & 4 deletions src/components/Editor/Tabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@
border-bottom-color: transparent;
}

.source-tab.active path,
.source-tab:hover path {
.source-tab.active path, .source-tab:hover path {
fill: var(--theme-body-color);
}

Expand All @@ -75,8 +74,7 @@
fill: var(--theme-textbox-box-shadow);
}

.source-tab .blackBox,
.source-tab .prettyPrint {
.source-tab .blackBox, .source-tab .prettyPrint {
line-height: 0;
align-self: center;
}
Expand Down
1 change: 0 additions & 1 deletion src/components/ProjectSearch/ProjectSearch.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

.search-container {
position: absolute;
top: 30px;
Expand Down
3 changes: 1 addition & 2 deletions src/components/SecondaryPanes/Breakpoints.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ html .breakpoints-list .breakpoint.paused {
order: 3;
}

:root.theme-light .breakpoint-snippet,
:root.theme-firebug .breakpoint-snippet {
:root.theme-light .breakpoint-snippet, :root.theme-firebug .breakpoint-snippet {
color: var(--theme-comment);
}

Expand Down
9 changes: 3 additions & 6 deletions src/components/SecondaryPanes/Frames/Frames.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@
margin: 0;
}

:root.theme-light .frames .location,
:root.theme-firebug .frames .location {
:root.theme-light .frames .location, :root.theme-firebug .frames .location {
color: var(--theme-comment);
}

Expand All @@ -53,14 +52,12 @@
margin-right: 1em;
}

.frames ul li:hover,
.frames ul li:focus {
.frames ul li:hover, .frames ul li:focus {
background-color: var(--theme-toolbar-background-alt);
outline: none;
}

.theme-dark .frames ul li:hover,
.theme-dark .frames ul li:focus {
.theme-dark .frames ul li:hover, .theme-dark .frames ul li:focus {
background-color: var(--theme-tab-toolbar-background);
}

Expand Down
3 changes: 1 addition & 2 deletions src/components/SecondaryPanes/Frames/Group.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.frames ul .frames-group .group,
.frames ul .frames-group .group .location {
.frames ul .frames-group .group, .frames ul .frames-group .group .location {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! this is a good improvement! but wow that's a complicated selector

font-weight: 500;
}

Expand Down
1 change: 0 additions & 1 deletion src/components/SecondaryPanes/Frames/WhyPaused.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

.why-paused {
background-color: var(--theme-body-background);
color: var(--theme-body-color);
Expand Down
1 change: 0 additions & 1 deletion src/components/SecondaryPanes/Scopes.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

.object-node.default-property {
opacity: 0.6;
}
Expand Down
3 changes: 1 addition & 2 deletions src/components/Sources.css
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@
border-top-color: transparent;
}

.source-footer .tab.active path,
.source-footer .tab:hover path {
.source-footer .tab.active path, .source-footer .tab:hover path {
fill: var(--theme-body-color);
}
3 changes: 1 addition & 2 deletions src/components/shared/Accordion.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
background-color: var(--theme-toolbar-background-hover);
}

.accordion ._header button svg,
.accordion ._header:hover button svg {
.accordion ._header button svg, .accordion ._header:hover button svg {
fill: currentColor;
height: 16px;
}
Expand Down
1 change: 0 additions & 1 deletion src/components/shared/Autocomplete.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

.autocomplete {
flex: 1;
width: 100%;
Expand Down
3 changes: 1 addition & 2 deletions src/components/shared/BracketArrow.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
position: absolute;
}

.bracket-arrow::before,
.bracket-arrow::after {
.bracket-arrow::before, .bracket-arrow::after {
content: '';
height: 0;
width: 0;
Expand Down
15 changes: 5 additions & 10 deletions src/components/shared/Button/PaneToggle.css
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
.toggle-button-start,
.toggle-button-end {
.toggle-button-start, .toggle-button-end {
transform: translate(0, 2px);
transition: transform 0.25s ease-in-out;
cursor: pointer;
padding: 5px 2px;
}

.toggle-button-start.vertical,
.toggle-button-end.vertical {
.toggle-button-start.vertical, .toggle-button-end.vertical {
padding: 4px 2px;
}

.toggle-button-start svg,
.toggle-button-end svg {
.toggle-button-start svg, .toggle-button-end svg {
width: 16px;
fill: var(--theme-comment);
}

.theme-dark .toggle-button-start svg,
.theme-dark .toggle-button-end svg {
.theme-dark .toggle-button-start svg, .theme-dark .toggle-button-end svg {
fill: var(--theme-comment-alt);
}

Expand All @@ -40,7 +36,6 @@ html .toggle-button-end.vertical svg {
transform: rotate(-90deg);
}

.toggle-button-start.collapsed,
.toggle-button-end.collapsed {
.toggle-button-start.collapsed, .toggle-button-end.collapsed {
transform: rotate(180deg);
}
10 changes: 3 additions & 7 deletions src/components/shared/SearchInput.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

.search-field {
width: calc(100% - 1px);
height: 27px;
Expand Down Expand Up @@ -40,20 +39,17 @@
color: var(--theme-body-color-inactive);
}

.search-field i.magnifying-glass,
.search-field i.sad-face {
.search-field i.magnifying-glass, .search-field i.sad-face {
padding: 6px;
width: 24px;
}

.search-field.big i.magnifying-glass,
.search-field.big i.sad-face {
.search-field.big i.magnifying-glass, .search-field.big i.sad-face {
padding: 14px;
width: 40px;
}

.search-field .magnifying-glass path,
.search-field .magnifying-glass ellipse {
.search-field .magnifying-glass path, .search-field .magnifying-glass ellipse {
stroke: var(--theme-splitter-color);
}

Expand Down
30 changes: 5 additions & 25 deletions src/components/shared/Svg.css
Original file line number Diff line number Diff line change
@@ -1,46 +1,26 @@

.arrow,
.folder,
.domain,
.file,
.worker,
.refresh,
.add-button {
.arrow, .folder, .domain, .file, .worker, .refresh, .add-button {
fill: var(--theme-splitter-color);
}

.worker,
.folder {
.worker, .folder {
position: relative;
top: 2px;
}

.domain,
.file,
.worker,
.refresh,
.add-button {
.domain, .file, .worker, .refresh, .add-button {
position: relative;
top: 1px;
}

.domain svg,
.folder svg,
.worker svg,
.refresh svg,
.add-button svg {
.domain svg, .folder svg, .worker svg, .refresh svg, .add-button svg {
width: 15px;
}

.file svg {
width: 13px;
}

.file svg,
.domain svg,
.folder svg,
.refresh svg,
.worker svg {
.file svg, .domain svg, .folder svg, .refresh svg, .worker svg {
margin-inline-end: 5px;
}

Expand Down
1 change: 0 additions & 1 deletion src/components/shared/previewFunction.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

.function-signature {
line-height: 20px;
align-self: center;
Expand Down
Loading