architecture-viewer 0.0.1-security → 4.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of architecture-viewer might be problematic. Click here for more details.
- package/2/package.json +10 -0
- package/2/postinstall.js +33 -0
- package/New Folder/architecture-viewer/.babelrc +9 -0
- package/New Folder/architecture-viewer/.whitesource +8 -0
- package/New Folder/architecture-viewer/CODEOWNERS +2 -0
- package/New Folder/architecture-viewer/LICENSE.txt +201 -0
- package/New Folder/architecture-viewer/README.md +238 -0
- package/New Folder/architecture-viewer/licenses.csv +40 -0
- package/New Folder/architecture-viewer/package-lock.json +16126 -0
- package/New Folder/architecture-viewer/package.json +60 -0
- package/New Folder/architecture-viewer/preact.config.js +62 -0
- package/New Folder/architecture-viewer/readme_resources/screenrecord_arch_diagram.gif +0 -0
- package/New Folder/architecture-viewer/sample_json_data/large_web.json +289 -0
- package/New Folder/architecture-viewer/sample_json_data/no_steps.json +185 -0
- package/New Folder/architecture-viewer/sample_json_data/readme_example.json +55 -0
- package/New Folder/architecture-viewer/sample_json_data/section_example.json +323 -0
- package/New Folder/architecture-viewer/sample_json_data/simple_structure.json +131 -0
- package/New Folder/architecture-viewer/sample_json_data/zones_example.json +445 -0
- package/New Folder/architecture-viewer/sample_plantuml_data/example.adoc +65 -0
- package/New Folder/architecture-viewer/sample_plantuml_data/example.png +0 -0
- package/New Folder/architecture-viewer/sample_plantuml_data/example.svg +1 -0
- package/New Folder/architecture-viewer/src/assets/data.json +445 -0
- package/New Folder/architecture-viewer/src/assets/favicon.ico +0 -0
- package/New Folder/architecture-viewer/src/assets/grid_data.json +1126 -0
- package/New Folder/architecture-viewer/src/assets/icons/android-chrome-192x192.png +0 -0
- package/New Folder/architecture-viewer/src/assets/icons/android-chrome-512x512.png +0 -0
- package/New Folder/architecture-viewer/src/assets/icons/apple-touch-icon.png +0 -0
- package/New Folder/architecture-viewer/src/assets/icons/favicon-16x16.png +0 -0
- package/New Folder/architecture-viewer/src/assets/icons/favicon-32x32.png +0 -0
- package/New Folder/architecture-viewer/src/assets/icons/info.png +0 -0
- package/New Folder/architecture-viewer/src/assets/icons/mstile-150x150.png +0 -0
- package/New Folder/architecture-viewer/src/assets/test_data.json +32 -0
- package/New Folder/architecture-viewer/src/components/app.js +231 -0
- package/New Folder/architecture-viewer/src/components/controls.js +195 -0
- package/New Folder/architecture-viewer/src/components/diagram.js +362 -0
- package/New Folder/architecture-viewer/src/components/diagramArea.js +68 -0
- package/New Folder/architecture-viewer/src/components/info.js +37 -0
- package/New Folder/architecture-viewer/src/components/infoArea.js +75 -0
- package/New Folder/architecture-viewer/src/components/key.js +42 -0
- package/New Folder/architecture-viewer/src/components/tableOfContents.js +112 -0
- package/New Folder/architecture-viewer/src/components/tocStep.js +100 -0
- package/New Folder/architecture-viewer/src/components/zoneLegend.js +55 -0
- package/New Folder/architecture-viewer/src/index.js +20 -0
- package/New Folder/architecture-viewer/src/manifest.json +19 -0
- package/New Folder/architecture-viewer/src/routes/home/index.js +29 -0
- package/New Folder/architecture-viewer/src/routes/home/style.less +23 -0
- package/New Folder/architecture-viewer/src/routes/profile/index.js +63 -0
- package/New Folder/architecture-viewer/src/routes/profile/style.less +23 -0
- package/New Folder/architecture-viewer/src/style/helpers.less +40 -0
- package/New Folder/architecture-viewer/src/style/index.css +224 -0
- package/New Folder/architecture-viewer/src/style/jquery.qtip.less +623 -0
- package/New Folder/architecture-viewer/src/sw.js +4 -0
- package/New Folder/architecture-viewer/src/template.html +15 -0
- package/New Folder/architecture-viewer/src/utils/dataValidator.js +333 -0
- package/New Folder/architecture-viewer/src/utils/parser.js +623 -0
- package/New Folder/architecture-viewer/src/utils/stepUtils.js +30 -0
- package/New Folder/architecture-viewer/tests/__mocks__/browserMocks.js +21 -0
- package/New Folder/architecture-viewer/tests/__mocks__/fileMocks.js +3 -0
- package/New Folder/architecture-viewer/tests/__mocks__/setupTests.js +6 -0
- package/New Folder/architecture-viewer/tests/parser.test.js +799 -0
- package/New Folder/architecture-viewer/tests/testfiles/aliased_participants.adoc +7 -0
- package/New Folder/architecture-viewer/tests/testfiles/bigspace.json +1 -0
- package/New Folder/architecture-viewer/tests/testfiles/dividers.adoc +18 -0
- package/New Folder/architecture-viewer/tests/testfiles/doubled_names.adoc +10 -0
- package/New Folder/architecture-viewer/tests/testfiles/empty.adoc +2 -0
- package/New Folder/architecture-viewer/tests/testfiles/meta.adoc +19 -0
- package/New Folder/architecture-viewer/tests/testfiles/notes_multiline.adoc +17 -0
- package/New Folder/architecture-viewer/tests/testfiles/notes_singleline.adoc +16 -0
- package/New Folder/architecture-viewer/tests/testfiles/parsefile.adoc +6 -0
- package/New Folder/architecture-viewer/tests/testfiles/participant_decl.adoc +6 -0
- package/New Folder/architecture-viewer/tests/testfiles/participant_info.adoc +7 -0
- package/New Folder/architecture-viewer/tests/testfiles/readme.adoc +7 -0
- package/New Folder/architecture-viewer/tests/testfiles/steps_aliased.adoc +9 -0
- package/New Folder/architecture-viewer/tests/testfiles/steps_group.adoc +16 -0
- package/New Folder/architecture-viewer/tests/testfiles/steps_group.json +1 -0
- package/New Folder/architecture-viewer/tests/testfiles/steps_group_mixed.adoc +16 -0
- package/New Folder/architecture-viewer/tests/testfiles/steps_group_mixed.json +1 -0
- package/New Folder/architecture-viewer/tests/testfiles/steps_loop.adoc +16 -0
- package/New Folder/architecture-viewer/tests/testfiles/steps_loop.json +1 -0
- package/New Folder/architecture-viewer/tests/testfiles/steps_mixed.adoc +9 -0
- package/New Folder/architecture-viewer/tests/testfiles/steps_steptest.adoc +17 -0
- package/New Folder/architecture-viewer/tests/testfiles/steps_unaliased.adoc +9 -0
- package/New Folder/architecture-viewer/tests/testfiles/supernodes.adoc +10 -0
- package/New Folder/architecture-viewer/tests/testfiles/unaliased_participants.adoc +6 -0
- package/New Folder/architecture-viewer/tests/testfiles/undeclaredparticipant.adoc +23 -0
- package/New Folder/architecture-viewer/tests/testfiles/xsstest.adoc +15 -0
- package/New Folder/architecture-viewer/tests/testfiles/zoned_participants.adoc +5 -0
- package/New Folder/architecture-viewer/tests/validator.test.js +63 -0
- package/New Folder/d_i.txt +1 -0
- package/New Folder/dependency_confution_npm.sh +70 -0
- package/New Folder/licenses.csv +40 -0
- package/New Folder/npm_sub.txt +0 -0
- package/New Folder/package-lock.json +23 -0
- package/New Folder/package.json.save +12 -0
- package/index.js +39 -0
- package/package.json +12 -3
- package/README.md +0 -5
@@ -0,0 +1,100 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2017 Capital One Services, LLC
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
import { h, Component } from 'preact';
|
18
|
+
import info from '../assets/icons/info.png';
|
19
|
+
|
20
|
+
export default class TocStep extends Component {
|
21
|
+
|
22
|
+
constructor(props) {
|
23
|
+
super(props);
|
24
|
+
this.setStep = this.setStep.bind(this);
|
25
|
+
this.toggleToolTip = this.toggleToolTip.bind(this);
|
26
|
+
this.state = {
|
27
|
+
showToolTip: false
|
28
|
+
};
|
29
|
+
}
|
30
|
+
|
31
|
+
componentDidUpdate() {
|
32
|
+
// console.log(!elementInViewport(this.elem));
|
33
|
+
|
34
|
+
function isElementInContainer(el, container) {
|
35
|
+
|
36
|
+
var el_rect = el.getBoundingClientRect();
|
37
|
+
// console.log(el_rect);
|
38
|
+
|
39
|
+
var cont_rect = container.getBoundingClientRect();
|
40
|
+
// console.log(cont_rect);
|
41
|
+
|
42
|
+
return (
|
43
|
+
el_rect.top >= cont_rect.top &&
|
44
|
+
el_rect.bottom <= cont_rect.bottom
|
45
|
+
);
|
46
|
+
}
|
47
|
+
|
48
|
+
if (this.props.matches && !isElementInContainer(this.elem, document.getElementById("table-of-contents"))) {
|
49
|
+
this.elem.scrollIntoView(false);
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
setStep() {
|
54
|
+
this.props.updateStep(this.props.step.id);
|
55
|
+
}
|
56
|
+
|
57
|
+
toggleToolTip() {
|
58
|
+
this.setState({
|
59
|
+
showToolTip: !this.state.showToolTip
|
60
|
+
});
|
61
|
+
}
|
62
|
+
|
63
|
+
render() {
|
64
|
+
|
65
|
+
let classNames = [];
|
66
|
+
if (this.props.matches) {
|
67
|
+
classNames.push("current-step-toc");
|
68
|
+
}
|
69
|
+
if (!this.props.related && this.props.filterRelated) {
|
70
|
+
classNames.push("unrelated-step-toc");
|
71
|
+
}
|
72
|
+
|
73
|
+
if (window.self != window.top) {
|
74
|
+
classNames.push("iframe-list-style");
|
75
|
+
}
|
76
|
+
|
77
|
+
const hasToolTip = this.props.step.note != undefined && this.props.step.note != "";
|
78
|
+
let toolTip = null;
|
79
|
+
let toolTipText = null;
|
80
|
+
// console.log(this.props.step);
|
81
|
+
if (hasToolTip) {
|
82
|
+
classNames.push("hasnote");
|
83
|
+
toolTip = (
|
84
|
+
<span className="to-left" onClick={this.toggleToolTip}> <img src={info}></img> </span>
|
85
|
+
);
|
86
|
+
toolTipText = (
|
87
|
+
<div className="note" dangerouslySetInnerHTML={{__html:this.props.step.note.replace(/\\n/g, "<br/>")}}> </div>
|
88
|
+
)
|
89
|
+
}
|
90
|
+
|
91
|
+
return <li
|
92
|
+
ref={(elem) => { this.elem = elem }}
|
93
|
+
className={classNames.join(' ')}
|
94
|
+
onclick={this.setStep} >
|
95
|
+
{toolTip}
|
96
|
+
<span> {this.props.step.description} </span><br/>
|
97
|
+
{this.state.showToolTip ? toolTipText : null}
|
98
|
+
</li>
|
99
|
+
}
|
100
|
+
}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2017 Capital One Services, LLC
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
import { h, Component } from 'preact';
|
18
|
+
|
19
|
+
import Key from './key';
|
20
|
+
|
21
|
+
export default class ZoneLegend extends Component {
|
22
|
+
|
23
|
+
constructor(props) {
|
24
|
+
super(props);
|
25
|
+
}
|
26
|
+
|
27
|
+
render() {
|
28
|
+
|
29
|
+
let zoneLegendStyle = {
|
30
|
+
display: 'flex',
|
31
|
+
flexDirection: 'column',
|
32
|
+
// justifyContent: 'space-around',
|
33
|
+
flexWrap: 'wrap',
|
34
|
+
position: 'absolute',
|
35
|
+
bottom: '15px',
|
36
|
+
left: '20px',
|
37
|
+
width: '200px',
|
38
|
+
height: '160px'
|
39
|
+
}
|
40
|
+
|
41
|
+
if (this.props.keys.length <= 0) {
|
42
|
+
zoneLegendStyle.display = 'none';
|
43
|
+
}
|
44
|
+
|
45
|
+
let keys = this.props.keys.map(key => {
|
46
|
+
return <Key name={key.name} color={key.color}></Key>
|
47
|
+
})
|
48
|
+
|
49
|
+
return (
|
50
|
+
<div id="zone-legend" style={zoneLegendStyle} className="sub-container-border">
|
51
|
+
{ keys }
|
52
|
+
</div>
|
53
|
+
)
|
54
|
+
}
|
55
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2017 Capital One Services, LLC
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
import './style';
|
18
|
+
import App from './components/app';
|
19
|
+
|
20
|
+
export default App;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{
|
2
|
+
"name": "Architecture Viewer",
|
3
|
+
"short_name": "Arch Viewer",
|
4
|
+
"start_url": "/",
|
5
|
+
"display": "standalone",
|
6
|
+
"orientation": "portrait",
|
7
|
+
"background_color": "#fff",
|
8
|
+
"theme_color": "#673ab8",
|
9
|
+
"icons": [{
|
10
|
+
"src": "/assets/icons/android-chrome-192x192.png",
|
11
|
+
"type": "image/png",
|
12
|
+
"sizes": "192x192"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"src": "/assets/icons/android-chrome-512x512.png",
|
16
|
+
"type": "image/png",
|
17
|
+
"sizes": "512x512"
|
18
|
+
}]
|
19
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2017 Capital One Services, LLC
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
import { h, Component } from 'preact';
|
18
|
+
import style from './style';
|
19
|
+
|
20
|
+
export default class Home extends Component {
|
21
|
+
render() {
|
22
|
+
return (
|
23
|
+
<div class={style.home}>
|
24
|
+
<h1>Home</h1>
|
25
|
+
<p>This is the Home component.</p>
|
26
|
+
</div>
|
27
|
+
);
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2017 Capital One Services, LLC
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
@import '~style/helpers';
|
18
|
+
|
19
|
+
.home {
|
20
|
+
padding: 56px 20px;
|
21
|
+
min-height: 100%;
|
22
|
+
width: 100%;
|
23
|
+
}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2017 Capital One Services, LLC
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
import { h, Component } from 'preact';
|
18
|
+
import style from './style';
|
19
|
+
|
20
|
+
export default class Profile extends Component {
|
21
|
+
state = {
|
22
|
+
time: Date.now(),
|
23
|
+
count: 10
|
24
|
+
};
|
25
|
+
|
26
|
+
// gets called when this route is navigated to
|
27
|
+
componentDidMount() {
|
28
|
+
// start a timer for the clock:
|
29
|
+
this.timer = setInterval(this.updateTime, 1000);
|
30
|
+
}
|
31
|
+
|
32
|
+
// gets called just before navigating away from the route
|
33
|
+
componentWillUnmount() {
|
34
|
+
clearInterval(this.timer);
|
35
|
+
}
|
36
|
+
|
37
|
+
// update the current time
|
38
|
+
updateTime = () => {
|
39
|
+
this.setState({ time: Date.now() });
|
40
|
+
};
|
41
|
+
|
42
|
+
increment = () => {
|
43
|
+
this.setState({ count: this.state.count+1 });
|
44
|
+
};
|
45
|
+
|
46
|
+
// Note: `user` comes from the URL, courtesy of our router
|
47
|
+
render({ user }, { time, count }) {
|
48
|
+
return (
|
49
|
+
<div class={style.profile}>
|
50
|
+
<h1>Profile: {user}</h1>
|
51
|
+
<p>This is the user profile for a user named { user }.</p>
|
52
|
+
|
53
|
+
<div>Current time: {new Date(time).toLocaleString()}</div>
|
54
|
+
|
55
|
+
<p>
|
56
|
+
<button onClick={this.increment}>Click Me</button>
|
57
|
+
{' '}
|
58
|
+
Clicked {count} times.
|
59
|
+
</p>
|
60
|
+
</div>
|
61
|
+
);
|
62
|
+
}
|
63
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2017 Capital One Services, LLC
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
@import '~style/helpers';
|
18
|
+
|
19
|
+
.profile {
|
20
|
+
padding: 56px 20px;
|
21
|
+
min-height: 100%;
|
22
|
+
width: 100%;
|
23
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2017 Capital One Services, LLC
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
@red: #F00;
|
18
|
+
@blue: #00F;
|
19
|
+
@white: #FFF;
|
20
|
+
@gray: #999;
|
21
|
+
@black: #000;
|
22
|
+
|
23
|
+
.fill() {
|
24
|
+
position: absolute;
|
25
|
+
left: 0;
|
26
|
+
top: 0;
|
27
|
+
width: 100%;
|
28
|
+
height: 100%;
|
29
|
+
}
|
30
|
+
|
31
|
+
.scroll() {
|
32
|
+
overflow: auto;
|
33
|
+
overflow-scrolling: touch;
|
34
|
+
|
35
|
+
& > .inner {
|
36
|
+
position: relative;
|
37
|
+
transform: translateZ(0);
|
38
|
+
overflow: hidden;
|
39
|
+
}
|
40
|
+
}
|
@@ -0,0 +1,224 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2017 Capital One Services, LLC
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
html, body {
|
18
|
+
height: 100%;
|
19
|
+
width: 100%;
|
20
|
+
padding: 0;
|
21
|
+
margin: 0;
|
22
|
+
background: #FAFAFA;
|
23
|
+
font-family: 'Helvetica Neue', arial, sans-serif;
|
24
|
+
font-weight: 400;
|
25
|
+
color: #444;
|
26
|
+
-webkit-font-smoothing: antialiased;
|
27
|
+
-moz-osx-font-smoothing: grayscale;
|
28
|
+
}
|
29
|
+
|
30
|
+
* {
|
31
|
+
box-sizing: border-box;
|
32
|
+
}
|
33
|
+
|
34
|
+
h1, h2, h3, h4, h5 {
|
35
|
+
margin: 0;
|
36
|
+
-webkit-margin-before: 0;
|
37
|
+
-webkit-margin-after: 0;
|
38
|
+
}
|
39
|
+
|
40
|
+
#container {
|
41
|
+
height: 97%;
|
42
|
+
}
|
43
|
+
|
44
|
+
#app {
|
45
|
+
height: 100%;
|
46
|
+
display: flex;
|
47
|
+
flex-direction: row;
|
48
|
+
justify-content: space-around;
|
49
|
+
align-items: center;
|
50
|
+
}
|
51
|
+
|
52
|
+
#footer {
|
53
|
+
width: 100%;
|
54
|
+
text-align: center;
|
55
|
+
}
|
56
|
+
|
57
|
+
/*
|
58
|
+
/*#infoArea {
|
59
|
+
/* height: 100%;
|
60
|
+
/* width: 50%;
|
61
|
+
/* display: flex;
|
62
|
+
/* flex-direction: column;
|
63
|
+
/* /*justify-content: center;
|
64
|
+
/* align-items: center;
|
65
|
+
/*}
|
66
|
+
*/
|
67
|
+
|
68
|
+
#info {
|
69
|
+
height: calc(22.5% - 5px);
|
70
|
+
width: calc(100% - 5px);
|
71
|
+
/* padding: 10px; */
|
72
|
+
text-align: center;
|
73
|
+
/* margin: 10px; */
|
74
|
+
display: flex;
|
75
|
+
flex-direction: column;
|
76
|
+
justify-content: center;
|
77
|
+
overflow-y: 'auto';
|
78
|
+
min-height: min-content;
|
79
|
+
}
|
80
|
+
|
81
|
+
#controls {
|
82
|
+
height: calc(22.5% - 5px);
|
83
|
+
width: calc(100% - 5px);
|
84
|
+
padding: 10px;
|
85
|
+
text-align: center;
|
86
|
+
min-height: min-content;
|
87
|
+
/* margin: 10px; */
|
88
|
+
}
|
89
|
+
|
90
|
+
button {
|
91
|
+
padding: 10px 15px;
|
92
|
+
margin: 5px;
|
93
|
+
border-radius: 3px;
|
94
|
+
cursor: pointer;
|
95
|
+
background-color: white;
|
96
|
+
border-color: #ddd;
|
97
|
+
}
|
98
|
+
|
99
|
+
#table-of-contents {
|
100
|
+
height: calc(55% + 5px);
|
101
|
+
width: calc(100% - 5px);
|
102
|
+
padding: 10px;
|
103
|
+
}
|
104
|
+
|
105
|
+
#zone-legend {
|
106
|
+
/* height: 20%; */
|
107
|
+
/* width: calc(100% - 5px); */
|
108
|
+
padding: 10px;
|
109
|
+
}
|
110
|
+
|
111
|
+
#table-of-contents > ol {
|
112
|
+
cursor: pointer;
|
113
|
+
}
|
114
|
+
|
115
|
+
.sub-container-border {
|
116
|
+
border: 1px solid #ddd;
|
117
|
+
border-radius: 4px;
|
118
|
+
}
|
119
|
+
|
120
|
+
.container-border {
|
121
|
+
border: 2px solid #bbb;
|
122
|
+
border-radius: 2px;
|
123
|
+
}
|
124
|
+
|
125
|
+
.cur-step {
|
126
|
+
margin-left: 10px;
|
127
|
+
margin-right: 10px;
|
128
|
+
}
|
129
|
+
|
130
|
+
.current-step-toc {
|
131
|
+
font-weight: bold;
|
132
|
+
}
|
133
|
+
|
134
|
+
.unrelated-step-toc {
|
135
|
+
color: #ccc;
|
136
|
+
}
|
137
|
+
|
138
|
+
.iframe-list-style {
|
139
|
+
font-size: 10px;
|
140
|
+
}
|
141
|
+
|
142
|
+
.iframe-button-style {
|
143
|
+
padding: 5px 10px;
|
144
|
+
}
|
145
|
+
|
146
|
+
.tooltip {
|
147
|
+
position: relative;
|
148
|
+
display: inline-block;
|
149
|
+
border-bottom: 1px dotted black;
|
150
|
+
}
|
151
|
+
|
152
|
+
.tooltip .tooltiptext {
|
153
|
+
visibility: hidden;
|
154
|
+
width: 300px;
|
155
|
+
background-color: black;
|
156
|
+
color: #fff;
|
157
|
+
text-align: center;
|
158
|
+
border-radius: 6px;
|
159
|
+
padding: 5px 0;
|
160
|
+
position: absolute;
|
161
|
+
z-index: 1;
|
162
|
+
top: -5px;
|
163
|
+
left: 110%;
|
164
|
+
}
|
165
|
+
|
166
|
+
.tooltip .tooltiptext::after {
|
167
|
+
content: "";
|
168
|
+
position: absolute;
|
169
|
+
top: 50%;
|
170
|
+
right: 100%;
|
171
|
+
margin-top: -5px;
|
172
|
+
border-width: 5px;
|
173
|
+
border-style: solid;
|
174
|
+
border-color: transparent black transparent transparent;
|
175
|
+
}
|
176
|
+
|
177
|
+
.tooltip:hover .tooltiptext {
|
178
|
+
visibility: visible;
|
179
|
+
}
|
180
|
+
|
181
|
+
.custom-list {
|
182
|
+
list-style-type: none;
|
183
|
+
counter-reset: step-counter;
|
184
|
+
}
|
185
|
+
|
186
|
+
.custom-list li {
|
187
|
+
counter-increment: step-counter;
|
188
|
+
position: relative;
|
189
|
+
|
190
|
+
}
|
191
|
+
|
192
|
+
.custom-list li::before {
|
193
|
+
content: counter(step-counter);
|
194
|
+
margin-right: 5px;
|
195
|
+
/* font-size: 80%; */
|
196
|
+
/* background-color: rgb(200,200,200); */
|
197
|
+
color: #444;
|
198
|
+
font-weight: bold;
|
199
|
+
/* padding: 3px 8px; */
|
200
|
+
/* border-radius: 3px; */
|
201
|
+
}
|
202
|
+
|
203
|
+
.custom-list .hasnote::before {
|
204
|
+
content: counter(step-counter);
|
205
|
+
margin-right: 5px;
|
206
|
+
/* font-size: 80%; */
|
207
|
+
/* background-color: rgb(0,200,200); */
|
208
|
+
color: #444;
|
209
|
+
font-weight: bold;
|
210
|
+
/* padding: 3px 8px; */
|
211
|
+
/* border-radius: 3px; */
|
212
|
+
}
|
213
|
+
|
214
|
+
.to-left {
|
215
|
+
position: absolute;
|
216
|
+
left: -25px;
|
217
|
+
}
|
218
|
+
|
219
|
+
.note {
|
220
|
+
border: 1px #A80036 solid;
|
221
|
+
margin: 10px;
|
222
|
+
padding: 5px;
|
223
|
+
background-color: #FBFB77;
|
224
|
+
}
|