adjust layout, moves desktop backlinks, add toc

This commit is contained in:
semanticdata 2023-11-23 14:06:38 -06:00
parent d8badc00bb
commit b305fcbfaa
8 changed files with 75 additions and 30 deletions

14
.gitignore vendored
View File

@ -1,13 +1,13 @@
.DS_Store .DS_Store
.gitignore .gitignore
node_modules
public
prof
tsconfig.tsbuildinfo
.obsidian .obsidian
quartz/.quartz-cache
.quartz-cache .quartz-cache
private/
.replit .replit
node_modules
package-lock.json
private/
prof
public
quartz/.quartz-cache
replit.nix replit.nix
package-lock.json tsconfig.tsbuildinfo

View File

@ -1,6 +1,7 @@
MIT License MIT License
Copyright (c) 2023 Miguel Pimentel Copyright (c) 2023 Miguel Pimentel
Copyright (c) 2021-2023 jackyzha0
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -15,7 +15,7 @@ const config: QuartzConfig = {
theme: { theme: {
typography: { typography: {
header: "Bitter", // Schibsted Grotesk header: "Bitter", // Schibsted Grotesk
body: "Poppins", // Source Sans Pro body: "Bitter", // Source Sans Pro, Poppins
code: "Fira Mono", // IBM Plex Mono code: "Fira Mono", // IBM Plex Mono
}, },
colors: { colors: {
@ -23,13 +23,11 @@ const config: QuartzConfig = {
light: "#faf8f8", light: "#faf8f8",
lightgray: "#e5e5e5", lightgray: "#e5e5e5",
gray: "#b8b8b8", gray: "#b8b8b8",
darkgray: "#4e4e4e", darkgray: "#2e2e2e", // #4e4e4e
// darkgray: "#2e2e2e", dark: "#1c1c1c", // #2b2b2b
dark: "#2b2b2b", secondary: "#091217", // #2844b63, #152733
secondary: "#284b63", tertiary: "#242e3b", // #84a59d
// secondary: "#152733", highlight: "rgba(143, 159, 169, 0.15)", // #8f9fa926
tertiary: "#84a59d",
highlight: "#8f9fa926",
}, },
darkMode: { darkMode: {
light: "#1e1e2e", light: "#1e1e2e",
@ -37,9 +35,9 @@ const config: QuartzConfig = {
gray: "#a6adc8", gray: "#a6adc8",
darkgray: "#cdd6f4", darkgray: "#cdd6f4",
dark: "#cdd6f4", dark: "#cdd6f4",
secondary: "#a6e3a1", secondary: "#9be895", // #a6e3a1
tertiary: "#89dceb", tertiary: "#d62edf", // #89dceb, #c072c4
highlight: "rgba(143, 159, 169, 0.15)", highlight: "rgba(143, 159, 169, 0.1)", // rgba(143, 159, 169, 0.15)
}, },
}, },
}, },

View File

@ -44,10 +44,12 @@ export const defaultContentPageLayout: PageLayout = {
// }, // },
// } // }
)), )),
Component.DesktopOnly(Component.Backlinks()),
], ],
right: [ right: [
Component.Graph(), Component.Graph(),
Component.Backlinks(), Component.MobileOnly(Component.Backlinks()),
Component.DesktopOnly(Component.TableOfContents()),
], ],
} }

View File

@ -18,7 +18,7 @@
height: 20px; height: 20px;
top: calc(50% - 10px); top: calc(50% - 10px);
fill: var(--darkgray); fill: var(--darkgray);
transition: opacity 0.1s ease; transition: opacity 0.3s ease; // 0.1s
} }
} }

View File

@ -35,7 +35,7 @@
box-shadow: 6px 6px 36px 0 rgba(0, 0, 0, 0.25); box-shadow: 6px 6px 36px 0 rgba(0, 0, 0, 0.25);
overflow: auto; overflow: auto;
white-space: normal; white-space: normal;
scrollbar-width: none; // scrollbar-width: none;
} }
h1 { h1 {

View File

@ -3,6 +3,10 @@
@use "callouts"; @use "callouts";
// @use "explorer"; // @use "explorer";
* {
scrollbar-width: thin;
}
html { html {
scroll-behavior: smooth; scroll-behavior: smooth;
-webkit-text-size-adjust: none; -webkit-text-size-adjust: none;
@ -28,8 +32,8 @@ section {
} }
::selection { ::selection {
background: color-mix(in srgb, var(--tertiary) 75%, transparent); background: color-mix(in srgb, var(--tertiary) 25%, transparent); // 75%
color: var(--darkgray); // color: var(--darkgray);
} }
p, p,
@ -58,12 +62,12 @@ ul,
a { a {
font-weight: 600; font-weight: 600;
text-decoration: none; text-decoration: none;
transition: color 0.2s ease; // transition: color 0.5s ease; // 0.2s
color: var(--secondary); color: var(--secondary);
&:hover { // &:hover {
color: var(--tertiary) !important; // color: var(--tertiary) !important;
} // }
&.internal:not(:has(> img)) { &.internal:not(:has(> img)) {
text-decoration: none; text-decoration: none;
@ -462,9 +466,8 @@ video {
ul.overflow, ul.overflow,
ol.overflow { ol.overflow {
max-height: 500; // 400 max-height: 450; // 400
overflow-y: auto; overflow-y: auto; // auto, scroll
scrollbar-width: thin;
// clearfix // clearfix
content: ""; content: "";

View File

@ -1,3 +1,44 @@
@use "./base.scss"; @use "./base.scss";
// put your custom CSS here! // put your custom CSS here!
// a {
// display: inline-block;
// position: relative;
// // color: #0087ca;
// }
// a::after {
// content: '';
// position: absolute;
// width: 100%;
// transform: scaleX(0);
// height: 2px;
// bottom: 0;
// left: 0;
// background-color: #0087ca;
// transform-origin: bottom right;
// transition: transform 0.25s ease-out;
// }
// a:hover::after {
// transform: scaleX(1);
// transform-origin: bottom left;
// }
// a.article-title {
// }
a {
// text-decoration: underline 0.15em rgba(0, 0, 0, 1);
// text-underline-offset: 0.2em;
// transition: text-decoration-color 0.3s, text-underline-offset 0.3s;
text-decoration: underline 0.2rem transparent;
transition: text-decoration-color 0.5s;
}
a:hover {
text-decoration-color: var(--tertiary);
// text-underline-offset: 0.4em;
}