Skip to content

Commit 85538eb

Browse files
authored
update W3C logo + review navigation (#1936)
* update W3C logo + review navigation * width/height attributes are no longer needed * remove width/height attributes on the W3C logo
1 parent 939b8e5 commit 85538eb

26 files changed

+42
-114
lines changed

lib/rules/headers/logo.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,14 @@ export const { name } = self;
1212
*/
1313
export function check(sr, done) {
1414
const logo = sr.jsDocument.querySelector(
15-
"body div.head a[href] > img[src][height='48'][width='72'][alt='W3C']"
15+
"body div.head a[href] > img[src][alt='W3C']"
1616
);
1717
if (
1818
!logo ||
1919
!/^(https:)?\/\/www\.w3\.org\/StyleSheets\/TR\/2021\/logos\/W3C?$/.test(
20-
logo.getAttribute('src')
20+
logo.src
2121
) ||
22-
!/^(https:)?\/\/www\.w3\.org\/?$/.test(
23-
logo.parentElement.getAttribute('href')
24-
)
22+
!/^(https:)?\/\/www\.w3\.org\/?$/.test(logo.parentElement.href)
2523
) {
2624
sr.error(self, 'not-found');
2725
}

lib/views.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const BASE_URI = `${process.env.BASE_URI ? process.env.BASE_URI : ''}/`.replace(
1414

1515
const { version } = importJSON('../package.json', import.meta.url);
1616
const nav = `<p class="pull-right">
17-
<a href="${BASE_URI}about/">About</a> &middot;
1817
<a href="${BASE_URI}sitemap/">Site map</a> &middot;
1918
<a href="https://github.com/w3c/specberus">Github</a> &middot;
2019
<a href="${BASE_URI}help/">Help</a>
@@ -34,20 +33,6 @@ const serveStraight = function (req, res) {
3433
});
3534
};
3635

37-
/**
38-
* @TODO Document.
39-
*/
40-
41-
const handleWIP = function (req, res) {
42-
res.render('wip', {
43-
DEBUG,
44-
BASE_URI,
45-
version,
46-
nav,
47-
title: 'coming soon',
48-
});
49-
};
50-
5136
/**
5237
* @TODO Document.
5338
*/
@@ -232,9 +217,6 @@ export const setUp = function (app) {
232217
app.get('/sitemap', serveStraight);
233218
app.get('/help', serveStraight);
234219

235-
// Pending sections:
236-
app.get('/about', handleWIP);
237-
238220
// Catch-all:
239221
app.get(/(.*)/, handleWrongPage);
240222
};

public/css/specberus.css

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
body {
1+
/* body {
22
padding-top: 70px;
3-
}
3+
} */
44

55
.container-fluid {
66
max-width: 1170px;
@@ -12,8 +12,12 @@ img.filler {
1212
box-shadow: 0 2px 12px #404040;
1313
}
1414

15+
.navbar {
16+
min-height: 150px;
17+
}
18+
1519
.navbar img {
16-
height: 40px;
20+
height: 120px;
1721
}
1822

1923
.navbar .contribute a {
@@ -39,6 +43,11 @@ img.filler {
3943
0 -2px 16px #ffffff;
4044
}
4145

46+
.navbar-brand {
47+
font-size: 1.5em;
48+
font-weight: bold;
49+
}
50+
4251
#infoLink {
4352
display: none;
4453
opacity: 1;
@@ -54,11 +63,11 @@ img.filler {
5463
background-color: #ff8080;
5564
}
5665

57-
.navbar-inverse .navbar-brand,
66+
/* .navbar-inverse .navbar-brand,
5867
.navbar-inverse .navbar-brand a,
5968
.contribute {
6069
color: #fff;
61-
}
70+
} */
6271

6372
.contribute {
6473
padding: 25px 0 0 0;
@@ -68,13 +77,14 @@ img.filler {
6877
padding-bottom: 30px;
6978
}
7079

71-
header.navbar-inverse {
80+
/* header.navbar-inverse {
7281
background: linear-gradient(
7382
to bottom,
74-
rgb(7, 62, 128) 0px,
75-
rgb(0, 45, 80) 100%
83+
#FDFDFD 0px,
84+
#EBEBEB 100%
7685
);
77-
}
86+
border: 0;
87+
} */
7888

7989
ul.error,
8090
ul.warning,

public/img/favicon.ico

-5.3 KB
Binary file not shown.

public/img/logo-w3c.svg

Lines changed: 0 additions & 25 deletions
This file was deleted.

public/img/logo.svg

Lines changed: 0 additions & 10 deletions
This file was deleted.

test/doc-views/layout/spec.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<div class="{{header.headClassName}}">
2929
{{#if header.logo.show}}
3030
<a class="logo" href="{{header.logo.href}}">
31-
<img alt="W3C" src="{{header.logo.src}}" width="72" height="48">
31+
<img alt="W3C" src="{{header.logo.src}}">
3232
</a>
3333
{{/if}}
3434
{{#if header.title.show}}

test/docs/2021-cr.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</head>
1313
<body class="h-entry" data-cite="WebIDL html dom webidl ecma-262">
1414
<div class="head">
15-
<a class="logo" href="https://www.w3.org/"><img alt="W3C" src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C" width="72" height="48"></a>
15+
<a class="logo" href="https://www.w3.org/"><img alt="W3C" src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C"></a>
1616
<h1 id="title" class="title p-name">High Resolution Time</h1>
1717

1818
<p id='w3c-state'>

test/docs/2021-crd.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
</head>
1616
<body class="h-entry" data-cite="WebIDL html dom webidl ecma-262">
1717
<div class="head">
18-
<a class="logo" href="https://www.w3.org/"><img alt="W3C" src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C"
19-
width="72" height="48"></a>
18+
<a class="logo" href="https://www.w3.org/"><img alt="W3C" src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C"></a>
2019
<h1 id="title" class="title p-name">High Resolution Time</h1>
2120

2221
<p id='w3c-state'>

test/docs/2021-cry.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@
611611
</head>
612612
<body class="h-entry informative">
613613
<div class="head">
614-
<a class="logo" href="https://www.w3.org/"><img alt="W3C" width="72" height="48"
614+
<a class="logo" href="https://www.w3.org/"><img alt="W3C"
615615
src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C"></a>
616616
<h1 id="title" class="title">Ready-made Counter Styles</h1>
617617

0 commit comments

Comments
 (0)