Skip to content

Commit da99db2

Browse files
feat: prominent Download button + callout on graph-database; gap hangs off diagram
Two pieces of polish on the /content/detail layout + the /documentation/dev/graph-database page, both touched up in response to Adam's feedback. content/documentation/dev/graph-database.mdx: - The "Download" link under Get Started used the small [__Label] icon-link pattern; prod has a prominent button. Inline an <a class="primary-button"> with a material-symbols download icon. - The "To run our graph database..." paragraph is now wrapped in a <div class="callout callout-info"> so it renders as a light-blue info box matching prod. src/styles.scss (NOT projects/website-angular/src/styles.scss -- only the root one is wired into the default ng build): - Adds .primary-button (filled button with icon slot) - Adds .callout and .callout-info (info-box pattern) detail.component.scss (::ng-deep cr-description-tab): - Moves the 28px breathing-room from above the projected download bar to above the diagram figure. Pages without a diagram (most reactions/proteins/complexes) no longer carry an awkward gap below their Summation row. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 79e2a8e commit da99db2

3 files changed

Lines changed: 56 additions & 10 deletions

File tree

projects/website-angular/content/documentation/dev/graph-database.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ To easily access and benefit from the graph database, we have developed the Grap
3535

3636
### [__Get Started](<#GetStarted>)
3737

38-
[__Download](</download/current/reactome.graphdb.tgz>)
38+
<a class="primary-button" href="/download/current/reactome.graphdb.tgz"><span class="material-symbols-rounded">download</span>Download</a>
3939

40-
To run our graph database on your personal computer, please choose the installation option that suits your need. Our team recommends [Neo4j Desktop](</documentation/dev/graph-database/neo4j-desktop>), but we can't compete with developers and their love for terminal console.
40+
<div class="callout callout-info">
41+
To run our graph database on your personal computer, please choose the installation option that suits your need. Our team recommends <a href="/documentation/dev/graph-database/neo4j-desktop">Neo4j Desktop</a>, but we can't compete with developers and their love for terminal console.
42+
</div>
4143

4244
#### 1\. Docker
4345

projects/website-angular/src/app/content/detail/detail.component.scss

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,15 @@
125125
}
126126

127127
// Breathing room around the projected download bar + diagram.
128-
// Description-tab puts both inside the Overview slot; on the panel
129-
// version they're absent, so we only need to space them on the
130-
// standalone page.
131-
app-detail-download-bar {
132-
display: block;
133-
margin: 28px 0 0;
134-
}
128+
// Spacing hangs off the diagram, not the download bar, so pages
129+
// without a diagram (most reactions, proteins, complexes) don't get
130+
// an awkward gap below their Summation row.
131+
app-detail-download-bar,
135132
app-detail-diagram {
136133
display: block;
137-
margin: 16px 0 8px;
134+
}
135+
app-detail-diagram .detail-diagram {
136+
margin: 28px 0 8px;
138137
}
139138

140139

src/styles.scss

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,3 +472,48 @@ body {
472472
display: flex;
473473
flex-direction: column;
474474
}
475+
476+
// Prominent button for primary downloads / actions emitted inline by
477+
// MDX pages (currently used on /documentation/dev/graph-database).
478+
.primary-button {
479+
display: inline-flex;
480+
align-items: center;
481+
gap: 0.5rem;
482+
padding: 8px 18px;
483+
border-radius: 6px;
484+
background: var(--primary);
485+
color: var(--on-primary, #fff);
486+
font-weight: 600;
487+
font-size: 0.95rem;
488+
text-decoration: none;
489+
transition: filter 0.15s, transform 0.15s;
490+
491+
&:hover,
492+
&:focus-visible {
493+
text-decoration: none;
494+
filter: brightness(1.1);
495+
transform: translateY(-1px);
496+
color: var(--on-primary, #fff);
497+
}
498+
499+
.material-symbols-rounded {
500+
font-size: 1.2em;
501+
}
502+
}
503+
504+
// Light-blue (or themed) callout box for inline notes inside MDX pages.
505+
// Modeled on the prod Joomla pages' info-box styling.
506+
.callout {
507+
margin: 1rem 0;
508+
padding: 12px 16px;
509+
border-radius: 6px;
510+
border-left: 4px solid var(--primary);
511+
background: var(--secondary-container, rgba(0, 110, 144, 0.08));
512+
color: var(--on-surface);
513+
line-height: 1.5;
514+
}
515+
516+
.callout-info {
517+
border-left-color: var(--primary);
518+
background: rgba(0, 110, 144, 0.08);
519+
}

0 commit comments

Comments
 (0)