Skip to content

Commit

Permalink
fix: #489 anchor styling defined in the TransformModal affecting the …
Browse files Browse the repository at this point in the history
…global style
  • Loading branch information
josdejong committed Oct 9, 2024
1 parent 337c33b commit a213583
Show file tree
Hide file tree
Showing 3 changed files with 179 additions and 179 deletions.
62 changes: 31 additions & 31 deletions src/lib/components/modals/Modal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -88,41 +88,41 @@
& .jse-modal-inner {
@include jse-modal-style;
}
}
@keyframes zoom {
from {
transform: scale(0.95);
}
to {
transform: scale(1);
@keyframes zoom {
from {
transform: scale(0.95);
}
to {
transform: scale(1);
}
}
}
@keyframes fade {
from {
opacity: 0;
@keyframes fade {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
to {
opacity: 1;
}
}
// styling for the select box, svelte-select
// see docs: https://github.com/rob-balfre/svelte-select#css-custom-properties-variables
:global(.svelte-select) {
--border: #{$svelte-select-border};
--item-is-active-bg: #{$svelte-select-item-is-active-bg};
--border-radius: #{$svelte-select-border-radius};
--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;
--multi-item-padding: 2px 8px;
--multi-item-border-radius: 6px;
--indicator-top: 8px;
// styling for the select box, svelte-select
// see docs: https://github.com/rob-balfre/svelte-select#css-custom-properties-variables
:global(.svelte-select) {
--border: #{$svelte-select-border};
--item-is-active-bg: #{$svelte-select-item-is-active-bg};
--border-radius: #{$svelte-select-border-radius};
--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;
--multi-item-padding: 2px 8px;
--multi-item-border-radius: 6px;
--indicator-top: 8px;
}
}
</style>
70 changes: 35 additions & 35 deletions src/lib/components/modals/SortModal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,47 @@

.jse-modal-contents {
@include jse-modal-contents;
}

table {
width: 100%;
border-collapse: collapse;
border-spacing: 0;

th,
td {
text-align: left;
vertical-align: middle;
font-weight: normal;
padding-bottom: $padding;

input.jse-path {
width: 100%;
box-sizing: border-box;
padding: 6px 16px; // TODO: define variables for those props
border: $input-border;
border-radius: $input-radius;
font-family: inherit;
font-size: inherit;
background: inherit;
color: inherit;
outline: none;

&:read-only {
background: $input-background-readonly;
table {
width: 100%;
border-collapse: collapse;
border-spacing: 0;

th,
td {
text-align: left;
vertical-align: middle;
font-weight: normal;
padding-bottom: $padding;

input.jse-path {
width: 100%;
box-sizing: border-box;
padding: 6px 16px; // TODO: define variables for those props
border: $input-border;
border-radius: $input-radius;
font-family: inherit;
font-size: inherit;
background: inherit;
color: inherit;
outline: none;

&:read-only {
background: $input-background-readonly;
}
}
}

:global(.svelte-select input) {
box-sizing: border-box;
:global(.svelte-select input) {
box-sizing: border-box;
}
}
}
}

.jse-space {
height: 200px; // Trick for the property select box dropdown to be fully visible
.jse-space {
height: 200px; // Trick for the property select box dropdown to be fully visible

.jse-error {
color: $error-color;
.jse-error {
color: $error-color;
}
}
}
Loading

0 comments on commit a213583

Please sign in to comment.