From 3553b6c44a80ea8fa503cde6eeeedb22d9a58b5b Mon Sep 17 00:00:00 2001 From: Sakura Akeno Isayeki Date: Sat, 5 Aug 2023 18:01:06 +0200 Subject: [PATCH] feat: Add .gitignore files for vault and pages - Added a new .gitignore file in the "vault" directory to ignore certain files except for specific ones. - Added a new .gitignore file in the "pages/vault" directory to ignore all files except for ".gitignore" and ".astro". - Updated the import URL for the Nunito font in "_global.scss" to use a protocol-relative URL. - Removed the text-align property from the @mixin "font-styles" in "_mixins.scss". --- .../src/pages/vault/.gitignore | 6 ++++++ nodsoft_moltenobsidian_web/src/styles/_global.scss | 12 ++++++++---- nodsoft_moltenobsidian_web/src/styles/_mixins.scss | 3 +-- nodsoft_moltenobsidian_web/vault/.gitignore | 8 ++++++++ 4 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 nodsoft_moltenobsidian_web/src/pages/vault/.gitignore create mode 100644 nodsoft_moltenobsidian_web/vault/.gitignore diff --git a/nodsoft_moltenobsidian_web/src/pages/vault/.gitignore b/nodsoft_moltenobsidian_web/src/pages/vault/.gitignore new file mode 100644 index 0000000..3566198 --- /dev/null +++ b/nodsoft_moltenobsidian_web/src/pages/vault/.gitignore @@ -0,0 +1,6 @@ +# Ignore everything +* + +# Except these files +!.gitignore +!.astro \ No newline at end of file diff --git a/nodsoft_moltenobsidian_web/src/styles/_global.scss b/nodsoft_moltenobsidian_web/src/styles/_global.scss index 7be97f3..b9a5698 100644 --- a/nodsoft_moltenobsidian_web/src/styles/_global.scss +++ b/nodsoft_moltenobsidian_web/src/styles/_global.scss @@ -1,20 +1,20 @@ @use "variables" as *; @use "mixins" as *; -@import url("https://fonts.googleapis.com/css2?family=Nunito"); +@import url("//fonts.googleapis.com/css2?family=Nunito"); -html { +html, .html { font-family: Nunito, system-ui, sans-serif; background: #13151A; background-size: 224px; } -code { +code, .code { font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace; } -main { +main, .main { margin: auto; padding: 1rem; width: 800px; @@ -34,6 +34,10 @@ main { z-index: -1; } +.center { + text-align: center; +} + h1 { @include font-styles(4rem); } diff --git a/nodsoft_moltenobsidian_web/src/styles/_mixins.scss b/nodsoft_moltenobsidian_web/src/styles/_mixins.scss index 92b5072..6427ea3 100644 --- a/nodsoft_moltenobsidian_web/src/styles/_mixins.scss +++ b/nodsoft_moltenobsidian_web/src/styles/_mixins.scss @@ -1,7 +1,6 @@ -@mixin font-styles($size, $weight: 700, $line-height: 1, $align: center, $margin-bottom: 1em) { +@mixin font-styles($size, $weight: 700, $line-height: 1, $margin-bottom: 1em) { font-size: $size; font-weight: $weight; line-height: $line-height; - text-align: $align; margin-bottom: $margin-bottom; } diff --git a/nodsoft_moltenobsidian_web/vault/.gitignore b/nodsoft_moltenobsidian_web/vault/.gitignore new file mode 100644 index 0000000..de5f71d --- /dev/null +++ b/nodsoft_moltenobsidian_web/vault/.gitignore @@ -0,0 +1,8 @@ +.obsidian/* +!.obsidian/app.json +!.obsidian/appearance.json +!.obsidian/config +!.obsidian/community-plugins.json +!.obsidian/core-plugins.json +!.obsidian/graph.json +!.obsidian/hotkeys.json \ No newline at end of file