Skip to content

Commit a8ced17

Browse files
committed
Add layout for second side bar and example text
1 parent 987ca8b commit a8ced17

File tree

1 file changed

+88
-38
lines changed

1 file changed

+88
-38
lines changed

indra/assemblers/html/templates/indra/template.html

Lines changed: 88 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -85,24 +85,23 @@
8585
margin-bottom: 0;
8686
}
8787

88-
/* Footer links */
89-
.il-nav-link {
90-
display: block;
91-
margin: 5px 0;
92-
color: #256DC5; /* Blue color */
93-
text-decoration: none;
94-
}
9588

96-
.il-nav-link:hover {
97-
text-decoration: underline;
98-
color: #007bff;
99-
}
10089

10190
#about-this-project p, #about-this-project a {
10291
font-size: 9pt;
10392
margin-bottom: 0;
10493
}
10594

95+
.mid-right {
96+
position: fixed;
97+
top: 0;
98+
bottom: 0;
99+
right: 0;
100+
width: 20em;
101+
background: #fff;
102+
padding-top: 85px;
103+
overflow-y: auto;
104+
}
106105
.right {
107106
width: 20em; /* Sidebar width */
108107
right: 0;
@@ -112,17 +111,18 @@
112111
background-color: #fff; /* White background */
113112
overflow-y: auto; /* Allow scrolling if content overflows */
114113
}
114+
.mid-right { box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); }
115+
.right { box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); }
115116

116117
/* The navigation menu links */
117-
.side-info .il-nav-link {
118+
.side-info{
118119
font-size: 12pt;
119120
target-new: tab;
120121
display: block;
121122
}
122123

123124
.side-info h4 {
124125
font-size: 10pt;
125-
display: block;
126126
text-decoration: none;
127127
margin-bottom: 0;
128128
}
@@ -156,41 +156,30 @@
156156

157157
{% if not simple %}
158158
.content {
159+
margin-right: calc(15% + 20%);
159160
padding-top:85px;
160161
padding-bottom: 65px
161162
}
162163

163164
@media (max-width: 1800px) {
164-
.right {
165-
width: 15%;
166-
}
167-
.container {
168-
float: left;
169-
}
170-
.footer {
171-
right: 15%;
172-
}
165+
.right { width: 15%; }
166+
.mid-right { width: 20%; right: 15%; }
167+
.content { margin-right: calc(15% + 20%); }
168+
.footer { right: calc(15% + 20%); }
173169
}
174170

175171
@media (max-width: 1500px) {
176-
.container {
177-
max-width: 960px;
178-
}
179-
.right {
180-
width: 15%;
181-
}
182-
.footer {
183-
right: 15%;
184-
}
172+
.right { width: 15%; }
173+
.mid-right { width: 20%; right: 15%; }
174+
.content { margin-right: calc(15% + 20%); }
175+
.footer { right: calc(15% + 20%); }
185176
}
186177

187178
@media (max-width: 1100px) {
188-
.right {
189-
display: none;
190-
}
191-
.footer {
192-
right: 0em;
193-
}
179+
.right, .mid-right { display: none; }
180+
.content { margin-right: 0; }
181+
.footer { right: 0; }
182+
}
194183
{% endif %}
195184
</style>
196185

@@ -230,7 +219,7 @@
230219
{% endif %}
231220

232221
<!-- THE MAIN BODY -->
233-
<main role="main" class="container">
222+
<main role="main" class="container-fluid">
234223

235224
{% if simple %}
236225
<!-- THE SIMPLE HEADING -->
@@ -259,6 +248,67 @@ <h2>{{ title }}</h2>
259248
</div>
260249
</footer>
261250

251+
<div class="side-info mid-right" id="mid-right-panel">
252+
<h3 class="bg-white">Summary</h3>
253+
<p>On this page, you can search for statements from the INDRA Database by applying different filters such as agents, relation types, MeSH terms, or papers.</p>
254+
<h4>Examples</h4>
255+
<span style="color:#888;"></span>
256+
<span style="cursor:pointer; color:#256DC5; text-decoration:underline;"
257+
data-agent1="DUSP1" data-agent2="MAPK1"
258+
onclick="window.dispatchEvent(new CustomEvent('indra:example', { detail: { agent1: this.dataset.agent1, agent2: this.dataset.agent2 } }))">
259+
How does DUSP1 affect MAPK1?
260+
</span>
261+
262+
<br/>
263+
264+
<span style="color:#888;"></span>
265+
<span style="cursor:pointer; color:#256DC5; text-decoration:underline;"
266+
data-agent1="CDK12" data-role1="subject" data-stmt-type="Phosphorylation"
267+
onclick="window.dispatchEvent(new CustomEvent('indra:example', { detail: {
268+
agent1: this.dataset.agent1,
269+
role1: this.dataset.role1,
270+
stmtType: this.dataset.stmtType
271+
}}))">
272+
What does CDK12 phosphorylate?
273+
</span>
274+
275+
<br/>
276+
277+
<span style="color:#888;"></span>
278+
<span style="cursor:pointer; color:#256DC5; text-decoration:underline;"
279+
data-agent2="MTOR" data-role2="object" data-stmt-type="Inhibition"
280+
onclick="window.dispatchEvent(new CustomEvent('indra:example', { detail: {
281+
agent2: this.dataset.agent2,
282+
role2: this.dataset.role2,
283+
stmtType: this.dataset.stmtType
284+
}}))">
285+
What is known to inhibit mTOR?
286+
</span>
287+
288+
<br/>
289+
290+
<span style="color:#888;"></span>
291+
<span style="cursor:pointer; color:#256DC5; text-decoration:underline;"
292+
data-agent1="PIK3CA"
293+
onclick="window.dispatchEvent(new CustomEvent('indra:example', { detail: {
294+
agent1: this.dataset.agent1
295+
}}))">
296+
Show all interactions involving PIK3CA.
297+
</span>
298+
299+
<br/>
300+
301+
<span style="color:#888;"></span>
302+
<span style="cursor:pointer; color:#256DC5; text-decoration:underline;"
303+
data-agent1="Seliciclib" data-role1="subject" data-stmt-type="Inhibition"
304+
onclick="window.dispatchEvent(new CustomEvent('indra:example', { detail: {
305+
agent1: this.dataset.agent1,
306+
role1: this.dataset.role1,
307+
stmtType: this.dataset.stmtType
308+
}}))">
309+
What does Seliciclib inhibit?
310+
</span>
311+
</div>
262312

263313
<!-- THE RIGHT SIDEBAR -->
264314
<div class="side-info right bg-white" id="right-side-panel">

0 commit comments

Comments
 (0)