forked from LegoStormtroopr/ramona-ddi-instrument-creator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flowdiagram.css
167 lines (154 loc) · 3.5 KB
/
flowdiagram.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
h2 {margin-bottom:5px;}
#flowchart {float:left;border:1px solid black;}
#flowchart img {max-width:250px;}
#mainWindow {margin-left:255px;border-left:1px solid black;padding-left:10px;}
#instrumentInfo {padding-left:15px;margin-bottom:2px;}
.ifbox, .questionNumber, .sequenceBox, .loopBox, .statementBox {
display:inline-block; width:20px;
text-align:right;
font-weight:bold;
font-size:75%;
border:1px solid black;
padding-right:8px;
text-decoration:none;
margin-right:1ex;
}
/* Start of colours for different objects
The following theme should be used:
* Sequences: Blue
* Loops: Yellow
* If/Conditionals: Green
* Questions: Red
* Statements: Purple
*/
.sequenceBox {
background-color:CornflowerBlue;
}
.loopBox {
background:goldenrod;
}
.ifbox{
background-color:lightgreen;
}
.statementBox{
background-color:violet;
}
.questionNumber{
background-color:salmon;
}
.sequence:hover {
background-color: lightblue;
}
.loop:hover {
background-color:lightyellow;
}
.if:hover {
background-color: lightgreen;
}
/* End Colours */
.questionDetails {
padding-left:50px;
display:block;
position:relative;
top:-15px;
}
.showDetail{
font-size:75%;
border:1px solid black;background-color:lightgray;
padding:2px;
margin-left:5px;
text-decoration:none;
}
.HBD + .detail {
/* Hidden By Default */
display:none;
}
.boxed {
border:1px solid black;
}
.detail {
padding:0px;
margin:0px;
}
ul {
margin:0px;
margin-left:20px;
padding-left:5px;
}
li {
list-style-type:none;
border-left:1px solid lightgray;
background-color: white;
}
.condition {
padding-left:10px;
}
.sequence>li, .loop>li {
list-style-type:none;
border-left:1px solid black;
padding-left:0px;
margin-left:1px;
}
.sequence>li:last-child, .loop>li:last-child {
border-left:0px solid black;
}
.if>li {
list-style-type:none;
border-left:1px solid black;
padding-left:15px;
}
.if>li>strong {
position:relative;
margin-left:-15px;
margin-right:0px;
padding-left:0px;
}
/* The real finicky CSS needed to make sure the borders/listing lines stop at the start of the last list element */
.if>li:last-child {
border-left:0px solid black;
}
/* The following CSS is stuff that makes a real nice tree effect, but doesnt really work in IE. Oh well. */
/* An even more finicky one to get the lines to show up before list elements to complete the tree effect */
.sequence>li:before, .loop>li:before {
content:"\2500";
display:inline;
}
/* The worse one needed to get the right angle line to show up before the last list element */
.sequence>li:last-child:before, .loop>li:last-child:before {
content:"\2514";
position:relative;
left:-5px;
padding-right:0px;
margin-right:0px;
}
/* More crazy CSS to have lines and arrows come before the main conditions in an IfThenElse conditional */
.if>li:before {
content:"\2500\25B6";
display:inline;
position:relative;
left:-15px;
}
/* And the most worstest one needed to get the line and arrow to show up for the last child parts of IfThenElse links. This is usually an else, but could be a Then or ElseIf if no else component is there */
.if>li:last-child:before {
border-left:0px solid black;
content:"\2514\2500\25B6";
display:inline;
position:relative;
top:-4px;
left:-20px;
z-index:-1;
}
.if>li>.detail {
padding-left:20px;
}
.statementText, .statementHead {
font-style: italic;
}
.statementText {
margin: 0px 15px 0px 50px;
max-width:40em;
padding:10px;
border: 1px solid black;
text-align:justify;
background-color:AntiqueWhite;
}