Skip to content

Commit

Permalink
refactor(deps): upgrade abridge
Browse files Browse the repository at this point in the history
  • Loading branch information
Guekka committed Jan 24, 2024
1 parent 6c9816b commit f1ddcb0
Show file tree
Hide file tree
Showing 11 changed files with 543 additions and 147 deletions.
13 changes: 12 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
public/*
.env
public
themes
build
storage
node_modules
package-lock.json
static/demo.html
static/tinysearch_engine.js
static/tinysearch_engine.d.ts
static/tinysearch_engine_bg.wasm.d.ts
static/package.json
411 changes: 272 additions & 139 deletions config.toml

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions content/_index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
+++
paginate_by = 3
sort_by = "date"
template = "index.html"

[extra]
sec = ""
+++
6 changes: 6 additions & 0 deletions content/archive/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
+++
template = "archive.html"

[extra]
sec = ""
+++
3 changes: 2 additions & 1 deletion content/posts/_index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
+++
title = "posts"
template = "posts.html"
paginate_by = 10
template = "index.html"
+++
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/default";
};

Expand Down
3 changes: 3 additions & 0 deletions sass/_extra.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/******************************************************************************
* Extra - Put your extra SASS/CSS here, it will get bundled with abridge.css
*****************************************************************************/
221 changes: 221 additions & 0 deletions sass/abridge.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
/// Color variables
$base-h: 0;
$base-s: 0;
$base-d: 15%;
$base-l: 96%;

$theme-accent-h: 129;
$theme-accent-s: 31.9%;
$theme-accent-l: 46.7%;
$theme-accent-d: 46.7%;

$background-light-theme-secondary: rgb(228, 220, 200);
$background-dark-theme-secondary: rgb(58, 52, 46);

@use '../themes/abridge/sass/abridge' with (
/// LINES HERE END WITH COMMA AFTER THE VALUE!
/// The things your less likely to need to override have been commented out.

/// Enable a centered viewport for <header>, <main>, <footer> inside <body>
/// Fluid layout until a defined size, then becomes centered viewport.
//$enable-maxwidth: true,
$mw: 70%,// max-width
//$mb: 1200px,// value at which to switch from fluid layout to max-width

$abridgeMode: "switcher",//valid values: switcher, auto, dark, light
$syntax-mode: "auto",// Force syntax mode: auto, dark, light
$switcherDefault: "dark",// default nojs switcher mode: dark, light (make sure to also set js_switcher_default in config.toml)

$color: "orange",// color template to use/override: orange, blue, blueshade

$color-syntax: "abridge",// syntax color template to use/override: abridge,
$syntax: true,//syntax highlighting for Code Blocks.

$enable-icons: true,// false disables ALL icons
$ic: true,// true for colorized icons, otherwise #888 is used.

$icon-rss: true,
$icon-mail: false,// e-mail
$icon-mastodon: false,
$icon-element: false,
$icon-matrix: false,
$icon-buymeacoffee: false,
$icon-kofi: true,
$icon-twitter: false,
$icon-facebook: false,
$icon-linkedin: false,
$icon-codeberg: false,
$icon-gitlab: true,
$icon-github: true,
$icon-github-sponsor: true,
$icon-bitbucket: false,
$icon-python: false,
$icon-docker: false,
$icon-stack: false,
$icon-instagram: false,
$icon-pixelfed: false,
$icon-pinterest: false,
$icon-discord: false,
$icon-twitch: false,
$icon-youtube: false,
$icon-researchgate: false,

//$icon-x: true,// x symbol, used to close search results page.
//$icon-search: true,//search, spyglass search button in search box.
$icon-adjust: true,//theme switcher dark/light toggle button.
//$icon-angll: true,//pagination, goto first page
//$icon-angl: true,//pagination, goto previous page
//$icon-angr: true,//pagination, goto next page
//$icon-angrr: true,//pagination, goto last page
//$icon-angu: true,//back to top button, appears after scrolling down.
//$icon-world: true,//language select menu
$icon-copy: true,//copy to clipboard, for code blocks.

//$icon-ffolder: false,
//$icon-folder: false,// categories folder
//$icon-ftag: false,
//$icon-tag: false,// tag
//$icon-check: false,// check mark
//$icon-chevron: false,// chevron down
//$icon-clock: false,// time analog clock
//$icon-date: false,// calendar
//$icon-globe: false,
//$icon-home: false,
//$icon-minus: false,// minus symbol
//$icon-moon: false,// dark moon
//$icon-sun: false,// light sun



/// The colors below can be overrided individually as needed.

/// Dark Colors
//$f1d: #ccc,// Font Color Primary
//$f2d: #ddd,// Font Color Headers
$c1d: hsl($base-h, $base-s, $base-d),// Background Color Primary
$c2d: $background-dark-theme-secondary,// Background Color Secondary
//$c3d: #333,// Table Rows, Block quote edge, Borders
//$c4d: #777,// Disabled Buttons, Borders, mark background
//$a1d: #f90,// link color
//$a2d: #fb0,// link hover/focus color
//$a3d: #f90,// link h1-h2 hover/focus color
//$a4d: #f90,// link visited color
//$cgd: #593,// ins green, success
//$crd: #e33,// del red, errors

/// Light Colors
//$f1: #333,// Font Color Primary
//$f2: #222,// Font Color Headers
$c1: hsl(calc($base-h + 44), calc($base-s + 79%), calc($base-l - 2%)),// Background Color Primary
$c2: $background-light-theme-secondary,// Background Color Secondary
//$c3: #ddd,// Table Rows, Block quote edge, Borders
//$c4: #555,// Disabled Buttons, Borders, mark background
//$a1: #c40,// link color
//$a2: #e60,// link hover/focus color
//$a3: #f90,// link h1-h2 hover/focus color
//$a4: #c40,// link visited color
//$cg: #373,// ins green, success
//$cr: #d33,// del red, errors

/// Dark Syntax Colors
$h0d: $background-dark-theme-secondary,// background color
//$h1d: #ddd,// unstyled text
//$h2d: #888,// comments
//$h3d: #e65,// red, support function
//$h4d: #e83,// orange, punctuation, constant, variable, json-key
//$h5d: #eb6,// tan, entity/function name
//$h6d: #ac3,// green, string
//$h7d: #8db,// teal, escape character
//$h8d: #6ae,// blue, declaration, tag, property
//$h9d: #d6e,// purple, operators
//$had: 160%,// mark/highlight line

/// Light Syntax Colors
$h0: $background-light-theme-secondary,// background color
//$h1: #222,// unstyled text
//$h2: #666,// comments
//$h3: #a21,// red, support function
//$h4: #930,// orange, punctuation, constant, variable, json-key
//$h5: #a50,// tan, entity/function name
//$h6: #350,// green, string
//$h7: #286,// teal, escape character
//$h8: #059,// blue, declaration, tag, property
//$h9: #a3c,// purple, operators
//$ha: 92%,// mark/highlight line

/// These lines find the spot at which to insert your appended fonts.
//$findFont-Main: "Segoe UI", // ← APPEND custom MAIN font(s) AFTER this
//$findFont-Code: "Segoe UI Mono",// ← APPEND custom CODE font(s) AFTER this

/// If you want to prepend the font list, then use null instead:
$findFont-Main: null, // ← PREPEND custom MAIN font(s)
$findFont-Code: null, // ← PREPEND custom CODE font(s)

/// These lines specify the fonts to add.
$fontExt-Main: ("iA Writer Quattro S"),// MAIN font(s) to add
//$fontExt-Code: (ExampleCode1, "Example Code 2"),// CODE font(s) to add

/// If relying on installed fonts alone, then the above is all you need, if the visiting system has the intended font installed then it will use it!
/// However, if you want to load the Font File resource to ensure it is loaded if they do not have it, then use @use at the VERY Bottom of this file.
/// For a Sans based system font stack, I measured the least Cumulative Layout Shift with: Roboto, Lato, Arimo

/// If prepending/appending fonts above, then no need to change them with the 2 below lines.
/// The following 2 below lines give a way to hard code a font list if you prefer.
//$font: Roboto system-ui -apple-system BlinkMacSystemFont "Segoe UI" Oxygen Ubuntu Cantarell "Fira Sans" "Droid Sans" "Helvetica Neue" "Noto Sans" Helvetica Arial sans-serif,
//$font-mono: ui-monospace Menlo Monaco Consolas "SF Mono" "Cascadia Mono" "Segoe UI Mono" "DejaVu Sans Mono" "Liberation Mono" "Roboto Mono" "Oxygen Mono" "Ubuntu Monospace" "Ubuntu Mono" "Source Code Pro" "Fira Mono" "Droid Sans Mono" "Courier New" Courier monospace,

/// Enable <header>, <main>, <footer> inside <body> as a container
//$enable-semantic-container: true,

/// Enable responsive typography, Fixed root element size if disabled
//$enable-responsive-typography: true,

/// Enable responsive spacings for <header>, <main>, <footer>, <section>
//$enable-responsive-spacings: false,

/// Enable a centered viewport for <header>, <main>, <footer> inside <body>
/// This option will only work if $enable-maxwidth: false
//$enable-viewport: false,

/// xs: Extra small (portrait phones)
/// sm: Small(landscape phones)
/// md: Medium(tablets)
/// lg: Large(desktops)
/// xl: Extra large (large desktops)

/// Breakpoints
//$breakpoints: (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px),

/// Viewports
//$viewports: (sm: 510px, md: 700px, lg: 920px, xl: 1130px),

//$document: true,//Content-box & Responsive typography
//$typography: true,//a, headings, p, ul, blockquote
//$sectioning: true,//responsive Container, header, main, footer
//$nav: true,//Horizontal Navigation at top of page
//$embedded: true,//Embedded content, iframe, video, images, etc.
//$table: true,//table specific elements
//$code: true,//codeblocks, code, pre, kbd
//$hr: true,//Horizontal Rule
//$scroller: true,//Horizontal scroller (<figure>)
//$button: true,//Form elements (button)
//$form: true,//Form elements (non-button)
//$top: true,//back to top button using CSS
//$search: true,//search feature
//$blocks: true,//css classes for block formatting, eg: recent posts, table of contents, series navigation
//$series: true,//series navigation list
//$modifiers: true,//tiny modifier classes for sizing, spacing, etc.
//$misc: false,
//$grid: true,//Infinity Grid, column based layouts.
//$syntax: true,//syntax highlighting for code blocks
);
@use "extra";
/******************************************************************************
* FONTS - Abridge by default uses the System Font Stack
* https://css-tricks.com/snippets/css/system-font-stack/
* However if you need you can load a specific font below,
* make sure to have the relevant woff2 fonts in your static/fonts folder
* I measured the least Cumulative Layout Shift with: Roboto, Lato, Arimo
*****************************************************************************/
//@use "fonts/Roboto";
//@use "fonts/Arimo";
17 changes: 17 additions & 0 deletions sass/fonts/_Arimo.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@font-face {
font-family: 'Arimo';
src: local("Arimo"), url("fonts/Arimo.woff2");//latin regular
font-display: swap;
}
@font-face {
font-family: 'Arimo';
src: local("Arimo-Italic"), url("fonts/Arimo-Italic.woff2");//latin italic
font-style: italic;
font-display: swap;
}
@font-face {
font-family: 'Arimo';
src: local("Arimo-Bold"), url("fonts/Arimo-Bold.woff2");//latin bold
font-weight: bold;
font-display: swap;
}
2 changes: 1 addition & 1 deletion themes/abridge
Submodule abridge updated 304 files

0 comments on commit f1ddcb0

Please sign in to comment.