Replace draft watermark with document status strip - #137
Merged
Conversation
Swaps the fixed diagonal DRAFT watermark for a status strip in the content column on screen and a band repeated on every printed page. - DraftNotice renders both surfaces from a single status string - Strip sticks below the site header at a constant offset so it does not shift on first scroll; amber palette defined per theme - Print band repeats via thead/tfoot, the only cross-browser running header (@page margin boxes are unsupported in Chrome and Firefox), and overrides the color reset in print.css - Drops the DocItem swizzle, which existed only for the watermark - Adds the missing doc_location to the TotalRisk Verification Report entry; getDraftDocLocations() filters on that field, so no active draft doc was being marked in a production build
|
✅ CI build passed for commit This PR changes no files under @usace-rmc/docs-admin may merge. |
|
📄 Preview deployed for commit https://usace-rmc.github.io/RMC-Software-Documentation-Previews/pr-137/ This preview updates automatically when new commits are pushed. Deleted when the PR closes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the fixed diagonal DRAFT watermark on draft documents with a status strip in the content column on screen, and a band repeated at the top and bottom of every printed page.
DraftNoticerenders both surfaces from a single status string: "This document is pending final approval by the RMC Director."thead/tfoot, the only cross-browser way to get a running header (@pagemargin boxes are unsupported in Chrome and Firefox). It also overrides the* { color: #000 !important }reset inprint.css, which previously flattened the watermark to solid black when printed.DocItemswizzle, which existed only to render the watermark.doc_locationto the RMC TotalRisk Verification Report entry.getDraftDocLocations()filters on that field, so the only active draft doc with built pages was being dropped from the list — meaning no draft marking has been reaching a production build.