Merge pull request #258 from tomalrussell/feature/logo-style

Feature/logo style
This commit is contained in:
Tom Russell 2019-05-02 18:54:39 +01:00 committed by GitHub
commit ae6f5a0d61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 81 additions and 80 deletions

View File

@ -1,14 +1,14 @@
/**
* Main header
*/
.main-header {
.main-header {
display: block;
min-height: 82px;
min-height: 79px;
text-decoration: none;
border-bottom: 3px solid #222;
}
.main-header .navbar {
padding: 0.75em 0.75em;
padding: 0.75em 0.5em 0.75em;
}
.main-header .navbar-brand {
margin: 0 1em 0 0;

View File

@ -102,24 +102,6 @@ const Legend = (props) => {
const elements = details.elements;
return (
<div className="map-legend">
<h4 className="h4">{ title }</h4>
{
details.description?
<p>{details.description}</p>
: null
}
{
elements.length?
(<ul className="data-legend">
{
elements.map((data_item) => (
<LegendItem {...data_item} key={data_item.color} />
))
}
</ul>)
: (<p className="data-intro">Coming soon</p>)
}
<div className="logo">
<div className="grid">
<div className="row">
@ -146,6 +128,23 @@ const Legend = (props) => {
<span>London</span>
</h3>
</div>
<h4 className="h4">{ title }</h4>
{
details.description?
<p>{details.description}</p>
: null
}
{
elements.length?
(<ul className="data-legend">
{
elements.map((data_item) => (
<LegendItem {...data_item} key={data_item.color} />
))
}
</ul>)
: (<p className="data-intro">Coming soon</p>)
}
</div>
);
}

View File

@ -14,7 +14,7 @@
}
.logo .logotype {
font-size: 2rem;
margin: 0 0 0 3px;
margin: 0 0 -1px 3px;
display: inline-block;
vertical-align: bottom;
}
@ -28,17 +28,16 @@
letter-spacing: 0;
}
.map-legend .logo {
padding: 0.5rem;
padding: 0 0.5rem 0.5rem;
}
.map-legend .logo .logotype {
font-size: 1.75rem;
position: relative;
top: 3px;
font-size: 1.9rem;
margin-bottom: -2px;
}
.map-legend .logo .row .cell {
background-color: #ccc;
height: 10px;
width: 10px;
height: 12px;
width: 12px;
animation: none !important;
}
.logo .grid {
@ -57,127 +56,130 @@
}
.logo .cell {
display: inline-block;
width: 15px;
height: 15px;
width: 14px;
height: 14px;
margin: 0 3px 0 0;
}
.logo .row:nth-child(1) .cell:nth-child(1) {
animation: pulse 47s infinite;
animation: pulse 87s infinite;
animation-delay: -1.5s;
}
.logo .row:nth-child(1) .cell:nth-child(2) {
animation: pulse 32s infinite;
animation: pulse 52s infinite;
animation-delay: -0.5s;
}
.logo .row:nth-child(1) .cell:nth-child(3) {
animation: pulse 49s infinite;
animation: pulse 79s infinite;
animation-delay: -6s;
}
.logo .row:nth-child(1) .cell:nth-child(4) {
animation: pulse 35s infinite;
animation: pulse 55s infinite;
animation-delay: -10s;
}
.logo .row:nth-child(2) .cell:nth-child(1) {
animation: pulse 34s infinite;
animation: pulse 64s infinite;
animation-delay: -7.2s;
}
.logo .row:nth-child(2) .cell:nth-child(2) {
animation: pulse 58s infinite;
animation-delay: -15s;
animation: pulse 98s infinite;
animation-delay: -25s;
}
.logo .row:nth-child(2) .cell:nth-child(3) {
animation: pulse 31s infinite;
animation-delay: -5s;
animation: pulse 51s infinite;
animation-delay: -35s;
}
.logo .row:nth-child(2) .cell:nth-child(4) {
animation: pulse 46s infinite;
animation-delay: -4.5s;
animation: pulse 76s infinite;
animation-delay: -20s;
}
.logo .row:nth-child(3) .cell:nth-child(1) {
animation: pulse 32s infinite;
animation: pulse 52s infinite;
animation-delay: -3.5s;
}
.logo .row:nth-child(3) .cell:nth-child(2) {
animation: pulse 49s infinite;
animation: pulse 79s infinite;
animation-delay: -8.5s;
}
.logo .row:nth-child(3) .cell:nth-child(3) {
animation: pulse 35s infinite;
animation: pulse 65s infinite;
animation-delay: -4s;
}
.logo .row:nth-child(3) .cell:nth-child(4) {
animation: pulse 34s infinite;
animation: pulse 54s infinite;
animation-delay: -17s;
}
@keyframes pulse {
0%, 100% {
background-color: #ffad00;
background-color: #edc40b;
}
8% {
background-color: #ffad00;
9% {
background-color: #edc40b;
}
10% {
background-color: #72b2fe;
background-color: #ff9100;
}
16% {
background-color: #72b2fe;
17% {
background-color: #ff9100;
}
18% {
background-color: #5ec233;
background-color: #ee91bf;
}
24% {
background-color: #5ec233;
25% {
background-color: #ee91bf;
}
26% {
background-color: #e96762;
background-color: #aa7fa7;
}
32% {
background-color: #e96762;
33% {
background-color: #aa7fa7;
}
34% {
background-color: #e099c1;
background-color: #5ec232;
}
40% {
background-color: #e099c1;
41% {
background-color: #5ec232;
}
42% {
background-color: #7d6f94;
background-color: #65b7ff;
}
48% {
background-color: #7d6f94;
49% {
background-color: #65b7ff;
}
50% {
background-color: #eb7905;
background-color: #6f879c;
}
56% {
background-color: #eb7905;
57% {
background-color: #6f879c;
}
58% {
background-color: #72b889;
background-color: #6dbb8b;
}
64% {
background-color: #72b889;
65% {
background-color: #6dbb8b;
}
66% {
background-color: #f0d106;
background-color: #ee5f63;
}
72% {
background-color: #f0d106;
73% {
background-color: #ee5f63;
}
74% {
background-color: #a6a6a7;
background-color: #f0ee0c;
}
80% {
background-color: #a6a6a7;
81% {
background-color: #f0ee0c;
}
82% {
background-color: #918e6e;
background-color: #a1a3a9;
}
88% {
background-color: #918e6e;
89% {
background-color: #a1a3a9;
}
90% {
background-color: #ffad00;
background-color: #9c896d;
}
99% {
background-color: #9c896d;
}
}

View File

@ -8,7 +8,7 @@
@media (min-width: 768px){
main {
position: absolute;
top: 82px; /* 82px header */
top: 79px; /* matches 79px .main-header */
bottom: 0;
left: 0;
right: 0;