Compare commits

...

10 Commits

Author SHA1 Message Date
Leo
b16c177c47 Space out sidebar links. Blacken hovered links. 2025-01-23 18:27:52 -06:00
Leo
6c40a15cc9 Update Prism colors. 2025-01-23 17:39:34 -06:00
Leo
108399b774 Merge remote-tracking branch 'origin/master' 2025-01-23 17:02:09 -06:00
Leo
5f016faf16 Update Prism colors. 2025-01-23 16:48:16 -06:00
Leo
2352d821bb Add .leader class. 2024-09-28 15:23:03 -05:00
Leo
3311dfb5e0 Prevent font awesome icons from being underlined in links. 2024-09-21 16:54:11 -05:00
Leo
62da566b48 Transition dropdown menus on opacity only. 2024-09-20 19:04:39 -05:00
Leo
6182f81f82 Make all dropdown menus auto drop on hover. 2024-09-13 01:17:31 -05:00
Leo
a61f3240f9 Use CSS variables for Prism. 2024-09-11 15:46:38 -05:00
Leo
8461e4e7b4 Improve colors of Prism theme. 2024-09-11 15:10:02 -05:00
8 changed files with 164 additions and 139 deletions

View File

@@ -1,3 +1,7 @@
.leader {
font-size: 1.125rem;
}
.smaller { .smaller {
font-size: 0.9375em; font-size: 0.9375em;
} }

View File

@@ -0,0 +1,25 @@
// Make dropdown menus auto drop
@include media-breakpoint-up(md) {
.dropdown {
.dropdown-menu {
display: block;
opacity: 0;
transition: opacity .15s linear;
pointer-events: none; // Prevent auto show when mouse is below top menu item
min-width: 190px;
}
&:hover {
.dropdown-menu {
display: block;
opacity: 1;
pointer-events: auto; // Prevent auto hide when mouse is in dropdown menu
}
}
.dropdown-menu-end {
right: 0;
left: auto;
}
}
}

View File

@@ -11,30 +11,4 @@
color: #fff; color: #fff;
} }
} }
// Make dropdown menus auto drop
@include media-breakpoint-up(md) {
.dropdown {
.dropdown-menu {
display: block;
opacity: 0;
transition: all .15s linear;
pointer-events: none; // Prevent auto show when mouse is below top menu item
min-width: 190px;
}
&:hover {
.dropdown-menu {
display: block;
opacity: 1;
pointer-events: auto; // Prevent auto hide when mouse is in dropdown menu
}
}
.dropdown-menu-end {
right: 0;
left: auto;
}
}
}
} }

View File

@@ -102,9 +102,6 @@ $dropdown-link-hover-bg: hsl(200, 36%, 95%);
$card-border-width: 0; $card-border-width: 0;
$card-box-shadow: 0 .125rem .25rem rgba($black, .075); $card-box-shadow: 0 .125rem .25rem rgba($black, .075);
// Breadcrumb
$breadcrumb-divider: quote(">");
// Code // Code
$code-font-size: 100% !default; $code-font-size: 100% !default;
$code-color: $purple !default; $code-color: $purple !default;

View File

@@ -0,0 +1,7 @@
.icon-link {
gap: 0;
i::before {
display: inline-block;
}
}

View File

@@ -32,6 +32,7 @@
.sidebar-link { .sidebar-link {
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
margin: 0.125rem 0;
border-radius: 0.5rem; border-radius: 0.5rem;
color: $secondary; color: $secondary;
text-decoration: none; text-decoration: none;
@@ -42,7 +43,7 @@
} }
&:hover { &:hover {
color: $gray-800; color: $black;
background-color: $gray-200; background-color: $gray-200;
text-decoration: none; text-decoration: none;
} }

View File

@@ -10,12 +10,14 @@
// Bootstrap components // Bootstrap components
@import 'bootstrap/reboots'; @import 'bootstrap/reboots';
@import 'bootstrap/buttons'; @import 'bootstrap/buttons';
@import 'bootstrap/dropdown';
@import 'bootstrap/nav'; @import 'bootstrap/nav';
@import 'bootstrap/navbar'; @import 'bootstrap/navbar';
@import 'bootstrap/pagination'; @import 'bootstrap/pagination';
@import 'bootstrap/code'; @import 'bootstrap/code';
@import 'bootstrap/helpers/icon_link';
// Essence components // Essence components
@import 'elements/sidebar'; @import 'elements/sidebar';
@import 'elements/footer'; @import 'elements/footer';

View File

@@ -1,135 +1,150 @@
/** /**
* Prism Essence Theme, based on Material Theme. * Essence's Prism Theme, based on Material Theme, but brighter.
* *
* Author: Leo Nguyen * Author: Leo Nguyen
*/ */
$prism-bg: hsl(220, 25%, 25%); :root {
$prism-gray: hsl(230, 40%, 70%); --prism-bg: hsl(220, 15%, 20%);
$prism-red: hsl(0, 100%, 80%); --prism-gray: hsl(210, 30%, 65%);
$prism-orange: hsl(15, 90%, 70%); --prism-red: hsl(0, 100%, 80%);
$prism-yellow: hsl(50, 100%, 75%); --prism-orange: hsl(30, 100%, 75%);
$prism-green: hsl(100, 80%, 80%); --prism-yellow: hsl(50, 90%, 70%);
$prism-cyan: hsl(200, 100%, 80%); --prism-green: hsl(100, 80%, 80%);
$prism-blue: hsl(230, 100%, 80%); --prism-cyan: hsl(190, 100%, 80%);
$prism-purple: hsl(275, 100%, 80%); --prism-blue: hsl(220, 100%, 85%);
--prism-purple: hsl(275, 100%, 80%);
}
/*.prism-theme-material {
--prism-bg: #263238;
--prism-gray: #546e7a;
--prism-red: #f07178;
--prism-orange: #f78c6c;
--prism-yellow: #ffcb6b;
--prism-green: #c3e88d;
--prism-cyan: #89ddff;
--prism-blue: #82aaff;
--prism-purple: #c792ea;
}*/
pre { pre {
margin: 0.5rem 0 1rem; margin: 0.5rem 0 1rem;
padding: 1.5rem; padding: 1.5rem;
border-radius: 0.5rem; border-radius: 0.5rem;
background: $prism-bg; background: var(--prism-bg);
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1rem;
line-height: 1.5; line-height: 1.5;
overflow: auto; overflow: auto;
white-space: pre; white-space: pre;
word-spacing: normal; word-spacing: normal;
word-break: normal;
word-wrap: normal;
tab-size: 4; tab-size: 4;
hyphens: none; hyphens: none;
code { code {
padding: 0; padding: 0;
color: #fff; color: #fff;
background: $prism-bg; background: var(--prism-bg);
} }
} }
/* Purple (keyword) */ div.code-toolbar > .toolbar > .toolbar-item > a,
.token.keyword, div.code-toolbar > .toolbar > .toolbar-item > button,
.token.important, div.code-toolbar > .toolbar > .toolbar-item > span {
.token.builtin,
.token.atrule {
color: $prism-purple;
}
/* Yellow (entity, class) */
.token.entity,
.token.class,
.token.name,
.token.class-name,
.token.package,
.token.scope,
.token.attr-name {
color: $prism-yellow;
}
/* Blue (function) */
.token.function-name,
.token.function {
color: $prism-blue;
}
/* Red (tag) */
.token.tag,
.token.namespace,
.token.selector,
.token.deleted {
color: $prism-red;
}
/* Green (string, attribute) */
.token.string,
.token.char,
.token.property,
.token.attr-value,
.token.regex {
color: $prism-green;
}
/* Orange (number, literal) */
.token.number,
.token.boolean,
.token.constant {
color: $prism-orange;
}
/* Cyan (sign) */
.token.symbol,
.token.punctuation,
.token.operator,
.token.url,
.token.unit,
.token.hexcode,
.token.doctype-tag {
color: $prism-cyan;
}
/* White (variable, CSS pseudo class) */
.token.variable,
.token.pseudo-class {
color: #fff;
}
/* Gray (comment) */
.token.comment,
.token.block-comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: $prism-gray;
}
.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}
.token.inserted {
color: green;
}
div.code-toolbar > .toolbar > .toolbar-item > a, div.code-toolbar > .toolbar > .toolbar-item > button, div.code-toolbar > .toolbar > .toolbar-item > span {
padding: 0.5em 1em; padding: 0.5em 1em;
margin: 0.25em 0.5em; margin: 0.25em 0.5em;
font-size: 0.9em; font-size: 0.9em;
color: #eee; color: #eee;
} }
.token {
/* Red (constant, tag, selector) */
&.constant,
&.tag,
&.selector,
&.namespace,
&.deleted {
color: var(--prism-red);
}
/* Orange/Red (number, boolean, constant) */
&.number,
&.boolean {
color: var(--prism-orange);
}
/* Yellow (entity, class) */
&.entity,
&.class,
&.name,
&.class-name,
&.package,
&.scope,
&.attr-name {
color: var(--prism-yellow);
}
/* Green (string, attribute) */
&.string,
&.char,
&.property,
&.attr-value,
&.regex {
color: var(--prism-green);
}
/* Cyan (symbol) */
&.symbol,
&.punctuation,
&.operator,
&.url,
&.unit,
&.hexcode,
&.doctype-tag {
color: var(--prism-cyan);
}
/* Blue (function) */
&.function-name,
&.function {
color: var(--prism-blue);
}
/* Purple (keyword) */
&.keyword,
&.important,
&.builtin,
&.atrule {
color: var(--prism-purple);
}
/* White (variable, CSS pseudo class) */
&.variable,
&.pseudo-class {
color: #fff;
}
/* Gray (comment) */
&.comment,
&.block-comment,
&.prolog,
&.doctype,
&.cdata {
color: var(--prism-gray);
}
// &.important,
&.bold {
font-weight: bold;
}
&.italic {
font-style: italic;
}
&.entity {
cursor: help;
}
&.inserted {
color: green;
}
}