Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logo.html: Make header icon responsive #592

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions _static/logo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<meta charset="UTF-8" />
<style>
.coala-logo-doc {
width: 632.5px;
height: 187.5px;
}

@media only screen and (max-device-width: 632px) {
.coala-logo-doc-header {
display: none;
}
.coala-logo-doc-low {
display: block;
}
}

@media only screen and (min-device-width: 633px) {
.coala-logo-doc-header {
display: block;
}
.coala-logo-doc-low {
display: none;
height: auto;
}
}
</style>
<body>
<div class="coala-logo-doc-header">
<img
width="632.5px"
height="187.5px"
src="_static/images/coala-header.png"
/>
</div>
<div class="coala-logo-doc-low">
<img width="187.5px" height="187.5px" src="_static/images/coala_logo.svg" />
</div>
</body>
5 changes: 2 additions & 3 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ Welcome to the coala documentation!

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

.. image:: _static/images/coala-header.png
:scale: 50
:align: center
.. raw:: html
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check if we can add SVG here or not.

:file: _static/logo.html

coala: Language Independent Code Analysis
-----------------------------------------
Expand Down