Skip to content

Commit e6b6466

Browse files
committed
index.rst: display header according to logo.html
logo.html: display header according to screen width
1 parent a247a76 commit e6b6466

File tree

2 files changed

+36
-3
lines changed

2 files changed

+36
-3
lines changed

_static/logo.html

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<meta charset="UTF-8">
2+
<style>
3+
.coala-logo-doc {
4+
width: 632.5px;
5+
height: 187.5px;
6+
}
7+
8+
@media only screen and (max-device-width: 632px) {
9+
.coala-logo-doc-header {
10+
display: none;
11+
}
12+
.coala-logo-doc-low {
13+
display: block;
14+
}
15+
}
16+
17+
@media only screen and (min-device-width: 633px) {
18+
.coala-logo-doc-header {
19+
display: block;
20+
}
21+
.coala-logo-doc-low {
22+
display: none;
23+
height: auto;
24+
}
25+
}
26+
</style>
27+
<body>
28+
<div class="coala-logo-doc-header">
29+
<img width="632.5px" height="187.5px" src="_static/images/coala-header.png">
30+
</div>
31+
<div class="coala-logo-doc-low">
32+
<img width="187.5px" height="187.5px" src="_static/images/coala_logo.svg">
33+
</div>
34+
</body>

index.rst

+2-3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ Welcome to the coala documentation!
4646

4747
You might also want to look at `our website <http://coala.io/>`_.
4848

49-
.. image:: _static/images/coala-header.png
50-
:scale: 50
51-
:align: center
49+
.. raw:: html
50+
:file: _static/logo.html
5251

5352
coala: Language Independent Code Analysis
5453
-----------------------------------------

0 commit comments

Comments
 (0)