Browse Source

Using built-in fonts

main
Logan McGrath 5 months ago
parent
commit
4401537ec6
Signed by: keywordsalad GPG Key ID: C341CACC5E3A267C
  1. 65
      site/css/_fonts.scss
  2. 6
      site/css/_variables.scss
  3. 1
      site/css/main.scss
  4. BIN
      site/fonts/NotoSans/NotoSans-Bold.ttf
  5. BIN
      site/fonts/NotoSans/NotoSans-BoldItalic.ttf
  6. BIN
      site/fonts/NotoSans/NotoSans-Italic.ttf
  7. BIN
      site/fonts/NotoSans/NotoSans-Regular.ttf
  8. BIN
      site/fonts/NotoSansMono/NotoSansMono-Black.ttf
  9. BIN
      site/fonts/NotoSansMono/NotoSansMono-Bold.ttf
  10. BIN
      site/fonts/NotoSansMono/NotoSansMono-ExtraBold.ttf
  11. BIN
      site/fonts/NotoSansMono/NotoSansMono-ExtraLight.ttf
  12. BIN
      site/fonts/NotoSansMono/NotoSansMono-Light.ttf
  13. BIN
      site/fonts/NotoSansMono/NotoSansMono-Medium.ttf
  14. BIN
      site/fonts/NotoSansMono/NotoSansMono-Regular.ttf
  15. BIN
      site/fonts/NotoSansMono/NotoSansMono-SemiBold.ttf
  16. BIN
      site/fonts/NotoSansMono/NotoSansMono-Thin.ttf
  17. BIN
      site/fonts/NotoSansMono/NotoSansMono-VariableFont_wdth,wght.ttf
  18. BIN
      site/fonts/NotoSerif/NotoSerif-Bold.ttf
  19. BIN
      site/fonts/NotoSerif/NotoSerif-BoldItalic.ttf
  20. BIN
      site/fonts/NotoSerif/NotoSerif-Italic.ttf
  21. BIN
      site/fonts/NotoSerif/NotoSerif-Regular.ttf
  22. 5
      src/Green/Site/Static.hs

65
site/css/_fonts.scss

@ -1,65 +0,0 @@
// NOTO SANS ///////////////////////////////////////////////////////////////////
@font-face {
font-family: "Noto Sans";
src: url("/fonts/NotoSans/NotoSans-Regular.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "Noto Sans";
src: url("/fonts/NotoSans/NotoSans-Bold.ttf") format("truetype");
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: "Noto Sans";
src: url("/fonts/NotoSans/NotoSans-Italic.ttf") format("truetype");
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: "Noto Sans";
src: url("/fonts/NotoSans/NotoSans-BoldItalic.ttf") format("truetype");
font-weight: bold;
font-style: italic;
}
// NOTO SERIF //////////////////////////////////////////////////////////////////
@font-face {
font-family: "Noto Serif";
src: url("/fonts/NotoSerif/NotoSerif-Regular.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "Noto Serif";
src: url("/fonts/NotoSerif/NotoSerif-Bold.ttf") format("truetype");
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: "Noto Serif";
src: url("/fonts/NotoSerif/NotoSerif-Italic.ttf") format("truetype");
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: "Noto Serif";
src: url("/fonts/NotoSerif/NotoSerif-BoldItalic.ttf") format("truetype");
font-weight: bold;
font-style: italic;
}
// NOTO SANS MONO //////////////////////////////////////////////////////////////
@font-face {
font-family: "Noto Sans Mono";
src: url("/fonts/NotoSansMono/NotoSansMono-Regular.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "Noto Sans Mono";
src: url("/fonts/NotoSansMono/NotoSansMono-Bold.ttf") format("truetype");
font-weight: bold;
font-style: normal;
}

6
site/css/_variables.scss

@ -2,8 +2,8 @@
$signature-green: darkgreen;
$font-family-sans-serif: "Noto Sans", sans-serif;
$font-family-serif: "Noto Serif", serif;
$font-family-sans-serif: Arial, Helvetica, sans-serif;
$font-family-serif: "Times New Roman", serif;
$root-background: #ffffff;
$root-font-family: $font-family-sans-serif;
@ -28,7 +28,7 @@ $text-font-size-tiny: $text-font-size * 0.85;
$text-font-size-miniscule: $text-font-size * 0.8;
$text-font-size-large: $text-font-size * 1.1;
$code-font-family: "Noto Sans Mono", monospace;
$code-font-family: monospace;
$code-font-size: 0.9em;
$code-color: #005300;
$source-code-color: #004a4a;

1
site/css/main.scss

@ -1,6 +1,5 @@
@import "theme";
@import "fonts";
@import "elements/default";
@import "elements/headers";
@import "elements/asides";

BIN
site/fonts/NotoSans/NotoSans-Bold.ttf

Binary file not shown.

BIN
site/fonts/NotoSans/NotoSans-BoldItalic.ttf

Binary file not shown.

BIN
site/fonts/NotoSans/NotoSans-Italic.ttf

Binary file not shown.

BIN
site/fonts/NotoSans/NotoSans-Regular.ttf

Binary file not shown.

BIN
site/fonts/NotoSansMono/NotoSansMono-Black.ttf

Binary file not shown.

BIN
site/fonts/NotoSansMono/NotoSansMono-Bold.ttf

Binary file not shown.

BIN
site/fonts/NotoSansMono/NotoSansMono-ExtraBold.ttf

Binary file not shown.

BIN
site/fonts/NotoSansMono/NotoSansMono-ExtraLight.ttf

Binary file not shown.

BIN
site/fonts/NotoSansMono/NotoSansMono-Light.ttf

Binary file not shown.

BIN
site/fonts/NotoSansMono/NotoSansMono-Medium.ttf

Binary file not shown.

BIN
site/fonts/NotoSansMono/NotoSansMono-Regular.ttf

Binary file not shown.

BIN
site/fonts/NotoSansMono/NotoSansMono-SemiBold.ttf

Binary file not shown.

BIN
site/fonts/NotoSansMono/NotoSansMono-Thin.ttf

Binary file not shown.

BIN
site/fonts/NotoSansMono/NotoSansMono-VariableFont_wdth,wght.ttf

Binary file not shown.

BIN
site/fonts/NotoSerif/NotoSerif-Bold.ttf

Binary file not shown.

BIN
site/fonts/NotoSerif/NotoSerif-BoldItalic.ttf

Binary file not shown.

BIN
site/fonts/NotoSerif/NotoSerif-Italic.ttf

Binary file not shown.

BIN
site/fonts/NotoSerif/NotoSerif-Regular.ttf

Binary file not shown.

5
src/Green/Site/Static.hs

@ -3,7 +3,4 @@ module Green.Site.Static where
import Green.Common
static :: Rules ()
static = do
match "fonts/**" do
route idRoute
compile copyFileCompiler
static = return ()

Loading…
Cancel
Save