Skip to content

Commit 68d8b8e

Browse files
cdriniclaude
andauthored
Remove legacy-header.css and dead header selectors (#12108)
The old header (div#header, #headerNav, #headerLogo, etc.) was replaced by .header-bar years ago. No HTML template references these IDs anymore. - Delete legacy-header.css (168 lines) - Remove its @import from legacy.css - Remove dead #header* overrides from page-admin, page-edit, page-plain, and page-user CSS entry points Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2 parents 5639e97 + 5010b8c commit 68d8b8e

6 files changed

Lines changed: 0 additions & 197 deletions

File tree

static/css/legacy-header.css

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

static/css/legacy.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
* and imported directly in one of the entry points that are prefixed
2020
* with `page-` or `js-`
2121
*/
22-
@import "legacy-header.css";
2322
@import "legacy-tools.css";
2423
@import "legacy-wmd.css";
2524

static/css/page-admin.css

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,6 @@ div.siteSearch.darker {
148148
background-color: var(--mid-grey);
149149
}
150150
/* stylelint-disable selector-max-specificity */
151-
div#headerNav ul.links li {
152-
border-top: 1px solid var(--mid-grey);
153-
}
154-
/* stylelint-enable selector-max-specificity */
155-
/* stylelint-disable selector-max-specificity */
156151
div#contentHead {
157152
padding-bottom: 30px;
158153
}

static/css/page-edit.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,12 @@ div#databar a {
128128
.formElement.pagetype #type\.key {
129129
width: 100%;
130130
}
131-
/* stylelint-disable selector-max-specificity */
132131
div#revertNotice,
133-
div#header,
134132
footer,
135133
div#bottom,
136134
.siteSearch {
137135
display: none;
138136
}
139-
/* stylelint-enable selector-max-specificity */
140137

141138
/* Defined in openlibrary/macros/EditButtons.html */
142139
div.adminDelete {

static/css/page-plain.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* - https://openlibrary.org/books/OL7521653M/Holes/daisy
77
*/
88

9-
div#header,
109
footer,
1110
div#bottom,
1211
.siteSearch {

static/css/page-user.css

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,6 @@ body {
4343
background-color: var(--beige);
4444
}
4545
/* stylelint-disable selector-max-specificity */
46-
div#headerNav {
47-
background-color: var(--beige);
48-
}
49-
/* stylelint-enable selector-max-specificity */
50-
/* stylelint-disable selector-max-specificity */
51-
div#headerNav ul.links li {
52-
border-top: 1px solid var(--beige-two);
53-
}
54-
/* stylelint-enable selector-max-specificity */
55-
/* stylelint-disable selector-max-specificity */
56-
div#headerLogo {
57-
background-color: var(--beige);
58-
}
59-
/* stylelint-enable selector-max-specificity */
60-
/* stylelint-disable selector-max-specificity */
6146
div#background {
6247
width: 100%;
6348
background-color: var(--beige);
@@ -88,11 +73,6 @@ div#editHistory {
8873
display: none;
8974
}
9075
/* stylelint-enable selector-max-specificity */
91-
/* stylelint-disable selector-max-specificity */
92-
div#headerPlace {
93-
background-color: var(--beige);
94-
}
95-
9676
div#subjectsPage {
9777
columns: 2;
9878
}

0 commit comments

Comments
 (0)