Skip to content

Commit

Permalink
Fix some minor visual problems
Browse files Browse the repository at this point in the history
  • Loading branch information
cyderize committed Jun 28, 2023
1 parent 090df90 commit e643b94
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 25 deletions.
21 changes: 21 additions & 0 deletions src/bulma.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,24 @@
@import "../node_modules/bulma/sass/components/navbar";
@import "../node_modules/bulma/sass/components/panel";
@import "../node_modules/bulma/sass/components/tabs";

& {
/** Apply these here since we can't apply to body */
box-sizing: border-box;
line-height: $body-line-height;
font-family: $body-family;

background-color: $body-background-color;
font-size: $body-size;
min-width: $body-min-width;

font-family: $body-family;
color: $body-color;
font-size: $body-font-size;
font-weight: $body-weight;
line-height: $body-line-height;

.navbar-item, .navbar-link {
padding: 0.5rem;
}
}
4 changes: 2 additions & 2 deletions src/lib/Editor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@
.mzn-editor :global(.cm-mzn-underline-error),
.mzn-editor :global(.cm-mzn-underline-error::before),
.mzn-editor :global(.cm-mzn-underline-error::after) {
border-color: red;
border-color: var(--mzn-playground-red);
}
.mzn-editor :global(.cm-mzn-underline-warning),
.mzn-editor :global(.cm-mzn-underline-warning::before),
.mzn-editor :global(.cm-mzn-underline-warning::after) {
border-color: #d1d100;
border-color: var(--mzn-playground-yellow);
}
.mzn-editor :global(.cm-mzn-underline-error::before),
Expand Down
8 changes: 4 additions & 4 deletions src/lib/Output.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -491,20 +491,20 @@
.mzn-comment,
.mzn-stderr,
.mzn-checker {
color: gray;
color: var(--mzn-playground-gray);
}
.mzn-stat,
.mzn-runtime {
color: blue;
color: var(--mzn-playground-blue);
}
.mzn-error {
color: red;
color: var(--mzn-playground-red);
}
.mzn-warning {
color: #d1d100;
color: var(--mzn-playground-yellow);
}
.mzn-link {
Expand Down
1 change: 1 addition & 0 deletions src/lib/Tab.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
/>{suffix}
{:else}
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions-->
<span class="filename" on:click={editName}>{name}{suffix}</span>
{#if active && !readonly}
<span class="close-tab" on:click={() => dispatch('close')}>
Expand Down
3 changes: 2 additions & 1 deletion src/lib/Tabs.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,11 @@
.add-icon {
margin: 0 !important;
}
.right {
flex: 1 1 auto;
display: flex !important;
justify-content: flex-end;
padding-right: 0.5rem;
padding-right: 0.5rem !important;
}
</style>
28 changes: 10 additions & 18 deletions src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,14 @@ $pre-code-font-size: 1em;
.mzn-playground {
@import "./bulma";

/** Apply these here since we can't apply to body */
box-sizing: border-box;
line-height: $body-line-height;
font-family: $body-family;

background-color: $body-background-color;
font-size: $body-size;
min-width: $body-min-width;

font-family: $body-family;
color: $body-color;
font-size: $body-font-size;
font-weight: $body-weight;
line-height: $body-line-height;

--mzn-playground-border: hsl(0, 0%, 86%);
--mzn-playground-input-background-color: hsl(0, 0%, 100%);
--mzn-playground-splitter: #EEE;

--mzn-playground-gray: gray;
--mzn-playground-blue: blue;
--mzn-playground-red: red;
--mzn-playground-yellow: #d1d100;
}

.mzn-playground.is-dark {
Expand Down Expand Up @@ -53,6 +43,11 @@ $pre-code-font-size: 1em;
--mzn-playground-input-background-color: hsl(0, 0%, 12%);
--mzn-playground-splitter: hsl(0, 0%, 29%);

--mzn-playground-gray: gray;
--mzn-playground-blue: #33beff;
--mzn-playground-red: red;
--mzn-playground-yellow: #d1d100;

.delete {
background-color: hsl(0, 0%, 20%);
&::before, &::after {
Expand Down Expand Up @@ -80,7 +75,4 @@ $pre-code-font-size: 1em;
background-color: hsl(0, 0%, 24%);
}
}

background-color: $body-background-color;
color: $body-color;
}

0 comments on commit e643b94

Please sign in to comment.