From 3af6d9131f6dfc138856d718ec96626344095ec8 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Mon, 22 May 2023 23:24:44 -0700 Subject: Optimizations and Fixes --- sass/_colors.scss | 50 ----- sass/_syntax.scss | 39 ---- sass/abridge.scss | 461 +++++++++++++++++++++++---------------- sass/colors-syntax/_abridge.scss | 61 ++++++ sass/colors/_blue.scss | 50 +++++ sass/colors/_blueshade.scss | 50 +++++ sass/colors/_orange.scss | 50 +++++ 7 files changed, 484 insertions(+), 277 deletions(-) delete mode 100644 sass/_colors.scss delete mode 100644 sass/_syntax.scss create mode 100644 sass/colors-syntax/_abridge.scss create mode 100644 sass/colors/_blue.scss create mode 100644 sass/colors/_blueshade.scss create mode 100644 sass/colors/_orange.scss (limited to 'sass') diff --git a/sass/_colors.scss b/sass/_colors.scss deleted file mode 100644 index 46a21db..0000000 --- a/sass/_colors.scss +++ /dev/null @@ -1,50 +0,0 @@ -@mixin dark( - $f1: #ccc, - $f2: #ddd, - $c1: #111, - $c2: #222, - $c3: #333, - $c4: #888, - $a1: #f90, - $a2: #fb0, - $a3: #f90, - $cg: #593, - $cr: #e33 -) { - #{--f1}: $f1;// Font Color Primary (ccc) - #{--f2}: $f2;// Font Color Headers (ddd) - #{--c1}: $c1;// Background Color Primary (111) - #{--c2}: $c2;// Background Color Secondary (222) - #{--c3}: $c3;// Table Rows, Block quote edge, Borders (333) - #{--c4}: $c4;// Disabled Buttons, Borders, mark background (888) - #{--a1}: $a1;// link color (f90) - #{--a2}: $a2;// link hover/focus color (fb0) - #{--a3}: $a3;// link h1-h2 hover/focus color (f90) - #{--cg}: $cg;// ins green, success (593) - #{--cr}: $cr;// del red, errors (e33) -} -@mixin light( - $f1: #333, - $f2: #222, - $c1: #fff, - $c2: #eee, - $c3: #ddd, - $c4: #555, - $a1: #c40, - $a2: #e60, - $a3: #f90, - $cg: #373, - $cr: #d33 -) { - #{--f1}: $f1;// Font Color Primary (444) - #{--f2}: $f2;// Font Color Headers (333) - #{--c1}: $c1;// Background Color Primary (fff) - #{--c2}: $c2;// Background Color Secondary (eee) - #{--c3}: $c3;// Table Rows, Block quote edge, Borders (ddd) - #{--c4}: $c4;// Disabled Buttons, Borders, mark background (677) - #{--a1}: $a1;// link color (c40) - #{--a2}: $a2;// link hover/focus color (e60) - #{--a3}: $a3;// link h1-h2 hover/focus color (f90) - #{--cg}: $cg;// ins green, success (373) - #{--cr}: $cr;// del red, errors (d33) -} diff --git a/sass/_syntax.scss b/sass/_syntax.scss deleted file mode 100644 index 0f822d7..0000000 --- a/sass/_syntax.scss +++ /dev/null @@ -1,39 +0,0 @@ -// Syntax Highlighting -@mixin dark( - $bg: #191919, - $h1: #e65, - $h2: #f91, - $h3: #eb6, - $h4: #ac3, - $h5: #8db, - $h6: #6ae, - $h7: #d6e -) { - #{--bg}: $bg;// background color - #{--h1}: $h1;// red, support function - #{--h2}: $h2;// orange, punctuation, constant, variable, json-key - #{--h3}: $h3;// tan, entity/function name - #{--h4}: $h4;// green, string - #{--h5}: $h5;// teal, escape character - #{--h6}: $h6;// blue, declaration, tag, property - #{--h7}: $h7;// purple, operators -} -@mixin light( - $bg: #f7f7f7, - $h1: #a21, - $h2: #930, - $h3: #a50, - $h4: #350, - $h5: #286, - $h6: #059, - $h7: #a3c -) { - #{--bg}: $bg;// background color - #{--h1}: $h1;// red, support function - #{--h2}: $h2;// orange, punctuation, constant, variable, json-key - #{--h3}: $h3;// tan, entity/function name - #{--h4}: $h4;// green, string - #{--h5}: $h5;// teal, escape character - #{--h6}: $h6;// blue, declaration, tag, property - #{--h7}: $h7;// purple, operators -} diff --git a/sass/abridge.scss b/sass/abridge.scss index 3c7236e..1e20079 100644 --- a/sass/abridge.scss +++ b/sass/abridge.scss @@ -2,38 +2,34 @@ @use "sass:list"; @use "functions"; -@use "colors"; -@use "syntax"; /****************************************************************************** * Variables *****************************************************************************/ -$abridgeMode: "switcher" !default;//valid values: switcher, auto, dark, light - /// Enable a centered viewport for
,
,