Skip to content

Commit a714afc

Browse files
XhmikosRTrott
authored andcommitted
Fix table related HTML validation errors.
1 parent cf4f619 commit a714afc

File tree

24 files changed

+92
-72
lines changed

24 files changed

+92
-72
lines changed

layouts/css/_base.styl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@ img
5353
max-width 100%
5454
border none
5555

56-
.logos &
57-
// Fixes logo size on Firefox, see:
58-
// https://github.com/nodejs/nodejs.org/issues/558
59-
width 100%
60-
6156
code
6257
background-color $light-gray3
6358
font-size 85%

layouts/css/_utils.styl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.bg-white
2+
background-color $white !important
3+
4+
.bg-node-gray
5+
background-color $node-gray !important
6+
7+
.table-no-border-no-padding
8+
border-spacing 0
9+
10+
td
11+
padding 0

layouts/css/page-modules/_download.styl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ h5.download-table-previous-releases-header
111111
.download-table
112112
font-size small
113113
border 1px solid $light-gray2
114+
border-spacing 0
114115

115116
td
116117
padding 5px
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.logos
2+
border none
3+
border-spacing 0
4+
5+
img
6+
// Fixes logo size on Firefox, see:
7+
// https://github.com/nodejs/nodejs.org/issues/558
8+
width 100%
9+
10+
td
11+
padding 20px

layouts/css/styles.styl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@import '_variables'
22
@import '_base'
3+
@import '_utils'
34
// Import specific page sections and layout parts
45
@import 'layout/_sticky-footer'
56
@import 'layout/_grid'
@@ -18,6 +19,7 @@
1819
@import 'page-modules/_anchorLinks'
1920
@import 'page-modules/_prev-next-navigation'
2021
@import 'page-modules/_release-schedule'
22+
@import 'page-modules/_resources'
2123

2224
.intro
2325
margin-top 140px

layouts/download-releases.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<br>
1818

1919
<section>
20-
<table class="download-table full-width" cellspacing="0" border="0" cellpadding="0">
20+
<table class="download-table full-width">
2121
<thead>
2222
<tr>
2323
<td>Version</td>

locale/ar/about/resources.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ title: الشعارات والرسومات
1111

1212
الإرشادات من أجل العرض المرئي لعلامة Node.js موضحة في [القواعد العرض الإرشادية](/static/documents/foundation-visual-guidelines.pdf).
1313

14-
<table border="0" cellspacing="0" cellpadding="20" class="logos">
14+
<table class="logos">
1515
<tr>
16-
<td bgcolor="#FFFFFF"><a href="/static/images/logos/nodejs-new-pantone-black.ai"><img src="/static/images/logos/nodejs-new-pantone-black.png" alt="Node.js on light background"></a></td>
17-
<td bgcolor="#333333"><a href="/static/images/logos/nodejs-new-pantone-white.ai"><img src="/static/images/logos/nodejs-new-pantone-white.png" alt="Node.js on dark background"></a></td>
16+
<td class="bg-white"><a href="/static/images/logos/nodejs-new-pantone-black.ai"><img src="/static/images/logos/nodejs-new-pantone-black.png" alt="Node.js on light background"></a></td>
17+
<td class="bg-node-gray"><a href="/static/images/logos/nodejs-new-pantone-white.ai"><img src="/static/images/logos/nodejs-new-pantone-white.png" alt="Node.js on dark background"></a></td>
1818
</tr>
1919
<tr>
2020
<td><a href="/static/images/logos/nodejs-new-pantone-black.ai">Node.js أساسي AI</a></td>
2121
<td><a href="/static/images/logos/nodejs-new-pantone-white.ai">Node.js معكوس AI</a></td>
2222
</tr>
2323
<tr>
24-
<td bgcolor="#FFFFFF"><a href="/static/images/logos/nodejs-new-black.ai"><img src="/static/images/logos/nodejs-new-black.png" alt="Node.js on light background"></a></td>
25-
<td bgcolor="#333333"><a href="/static/images/logos/nodejs-new-white.ai"><img src="/static/images/logos/nodejs-new-white.png" alt="Node.js on dark background"></a></td>
24+
<td class="bg-white"><a href="/static/images/logos/nodejs-new-black.ai"><img src="/static/images/logos/nodejs-new-black.png" alt="Node.js on light background"></a></td>
25+
<td class="bg-node-gray"><a href="/static/images/logos/nodejs-new-white.ai"><img src="/static/images/logos/nodejs-new-white.png" alt="Node.js on dark background"></a></td>
2626
</tr>
2727
<tr>
2828
<td><a href="/static/images/logos/nodejs-new-black.ai">Node.js أساسي مع القليل من الألوان AI</a></td>

locale/ar/docs/guides/debugging-getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ layout: docs.hbs
9898

9999

100100

101-
<table cellpadding="0" cellspacing="0" dir="rtl">
101+
<table class="table-no-border-no-padding" dir="rtl">
102102
<tr><th>التخصيص</th><th>المعنى</th></tr>
103103
<tr>
104104
<td><span dir="ltr">--inspect</span></td>

locale/en/about/resources.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ title: Logos and Graphics
1212
Guidelines for the visual display of the Node.js mark are described in
1313
the [Visual Guidelines](/static/documents/foundation-visual-guidelines.pdf).
1414

15-
<table border="0" cellspacing="0" cellpadding="20" class="logos">
15+
<table class="logos">
1616
<tr>
17-
<td bgcolor="#FFFFFF"><a href="/static/images/logos/nodejs-new-pantone-black.ai"><img src="/static/images/logos/nodejs-new-pantone-black.png" alt="Node.js on light background"></a></td>
18-
<td bgcolor="#333333"><a href="/static/images/logos/nodejs-new-pantone-white.ai"><img src="/static/images/logos/nodejs-new-pantone-white.png" alt="Node.js on dark background"></a></td>
17+
<td class="bg-white"><a href="/static/images/logos/nodejs-new-pantone-black.ai"><img src="/static/images/logos/nodejs-new-pantone-black.png" alt="Node.js on light background"></a></td>
18+
<td class="bg-node-gray"><a href="/static/images/logos/nodejs-new-pantone-white.ai"><img src="/static/images/logos/nodejs-new-pantone-white.png" alt="Node.js on dark background"></a></td>
1919
</tr>
2020
<tr>
2121
<td><a href="/static/images/logos/nodejs-new-pantone-black.ai">Node.js standard AI</a></td>
2222
<td><a href="/static/images/logos/nodejs-new-pantone-white.ai">Node.js reversed AI</a></td>
2323
</tr>
2424
<tr>
25-
<td bgcolor="#FFFFFF"><a href="/static/images/logos/nodejs-new-black.ai"><img src="/static/images/logos/nodejs-new-black.png" alt="Node.js on light background"></a></td>
26-
<td bgcolor="#333333"><a href="/static/images/logos/nodejs-new-white.ai"><img src="/static/images/logos/nodejs-new-white.png" alt="Node.js on dark background"></a></td>
25+
<td class="bg-white"><a href="/static/images/logos/nodejs-new-black.ai"><img src="/static/images/logos/nodejs-new-black.png" alt="Node.js on light background"></a></td>
26+
<td class="bg-node-gray"><a href="/static/images/logos/nodejs-new-white.ai"><img src="/static/images/logos/nodejs-new-white.png" alt="Node.js on dark background"></a></td>
2727
</tr>
2828
<tr>
2929
<td><a href="/static/images/logos/nodejs-new-black.ai">Node.js standard with less color AI</a></td>

locale/en/docs/guides/debugging-getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ info on these follows:
115115

116116
The following table lists the impact of various runtime flags on debugging:
117117

118-
<table cellpadding="0" cellspacing="0">
118+
<table class="table-no-border-no-padding">
119119
<tr><th>Flag</th><th>Meaning</th></tr>
120120
<tr>
121121
<td>--inspect</td>

0 commit comments

Comments
 (0)