diff --git a/example/app.css b/example/app.css deleted file mode 100644 index fbb6d08b..00000000 --- a/example/app.css +++ /dev/null @@ -1,115 +0,0 @@ -* { - box-sizing: border-box; -} - -body, html { - font-family: 'Open Sans', sans-serif; - - font-size: 12px; - - height: 100%; - padding: 0; - margin: 0; -} - -a:link { - text-decoration: none; -} - - -.content, -.content > div { - width: 100%; - height: 100%; -} - -.content > .message { - text-align: center; - display: table; - - font-size: 16px; - color: #111; -} - -.content > .message .note { - vertical-align: middle; - text-align: center; - display: table-cell; -} - -.content .error .details { - max-width: 500px; - font-size: 12px; - margin: 20px auto; - text-align: left; -} - -.content .error pre { - border: solid 1px #CCC; - background: #EEE; - padding: 10px; -} - -.content:not(.with-error) .error, -.content .canvas, -.content.with-error .canvas, -.content.with-error .intro, -.content.with-diagram .intro { - display: none; -} - -.content.with-diagram .canvas { - display: block; -} - -.buttons { - position: fixed; - bottom: 20px; - left: 20px; - - padding: 0; - margin: 0; - list-style: none; -} - -.buttons > li { - display: inline-block; - padding: 5px 10px; -} - -.buttons a { - opacity: 0.3; -} - -.buttons a.active { - opacity: 1.0; -} - -.buttons a .fa { - font-size: 2em; -} - -@font-face { - font-family: 'FontAwesome'; - src: url('fontawesome.woff') format('woff'); - font-weight: normal; - font-style: normal; -} - -.fa { - display: inline-block; - font-family: FontAwesome; - font-style: normal; - font-weight: normal; - line-height: 1; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.fa-download:before { - content: "\f019"; -} - -.fa-picture-o:before { - content: "\f03e"; -} \ No newline at end of file diff --git a/example/css/app.css b/example/css/app.css new file mode 100644 index 00000000..4833bb7d --- /dev/null +++ b/example/css/app.css @@ -0,0 +1,135 @@ +* { + box-sizing: border-box; +} + +body, html { + + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + + font-size: 12px; + + height: 100%; + padding: 0; + margin: 0; +} + +a:link { + text-decoration: none; +} + + +.content, +.content > div { + width: 100%; + height: 100%; +} + +.content > .message { + text-align: center; + display: table; + + font-size: 16px; + color: #111; +} + +.content > .message .note { + vertical-align: middle; + text-align: center; + display: table-cell; +} + +.content .error .details { + max-width: 500px; + font-size: 12px; + margin: 20px auto; + text-align: left; +} + +.content .error pre { + border: solid 1px #CCC; + background: #EEE; + padding: 10px; +} + +.content:not(.with-error) .error, +.content .canvas, +.content.with-error .canvas, +.content.with-error .intro, +.content.with-diagram .intro { + display: none; +} + +.content.with-diagram .canvas { + display: block; +} + +.buttons { + position: fixed; + bottom: 20px; + left: 20px; + + padding: 0; + margin: 0; + list-style: none; + + font-size: 2em; +} + +.buttons > li { + display: inline-block; + padding: 5px; +} + +.buttons a { + opacity: 0.3; +} + +.buttons a.active { + opacity: 1.0; +} + + +/* icon integration */ +@font-face { + font-family: 'bpmnio-embedded'; + src: url('../font/bpmnio-embedded.eot?52356950'); + src: url('../font/bpmnio-embedded.eot?52356950#iefix') format('embedded-opentype'), + url('../font/bpmnio-embedded.woff?52356950') format('woff'), + url('../font/bpmnio-embedded.ttf?52356950') format('truetype'), + url('../font/bpmnio-embedded.svg?52356950#bpmnio-embedded') format('svg'); + font-weight: normal; + font-style: normal; +} + +[class^="icon-"]:before, +[class*=" icon-"]:before { + font-family: "bpmnio-embedded"; + font-style: normal; + font-weight: normal; + speak: none; + + display: inline-block; + text-decoration: inherit; + width: 1em; + margin-right: .2em; + text-align: center; + + font-variant: normal; + text-transform: none; + + line-height: 1em; + margin-left: .2em; +} + +.icon-bpmn-io:before { content: '\e807'; } +.icon-save:before { content: '\e806'; } +.icon-info:before { content: '\e80b'; } +.icon-download:before { content: '\e80a'; } +.icon-link:before { content: '\e808'; } +.icon-source:before { content: '\e802'; } +.icon-picture:before { content: '\e809'; } +.icon-comments:before { content: '\e801'; } +.icon-resize-full:before { content: '\e800'; } +.icon-resize-small:before { content: '\e805'; } +.icon-diagram:before { content: '\e803'; } +.icon-edit:before { content: '\e804'; } \ No newline at end of file diff --git a/example/css/diagram-js.css b/example/css/diagram-js.css new file mode 100644 index 00000000..624176db --- /dev/null +++ b/example/css/diagram-js.css @@ -0,0 +1,78 @@ +/** + * outline styles + */ +.djs-outline { + fill: none; + visibility: hidden; +} + +.djs-group.hover .djs-outline, +.djs-group.selected .djs-outline { + visibility: visible; + stroke-dasharray: 2,4; +} + +.djs-group.selected .djs-outline { + stroke: blue; + stroke-width: 1px; +} + +.djs-group.hover .djs-outline { + stroke: red; + stroke-width: 1px; +} + +.djs-group.drop-ok .djs-visual { + fill: green; +} + +.djs-group.drop-not-ok .djs-visual { + fill: red; +} + +/** + * drag styles + */ +.djs-dragger { + fill: white; + opacity: 0.3; + stroke: #333; + stroke-dasharray: 2,1; +} + +.djs-shape.djs-dragging { + visibility: hidden; +} + +/** + * hit shape styles + */ +.djs-hit { + stroke-opacity: 0.0; + stroke-width: 10px; + fill: none; +} + +/** + * shape / connection basic styles + */ +.djs-shape .djs-visual { } + +.djs-connection .djs-visual { + stroke-width: 2px; + fill: none; +} + +.djs-connection .djs-bendpoint { + visibility: hidden; +} + +.djs-connection:hover .djs-bendpoint { + visibility: visible; +} + +.djs-connection .djs-bendpoint:hover { + stroke: #CCC; + stroke-width: 1px; + fill: yellow; +} \ No newline at end of file diff --git a/example/diagram-js.css b/example/diagram-js.css deleted file mode 100644 index f82c0248..00000000 --- a/example/diagram-js.css +++ /dev/null @@ -1,154 +0,0 @@ -/** - * outline styles - */ -.djs-outline { - fill: none; - visibility: hidden; -} - -.djs-group.hover .djs-outline, -.djs-group.selected .djs-outline { - visibility: visible; - stroke-dasharray: 2,4; -} - -.djs-group.selected .djs-outline { - stroke: blue; - stroke-width: 1px; -} - -.djs-group.hover .djs-outline { - stroke: red; - stroke-width: 1px; -} - -.djs-group.drop-ok .djs-visual { - fill: green; -} - -.djs-group.drop-not-ok .djs-visual { - fill: red; -} - -/** - * drag styles - */ -.djs-dragger { - fill: white; - opacity: 0.3; - stroke: #333; - stroke-dasharray: 2,1; -} - -.djs-shape.djs-dragging { - visibility: hidden; -} - -/** - * hit shape styles - */ -.djs-hit { - stroke-opacity: 0.0; - stroke-width: 10px; - fill: none; -} - -/** - * shape / connection basic styles - */ -.djs-shape .djs-visual { } - -.djs-connection .djs-visual { - stroke-width: 2px; - fill: none; -} - -.djs-connection .djs-bendpoint { - visibility: hidden; -} - -.djs-connection:hover .djs-bendpoint { - visibility: visible; -} - -.djs-connection .djs-bendpoint:hover { - stroke: #CCC; - stroke-width: 1px; - fill: yellow; -} - -.djs-connection-marker { - fill: black; - stroke: none; -} - -.djs-menu-vertical, .djs-menu-horizontal { - height: 35px; - background-color: #52B415; - padding-left: 10px; -} -.djs-menu-vertical > button { - display:inline-block; - margin-bottom:0; - font-weight:400; - text-align:center; - vertical-align:middle; - cursor:pointer; - background: #52B415 none; - color: white; - border: 0px #ffffff; - border-right-width: 1px; - border-bottom-style: solid; - border-left-width: 1px; - white-space:nowrap; - padding:5px 12px; - font-size:15px; - line-height:1.428571429; - -webkit-user-select:none; - -moz-user-select:none; - -ms-user-select:none; - user-select:none; -} -.djs-menu-vertical > .button:focus{ - outline:thin dotted #333; - outline:5px auto -webkit-focus-ring-color; - outline-offset:-2px; -} -.djs-menu-vertical > .btn:hover,.btn:focus { - color:#707070;text-decoration:none; -} - -.djs-menu-brand { - background: url("logo.png") scroll no-repeat transparent; - background-size: 35px 35px; - width: 35px; - height: 35px; - float: right; -} - -/* Button icons*/ -.djs-undo-button > i:before { - font-family: awesomesymbols; - content: "\f0e2"; - font-style: normal; -} - -.djs-redo-button > i:before { - font-family: awesomesymbols; - content: "\f01e"; - font-style: normal; -} - -.djs-rect-button > i { - width: 10px; - height: 10px; - border: 1px solid; - display: block; -} - -/* Fonts */ -@font-face { - font-family: "awesomesymbols"; - src: url("../fonts/fontawesome-webfont.woff") format('woff'); - font-weight: normal; -} diff --git a/example/font/bpmnio-embedded.eot b/example/font/bpmnio-embedded.eot new file mode 100644 index 00000000..ba5016f2 Binary files /dev/null and b/example/font/bpmnio-embedded.eot differ diff --git a/example/font/bpmnio-embedded.svg b/example/font/bpmnio-embedded.svg new file mode 100644 index 00000000..02f88ea2 --- /dev/null +++ b/example/font/bpmnio-embedded.svg @@ -0,0 +1,23 @@ + + + +Copyright (C) 2014 by original authors @ fontello.com + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/example/font/bpmnio-embedded.ttf b/example/font/bpmnio-embedded.ttf new file mode 100644 index 00000000..89295380 Binary files /dev/null and b/example/font/bpmnio-embedded.ttf differ diff --git a/example/font/bpmnio-embedded.woff b/example/font/bpmnio-embedded.woff new file mode 100644 index 00000000..d1d4ca20 Binary files /dev/null and b/example/font/bpmnio-embedded.woff differ diff --git a/example/fontawesome.woff b/example/fontawesome.woff deleted file mode 100644 index 8c1748aa..00000000 Binary files a/example/fontawesome.woff and /dev/null differ diff --git a/example/index.html b/example/index.html index e6e7bc4c..7bfc5be5 100644 --- a/example/index.html +++ b/example/index.html @@ -2,10 +2,8 @@ bpmn-js demo - - - - + +
@@ -33,12 +31,12 @@ diff --git a/example/viewer/index.html b/example/viewer/index.html index 32be9f7f..5efe3566 100644 --- a/example/viewer/index.html +++ b/example/viewer/index.html @@ -2,10 +2,8 @@ bpmn-js demo - - - - + +
@@ -32,24 +30,27 @@ + \ No newline at end of file