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

Remove retina.js and convert icons to SVG #1700

Open
wants to merge 1 commit into
base: gh-pages
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
2 changes: 1 addition & 1 deletion _includes/announcement/announcement-en.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<ul>
<li>
<p class="announcement-title">Express 5.0 documentation is now available.</p>
<p class="announcement-title">{% include icons/announcement.svg %} Express 5.0 documentation is now available.</p>
<p markdown="1">
The <a href="{{ page.lang }}/5x/api.html">API documentation</a> is a work in progress. For information on what's in the release, see the Express <a href="https://github.com/expressjs/express/blob/5.0/History.md">release history</a>.
</p>
Expand Down
2 changes: 1 addition & 1 deletion _includes/announcement/announcement-id.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<ul>
<li>
<p class="announcement-title">Dokumentasi Express 5.0 versi beta kini telah tersedia.</p>
<p class="announcement-title">{% include icons/announcement.svg %} Dokumentasi Express 5.0 versi beta kini telah tersedia.</p>
<p markdown="1">
<a href="{{ page.lang }}/5x/api.html">Dokumentasi API</a> beta masih dalam proses. Untuk informasi tentang apa yang ada dalam rilis, lihat <a href="https://github.com/expressjs/express/blob/5.0/History.md">riwayat rilis</a> Express.
</p>
Expand Down
2 changes: 1 addition & 1 deletion _includes/announcement/announcement-pt-br.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<ul>
<li>
<p class="announcement-title">A documentação do Express 5.0 já está disponível.</p>
<p class="announcement-title">{% include icons/announcement.svg %} A documentação do Express 5.0 já está disponível.</p>
<p markdown="1">
<!-- we still haven't a 5x doc for pt-br -->
A <a href="/5x/api.html">documentação da API</a> está em andamento. Para obter informações sobre o que há no lançamento, consulte o <a href="https://github.com/expressjs/express/blob/5.0/History.md">histórico de lançamentos</a> do Express.
Expand Down
2 changes: 1 addition & 1 deletion _includes/announcement/announcement-th.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<ul>
<li>
<p class="announcement-title">Express รุ่น 4.16.0 มีคุณลักษณะความปลอดภัยล่าสุดที่สำคัญ</p>
<p class="announcement-title">{% include icons/announcement.svg %} Express รุ่น 4.16.0 มีคุณลักษณะความปลอดภัยล่าสุดที่สำคัญ</p>
<p markdown="1">
สำหรับข้อมูลว่าอะไรเพิ่มเติมบ้างในรุ่นนี้ สามารถดูใน [บันทึกการเปลี่ยนแปลง 4.16.0](/{{ page.lang }}/changelog/4x.html#4.16.0).
</p>
Expand Down
2 changes: 1 addition & 1 deletion _includes/announcement/announcement-tr.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<ul>
<li>
<p class="announcement-title">Express 4.16.0 mevcut sürümdür.</p>
<p class="announcement-title">{% include icons/announcement.svg %} Express 4.16.0 mevcut sürümdür.</p>
<p markdown="1">
Bu sürümde nelerin eklendiği hakkında daha fazla bilgi almak için [4.16.0 changelog](/{{ page.lang }}/changelog/4x.html#4.16.0).
</p>
Expand Down
2 changes: 1 addition & 1 deletion _includes/announcement/announcement-uz.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<ul>
<li>
<p class="announcement-title">Express 4.16.0 reliz qilindi</p>
<p class="announcement-title">{% include icons/announcement.svg %} Express 4.16.0 reliz qilindi</p>
<p markdown="1">
Express 4.16.0 da ko'plab xatolar to'g'irlandi, xavfsizlikni ta'minlash uchun o'zgarishlar kiritildi, ishlash unumdorligi oshirildi va boshqa yangi imkoniyatlar qo'shildi. To'liq ma'lumot uchun [4.16.0 changelog](/en/changelog/4x.html#4.16.0).
</p>
Expand Down
2 changes: 1 addition & 1 deletion _includes/footer/footer-de.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a id="top" href="#"><img src="/images/arrow.png"></a>
<a id="top" href="#">{% include icons/arrow.svg %}</a>

<footer>
<div id="footer-content">
Expand Down
2 changes: 1 addition & 1 deletion _includes/footer/footer-en.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a id="top" href="#"><img src="/images/arrow.png"></a>
<a id="top" href="#">{% include icons/arrow.svg %}</a>

<footer>
<section id="doc-langs">
Expand Down
2 changes: 1 addition & 1 deletion _includes/footer/footer-es.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a id="top" href="#"><img src="/images/arrow.png"></a>
<a id="top" href="#">{% include icons/arrow.svg %}</a>

<footer>
<section id="footer-content">
Expand Down
2 changes: 1 addition & 1 deletion _includes/footer/footer-fr.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a id="top" href="#"><img src="/images/arrow.png"></a>
<a id="top" href="#">{% include icons/arrow.svg %}</a>

<footer>
<div id="footer-content">
Expand Down
2 changes: 1 addition & 1 deletion _includes/footer/footer-id.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a id="top" href="#"><img src="/images/arrow.png"></a>
<a id="top" href="#">{% include icons/arrow.svg %}</a>

<footer>
<section id="doc-langs">
Expand Down
2 changes: 1 addition & 1 deletion _includes/footer/footer-it.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a id="top" href="#"><img src="/images/arrow.png"></a>
<a id="top" href="#">{% include icons/arrow.svg %}</a>

<footer>
<section id="footer-content">
Expand Down
2 changes: 1 addition & 1 deletion _includes/footer/footer-ja.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a id="top" href="#"><img src="/images/arrow.png"></a>
<a id="top" href="#">{% include icons/arrow.svg %}</a>

<footer>
<section id="footer-content">
Expand Down
2 changes: 1 addition & 1 deletion _includes/footer/footer-ko.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a id="top" href="#"><img src="/images/arrow.png"></a>
<a id="top" href="#">{% include icons/arrow.svg %}</a>

<footer>
<section id="footer-content">
Expand Down
2 changes: 1 addition & 1 deletion _includes/footer/footer-pt-br.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a id="top" href="#"><img src="/images/arrow.png"></a>
<a id="top" href="#">{% include icons/arrow.svg %}</a>

<footer>

Expand Down
2 changes: 1 addition & 1 deletion _includes/footer/footer-ru.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a id="top" href="#"><img src="/images/arrow.png"></a>
<a id="top" href="#">{% include icons/arrow.svg %}</a>

<footer>
<section id="footer-content">
Expand Down
2 changes: 1 addition & 1 deletion _includes/footer/footer-sk.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a id="top" href="#"><img src="/images/arrow.png"></a>
<a id="top" href="#">{% include icons/arrow.svg %}</a>

<footer>
<section id="footer-content">
Expand Down
2 changes: 1 addition & 1 deletion _includes/footer/footer-th.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a id="top" href="#"><img src="/images/arrow.png"></a>
<a id="top" href="#">{% include icons/arrow.svg %}</a>

<footer>
<section id="footer-content">
Expand Down
2 changes: 1 addition & 1 deletion _includes/footer/footer-tr.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a id="top" href="#"><img src="/images/arrow.png"></a>
<a id="top" href="#">{% include icons/arrow.svg %}</a>

<footer>
<section id="footer-content">
Expand Down
2 changes: 1 addition & 1 deletion _includes/footer/footer-uk.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a id="top" href="#"><img src="/images/arrow.png"></a>
<a id="top" href="#">{% include icons/arrow.svg %}</a>

<footer>
<section id="footer-content">
Expand Down
2 changes: 1 addition & 1 deletion _includes/footer/footer-uz.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a id="top" href="#"><img src="/images/arrow.png"></a>
<a id="top" href="#">{% include icons/arrow.svg %}</a>

<footer>
<section id="footer-content">
Expand Down
2 changes: 1 addition & 1 deletion _includes/footer/footer-zh-cn.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a id="top" href="#"><img src="/images/arrow.png"></a>
<a id="top" href="#">{% include icons/arrow.svg %}</a>

<footer>
<section id="footer-content">
Expand Down
2 changes: 1 addition & 1 deletion _includes/footer/footer-zh-tw.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a id="top" href="#"><img src="/images/arrow.png"></a>
<a id="top" href="#">{% include icons/arrow.svg %}</a>

<footer>
<section id="footer-content">
Expand Down
1 change: 0 additions & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
<script data-cfasync="false" src="/js/ismobile.js"></script>
<script data-cfasync="false" src="/js/app.js"></script>
<script data-cfasync="false" defer src="/js/menu.js"></script>
<script data-cfasync="false" src="/js/retina.js"></script>
<script data-cfasync="false" src="/js/prism.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />

Expand Down
1 change: 1 addition & 0 deletions _includes/icons/announcement.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions _includes/icons/arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 4 additions & 18 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,12 @@ main.home {
margin-right: 12px;
}

#announcements p:first-child {
.announcement-title {
font-weight: bold;
padding-left: 20px;
background-image: url(/images/announcement-icon.png);
background-position: 0 3px;
background-repeat: no-repeat;
background-size: 14px 14px;
margin-bottom: 11px;
display: flex;
align-items: center;
column-gap: 8px
}

#install-command {
Expand Down Expand Up @@ -392,11 +390,6 @@ code {
opacity: 1;
}

#top img {
width: 8px;
height: 5px;
}

/* clearfix */

.clearfix:after {
Expand Down Expand Up @@ -660,13 +653,6 @@ footer {
font-size: 20px;
}

@media only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-devicepixel-ratio: 1.5), only screen and (min-resolution: 1.5dppx) {
#announcements p:first-child {
background-image: url(/images/announcement-icon@2x.png);
}

}

/* navigation */

#navbar {
Expand Down
Binary file removed images/announcement-icon.png
Binary file not shown.
Binary file removed images/announcement-icon@2x.png
Binary file not shown.
Binary file removed images/arrow.png
Binary file not shown.
Binary file removed images/arrow@2x.png
Binary file not shown.
Binary file removed images/fork-icon.png
Binary file not shown.
Binary file removed images/fork-icon@2x.png
Binary file not shown.
3 changes: 0 additions & 3 deletions js/retina.js

This file was deleted.