Skip to content

Commit

Permalink
fix: style pre blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasbouttell-camunda committed Jun 14, 2024
1 parent 12f4d5e commit 7803ebd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions packages/form-js-viewer/assets/form-js-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
--color-background-active: var(--cds-background-active, var(--color-grey-225-10-75));
--color-layer: var(--cds-layer, var(--cds-layer-01, var(--color-white)));
--color-layer-accent: var(--cds-layer-accent, var(--color-grey-0-0-88));
--color-background-pre: var(--cds-layer, var(--cds-layer-01, var(--color-white)));

--color-icon-base: var(--cds-icon-primary, var(--color-black));
--color-icon-inverted: var(--cds-icon-inverse, var(--color-black));
Expand All @@ -66,6 +67,7 @@
--color-borders-adornment: var(--cds-border-subtle, var(--cds-border-subtle-01, var(--color-grey-225-10-85)));
--color-borders-readonly: var(--cds-border-subtle, var(--color-grey-225-10-75));
--color-borders-inverted: var(--cds-border-inverse, var(--color-grey-225-10-90));
--color-borders-pre: var(--cds-border-subtle, var(--color-grey-225-10-85));

--color-warning: var(--cds-text-error, var(--color-red-360-100-45));
--color-warning-light: var(--cds-text-error, var(--color-red-360-100-92));
Expand Down Expand Up @@ -833,6 +835,13 @@
white-space: nowrap;
}

.fjs-container .fjs-form-field-html pre,
.fjs-container .fjs-form-field-text pre {
border: 1px solid var(--color-borders-pre);
background: var(--color-background-pre);
padding: 4px;
}

.fjs-container .fjs-taglist-anchor,
.fjs-container .fjs-select-anchor,
.fjs-container .fjs-timepicker-anchor {
Expand Down

0 comments on commit 7803ebd

Please sign in to comment.