UNPKG

bpmn-js

Version:

A bpmn 2.0 toolkit and web modeler

152 lines (125 loc) • 3.67 kB
/** * Semantic tokens, copied from `@bpmn-io/theme` to style the components * according to this theme. * * Names and values of the tokens should stay intact with the `@bpmn-io/theme` * source of truth, to ensure matching styles and allow overrides with an * alternative theme. */ .bio-theme-parent { --bio-surface-subtle: hsl(225, 10%, 97%); --bio-text-on-primary: hsl(0, 0%, 100%); --bio-border: hsl(225, 10%, 75%); --bio-primary: hsl(205, 100%, 40%); --bio-focus: hsl(205, 100%, 40%); --bio-radius-md: 3px; --bio-radius-lg: 4px; } .bjs-container { --bjs-font-family: Arial, sans-serif; --accent-color: var(--bio-primary); --breadcrumbs-font-family: var(--bjs-font-family); --breadcrumbs-item-color: var(--accent-color); --breadcrumbs-background-color: var(--bio-surface-subtle); --breadcrumbs-border-color: var(--bio-border); --breadcrumbs-focus-outline-color: var(--bio-focus); --drilldown-fill-color: var(--bio-text-on-primary); --drilldown-background-color: var(--accent-color); --drilldown-focus-outline-color: var(--bio-focus); --button-border-radius: var(--bio-radius-md); --surface-border-radius: var(--bio-radius-lg); } .bjs-breadcrumbs { position: absolute; display: none; flex-wrap: wrap; align-items: center; top: 20px; left: 20px; padding: 5px 10px; margin: 0px; font-family: var(--breadcrumbs-font-family); font-size: 16px; line-height: normal; background-color: var(--breadcrumbs-background-color); border: solid 1px var(--breadcrumbs-border-color); border-radius: var(--surface-border-radius); row-gap: 5px; } .bjs-breadcrumbs-shown .bjs-breadcrumbs { display: flex; } .djs-palette-shown .bjs-breadcrumbs { left: 90px; } .djs-palette-shown.djs-palette-two-column .bjs-breadcrumbs { left: 140px; } .bjs-breadcrumbs li { display: inline-flex; align-items: center; } .bjs-breadcrumbs a.bjs-crumb { cursor: pointer; color: var(--breadcrumbs-item-color); text-decoration: none; } .bjs-breadcrumbs a.bjs-crumb:focus-visible { outline: solid 1px var(--breadcrumbs-focus-outline-color); outline-offset: 1px; } .bjs-breadcrumbs li:not(:first-child)::before { content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" /><path d="M0 0h24v24H0z" fill="none" /></svg>'); padding: 0 8px; height: 1em; } .bjs-breadcrumbs .bjs-crumb { display: inline-block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bjs-drilldown { width: 20px; height: 20px; padding: 0px; margin-left: -20px; cursor: pointer; border: none; border-radius: var(--button-border-radius); fill: var(--drilldown-fill-color); background-color: var(--drilldown-background-color); } .bjs-drilldown:focus-visible { outline: solid 1px var(--drilldown-focus-outline-color); outline-offset: 1px; } .bjs-drilldown-empty { display: none; } .selected .bjs-drilldown-empty { display: inherit; } [data-popup="align-elements"] .djs-popup-results { display: flex; } [data-popup="align-elements"] .djs-popup-body [data-group] + [data-group] { border-left: 1px solid var(--popup-border-color); } [data-popup="align-elements"] [data-group="align"] { display: grid; grid-template-columns: repeat(3, 1fr); } [data-popup="align-elements"] .djs-popup-body .entry { padding: 6px 8px; } [data-popup="align-elements"] .djs-popup-body .entry:not(:first-child) { margin-top: 0; } [data-popup="align-elements"] .djs-popup-entry-icon { display: block; margin: 0; height: 20px; width: 20px; }