Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
rednafi committed Sep 6, 2023
1 parent f3a8dd8 commit 5fab29d
Show file tree
Hide file tree
Showing 6 changed files with 107 additions and 92 deletions.
157 changes: 98 additions & 59 deletions assets/css/extended/an-old-hope-override.min.css
Original file line number Diff line number Diff line change
@@ -1,63 +1,102 @@
.hljs-comment,
.hljs-quote {
color: #b6b18b;
}

.hljs-deletion,
.hljs-name,
.hljs-regexp,
.hljs-selector-class,
.hljs-selector-id,
.hljs-tag,
.hljs-template-variable,
.hljs-variable {
color: #a0b3ee;
}

.hljs-built_in,
.hljs-builtin-name,
.hljs-link,
.hljs-literal,
.hljs-meta,
.hljs-number,
.hljs-params,
.hljs-type {
color: #e7ce56;
}

.hljs-attribute {
color: #ee7c2b;
}

.hljs-addition,
.hljs-bullet,
.hljs-string,
.hljs-symbol {
color: #4fb4d7;
}

.hljs-section,
.hljs-title {
color: #78bb65;
}

.hljs-keyword,
.hljs-selector-tag {
color: #db90ce;
}
/*!
The name an-old-hope is kept to override the default theme.
In reality, this site uses a11y-light.
Theme: a11y-light
Author: @ericwbailey
Maintainer: @ericwbailey
Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css
*/

.hljs {
display: block;
overflow-x: auto;
background: #1c1d21;
color: #c0c5ce;
padding: .5em;
}

.hljs-emphasis {
background: #fefefe;
color: #545454;
}

/* Comment */
.hljs-comment,
.hljs-quote {
color: #696969;
font-style: italic;
}
}

/* Red */
.hljs-variable,
.hljs-template-variable,
.hljs-tag,
.hljs-name,
.hljs-selector-id,
.hljs-selector-class,
.hljs-regexp,
.hljs-deletion {
color: #d91e18;
}

/* Orange */
.hljs-number,
.hljs-built_in,
.hljs-literal,
.hljs-type,
.hljs-params,
.hljs-meta,
.hljs-link {
color: #aa5d00;
}

/* Yellow */
.hljs-attribute {
color: #aa5d00;
}

/* Green */
.hljs-string,
.hljs-symbol,
.hljs-bullet,
.hljs-addition {
color: #008000;
}

/* Blue */
.hljs-title,
.hljs-section {
color: #007faa;
}

/* Purple */
.hljs-keyword,
.hljs-selector-tag {
color: #7928a1;
}

.hljs-emphasis {
font-style: italic;
}

.hljs-strong {
font-weight: bold;
}

@media screen and (-ms-high-contrast: active) {
.hljs-addition,
.hljs-attribute,
.hljs-built_in,
.hljs-bullet,
.hljs-comment,
.hljs-link,
.hljs-literal,
.hljs-meta,
.hljs-number,
.hljs-params,
.hljs-string,
.hljs-symbol,
.hljs-type,
.hljs-quote {
color: highlight;
}

.hljs-strong {
font-weight: 700;
}
.hljs-keyword,
.hljs-selector-tag {
font-weight: bold;
}
}
2 changes: 1 addition & 1 deletion assets/css/extended/post-entry-override.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.first-entry {
min-height: 225px;
min-height: 210px;
text-align: left;
margin: 0.5rem;
}
Expand Down
3 changes: 1 addition & 2 deletions assets/css/extended/post-single-override.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,13 @@
font-size: 23px;
}


.post-content code {
margin: auto 4px;
padding: 4px 6px;
font-size: 0.90em;
line-height: 1.5;
background: var(--code-bg);
border-radius: 2px;
color: var(--hljs-color) !important;
}

.toc {
Expand Down
33 changes: 5 additions & 28 deletions assets/css/extended/theme-vars-override.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* :root {
:root {
--gap: 24px;
--content-gap: 20px;
--nav-width: 1024px;
Expand All @@ -9,36 +9,13 @@
--theme: rgb(255, 255, 255);
--entry: rgb(255, 255, 255);
--primary: rgb(30, 30, 30);
--secondary: rgb(108, 108, 108);
--secondary: rgb(63, 63, 63);
--tertiary: rgb(214, 214, 214);
--content: rgb(31, 31, 31);
--hljs-bg: rgb(28, 29, 33);
--hljs-bg: rgb(245, 245, 245);
--code-bg: rgb(245, 245, 245);
--border: rgb(238, 238, 238);
} */

:root {
--theme: #f5f7ff;
--entry: #f5f7ff;
--primary: #01142a;
--secondary: #2b3037;
--tertiary: #D5D6D6;
--content: #01142a;
--hljs-bg: #1A2027;
--code-bg: #e6ebfd;
--border: #f5f7ff;
--bio-urls: #3f51b5;
}

.dark {
--theme: rgb(29, 30, 32);
--entry: rgb(46, 46, 51);
--primary: rgb(218, 218, 219);
--secondary: rgb(155, 156, 157);
--tertiary: rgb(65, 66, 68);
--content: rgb(196, 196, 197);
--hljs-bg: rgb(46, 46, 51);
--code-bg: rgb(55, 56, 62);
--border: rgb(51, 51, 51);
--bio-urls: rgb(218, 218, 219);
/* new */
--bio-urls: rgb(0, 29, 147);
}
2 changes: 1 addition & 1 deletion config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ params:
]
DateFormat: "January 2, 2006"
defaultTheme: light # dark, light
disableThemeToggle: false
disableThemeToggle: true
ShowReadingTime: false
ShowShareButtons: false
ShowPostNavLinks: true
Expand Down
2 changes: 1 addition & 1 deletion themes/PaperMod

0 comments on commit 5fab29d

Please sign in to comment.