Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add redaction character font #100

Merged
merged 4 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion fonts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ Sigma-9's header font. Licensed under [SIL Open Font License 1.1](https://github

## [Nanum Gothic](https://fonts.google.com/specimen/Nanum+Gothic)

Tertiary and fallback font. Licensed under [SIL Open Font License 1.1](https://fonts.google.com/specimen/Nanum+Gothic/about).
Tertiary and fallback font. Licensed under [SIL Open Font License 1.1](https://fonts.google.com/specimen/Nanum+Gothic/about).

## RedactRect

Provides a fallback redaction character (FULL BLOCK, U+2588) that matches the width of Inter. Licensed under SIL Open Font License 1.1, copyright The SCP Wiki.
Binary file added fonts/RedactRect.woff2
Binary file not shown.
29 changes: 18 additions & 11 deletions sigma.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@
format('woff2');
}

@font-face {
font-family: RedactRect;
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('https://scpwiki.github.io/sigma/fonts/RedactRect.woff2')
format('woff2');
unicode-range: U+2588;
}

/* COMMON */
#content-wrap {
position: relative;
Expand Down Expand Up @@ -166,8 +176,9 @@ body {
background-color: #fff;
font-size: 0.95em;
color: #333;
font-family: Inter, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-family: Inter, RedactRect, BlinkMacSystemFont, 'Segoe UI', Roboto,
Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
font-feature-settings: 'case', 'ss01', 'ss04';
}

Expand Down Expand Up @@ -1360,22 +1371,18 @@ div#u-adult-warning > .error-block {
margin-bottom: 1em;
}

/* fix for adblocker accidentally blocking fileupload pane from displaying */

/*
Details: EasyList update 2024.05.10; adding AC_OETags.js to their blocklist
Fix for adblocker accidentally blocking file upload pane from displaying
EasyList update 2024.05.10 added AC_OETags.js to their blocklist

Wikidot uses AC_OETags.js to switch between the regular Ajax and the (now-defunct) Flash upload panes
Both has inline 'display: none', which is controlled by activation of AC_OETags.js
Both have inline 'display: none', which is controlled by activation of AC_OETags.js

Blockers like uBlock Origin uses EasyList, resulting in accidental breakge on the wiki
Hence the CSS below

TODO: in the future, if no longer a problem, remove this fix
*/

#file-upload-box-ajax {
display: block !important;
}
display: block !important;
}

/* vim: set noet: */