Remove drafted watermark for now

The implementation wasn't as clean as I'd like it to be
This commit is contained in:
daudix
2024-10-12 18:17:45 +03:00
parent de43c29786
commit 003ec0b29a
3 changed files with 0 additions and 33 deletions

View File

@ -9,7 +9,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Add "DRAFTED" watermark to drafted posts.
- Support `fediverse:creator` meta tag.
### Changed

View File

@ -1,29 +1,3 @@
#draft-watermark {
position: fixed;
container-type: size;
margin: 0 auto;
inset: 50vh 0;
width: min(var(--container-width), 90%);
span {
-webkit-user-select: none;
display: block;
transform: translateY(-50%) rotate(-45deg);
margin: 0 auto;
border: 1.5cqw solid var(--fg-muted-1);
border-radius: 2cqw;
padding: 4cqw;
width: fit-content;
resize: horizontal;
pointer-events: none;
color: var(--fg-muted-1);
font-size: 20cqw;
line-height: 1;
user-select: none;
text-transform: uppercase;
}
}
#banner-container {
--mask: linear-gradient(black, transparent);
-webkit-user-select: none;

View File

@ -12,12 +12,6 @@
{%- endif -%}
<article>
{%- if page.draft -%}
<div id="draft-watermark">
<span>{{- macros_translate::translate(key="drafted", default="Drafted", language_strings=language_strings) -}}</span>
</div>
{%- endif -%}
{%- if page.extra.banner -%}
<div id="banner-container">
<img id="banner" class="full-bleed{% if page.extra.banner_pixels %} pixels{% endif %}" src="{{ current_url ~ page.extra.banner }}" {% if config.markdown.lazy_async_image %}decoding="async" loading="lazy"{% endif %} />