Skip to content
Snippets Groups Projects
Verified Commit f4f19863 authored by Owen Graham's avatar Owen Graham
Browse files

Switch to AMRDC Theme-inspired header

parent 0724753d
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,11 @@
}
a {
cursor: pointer;
color: #007db1;
}
a:hover, a:focus {
color: #006c98;
}
body {
......@@ -12,12 +16,56 @@ body {
text-align: center;
}
header::before {
content: '';
background: linear-gradient(45deg, #c5050c, #007db1);
display: block;
height: 5px;
}
header > div {
display: flex;
align-items: center;
justify-content: center;
padding: 1rem 0 .5rem;
}
#logo {
display: block;
margin-right: .8rem;
}
#logo img {
height: 3.878125rem;
width: 3.878125rem;
}
#title {
color: #494949;
text-align: left;
}
#title h1 {
font-size: 2rem;
font-weight: 800;
line-height: 1.1;
margin-top: 0;
margin-bottom: 0.1rem;
}
#title div {
font-size: 0.95rem;
font-weight: 700;
line-height: 1.2;
margin: -0.1rem 0 0 0.2rem;
}
#plotter {
align-items: center;
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 8px;
padding-bottom: 8px;
width: 100%;
}
......@@ -27,7 +75,7 @@ body.embedded #plotter {
bottom: 0;
left: 0;
right: 0;
padding: 0;
padding-bottom: 0;
}
#plotter-nav {
......@@ -36,6 +84,10 @@ body.embedded #plotter {
border-width: 1px 0;
}
body.embedded #plotter-nav {
border-top-width: 0;
}
#plotter-nav ul {
display: flex;
flex-flow: row wrap;
......
......@@ -31,16 +31,19 @@
{% if not g.embedded %}
<header>
<a id="logo" title="AMRDC database" href="https://amrdcdata.ssec.wisc.edu">
<img alt="AMRDC" src="{{ url_for('static', filename='logo.svg') }}">
</a>
<h1 id="title">Data Visualizer</h1>
<div>
<a id="logo" title="AMRDC database" href="https://amrdcdata.ssec.wisc.edu">
<img alt="AMRDC" src="{{ url_for('static', filename='logo.svg') }}">
</a>
<div id="title">
<h1>Data Visualizer</h1>
<div>
<a href="{{ url_for('plot_embed', name=g.plotter.name) }}">Embed</a>
</div>
</div>
</div>
</header>
<div>
<a href="{{ url_for('plot_embed', name=g.plotter.name) }}">Embed</a>
</div>
{% endif %}
<div id="plotter">
<nav id="plotter-nav">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment