Skip to content

Commit

Permalink
Merge pull request #100 from scpwiki/redactrect
Browse files Browse the repository at this point in the history
Add redaction character font
  • Loading branch information
rossjrw authored May 24, 2024
2 parents b6dbf95 + 362213f commit 559f440
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
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: */

0 comments on commit 559f440

Please sign in to comment.