Skip to content

Adding watermarks to markdown pages? #7365

Answered by alexvoss
rachel-rigdon-sp asked this question in Q&A
Discussion options

You must be logged in to vote

Found a Codepen that does a similar things and modified the CSS a bit to get this:

.md-content__inner.md-typeset:before {
  content: "DRAFT";
  -webkit-transform: rotate(331deg);
  -moz-transform: rotate(331deg);
  -o-transform: rotate(331deg);
  transform: rotate(331deg);
  font-size: 20em;
  color: rgba(255, 5, 5, 0.17);
  position: absolute;
}

Hope this helps. Might need some refinement.

Replies: 2 comments 2 replies

Comment options

alexvoss
Jul 15, 2024
Collaborator Sponsor

You must be logged in to vote
0 replies
Comment options

alexvoss
Jul 15, 2024
Collaborator Sponsor

You must be logged in to vote
2 replies
@rachel-rigdon-sp
Comment options

@rachel-rigdon-sp
Comment options

Answer selected by squidfunk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants