|
4 | 4 | <meta charset="utf-8"> |
5 | 5 | <title>Organization Chart Plugin</title> |
6 | 6 | <link rel="icon" href="img/logo.png"> |
7 | | - <link rel="stylesheet" href="css/font-awesome.min.css"> |
8 | 7 | <link rel="stylesheet" href="css/jquery.orgchart.css"> |
9 | 8 | <link rel="stylesheet" href="css/style.css"> |
10 | 9 | <style type="text/css"> |
11 | 10 | #chart-container { background-color: #eee; height: 500px; } |
12 | 11 | .orgchart { background: #fff; } |
13 | 12 | .orgchart.edit-state .edge { display: none; } |
14 | | - .orgchart .node { width: 150px; } |
15 | 13 | .orgchart .node .title { height: 30px; line-height: 30px; } |
16 | | - .orgchart .node .title .symbol { margin-top: 1px; } |
17 | 14 | #edit-panel { |
18 | 15 | position: relative; |
19 | 16 | left: 10px; |
|
25 | 22 | color: #fff; |
26 | 23 | background-color: #449d44; |
27 | 24 | } |
28 | | - #edit-panel .btn-inputs { font-size: 24px; } |
| 25 | + #edit-panel .btn-inputs::before { |
| 26 | + background-color: #fff; |
| 27 | + color: #449d44; |
| 28 | + width: 1.5rem; |
| 29 | + height: 1.5rem; |
| 30 | + border-radius: 0.75rem; |
| 31 | + font-size: 1.5rem; |
| 32 | + } |
| 33 | + #edit-panel .btn-inputs { vertical-align: sub; } |
| 34 | + #edit-panel.edit-parent-node .btn-inputs { display: none; } |
| 35 | + #edit-panel .btn-inputs:hover::before { font-weight: bolder; } |
29 | 36 | #edit-panel.edit-state>:not(#chart-state-panel) { display: none; } |
30 | 37 | #edit-panel label { font-weight: bold; } |
31 | 38 | #edit-panel.edit-parent-node .selected-node-group { display: none; } |
|
64 | 71 | vertical-align: text-top; |
65 | 72 | } |
66 | 73 | #new-nodelist>* { padding-bottom: 4px; } |
67 | | - .btn-inputs { vertical-align: sub; } |
68 | | - #edit-panel.edit-parent-node .btn-inputs { display: none; } |
69 | | - .btn-inputs:hover { text-shadow: 0 0 4px #fff; } |
70 | 74 | .radio-panel input[type='radio'] { display: inline-block;height: 24px;width: 24px;vertical-align: top; } |
71 | 75 | #edit-panel.view-state .radio-panel input[type='radio']+label { vertical-align: -webkit-baseline-middle; } |
72 | 76 | #btn-add-nodes { margin-left: 20px; } |
|
85 | 89 | <ul id="new-nodelist"> |
86 | 90 | <li><input type="text" class="new-node"></li> |
87 | 91 | </ul> |
88 | | - <i class="fa fa-plus-circle btn-inputs" id="btn-add-input"></i> |
89 | | - <i class="fa fa-minus-circle btn-inputs" id="btn-remove-input"></i> |
| 92 | + <i class="oci oci-plus-circle btn-inputs" id="btn-add-input"></i> |
| 93 | + <i class="oci oci-minus-circle btn-inputs" id="btn-remove-input"></i> |
90 | 94 | <span id="node-type-panel" class="radio-panel"> |
91 | 95 | <input type="radio" name="node-type" id="rd-parent" value="parent"><label for="rd-parent">Parent(root)</label> |
92 | 96 | <input type="radio" name="node-type" id="rd-child" value="children"><label for="rd-child">Child</label> |
|
120 | 124 | 'chartClass': 'edit-state', |
121 | 125 | 'exportButton': true, |
122 | 126 | 'exportFilename': 'SportsChart', |
123 | | - 'parentNodeSymbol': 'fa-th-large', |
124 | 127 | 'createNode': function($node, data) { |
125 | 128 | $node[0].id = getId(); |
126 | 129 | } |
|
203 | 206 | 'data' : { 'name': nodeVals[0] }, |
204 | 207 | 'exportButton': true, |
205 | 208 | 'exportFilename': 'SportsChart', |
206 | | - 'parentNodeSymbol': 'fa-th-large', |
207 | 209 | 'createNode': function($node, data) { |
208 | 210 | $node[0].id = getId(); |
209 | 211 | } |
|
0 commit comments