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

Use font and color of Wagtail brand #194

Merged
merged 1 commit into from
Aug 18, 2022
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
5 changes: 3 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
Welcome to "Sphinx Wagtail theme" documentation!
================================================

.. image:: https://raw.githubusercontent.com/wagtail/sphinx_wagtail_theme/main/img/screenshot.png
:alt: Sphinx Wagtail theme screenshot
This is the Sphinx theme used for the official Wagtail docs. All Wagtail-related
projects are welcome and encouraged to also use this theme! To see what this
theme looks like, checkout our :doc:`examples <examples/index>`.

.. toctree::
:maxdepth: 2
Expand Down
96 changes: 0 additions & 96 deletions fonts/source-code-pro/LICENSE.txt

This file was deleted.

Binary file removed fonts/source-code-pro/SourceCodePro-Bold.ttf.woff2
Binary file not shown.
Binary file not shown.
Binary file removed fonts/source-code-pro/SourceCodePro-It.ttf.woff2
Binary file not shown.
Binary file not shown.
96 changes: 0 additions & 96 deletions fonts/source-sans/LICENSE.txt

This file was deleted.

Binary file removed fonts/source-sans/SourceSans3-Bold.ttf.woff2
Binary file not shown.
Binary file removed fonts/source-sans/SourceSans3-BoldIt.ttf.woff2
Binary file not shown.
Binary file removed fonts/source-sans/SourceSans3-It.ttf.woff2
Binary file not shown.
Binary file removed fonts/source-sans/SourceSans3-Regular.ttf.woff2
Binary file not shown.
Binary file removed img/screenshot.png
Binary file not shown.
56 changes: 0 additions & 56 deletions sass/_fonts.scss

This file was deleted.

53 changes: 49 additions & 4 deletions sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $gray-900: #212121;
$black: #000;

$teal: #007d7e;
$indigo: #251657;
$indigo: #2e1f5e;
$bright-green: #3beccd;
$bright-green-700: color.adjust($bright-green, $lightness: -15%);
$bright-green-900: color.adjust($bright-green, $lightness: -30%);
Expand Down Expand Up @@ -84,9 +84,54 @@ $base16-base0F: #ff5370;
// Fonts
// --------------------------------------------------

$font-family-sans-serif: "Source Sans 3", sans-serif, "Apple Color Emoji",
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
$font-family-monospace: "Source Code Pro", monospace;
$font-family-sans-serif:
// iOS Safari, macOS Safari, macOS Firefox
"-apple-system",
// macOS Chrome
"BlinkMacSystemFont",
// Windows - for all browsers on Windows 7+ (putting Segoe UI before system-ui ensures Segoe UI will be rendered for different languages)
"Segoe UI",
"system-ui",
// Targets Android and newer Chrome OS. (If Roboto is installed on your windows computer Segoe UI will take precedence.)
"Roboto",
// A common fallback font for older macOS
"Helvetica Neue",
// Very old Windows versions (special shout-out to whoever is using windows 95)
"Arial",
// A last resort if all else fails, just give us something without serifs :)
sans-serif,
// All the emojis 👋🙂
"Apple Color Emoji",
"Segoe UI Emoji",
"Segoe UI Symbol",
"Noto Color Emoji";

$font-family-monospace:
// iOS Safari, MacOS Safari
"ui-monospace",
"Menlo",
"Monaco",
// Windows,
"Cascadia Mono",
"Segoe UI Mono",
// Linux
"Roboto Mono",
"Oxygen Mono",
"Ubuntu Monospace",
// Android
"Source Code Pro",
// Firefox
"Fira Mono",
// Last resort Android/others
"Droid Sans Mono",
"Courier New",
monospace,
// All the emojis 👋🙂
"Apple Color Emoji",
"Segoe UI Emoji",
"Segoe UI Symbol",
"Noto Color Emoji";

$font-weight-bold: 700;

$h1-font-size: 2em;
Expand Down
3 changes: 0 additions & 3 deletions sass/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
@import "../node_modules/@fortawesome/fontawesome-free/scss/variables";
@import "../node_modules/bootstrap/scss/bootstrap";

// fonts
@import "fonts";

// components
@import "component_admotion";
@import "component_figure";
Expand Down