From 9fa50b26541af1fd275435f6eca86b19650f3a21 Mon Sep 17 00:00:00 2001 From: Atlas Cove Date: Sat, 11 Feb 2023 16:23:58 +0000 Subject: [PATCH] HTML Setup --- in/css/extra.scss | 19 +++++++++++++++++++ in/css/main.scss | 5 +++-- in/css/mgh.sass | 3 +-- in/dnd/villains.org | 2 +- in/mgh/intro.txti | 0 5 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 in/css/extra.scss create mode 100644 in/mgh/intro.txti diff --git a/in/css/extra.scss b/in/css/extra.scss new file mode 100644 index 0000000..2154972 --- /dev/null +++ b/in/css/extra.scss @@ -0,0 +1,19 @@ +@mixin font($font) { + //no support for case so gonna have to YandereDev this. + @if($font=="sans") { + font-family: Arial, Helvetica, sans-serif; + } + @else if($font=="serif") { + font-family: "Times New Roman", Times, serif; + } + @else if($font=="mono") { + font-family: "Courier New", Courier, monospace; + } + @else { + @warn "Unknown value passed to mixin font: #{$font}." + } +} + +@mixin font-settings($weight: 0, $width: 0, $yopq: 0, $slant: 0) { + font-variation-settings: 'wght'$weight, 'wdth'$width, 'YOPQ'$yopq, 'slnt'$slant +} diff --git a/in/css/main.scss b/in/css/main.scss index 31e178e..e50285c 100644 --- a/in/css/main.scss +++ b/in/css/main.scss @@ -1,4 +1,5 @@ -body { - font-family: sans-serif; +@import "extra.scss"; +.content { + @include font('sans'); margin-left: 2em; } diff --git a/in/css/mgh.sass b/in/css/mgh.sass index 9819aa2..05309b0 100644 --- a/in/css/mgh.sass +++ b/in/css/mgh.sass @@ -1,5 +1,4 @@ -@mixin font-settings($weight:0,$width:0,$yopq:0,$slant:0) - font-variation-settings: 'wght' $weight,'wdth' $width, 'YOPQ' $yopq, 'slnt' $slant +@import "extra.scss" @font-face font-family: 'Science Gothic', monospace src: url('font/science-gothic.ttf') format('truetype') diff --git a/in/dnd/villains.org b/in/dnd/villains.org index ca822dd..3f184cf 100644 --- a/in/dnd/villains.org +++ b/in/dnd/villains.org @@ -2,4 +2,4 @@ #+OPTIONS: num:nil toc:1 #+STARTUP: entitiespretty * Xaviard -See: [[file:./xavard.org]] +See: [[xaviard.html]] diff --git a/in/mgh/intro.txti b/in/mgh/intro.txti new file mode 100644 index 0000000..e69de29