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

Feat scss variables #350

Closed
wants to merge 20 commits into from
Closed
Changes from 6 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
898c529
feat: use SCSS variables internally
SamMousa Nov 24, 2023
1379aa4
fix: revert search & replace changes that should not be in css files
SamMousa Nov 24, 2023
e4b1030
fix: fix cases of css in js
SamMousa Nov 24, 2023
7ddd246
fix: svelte-select styling
SamMousa Nov 24, 2023
99b92a3
fix: css files must not contain scss variables
SamMousa Nov 27, 2023
b4b5b8a
Merge branch 'feat-scss-variables' of https://github.com/SamMousa/sve…
josdejong Nov 29, 2023
a4da5f9
fix: key color in text mode
SamMousa Nov 29, 2023
44d63fe
fix: svelte-select dark theme background & border
SamMousa Nov 29, 2023
3ffb2f1
fix: big theme
SamMousa Nov 29, 2023
7a4d104
fix: big left margin of insertion marker
SamMousa Nov 29, 2023
b8e0112
fix: modal theming
SamMousa Nov 29, 2023
86217a3
Merge branch 'feat-scss-variables' of https://github.com/SamMousa/sve…
josdejong Nov 30, 2023
bea88ba
chore: apply formatting
josdejong Dec 4, 2023
6eca574
fix: rename `--jse-modal-theme-color` to `--jse-modal-editor-theme-co…
josdejong Dec 4, 2023
f90e370
fix: editor not having a border (modal editor border not yet solved)
josdejong Dec 4, 2023
a44ca48
fix: font color of warnings in dark mode
josdejong Dec 4, 2023
98dfce8
fix: editors in transform modal not having a border
josdejong Dec 4, 2023
c491d97
fix: selection bar not having the right color when the editor does no…
josdejong Dec 4, 2023
3e20fe9
fix: update unit test snapshot
josdejong Dec 4, 2023
f31a075
fix: some minor styling fixes, clean up fixed todo's
josdejong Dec 6, 2023
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
4 changes: 2 additions & 2 deletions src/lib/components/modals/JSONEditorModal.scss
Original file line number Diff line number Diff line change
@@ -5,8 +5,8 @@
.jse-modal-contents {
padding-top: 0;

--jse-theme-color: $modal-theme-color;
--jse-theme-color-highlight: $modal-theme-color-highlight;
--jse-theme-color: #{$modal-theme-color};
--jse-theme-color-highlight: #{$modal-theme-color-highlight};

.jse-label {
font-weight: bold;
1 change: 1 addition & 0 deletions src/lib/components/modals/Modal.scss
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
--background: #{$svelte-select-background};
--padding: #{$svelte-select-padding};
--multi-select-padding: #{$svelte-select-multi-select-padding};
--font-size: #{$svelte-select-font-size};
--height: 36px;
--multi-item-height: 28px;
--multi-item-margin: 2px;
2 changes: 1 addition & 1 deletion src/lib/components/modes/textmode/TextMode.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import '../../../styles';

.jse-text-mode {
--internal-key-color: #{$value-color-number};
--internal-key-color: #{$key-color};
--internal-value-color-number: #{$value-color-number};
--internal-value-color-boolean: #{$value-color-boolean};
--internal-value-color-string: #{$value-color-string};
1 change: 1 addition & 0 deletions src/lib/components/modes/treemode/JSONNode.scss
Original file line number Diff line number Diff line change
@@ -98,6 +98,7 @@
display: flex;
position: relative;
z-index: 1; // prevent the next line half-overlapping the pointer
margin-left: calc(var(--level) * $indent-size);

max-width: 250px;
min-width: 100px;
1 change: 1 addition & 0 deletions src/lib/themes/defaults.scss
Original file line number Diff line number Diff line change
@@ -159,6 +159,7 @@
$svelte-select-border-radius: var(--jse-svelte-select-border-radius, 3px);
$svelte-select-background: var(--jse-svelte-select-background, #fff);
$svelte-select-padding: var(--jse-svelte-select-padding, 0 10px);
$svelte-select-font-size: var(--jse-svelte-select-font-size, $font-size);
$svelte-select-multi-select-padding: var(--jse-svelte-select-multi-select-padding, 0 10px);

/* color picker */
4 changes: 2 additions & 2 deletions src/lib/themes/jse-theme-dark.css
Original file line number Diff line number Diff line change
@@ -97,8 +97,8 @@
--jse-a-color-highlight: #4387c9;

/* svelte-select */
--background: #3d3d3d;
--border: 1px solid #4f4f4f;
--jse-svelte-select-background: #3d3d3d;
--jse-svelte-select-border: 1px solid #4f4f4f;
--list-background: #3d3d3d;
--item-hover-bg: #505050;
--multi-item-bg: #5b5b5b;
2 changes: 1 addition & 1 deletion src/routes/themes/jse-theme-big.css
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@

--jse-button-primary-background: var(--jse-theme-color);
--jse-button-primary-background-highlight: #e74c1c;
--itemIsActiveBG: #fd5e2d;
--jse-item-is-active-bg: #fd5e2d;

/* messages */
--jse-message-error-background: #f6c5c0;