mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
@ -1,3 +1,4 @@
|
||||
node_modules
|
||||
out
|
||||
.next
|
||||
.next
|
||||
public
|
||||
|
@ -81,9 +81,8 @@ const HeadBar = () => {
|
||||
'items-center relative'
|
||||
)}
|
||||
>
|
||||
<Link href="/" passHref>
|
||||
<a
|
||||
href=""
|
||||
<Link href="/">
|
||||
<span
|
||||
className={cn(
|
||||
'font-semibold font-Aref-Ruqaa',
|
||||
'text-3xl tracking-widest',
|
||||
@ -91,7 +90,7 @@ const HeadBar = () => {
|
||||
)}
|
||||
>
|
||||
RUA!
|
||||
</a>
|
||||
</span>
|
||||
</Link>
|
||||
|
||||
<FiMenu
|
||||
@ -160,4 +159,4 @@ const HeadBar = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export default HeadBar;
|
||||
export default HeadBar;
|
@ -10,46 +10,44 @@ const PostCard = ({ post }: Props) => {
|
||||
return (
|
||||
<>
|
||||
<Link href={`/p/${post.slug}`} passHref>
|
||||
<a>
|
||||
<article
|
||||
className={cn(
|
||||
'rounded-xl py-4 px-5 md:p-7 ',
|
||||
'hover:bg-sky-100 hover:bg-opacity-50',
|
||||
// 'hover:bg-rua-gray-100 hover:bg-opacity-10',
|
||||
'dark:hover:bg-rua-gray-800 dark:hover:bg-opacity-100',
|
||||
'flex justify-between text-gray-800 ',
|
||||
'mb-4 dark:text-gray-200',
|
||||
'flex-col'
|
||||
)}
|
||||
>
|
||||
<div className="flex justify-between">
|
||||
<h2 className="mb-4 text-3xl font-semibold font-Barlow">
|
||||
{post.title}
|
||||
</h2>
|
||||
<article
|
||||
className={cn(
|
||||
'rounded-xl py-4 px-5 md:p-7 ',
|
||||
'hover:bg-sky-100 hover:bg-opacity-50',
|
||||
// 'hover:bg-rua-gray-100 hover:bg-opacity-10',
|
||||
'dark:hover:bg-rua-gray-800 dark:hover:bg-opacity-100',
|
||||
'flex justify-between text-gray-800 ',
|
||||
'mb-4 dark:text-gray-200',
|
||||
'flex-col'
|
||||
)}
|
||||
>
|
||||
<div className="flex justify-between">
|
||||
<h2 className="mb-4 text-3xl font-semibold font-Barlow">
|
||||
{post.title}
|
||||
</h2>
|
||||
|
||||
<div className="hidden lg:block">{post.date}</div>
|
||||
<div className="hidden lg:block">{post.date}</div>
|
||||
</div>
|
||||
|
||||
<div className="flex justify-between">
|
||||
<div className="flex items-center text-sm">
|
||||
{Array.isArray(post.tags) ? (
|
||||
post.tags.map((tag) => (
|
||||
<div key={tag} className="mr-4 last:mr-0">
|
||||
{tag}
|
||||
</div>
|
||||
))
|
||||
) : (
|
||||
<div className="mr-4 last:mr-0">{post.tags}</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="flex justify-between">
|
||||
<div className="flex items-center text-sm">
|
||||
{Array.isArray(post.tags) ? (
|
||||
post.tags.map((tag) => (
|
||||
<div key={tag} className="mr-4 last:mr-0">
|
||||
{tag}
|
||||
</div>
|
||||
))
|
||||
) : (
|
||||
<div className="mr-4 last:mr-0">{post.tags}</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="lg:hidden">{post.date}</div>
|
||||
</div>
|
||||
</article>
|
||||
</a>
|
||||
<div className="lg:hidden">{post.date}</div>
|
||||
</div>
|
||||
</article>
|
||||
</Link>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default PostCard;
|
||||
export default PostCard;
|
@ -28,10 +28,8 @@ const RUAPagination = ({
|
||||
<ul className="flex items-center justify-between -space-x-px">
|
||||
<li>
|
||||
{hasPrev ? (
|
||||
<Link href={prevLink} passHref>
|
||||
<a>
|
||||
<Button>Prev</Button>
|
||||
</a>
|
||||
<Link href={prevLink}>
|
||||
<Button>Prev</Button>
|
||||
</Link>
|
||||
) : (
|
||||
<Button disabled>Prev</Button>
|
||||
@ -48,10 +46,8 @@ const RUAPagination = ({
|
||||
|
||||
<li>
|
||||
{hasNext ? (
|
||||
<Link href={nextLink} passHref>
|
||||
<a>
|
||||
<Button>Next</Button>
|
||||
</a>
|
||||
<Link href={nextLink}>
|
||||
<Button>Next</Button>
|
||||
</Link>
|
||||
) : (
|
||||
<Button disabled>Next</Button>
|
||||
@ -63,4 +59,4 @@ const RUAPagination = ({
|
||||
);
|
||||
};
|
||||
|
||||
export default RUAPagination;
|
||||
export default RUAPagination;
|
@ -1,69 +1,69 @@
|
||||
.container {
|
||||
position: absolute;
|
||||
bottom: 10px;
|
||||
right: 30px;
|
||||
position: absolute;
|
||||
bottom: 10px;
|
||||
right: 30px;
|
||||
|
||||
border-radius: 3px;
|
||||
background: #000;
|
||||
color: #fff;
|
||||
font: initial;
|
||||
cursor: initial;
|
||||
letter-spacing: initial;
|
||||
text-shadow: initial;
|
||||
text-transform: initial;
|
||||
visibility: initial;
|
||||
border-radius: 3px;
|
||||
background: #000;
|
||||
color: #fff;
|
||||
font: initial;
|
||||
cursor: initial;
|
||||
letter-spacing: initial;
|
||||
text-shadow: initial;
|
||||
text-transform: initial;
|
||||
visibility: initial;
|
||||
|
||||
padding: 7px 10px 8px 10px;
|
||||
align-items: center;
|
||||
box-shadow: 0 11px 40px 0 rgba(0, 0, 0, 0.25),
|
||||
padding: 7px 10px 8px 10px;
|
||||
align-items: center;
|
||||
box-shadow: 0 11px 40px 0 rgba(0, 0, 0, 0.25),
|
||||
0 2px 10px 0 rgba(0, 0, 0, 0.12);
|
||||
|
||||
display: none;
|
||||
opacity: 0;
|
||||
transition: opacity 0.1s ease, bottom 0.1s ease;
|
||||
animation: fade-in 0.1s ease-in-out;
|
||||
display: none;
|
||||
opacity: 0;
|
||||
transition: opacity 0.1s ease, bottom 0.1s ease;
|
||||
animation: fade-in 0.1s ease-in-out;
|
||||
}
|
||||
|
||||
.container.visible {
|
||||
display: flex;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.container.building {
|
||||
bottom: 20px;
|
||||
opacity: 1;
|
||||
bottom: 20px;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.icon-wrapper {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.icon-wrapper > svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.icon-group {
|
||||
animation: strokedash 1s ease-in-out both infinite;
|
||||
animation: strokedash 1s ease-in-out both infinite;
|
||||
}
|
||||
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
bottom: 10px;
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
bottom: 20px;
|
||||
opacity: 1;
|
||||
}
|
||||
from {
|
||||
bottom: 10px;
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
bottom: 20px;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes strokedash {
|
||||
0% {
|
||||
stroke-dasharray: 0 226;
|
||||
}
|
||||
80%,
|
||||
100% {
|
||||
stroke-dasharray: 659 226;
|
||||
}
|
||||
0% {
|
||||
stroke-dasharray: 0 226;
|
||||
}
|
||||
80%,
|
||||
100% {
|
||||
stroke-dasharray: 659 226;
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
import Anchor from 'components/mdx/Anchor';
|
||||
import LinkAnchor from 'components/mdx/LinkAnchor';
|
||||
import Loading from 'components/RUA/loading/RUALoading';
|
||||
import dayjs from 'dayjs';
|
||||
import { GistData } from 'lib/fetcher';
|
||||
@ -24,8 +25,10 @@ const FileContent = ({ gists }: Props) => {
|
||||
{/* Username and file name */}
|
||||
<h1 className="md:text-lg">
|
||||
{g.login} /
|
||||
<Link href={`/g/${g.id}`} passHref>
|
||||
<Anchor external={false}>{g.files[f].filename}</Anchor>
|
||||
<Link href={`/g/${g.id}`}>
|
||||
<LinkAnchor external={false}>
|
||||
{g.files[f].filename}
|
||||
</LinkAnchor>
|
||||
</Link>
|
||||
</h1>
|
||||
{/* Time */}
|
||||
@ -45,4 +48,4 @@ const FileContent = ({ gists }: Props) => {
|
||||
);
|
||||
};
|
||||
|
||||
export default FileContent;
|
||||
export default FileContent;
|
@ -1,16 +1,16 @@
|
||||
.wrapper {
|
||||
@apply overflow-hidden rounded-lg;
|
||||
@apply mb-8 shadow-lg;
|
||||
font-size: 16px;
|
||||
/* box-shadow: 0 13px 27px -5px rgb(50 50 93 / 25%),
|
||||
@apply overflow-hidden rounded-lg;
|
||||
@apply mb-8 shadow-lg;
|
||||
font-size: 16px;
|
||||
/* box-shadow: 0 13px 27px -5px rgb(50 50 93 / 25%),
|
||||
0 8px 16px -8px rgb(0 0 0 / 30%), 0 -6px 16px -6px rgb(0 0 0 / 3%); */
|
||||
}
|
||||
|
||||
.wrapper pre {
|
||||
margin: unset;
|
||||
border-radius: unset;
|
||||
margin: unset;
|
||||
border-radius: unset;
|
||||
}
|
||||
|
||||
.wrapper .loading span {
|
||||
margin: unset;
|
||||
margin: unset;
|
||||
}
|
||||
|
@ -1,16 +1,16 @@
|
||||
.imageContainer {
|
||||
width: 100%;
|
||||
padding: 10px 0;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
padding: 10px 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.imageContainer > span {
|
||||
position: unset !important;
|
||||
position: unset !important;
|
||||
}
|
||||
|
||||
.imageContainer .image {
|
||||
object-fit: contain;
|
||||
width: 100% !important;
|
||||
position: relative !important;
|
||||
height: unset !important;
|
||||
object-fit: contain;
|
||||
width: 100% !important;
|
||||
position: relative !important;
|
||||
height: unset !important;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import classNames from 'classnames';
|
||||
import NextImage, { ImageProps } from 'next/future/image';
|
||||
import NextImage, { ImageProps } from 'next/image';
|
||||
|
||||
interface Props extends ImageProps {}
|
||||
|
||||
|
29
components/mdx/LinkAnchor.tsx
Normal file
29
components/mdx/LinkAnchor.tsx
Normal file
@ -0,0 +1,29 @@
|
||||
import cn from 'classnames';
|
||||
import { ReactNode } from 'react';
|
||||
import { FiExternalLink } from 'react-icons/fi';
|
||||
|
||||
interface Props {
|
||||
children: ReactNode;
|
||||
external?: boolean;
|
||||
}
|
||||
|
||||
const Anchor = ({ children, external = true }: Props) => {
|
||||
return (
|
||||
<>
|
||||
<span
|
||||
className={cn(
|
||||
'mx-[2px] text-teal-500 relative',
|
||||
'before:left-0 before:top-[1px] before:block before:absolute',
|
||||
'before:w-full before:h-full before:transition-all before:shadow-underline',
|
||||
'hover:before:shadow-throughline',
|
||||
'dark:text-teal-600'
|
||||
)}
|
||||
>
|
||||
{children}
|
||||
{external && <FiExternalLink className="inline ml-1 mb-[0.2rem]" />}
|
||||
</span>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Anchor;
|
@ -24,7 +24,8 @@ const ProjectCard = ({ project, icon }: ProjectCardProps) => {
|
||||
'hover:bg-slate-200',
|
||||
'transition-all duration-300',
|
||||
'flex items-center cursor-pointer',
|
||||
'justify-between'
|
||||
'justify-between dark:bg-rua-gray-800',
|
||||
'hover:dark:bg-rua-gray-700'
|
||||
)}
|
||||
>
|
||||
{Icon ? Icon : <VscGithubInverted className="w-8 h-8" />}
|
||||
@ -35,7 +36,14 @@ const ProjectCard = ({ project, icon }: ProjectCardProps) => {
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
<h2 className="text-xl">{project.name}</h2>
|
||||
<h2
|
||||
className={classNames(
|
||||
'text-xl overflow-hidden',
|
||||
'text-ellipsis whitespace-nowrap'
|
||||
)}
|
||||
>
|
||||
{project.name}
|
||||
</h2>
|
||||
<span
|
||||
className={classNames(
|
||||
'overflow-hidden break-keep text-ellipsis',
|
||||
@ -51,4 +59,4 @@ const ProjectCard = ({ project, icon }: ProjectCardProps) => {
|
||||
);
|
||||
};
|
||||
|
||||
export default ProjectCard;
|
||||
export default ProjectCard;
|
@ -10,7 +10,7 @@ const nextConfig = {
|
||||
output: 'standalone',
|
||||
images: isExport ? { unoptimized: true } : {},
|
||||
experimental: {
|
||||
// runtime: 'nodejs',
|
||||
// runtime: 'experimental-edge',
|
||||
largePageDataBytes: 512 * 1000,
|
||||
},
|
||||
compiler: {
|
||||
|
40
package.json
40
package.json
@ -14,49 +14,49 @@
|
||||
"pretty": "prettier --write \"./**/*.{js,jsx,ts,tsx,json}\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@codesandbox/sandpack-react": "^1.15.2",
|
||||
"@codesandbox/sandpack-react": "^1.17.0",
|
||||
"@docsearch/react": "3",
|
||||
"@giscus/react": "^2.2.0",
|
||||
"@giscus/react": "^2.2.4",
|
||||
"@mapbox/rehype-prism": "^0.8.0",
|
||||
"@tweenjs/tween.js": "^18.6.4",
|
||||
"algoliasearch": "^4.14.2",
|
||||
"classnames": "^2.3.2",
|
||||
"dayjs": "^1.11.6",
|
||||
"next": "12.3.1",
|
||||
"next-mdx-remote": "^4.1.0",
|
||||
"next": "13.0.4",
|
||||
"next-mdx-remote": "^4.2.0",
|
||||
"next-themes": "^0.2.1",
|
||||
"octokit": "^2.0.9",
|
||||
"octokit": "^2.0.10",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-icons": "^4.6.0",
|
||||
"rehype-react": "^7.1.1",
|
||||
"rehype-slug": "^5.0.1",
|
||||
"rehype-slug": "^5.1.0",
|
||||
"remark-frontmatter": "^4.0.1",
|
||||
"remark-gfm": "^3.0.1",
|
||||
"rua-three": "^1.1.1",
|
||||
"sharp": "^0.31.1",
|
||||
"sharp": "^0.31.2",
|
||||
"stats.js": "^0.17.0",
|
||||
"three": "^0.145.0"
|
||||
"three": "^0.146.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@testing-library/jest-dom": "^5.16.5",
|
||||
"@testing-library/react": "^13.4.0",
|
||||
"@types/jest": "^29.2.0",
|
||||
"@types/node": "18.11.4",
|
||||
"@types/react": "18.0.21",
|
||||
"@types/jest": "^29.2.3",
|
||||
"@types/node": "18.11.9",
|
||||
"@types/react": "18.0.25",
|
||||
"@types/stats.js": "^0.17.0",
|
||||
"@types/three": "^0.144.0",
|
||||
"autoprefixer": "^10.4.12",
|
||||
"@types/three": "^0.146.0",
|
||||
"autoprefixer": "^10.4.13",
|
||||
"cross-env": "^7.0.3",
|
||||
"dotenv": "^16.0.3",
|
||||
"eslint": "8.26.0",
|
||||
"eslint-config-next": "12.3.1",
|
||||
"eslint": "8.28.0",
|
||||
"eslint-config-next": "13.0.4",
|
||||
"gray-matter": "^4.0.3",
|
||||
"jest": "^29.2.1",
|
||||
"jest-environment-jsdom": "^29.2.1",
|
||||
"postcss": "^8.4.18",
|
||||
"jest": "^29.3.1",
|
||||
"jest-environment-jsdom": "^29.3.1",
|
||||
"postcss": "^8.4.19",
|
||||
"prettier": "^2.7.1",
|
||||
"tailwindcss": "^3.2.1",
|
||||
"typescript": "4.8.4"
|
||||
"tailwindcss": "^3.2.4",
|
||||
"typescript": "4.9.3"
|
||||
}
|
||||
}
|
||||
|
@ -189,26 +189,6 @@ const About: NextPageWithLayout = () => {
|
||||
'px-10 py-4 mx-auto lg:px-0 lg:py-10'
|
||||
)}
|
||||
>
|
||||
{/* <div className="w-16 h-16 lg:w-[72px] lg:h-[72px]">
|
||||
<Image
|
||||
src={avatar}
|
||||
alt="Avatar"
|
||||
priority
|
||||
width={72}
|
||||
height={72}
|
||||
className="rounded-full"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="pl-4 text-xl lg:text-2xl lg:pl-10">
|
||||
<h1 className="font-semibold font-Barlow">
|
||||
Arthur / Defectink / xfy
|
||||
</h1>
|
||||
<div className="h-[1px] rounded-lg bg-gray-400"></div>
|
||||
<div className="text-base lg:text-lg">
|
||||
Long may the sun shine ☀️
|
||||
</div>
|
||||
</div> */}
|
||||
<h1 className="text-5xl font-semibold font-Barlow">About</h1>
|
||||
</div>
|
||||
</main>
|
||||
|
@ -1,4 +1,4 @@
|
||||
import Anchor from 'components/mdx/Anchor';
|
||||
import LinkAnchor from 'components/mdx/LinkAnchor';
|
||||
import dayjs from 'dayjs';
|
||||
import relativeTime from 'dayjs/plugin/relativeTime';
|
||||
import { getGists, getSignalGist, SingalGist } from 'lib/fetcher';
|
||||
@ -30,8 +30,8 @@ const Gist = ({ gist }: InferGetStaticPropsType<typeof getStaticProps>) => {
|
||||
className="rounded-full "
|
||||
/>
|
||||
<h1 className="ml-2 overflow-hidden text-xl whitespace-nowrap overflow-ellipsis">
|
||||
<Link href="/gists" passHref>
|
||||
<Anchor external={false}>{gist.login}</Anchor>
|
||||
<Link href="/gists">
|
||||
<LinkAnchor external={false}>{gist.login}</LinkAnchor>
|
||||
</Link>
|
||||
/{Object.keys(gist.files)[0]}
|
||||
</h1>
|
||||
@ -112,4 +112,4 @@ Gist.getLayout = function getLayout(page: ReactElement) {
|
||||
return <MainLayout>{page}</MainLayout>;
|
||||
};
|
||||
|
||||
export default Gist;
|
||||
export default Gist;
|
@ -2,8 +2,8 @@ import cn from 'classnames';
|
||||
import { gltfLoader, manager } from 'lib/gltfLoader';
|
||||
import { getMousePosition } from 'lib/utils';
|
||||
import dynamic from 'next/dynamic';
|
||||
import Image from 'next/future/image';
|
||||
import Head from 'next/head';
|
||||
import Image from 'next/image';
|
||||
import { useCallback, useEffect, useRef, useState } from 'react';
|
||||
import { InitFn, THREE, useThree } from 'rua-three';
|
||||
import styles from 'styles/index/index.module.css';
|
||||
@ -137,7 +137,6 @@ const Home: NextPageWithLayout = () => {
|
||||
|
||||
<main className="h-[calc(100vh-142px)] flex justify-center items-center text-xl">
|
||||
<div className="z-0 flex flex-col w-full h-full max-w-4xl px-4 py-32 text-2xl">
|
||||
{/* <h1 className="pb-4 text-4xl">Hi there 👋, I'm Arthur. </h1> */}
|
||||
<h1 className="flex pb-4 text-5xl">
|
||||
<span className={cn('font-Aleo font-semibold', styles.gradient)}>
|
||||
Hi there
|
||||
@ -171,38 +170,6 @@ const Home: NextPageWithLayout = () => {
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{/* <p>I'm a Front-end developer. Yes, that's mean</p>
|
||||
<p
|
||||
onMouseOver={() => setShowLang(true)}
|
||||
onMouseLeave={() => setShowLang(false)}
|
||||
>
|
||||
<span className={cn('font-Aleo font-semibold', style.gradient)}>
|
||||
I make websites{' '}
|
||||
</span>
|
||||
<span className="text-xs text-gray-500 dark:text-gray-400">
|
||||
(and web apps)
|
||||
</span>
|
||||
<span className="text-sky-500 dark:text-sky-600 font-Aleo">
|
||||
.{' '}
|
||||
</span>
|
||||
The{' '}
|
||||
<span className={cn('font-Aleo', showLang && 'hidden')}>
|
||||
JavaScript
|
||||
</span>
|
||||
<span
|
||||
className={cn('hidden font-Aleo', showLang && '!inline-block')}
|
||||
>
|
||||
TypeScript
|
||||
</span>{' '}
|
||||
is my favorite language.
|
||||
</p>
|
||||
<p>
|
||||
I'm not a creator. Just a little guy standing on the
|
||||
shoulders of giants with a little imagination.
|
||||
</p>
|
||||
<p>
|
||||
Open source is my passion. It's making everything be great.{' '}
|
||||
</p> */}
|
||||
</div>
|
||||
</main>
|
||||
</>
|
||||
@ -213,4 +180,4 @@ Home.getLayout = function getLayout(page) {
|
||||
return <MainLayout>{page}</MainLayout>;
|
||||
};
|
||||
|
||||
export default Home;
|
||||
export default Home;
|
@ -2,11 +2,27 @@ import classNames from 'classnames';
|
||||
import { GetStaticProps, InferGetStaticPropsType } from 'next';
|
||||
import dynamic from 'next/dynamic';
|
||||
import { ReactElement } from 'react';
|
||||
import { SiGitea } from 'react-icons/si';
|
||||
import {
|
||||
SiGitea,
|
||||
SiNextdotjs,
|
||||
SiThreedotjs,
|
||||
SiTsnode,
|
||||
SiVim,
|
||||
} from 'react-icons/si';
|
||||
import { VscGithubInverted } from 'react-icons/vsc';
|
||||
|
||||
const MainLayout = dynamic(() => import('layouts/MainLayout'));
|
||||
const ProjectCard = dynamic(() => import('components/pages/ProjectCard'));
|
||||
|
||||
const iconMap = {
|
||||
gitea: <SiGitea />,
|
||||
nextjs: <SiNextdotjs />,
|
||||
github: <VscGithubInverted />,
|
||||
vim: <SiVim />,
|
||||
tsnode: <SiTsnode />,
|
||||
three: <SiThreedotjs />,
|
||||
};
|
||||
|
||||
const Projects = ({
|
||||
projects,
|
||||
selfHosts,
|
||||
@ -26,7 +42,11 @@ const Projects = ({
|
||||
)}
|
||||
>
|
||||
{projects.map((item) => (
|
||||
<ProjectCard key={item.id} project={item} />
|
||||
<ProjectCard
|
||||
icon={iconMap[item.icon ?? 'github']}
|
||||
key={item.id}
|
||||
project={item}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
@ -42,7 +62,11 @@ const Projects = ({
|
||||
)}
|
||||
>
|
||||
{selfHosts.map((item) => (
|
||||
<ProjectCard icon={<SiGitea />} key={item.id} project={item} />
|
||||
<ProjectCard
|
||||
icon={iconMap[item.icon ?? 'github']}
|
||||
key={item.id}
|
||||
project={item}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
@ -53,6 +77,7 @@ const Projects = ({
|
||||
|
||||
export type Project = {
|
||||
id: number;
|
||||
icon?: keyof typeof iconMap;
|
||||
name: string;
|
||||
description: string;
|
||||
url: string;
|
||||
@ -62,17 +87,47 @@ export const getStaticProps: GetStaticProps<{
|
||||
projects: Project[];
|
||||
selfHosts: Project[];
|
||||
}> = async () => {
|
||||
const projects = [
|
||||
const projects: Project[] = [
|
||||
{
|
||||
id: 0,
|
||||
icon: 'three',
|
||||
name: '3d-globe',
|
||||
description: 'A 3d globe made by three.js.',
|
||||
url: 'https://github.com/DefectingCat/3d-globe',
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
icon: 'nextjs',
|
||||
name: 'Blog',
|
||||
description: 'This site.',
|
||||
url: 'https://github.com/DefectingCat/DefectingCat.github.io',
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
icon: 'tsnode',
|
||||
name: 'boring-avatars-services',
|
||||
description: 'Random avatars.',
|
||||
url: 'https://github.com/DefectingCat/boring-avatars-services',
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
icon: 'tsnode',
|
||||
name: 'RUA DDNS',
|
||||
description: 'DDNS Script for DNSPod',
|
||||
url: 'https://github.com/DefectingCat/rua-ddns',
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
icon: 'vim',
|
||||
name: 'Dotfiles',
|
||||
description: 'Some dotfiles.',
|
||||
url: 'https://github.com/DefectingCat/dotfiles',
|
||||
},
|
||||
];
|
||||
const selfHosts = [
|
||||
const selfHosts: Project[] = [
|
||||
{
|
||||
id: 0,
|
||||
icon: 'gitea',
|
||||
name: 'Gitea',
|
||||
description: 'Selfhost git.',
|
||||
url: 'https://git.rua.plus/',
|
||||
@ -91,4 +146,4 @@ Projects.getLayout = function getLayout(page: ReactElement) {
|
||||
return <MainLayout>{page}</MainLayout>;
|
||||
};
|
||||
|
||||
export default Projects;
|
||||
export default Projects;
|
@ -30,77 +30,77 @@
|
||||
|
||||
.dark code,
|
||||
.dark pre {
|
||||
background: hsl(220, 13%, 18%);
|
||||
color: hsl(220, 14%, 71%);
|
||||
text-shadow: 0 1px rgba(0, 0, 0, 0.3);
|
||||
/* font-family: 'Fira Code', 'Fira Mono', Menlo, Consolas, 'DejaVu Sans Mono',
|
||||
background: hsl(220, 13%, 18%);
|
||||
color: hsl(220, 14%, 71%);
|
||||
text-shadow: 0 1px rgba(0, 0, 0, 0.3);
|
||||
/* font-family: 'Fira Code', 'Fira Mono', Menlo, Consolas, 'DejaVu Sans Mono',
|
||||
monospace; */
|
||||
font-family: 'JetBrains Mono', -apple-system, 'DejaVu Sans Mono', monospace;
|
||||
direction: ltr;
|
||||
text-align: left;
|
||||
white-space: pre;
|
||||
word-spacing: normal;
|
||||
word-break: normal;
|
||||
line-height: 1.5;
|
||||
-moz-tab-size: 2;
|
||||
-o-tab-size: 2;
|
||||
tab-size: 2;
|
||||
-webkit-hyphens: none;
|
||||
-moz-hyphens: none;
|
||||
-ms-hyphens: none;
|
||||
hyphens: none;
|
||||
font-family: 'JetBrains Mono', -apple-system, 'DejaVu Sans Mono', monospace;
|
||||
direction: ltr;
|
||||
text-align: left;
|
||||
white-space: pre;
|
||||
word-spacing: normal;
|
||||
word-break: normal;
|
||||
line-height: 1.5;
|
||||
-moz-tab-size: 2;
|
||||
-o-tab-size: 2;
|
||||
tab-size: 2;
|
||||
-webkit-hyphens: none;
|
||||
-moz-hyphens: none;
|
||||
-ms-hyphens: none;
|
||||
hyphens: none;
|
||||
}
|
||||
|
||||
/* Selection */
|
||||
.dark code::-moz-selection,
|
||||
.dark code *::-moz-selection,
|
||||
.dark pre *::-moz-selection {
|
||||
background: hsl(220, 13%, 28%);
|
||||
color: inherit;
|
||||
text-shadow: none;
|
||||
background: hsl(220, 13%, 28%);
|
||||
color: inherit;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.dark code::selection,
|
||||
.dark code *::selection,
|
||||
.dark pre *::selection {
|
||||
background: hsl(220, 13%, 28%);
|
||||
color: inherit;
|
||||
text-shadow: none;
|
||||
background: hsl(220, 13%, 28%);
|
||||
color: inherit;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
/* Code blocks */
|
||||
.dark pre {
|
||||
padding: 1em;
|
||||
margin: 0.5em 0;
|
||||
overflow: auto;
|
||||
border-radius: 0.3em;
|
||||
padding: 1em;
|
||||
margin: 0.5em 0;
|
||||
overflow: auto;
|
||||
border-radius: 0.3em;
|
||||
}
|
||||
|
||||
/* Inline code */
|
||||
.dark :not(pre) > code {
|
||||
padding: 0.2em 0.3em;
|
||||
border-radius: 0.3em;
|
||||
white-space: normal;
|
||||
padding: 0.2em 0.3em;
|
||||
border-radius: 0.3em;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
/* Print */
|
||||
@media print {
|
||||
.dark code,
|
||||
.dark pre {
|
||||
text-shadow: none;
|
||||
}
|
||||
.dark code,
|
||||
.dark pre {
|
||||
text-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
.dark .token.comment,
|
||||
.dark .token.prolog,
|
||||
.dark .token.cdata {
|
||||
color: hsl(220, 10%, 40%);
|
||||
color: hsl(220, 10%, 40%);
|
||||
}
|
||||
|
||||
.dark .token.doctype,
|
||||
.dark .token.punctuation,
|
||||
.dark .token.entity {
|
||||
color: hsl(220, 14%, 71%);
|
||||
color: hsl(220, 14%, 71%);
|
||||
}
|
||||
|
||||
.dark .token.attr-name,
|
||||
@ -109,11 +109,11 @@
|
||||
.dark .token.constant,
|
||||
.dark .token.number,
|
||||
.dark .token.atrule {
|
||||
color: hsl(29, 54%, 61%);
|
||||
color: hsl(29, 54%, 61%);
|
||||
}
|
||||
|
||||
.dark .token.keyword {
|
||||
color: hsl(286, 60%, 67%);
|
||||
color: hsl(286, 60%, 67%);
|
||||
}
|
||||
|
||||
.dark .token.property,
|
||||
@ -121,7 +121,7 @@
|
||||
.dark .token.symbol,
|
||||
.dark .token.deleted,
|
||||
.dark .token.important {
|
||||
color: hsl(355, 65%, 65%);
|
||||
color: hsl(355, 65%, 65%);
|
||||
}
|
||||
|
||||
.dark .token.selector,
|
||||
@ -132,129 +132,129 @@
|
||||
.dark .token.regex,
|
||||
.dark .token.attr-value,
|
||||
.dark .token.attr-value > .dark .token.punctuation {
|
||||
color: hsl(95, 38%, 62%);
|
||||
color: hsl(95, 38%, 62%);
|
||||
}
|
||||
|
||||
.dark .token.variable,
|
||||
.dark .token.operator,
|
||||
.dark .token.function {
|
||||
color: hsl(207, 82%, 66%);
|
||||
color: hsl(207, 82%, 66%);
|
||||
}
|
||||
|
||||
.dark .token.url {
|
||||
color: hsl(187, 47%, 55%);
|
||||
color: hsl(187, 47%, 55%);
|
||||
}
|
||||
|
||||
/* HTML overrides */
|
||||
.dark .token.attr-value > .dark .token.punctuation.attr-equals,
|
||||
.dark .token.special-attr > .dark .token.attr-value > .dark .token.value.css {
|
||||
color: hsl(220, 14%, 71%);
|
||||
color: hsl(220, 14%, 71%);
|
||||
}
|
||||
|
||||
/* CSS overrides */
|
||||
.language-css .dark .token.selector {
|
||||
color: hsl(355, 65%, 65%);
|
||||
color: hsl(355, 65%, 65%);
|
||||
}
|
||||
|
||||
.language-css .dark .token.property {
|
||||
color: hsl(220, 14%, 71%);
|
||||
color: hsl(220, 14%, 71%);
|
||||
}
|
||||
|
||||
.language-css .dark .token.function,
|
||||
.language-css .dark .token.url > .dark .token.function {
|
||||
color: hsl(187, 47%, 55%);
|
||||
color: hsl(187, 47%, 55%);
|
||||
}
|
||||
|
||||
.language-css .dark .token.url > .dark .token.string.url {
|
||||
color: hsl(95, 38%, 62%);
|
||||
color: hsl(95, 38%, 62%);
|
||||
}
|
||||
|
||||
.language-css .dark .token.important,
|
||||
.language-css .dark .token.atrule .dark .token.rule {
|
||||
color: hsl(286, 60%, 67%);
|
||||
color: hsl(286, 60%, 67%);
|
||||
}
|
||||
|
||||
/* JS overrides */
|
||||
.language-javascript .dark .token.operator {
|
||||
color: hsl(286, 60%, 67%);
|
||||
color: hsl(286, 60%, 67%);
|
||||
}
|
||||
|
||||
.language-javascript
|
||||
.dark
|
||||
.token.template-string
|
||||
> .dark
|
||||
.token.interpolation
|
||||
> .dark
|
||||
.token.interpolation-punctuation.punctuation {
|
||||
color: hsl(5, 48%, 51%);
|
||||
.dark
|
||||
.token.template-string
|
||||
> .dark
|
||||
.token.interpolation
|
||||
> .dark
|
||||
.token.interpolation-punctuation.punctuation {
|
||||
color: hsl(5, 48%, 51%);
|
||||
}
|
||||
|
||||
/* JSON overrides */
|
||||
.language-json .dark .token.operator {
|
||||
color: hsl(220, 14%, 71%);
|
||||
color: hsl(220, 14%, 71%);
|
||||
}
|
||||
|
||||
.language-json .dark .token.null.keyword {
|
||||
color: hsl(29, 54%, 61%);
|
||||
color: hsl(29, 54%, 61%);
|
||||
}
|
||||
|
||||
/* MD overrides */
|
||||
.language-markdown .dark .token.url,
|
||||
.language-markdown .dark .token.url > .dark .token.operator,
|
||||
.language-markdown .dark .token.url-reference.url > .dark .token.string {
|
||||
color: hsl(220, 14%, 71%);
|
||||
color: hsl(220, 14%, 71%);
|
||||
}
|
||||
|
||||
.language-markdown .dark .token.url > .dark .token.content {
|
||||
color: hsl(207, 82%, 66%);
|
||||
color: hsl(207, 82%, 66%);
|
||||
}
|
||||
|
||||
.language-markdown .dark .token.url > .dark .token.url,
|
||||
.language-markdown .dark .token.url-reference.url {
|
||||
color: hsl(187, 47%, 55%);
|
||||
color: hsl(187, 47%, 55%);
|
||||
}
|
||||
|
||||
.language-markdown .dark .token.blockquote.punctuation,
|
||||
.language-markdown .dark .token.hr.punctuation {
|
||||
color: hsl(220, 10%, 40%);
|
||||
font-style: italic;
|
||||
color: hsl(220, 10%, 40%);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.language-markdown .dark .token.code-snippet {
|
||||
color: hsl(95, 38%, 62%);
|
||||
color: hsl(95, 38%, 62%);
|
||||
}
|
||||
|
||||
.language-markdown .dark .token.bold .dark .token.content {
|
||||
color: hsl(29, 54%, 61%);
|
||||
color: hsl(29, 54%, 61%);
|
||||
}
|
||||
|
||||
.language-markdown .dark .token.italic .dark .token.content {
|
||||
color: hsl(286, 60%, 67%);
|
||||
color: hsl(286, 60%, 67%);
|
||||
}
|
||||
|
||||
.language-markdown .dark .token.strike .dark .token.content,
|
||||
.language-markdown .dark .token.strike .dark .token.punctuation,
|
||||
.language-markdown .dark .token.list.punctuation,
|
||||
.language-markdown .dark .token.title.important > .dark .token.punctuation {
|
||||
color: hsl(355, 65%, 65%);
|
||||
color: hsl(355, 65%, 65%);
|
||||
}
|
||||
|
||||
/* General */
|
||||
.dark .token.bold {
|
||||
font-weight: bold;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.dark .token.comment,
|
||||
.dark .token.italic {
|
||||
font-style: italic;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.dark .token.entity {
|
||||
cursor: help;
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
.dark .token.namespace {
|
||||
opacity: 0.8;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
/* Plugin overrides */
|
||||
@ -265,24 +265,24 @@
|
||||
.dark .token.dark .token.cr:before,
|
||||
.dark .token.dark .token.lf:before,
|
||||
.dark .token.dark .token.space:before {
|
||||
color: hsla(220, 14%, 71%, 0.15);
|
||||
text-shadow: none;
|
||||
color: hsla(220, 14%, 71%, 0.15);
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
/* Toolbar plugin overrides */
|
||||
/* Space out all buttons and move them away from the right edge of the code block */
|
||||
.dark div.code-toolbar > .toolbar.toolbar > .toolbar-item {
|
||||
margin-right: 0.4em;
|
||||
margin-right: 0.4em;
|
||||
}
|
||||
|
||||
/* Styling the buttons */
|
||||
.dark div.code-toolbar > .toolbar.toolbar > .toolbar-item > button,
|
||||
.dark div.code-toolbar > .toolbar.toolbar > .toolbar-item > a,
|
||||
.dark div.code-toolbar > .toolbar.toolbar > .toolbar-item > span {
|
||||
background: hsl(220, 13%, 26%);
|
||||
color: hsl(220, 9%, 55%);
|
||||
padding: 0.1em 0.4em;
|
||||
border-radius: 0.3em;
|
||||
background: hsl(220, 13%, 26%);
|
||||
color: hsl(220, 9%, 55%);
|
||||
padding: 0.1em 0.4em;
|
||||
border-radius: 0.3em;
|
||||
}
|
||||
|
||||
.dark div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover,
|
||||
@ -291,46 +291,46 @@
|
||||
.dark div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus,
|
||||
.dark div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover,
|
||||
.dark div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus {
|
||||
background: hsl(220, 13%, 28%);
|
||||
color: hsl(220, 14%, 71%);
|
||||
background: hsl(220, 13%, 28%);
|
||||
color: hsl(220, 14%, 71%);
|
||||
}
|
||||
|
||||
/* Line Highlight plugin overrides */
|
||||
/* The highlighted line itself */
|
||||
.dark .line-highlight.line-highlight {
|
||||
background: hsla(220, 100%, 80%, 0.04);
|
||||
background: hsla(220, 100%, 80%, 0.04);
|
||||
}
|
||||
|
||||
/* Default line numbers in Line Highlight plugin */
|
||||
.dark .line-highlight.line-highlight:before,
|
||||
.dark .line-highlight.line-highlight[data-end]:after {
|
||||
background: hsl(220, 13%, 26%);
|
||||
color: hsl(220, 14%, 71%);
|
||||
padding: 0.1em 0.6em;
|
||||
border-radius: 0.3em;
|
||||
box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.2); /* same as Toolbar plugin default */
|
||||
background: hsl(220, 13%, 26%);
|
||||
color: hsl(220, 14%, 71%);
|
||||
padding: 0.1em 0.6em;
|
||||
border-radius: 0.3em;
|
||||
box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.2); /* same as Toolbar plugin default */
|
||||
}
|
||||
|
||||
/* Hovering over a linkable line number (in the gutter area) */
|
||||
/* Requires Line Numbers plugin as well */
|
||||
.dark
|
||||
pre[id].linkable-line-numbers.linkable-line-numbers
|
||||
span.line-numbers-rows
|
||||
> span:hover:before {
|
||||
background-color: hsla(220, 100%, 80%, 0.04);
|
||||
pre[id].linkable-line-numbers.linkable-line-numbers
|
||||
span.line-numbers-rows
|
||||
> span:hover:before {
|
||||
background-color: hsla(220, 100%, 80%, 0.04);
|
||||
}
|
||||
|
||||
/* Line Numbers and Command Line plugins overrides */
|
||||
/* Line separating gutter from coding area */
|
||||
.dark .line-numbers.line-numbers .line-numbers-rows,
|
||||
.dark .command-line .command-line-prompt {
|
||||
border-right-color: hsla(220, 14%, 71%, 0.15);
|
||||
border-right-color: hsla(220, 14%, 71%, 0.15);
|
||||
}
|
||||
|
||||
/* Stuff in the gutter */
|
||||
.dark .line-numbers .line-numbers-rows > span:before,
|
||||
.dark .command-line .command-line-prompt > span:before {
|
||||
color: hsl(220, 14%, 45%);
|
||||
color: hsl(220, 14%, 45%);
|
||||
}
|
||||
|
||||
/* Match Braces plugin overrides */
|
||||
@ -338,137 +338,137 @@ span.line-numbers-rows
|
||||
.rainbow-braces .dark .token.dark .token.punctuation.brace-level-1,
|
||||
.rainbow-braces .dark .token.dark .token.punctuation.brace-level-5,
|
||||
.rainbow-braces .dark .token.dark .token.punctuation.brace-level-9 {
|
||||
color: hsl(355, 65%, 65%);
|
||||
color: hsl(355, 65%, 65%);
|
||||
}
|
||||
|
||||
.rainbow-braces .dark .token.dark .token.punctuation.brace-level-2,
|
||||
.rainbow-braces .dark .token.dark .token.punctuation.brace-level-6,
|
||||
.rainbow-braces .dark .token.dark .token.punctuation.brace-level-10 {
|
||||
color: hsl(95, 38%, 62%);
|
||||
color: hsl(95, 38%, 62%);
|
||||
}
|
||||
|
||||
.rainbow-braces .dark .token.dark .token.punctuation.brace-level-3,
|
||||
.rainbow-braces .dark .token.dark .token.punctuation.brace-level-7,
|
||||
.rainbow-braces .dark .token.dark .token.punctuation.brace-level-11 {
|
||||
color: hsl(207, 82%, 66%);
|
||||
color: hsl(207, 82%, 66%);
|
||||
}
|
||||
|
||||
.rainbow-braces .dark .token.dark .token.punctuation.brace-level-4,
|
||||
.rainbow-braces .dark .token.dark .token.punctuation.brace-level-8,
|
||||
.rainbow-braces .dark .token.dark .token.punctuation.brace-level-12 {
|
||||
color: hsl(286, 60%, 67%);
|
||||
color: hsl(286, 60%, 67%);
|
||||
}
|
||||
|
||||
/* Diff Highlight plugin overrides */
|
||||
/* Taken from https://github.com/atom/github/blob/master/styles/variables.less */
|
||||
pre.diff-highlight > code .dark .token.dark .token.deleted:not(.prefix),
|
||||
pre > code.diff-highlight .dark .token.dark .token.deleted:not(.prefix) {
|
||||
background-color: hsla(353, 100%, 66%, 0.15);
|
||||
background-color: hsla(353, 100%, 66%, 0.15);
|
||||
}
|
||||
|
||||
pre.diff-highlight
|
||||
> code
|
||||
.dark
|
||||
.token.dark
|
||||
.token.deleted:not(.prefix)::-moz-selection,
|
||||
> code
|
||||
.dark
|
||||
.token.dark
|
||||
.token.deleted:not(.prefix)::-moz-selection,
|
||||
pre.diff-highlight
|
||||
> code
|
||||
.dark
|
||||
.token.dark
|
||||
.token.deleted:not(.prefix)
|
||||
*::-moz-selection,
|
||||
> code
|
||||
.dark
|
||||
.token.dark
|
||||
.token.deleted:not(.prefix)
|
||||
*::-moz-selection,
|
||||
pre
|
||||
> code.diff-highlight
|
||||
.dark
|
||||
.token.dark
|
||||
.token.deleted:not(.prefix)::-moz-selection,
|
||||
> code.diff-highlight
|
||||
.dark
|
||||
.token.dark
|
||||
.token.deleted:not(.prefix)::-moz-selection,
|
||||
pre
|
||||
> code.diff-highlight
|
||||
.dark
|
||||
.token.dark
|
||||
.token.deleted:not(.prefix)
|
||||
*::-moz-selection {
|
||||
background-color: hsla(353, 95%, 66%, 0.25);
|
||||
> code.diff-highlight
|
||||
.dark
|
||||
.token.dark
|
||||
.token.deleted:not(.prefix)
|
||||
*::-moz-selection {
|
||||
background-color: hsla(353, 95%, 66%, 0.25);
|
||||
}
|
||||
|
||||
pre.diff-highlight
|
||||
> code
|
||||
.dark
|
||||
.token.dark
|
||||
.token.deleted:not(.prefix)::selection,
|
||||
> code
|
||||
.dark
|
||||
.token.dark
|
||||
.token.deleted:not(.prefix)::selection,
|
||||
pre.diff-highlight
|
||||
> code
|
||||
.dark
|
||||
.token.dark
|
||||
.token.deleted:not(.prefix)
|
||||
*::selection,
|
||||
> code
|
||||
.dark
|
||||
.token.dark
|
||||
.token.deleted:not(.prefix)
|
||||
*::selection,
|
||||
pre
|
||||
> code.diff-highlight
|
||||
.dark
|
||||
.token.dark
|
||||
.token.deleted:not(.prefix)::selection,
|
||||
> code.diff-highlight
|
||||
.dark
|
||||
.token.dark
|
||||
.token.deleted:not(.prefix)::selection,
|
||||
pre
|
||||
> code.diff-highlight
|
||||
.dark
|
||||
.token.dark
|
||||
.token.deleted:not(.prefix)
|
||||
*::selection {
|
||||
background-color: hsla(353, 95%, 66%, 0.25);
|
||||
> code.diff-highlight
|
||||
.dark
|
||||
.token.dark
|
||||
.token.deleted:not(.prefix)
|
||||
*::selection {
|
||||
background-color: hsla(353, 95%, 66%, 0.25);
|
||||
}
|
||||
|
||||
pre.diff-highlight > code .dark .token.dark .token.inserted:not(.prefix),
|
||||
pre > code.diff-highlight .dark .token.dark .token.inserted:not(.prefix) {
|
||||
background-color: hsla(137, 100%, 55%, 0.15);
|
||||
background-color: hsla(137, 100%, 55%, 0.15);
|
||||
}
|
||||
|
||||
pre.diff-highlight
|
||||
> code
|
||||
.dark
|
||||
.token.dark
|
||||
.token.inserted:not(.prefix)::-moz-selection,
|
||||
> code
|
||||
.dark
|
||||
.token.dark
|
||||
.token.inserted:not(.prefix)::-moz-selection,
|
||||
pre.diff-highlight
|
||||
> code
|
||||
.dark
|
||||
.token.dark
|
||||
.token.inserted:not(.prefix)
|
||||
*::-moz-selection,
|
||||
> code
|
||||
.dark
|
||||
.token.dark
|
||||
.token.inserted:not(.prefix)
|
||||
*::-moz-selection,
|
||||
pre
|
||||
> code.diff-highlight
|
||||
.dark
|
||||
.token.dark
|
||||
.token.inserted:not(.prefix)::-moz-selection,
|
||||
> code.diff-highlight
|
||||
.dark
|
||||
.token.dark
|
||||
.token.inserted:not(.prefix)::-moz-selection,
|
||||
pre
|
||||
> code.diff-highlight
|
||||
.dark
|
||||
.token.dark
|
||||
.token.inserted:not(.prefix)
|
||||
*::-moz-selection {
|
||||
background-color: hsla(135, 73%, 55%, 0.25);
|
||||
> code.diff-highlight
|
||||
.dark
|
||||
.token.dark
|
||||
.token.inserted:not(.prefix)
|
||||
*::-moz-selection {
|
||||
background-color: hsla(135, 73%, 55%, 0.25);
|
||||
}
|
||||
|
||||
pre.diff-highlight
|
||||
> code
|
||||
.dark
|
||||
.token.dark
|
||||
.token.inserted:not(.prefix)::selection,
|
||||
> code
|
||||
.dark
|
||||
.token.dark
|
||||
.token.inserted:not(.prefix)::selection,
|
||||
pre.diff-highlight
|
||||
> code
|
||||
.dark
|
||||
.token.dark
|
||||
.token.inserted:not(.prefix)
|
||||
*::selection,
|
||||
> code
|
||||
.dark
|
||||
.token.dark
|
||||
.token.inserted:not(.prefix)
|
||||
*::selection,
|
||||
pre
|
||||
> code.diff-highlight
|
||||
.dark
|
||||
.token.dark
|
||||
.token.inserted:not(.prefix)::selection,
|
||||
> code.diff-highlight
|
||||
.dark
|
||||
.token.dark
|
||||
.token.inserted:not(.prefix)::selection,
|
||||
pre
|
||||
> code.diff-highlight
|
||||
.dark
|
||||
.token.dark
|
||||
.token.inserted:not(.prefix)
|
||||
*::selection {
|
||||
background-color: hsla(135, 73%, 55%, 0.25);
|
||||
> code.diff-highlight
|
||||
.dark
|
||||
.token.dark
|
||||
.token.inserted:not(.prefix)
|
||||
*::selection {
|
||||
background-color: hsla(135, 73%, 55%, 0.25);
|
||||
}
|
||||
|
||||
/* Previewers plugin overrides */
|
||||
@ -476,48 +476,48 @@ pre
|
||||
/* Border around popup */
|
||||
.dark .prism-previewer.prism-previewer:before,
|
||||
.dark .prism-previewer-gradient.prism-previewer-gradient div {
|
||||
border-color: hsl(224, 13%, 17%);
|
||||
border-color: hsl(224, 13%, 17%);
|
||||
}
|
||||
|
||||
/* Angle and time should remain as circles and are hence not included */
|
||||
.dark .prism-previewer-color.prism-previewer-color:before,
|
||||
.dark .prism-previewer-gradient.prism-previewer-gradient div,
|
||||
.dark .prism-previewer-easing.prism-previewer-easing:before {
|
||||
border-radius: 0.3em;
|
||||
border-radius: 0.3em;
|
||||
}
|
||||
|
||||
/* Triangles pointing to the code */
|
||||
.dark .prism-previewer.prism-previewer:after {
|
||||
border-top-color: hsl(224, 13%, 17%);
|
||||
border-top-color: hsl(224, 13%, 17%);
|
||||
}
|
||||
|
||||
.dark .prism-previewer-flipped.prism-previewer-flipped.after {
|
||||
border-bottom-color: hsl(224, 13%, 17%);
|
||||
border-bottom-color: hsl(224, 13%, 17%);
|
||||
}
|
||||
|
||||
/* Background colour within the popup */
|
||||
.dark .prism-previewer-angle.prism-previewer-angle:before,
|
||||
.dark .prism-previewer-time.prism-previewer-time:before,
|
||||
.dark .prism-previewer-easing.prism-previewer-easing {
|
||||
background: hsl(219, 13%, 22%);
|
||||
background: hsl(219, 13%, 22%);
|
||||
}
|
||||
|
||||
/* For angle, this is the positive area (eg. 90deg will display one quadrant in this colour) */
|
||||
/* For time, this is the alternate colour */
|
||||
.dark .prism-previewer-angle.prism-previewer-angle circle,
|
||||
.dark .prism-previewer-time.prism-previewer-time circle {
|
||||
stroke: hsl(220, 14%, 71%);
|
||||
stroke-opacity: 1;
|
||||
stroke: hsl(220, 14%, 71%);
|
||||
stroke-opacity: 1;
|
||||
}
|
||||
|
||||
/* Stroke colours of the handle, direction point, and vector itself */
|
||||
.dark .prism-previewer-easing.prism-previewer-easing circle,
|
||||
.dark .prism-previewer-easing.prism-previewer-easing path,
|
||||
.dark .prism-previewer-easing.prism-previewer-easing line {
|
||||
stroke: hsl(220, 14%, 71%);
|
||||
stroke: hsl(220, 14%, 71%);
|
||||
}
|
||||
|
||||
/* Fill colour of the handle */
|
||||
.dark .prism-previewer-easing.prism-previewer-easing circle {
|
||||
fill: transparent;
|
||||
fill: transparent;
|
||||
}
|
||||
|
@ -30,66 +30,66 @@
|
||||
|
||||
code,
|
||||
pre {
|
||||
background: #fff;
|
||||
color: hsl(230, 8%, 24%);
|
||||
/* font-family: 'Fira Code', 'Fira Mono', Menlo, Consolas, 'DejaVu Sans Mono',
|
||||
background: #fff;
|
||||
color: hsl(230, 8%, 24%);
|
||||
/* font-family: 'Fira Code', 'Fira Mono', Menlo, Consolas, 'DejaVu Sans Mono',
|
||||
monospace; */
|
||||
font-family: 'JetBrains Mono', -apple-system, 'DejaVu Sans Mono', monospace;
|
||||
direction: ltr;
|
||||
text-align: left;
|
||||
white-space: pre;
|
||||
word-spacing: normal;
|
||||
word-break: normal;
|
||||
line-height: 1.5;
|
||||
-moz-tab-size: 2;
|
||||
-o-tab-size: 2;
|
||||
tab-size: 2;
|
||||
-webkit-hyphens: none;
|
||||
-moz-hyphens: none;
|
||||
-ms-hyphens: none;
|
||||
hyphens: none;
|
||||
font-family: 'JetBrains Mono', -apple-system, 'DejaVu Sans Mono', monospace;
|
||||
direction: ltr;
|
||||
text-align: left;
|
||||
white-space: pre;
|
||||
word-spacing: normal;
|
||||
word-break: normal;
|
||||
line-height: 1.5;
|
||||
-moz-tab-size: 2;
|
||||
-o-tab-size: 2;
|
||||
tab-size: 2;
|
||||
-webkit-hyphens: none;
|
||||
-moz-hyphens: none;
|
||||
-ms-hyphens: none;
|
||||
hyphens: none;
|
||||
}
|
||||
|
||||
/* Selection */
|
||||
code::-moz-selection,
|
||||
code *::-moz-selection,
|
||||
pre *::-moz-selection {
|
||||
background: hsl(230, 1%, 90%);
|
||||
color: inherit;
|
||||
background: hsl(230, 1%, 90%);
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
code::selection,
|
||||
code *::selection,
|
||||
pre *::selection {
|
||||
background: hsl(230, 1%, 90%);
|
||||
color: inherit;
|
||||
background: hsl(230, 1%, 90%);
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
/* Code blocks */
|
||||
pre {
|
||||
padding: 1em;
|
||||
margin: 0.5em 0;
|
||||
overflow: auto;
|
||||
border-radius: 0.3em;
|
||||
padding: 1em;
|
||||
margin: 0.5em 0;
|
||||
overflow: auto;
|
||||
border-radius: 0.3em;
|
||||
}
|
||||
|
||||
/* Inline code */
|
||||
:not(pre) > code {
|
||||
padding: 0.2em 0.3em;
|
||||
border-radius: 0.3em;
|
||||
white-space: normal;
|
||||
padding: 0.2em 0.3em;
|
||||
border-radius: 0.3em;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.token.comment,
|
||||
.token.prolog,
|
||||
.token.cdata {
|
||||
color: hsl(230, 4%, 64%);
|
||||
color: hsl(230, 4%, 64%);
|
||||
}
|
||||
|
||||
.token.doctype,
|
||||
.token.punctuation,
|
||||
.token.entity {
|
||||
color: hsl(230, 8%, 24%);
|
||||
color: hsl(230, 8%, 24%);
|
||||
}
|
||||
|
||||
.token.attr-name,
|
||||
@ -98,11 +98,11 @@ pre {
|
||||
.token.constant,
|
||||
.token.number,
|
||||
.token.atrule {
|
||||
color: hsl(35, 99%, 36%);
|
||||
color: hsl(35, 99%, 36%);
|
||||
}
|
||||
|
||||
.token.keyword {
|
||||
color: hsl(301, 63%, 40%);
|
||||
color: hsl(301, 63%, 40%);
|
||||
}
|
||||
|
||||
.token.property,
|
||||
@ -110,7 +110,7 @@ pre {
|
||||
.token.symbol,
|
||||
.token.deleted,
|
||||
.token.important {
|
||||
color: hsl(5, 74%, 59%);
|
||||
color: hsl(5, 74%, 59%);
|
||||
}
|
||||
|
||||
.token.selector,
|
||||
@ -121,126 +121,126 @@ pre {
|
||||
.token.regex,
|
||||
.token.attr-value,
|
||||
.token.attr-value > .token.punctuation {
|
||||
color: hsl(119, 34%, 47%);
|
||||
color: hsl(119, 34%, 47%);
|
||||
}
|
||||
|
||||
.token.variable,
|
||||
.token.operator,
|
||||
.token.function {
|
||||
color: hsl(221, 87%, 60%);
|
||||
color: hsl(221, 87%, 60%);
|
||||
}
|
||||
|
||||
.token.url {
|
||||
color: hsl(198, 99%, 37%);
|
||||
color: hsl(198, 99%, 37%);
|
||||
}
|
||||
|
||||
/* HTML overrides */
|
||||
.token.attr-value > .token.punctuation.attr-equals,
|
||||
.token.special-attr > .token.attr-value > .token.value.css {
|
||||
color: hsl(230, 8%, 24%);
|
||||
color: hsl(230, 8%, 24%);
|
||||
}
|
||||
|
||||
/* CSS overrides */
|
||||
.language-css .token.selector {
|
||||
color: hsl(5, 74%, 59%);
|
||||
color: hsl(5, 74%, 59%);
|
||||
}
|
||||
|
||||
.language-css .token.property {
|
||||
color: hsl(230, 8%, 24%);
|
||||
color: hsl(230, 8%, 24%);
|
||||
}
|
||||
|
||||
.language-css .token.function,
|
||||
.language-css .token.url > .token.function {
|
||||
color: hsl(198, 99%, 37%);
|
||||
color: hsl(198, 99%, 37%);
|
||||
}
|
||||
|
||||
.language-css .token.url > .token.string.url {
|
||||
color: hsl(119, 34%, 47%);
|
||||
color: hsl(119, 34%, 47%);
|
||||
}
|
||||
|
||||
.language-css .token.important,
|
||||
.language-css .token.atrule .token.rule {
|
||||
color: hsl(301, 63%, 40%);
|
||||
color: hsl(301, 63%, 40%);
|
||||
}
|
||||
|
||||
/* JS overrides */
|
||||
.language-javascript .token.operator {
|
||||
color: hsl(301, 63%, 40%);
|
||||
color: hsl(301, 63%, 40%);
|
||||
}
|
||||
|
||||
.language-javascript
|
||||
.token.template-string
|
||||
> .token.interpolation
|
||||
> .token.interpolation-punctuation.punctuation {
|
||||
color: hsl(344, 84%, 43%);
|
||||
.token.template-string
|
||||
> .token.interpolation
|
||||
> .token.interpolation-punctuation.punctuation {
|
||||
color: hsl(344, 84%, 43%);
|
||||
}
|
||||
|
||||
/* JSON overrides */
|
||||
.language-json .token.operator {
|
||||
color: hsl(230, 8%, 24%);
|
||||
color: hsl(230, 8%, 24%);
|
||||
}
|
||||
|
||||
.language-json .token.null.keyword {
|
||||
color: hsl(35, 99%, 36%);
|
||||
color: hsl(35, 99%, 36%);
|
||||
}
|
||||
|
||||
/* MD overrides */
|
||||
.language-markdown .token.url,
|
||||
.language-markdown .token.url > .token.operator,
|
||||
.language-markdown .token.url-reference.url > .token.string {
|
||||
color: hsl(230, 8%, 24%);
|
||||
color: hsl(230, 8%, 24%);
|
||||
}
|
||||
|
||||
.language-markdown .token.url > .token.content {
|
||||
color: hsl(221, 87%, 60%);
|
||||
color: hsl(221, 87%, 60%);
|
||||
}
|
||||
|
||||
.language-markdown .token.url > .token.url,
|
||||
.language-markdown .token.url-reference.url {
|
||||
color: hsl(198, 99%, 37%);
|
||||
color: hsl(198, 99%, 37%);
|
||||
}
|
||||
|
||||
.language-markdown .token.blockquote.punctuation,
|
||||
.language-markdown .token.hr.punctuation {
|
||||
color: hsl(230, 4%, 64%);
|
||||
font-style: italic;
|
||||
color: hsl(230, 4%, 64%);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.language-markdown .token.code-snippet {
|
||||
color: hsl(119, 34%, 47%);
|
||||
color: hsl(119, 34%, 47%);
|
||||
}
|
||||
|
||||
.language-markdown .token.bold .token.content {
|
||||
color: hsl(35, 99%, 36%);
|
||||
color: hsl(35, 99%, 36%);
|
||||
}
|
||||
|
||||
.language-markdown .token.italic .token.content {
|
||||
color: hsl(301, 63%, 40%);
|
||||
color: hsl(301, 63%, 40%);
|
||||
}
|
||||
|
||||
.language-markdown .token.strike .token.content,
|
||||
.language-markdown .token.strike .token.punctuation,
|
||||
.language-markdown .token.list.punctuation,
|
||||
.language-markdown .token.title.important > .token.punctuation {
|
||||
color: hsl(5, 74%, 59%);
|
||||
color: hsl(5, 74%, 59%);
|
||||
}
|
||||
|
||||
/* General */
|
||||
.token.bold {
|
||||
font-weight: bold;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.token.comment,
|
||||
.token.italic {
|
||||
font-style: italic;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.token.entity {
|
||||
cursor: help;
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
.token.namespace {
|
||||
opacity: 0.8;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
/* Plugin overrides */
|
||||
@ -251,23 +251,23 @@ pre {
|
||||
.token.token.cr:before,
|
||||
.token.token.lf:before,
|
||||
.token.token.space:before {
|
||||
color: hsla(230, 8%, 24%, 0.2);
|
||||
color: hsla(230, 8%, 24%, 0.2);
|
||||
}
|
||||
|
||||
/* Toolbar plugin overrides */
|
||||
/* Space out all buttons and move them away from the right edge of the code block */
|
||||
div.code-toolbar > .toolbar.toolbar > .toolbar-item {
|
||||
margin-right: 0.4em;
|
||||
margin-right: 0.4em;
|
||||
}
|
||||
|
||||
/* Styling the buttons */
|
||||
div.code-toolbar > .toolbar.toolbar > .toolbar-item > button,
|
||||
div.code-toolbar > .toolbar.toolbar > .toolbar-item > a,
|
||||
div.code-toolbar > .toolbar.toolbar > .toolbar-item > span {
|
||||
background: hsl(230, 1%, 90%);
|
||||
color: hsl(230, 6%, 44%);
|
||||
padding: 0.1em 0.4em;
|
||||
border-radius: 0.3em;
|
||||
background: hsl(230, 1%, 90%);
|
||||
color: hsl(230, 6%, 44%);
|
||||
padding: 0.1em 0.4em;
|
||||
border-radius: 0.3em;
|
||||
}
|
||||
|
||||
div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover,
|
||||
@ -276,45 +276,45 @@ div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover,
|
||||
div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus,
|
||||
div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover,
|
||||
div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus {
|
||||
background: hsl(230, 1%, 78%); /* custom: darken(--syntax-bg, 20%) */
|
||||
color: hsl(230, 8%, 24%);
|
||||
background: hsl(230, 1%, 78%); /* custom: darken(--syntax-bg, 20%) */
|
||||
color: hsl(230, 8%, 24%);
|
||||
}
|
||||
|
||||
/* Line Highlight plugin overrides */
|
||||
/* The highlighted line itself */
|
||||
.line-highlight.line-highlight {
|
||||
background: hsla(230, 8%, 24%, 0.05);
|
||||
background: hsla(230, 8%, 24%, 0.05);
|
||||
}
|
||||
|
||||
/* Default line numbers in Line Highlight plugin */
|
||||
.line-highlight.line-highlight:before,
|
||||
.line-highlight.line-highlight[data-end]:after {
|
||||
background: hsl(230, 1%, 90%);
|
||||
color: hsl(230, 8%, 24%);
|
||||
padding: 0.1em 0.6em;
|
||||
border-radius: 0.3em;
|
||||
box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.2); /* same as Toolbar plugin default */
|
||||
background: hsl(230, 1%, 90%);
|
||||
color: hsl(230, 8%, 24%);
|
||||
padding: 0.1em 0.6em;
|
||||
border-radius: 0.3em;
|
||||
box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.2); /* same as Toolbar plugin default */
|
||||
}
|
||||
|
||||
/* Hovering over a linkable line number (in the gutter area) */
|
||||
/* Requires Line Numbers plugin as well */
|
||||
pre[id].linkable-line-numbers.linkable-line-numbers
|
||||
span.line-numbers-rows
|
||||
> span:hover:before {
|
||||
background-color: hsla(230, 8%, 24%, 0.05);
|
||||
span.line-numbers-rows
|
||||
> span:hover:before {
|
||||
background-color: hsla(230, 8%, 24%, 0.05);
|
||||
}
|
||||
|
||||
/* Line Numbers and Command Line plugins overrides */
|
||||
/* Line separating gutter from coding area */
|
||||
.line-numbers.line-numbers .line-numbers-rows,
|
||||
.command-line .command-line-prompt {
|
||||
border-right-color: hsla(230, 8%, 24%, 0.2);
|
||||
border-right-color: hsla(230, 8%, 24%, 0.2);
|
||||
}
|
||||
|
||||
/* Stuff in the gutter */
|
||||
.line-numbers .line-numbers-rows > span:before,
|
||||
.command-line .command-line-prompt > span:before {
|
||||
color: hsl(230, 1%, 62%);
|
||||
color: hsl(230, 1%, 62%);
|
||||
}
|
||||
|
||||
/* Match Braces plugin overrides */
|
||||
@ -322,65 +322,65 @@ span.line-numbers-rows
|
||||
.rainbow-braces .token.token.punctuation.brace-level-1,
|
||||
.rainbow-braces .token.token.punctuation.brace-level-5,
|
||||
.rainbow-braces .token.token.punctuation.brace-level-9 {
|
||||
color: hsl(5, 74%, 59%);
|
||||
color: hsl(5, 74%, 59%);
|
||||
}
|
||||
|
||||
.rainbow-braces .token.token.punctuation.brace-level-2,
|
||||
.rainbow-braces .token.token.punctuation.brace-level-6,
|
||||
.rainbow-braces .token.token.punctuation.brace-level-10 {
|
||||
color: hsl(119, 34%, 47%);
|
||||
color: hsl(119, 34%, 47%);
|
||||
}
|
||||
|
||||
.rainbow-braces .token.token.punctuation.brace-level-3,
|
||||
.rainbow-braces .token.token.punctuation.brace-level-7,
|
||||
.rainbow-braces .token.token.punctuation.brace-level-11 {
|
||||
color: hsl(221, 87%, 60%);
|
||||
color: hsl(221, 87%, 60%);
|
||||
}
|
||||
|
||||
.rainbow-braces .token.token.punctuation.brace-level-4,
|
||||
.rainbow-braces .token.token.punctuation.brace-level-8,
|
||||
.rainbow-braces .token.token.punctuation.brace-level-12 {
|
||||
color: hsl(301, 63%, 40%);
|
||||
color: hsl(301, 63%, 40%);
|
||||
}
|
||||
|
||||
/* Diff Highlight plugin overrides */
|
||||
/* Taken from https://github.com/atom/github/blob/master/styles/variables.less */
|
||||
pre.diff-highlight > code .token.token.deleted:not(.prefix),
|
||||
pre > code.diff-highlight .token.token.deleted:not(.prefix) {
|
||||
background-color: hsla(353, 100%, 66%, 0.15);
|
||||
background-color: hsla(353, 100%, 66%, 0.15);
|
||||
}
|
||||
|
||||
pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection,
|
||||
pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection,
|
||||
pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection,
|
||||
pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection {
|
||||
background-color: hsla(353, 95%, 66%, 0.25);
|
||||
background-color: hsla(353, 95%, 66%, 0.25);
|
||||
}
|
||||
|
||||
pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection,
|
||||
pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection,
|
||||
pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection,
|
||||
pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection {
|
||||
background-color: hsla(353, 95%, 66%, 0.25);
|
||||
background-color: hsla(353, 95%, 66%, 0.25);
|
||||
}
|
||||
|
||||
pre.diff-highlight > code .token.token.inserted:not(.prefix),
|
||||
pre > code.diff-highlight .token.token.inserted:not(.prefix) {
|
||||
background-color: hsla(137, 100%, 55%, 0.15);
|
||||
background-color: hsla(137, 100%, 55%, 0.15);
|
||||
}
|
||||
|
||||
pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection,
|
||||
pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection,
|
||||
pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection,
|
||||
pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection {
|
||||
background-color: hsla(135, 73%, 55%, 0.25);
|
||||
background-color: hsla(135, 73%, 55%, 0.25);
|
||||
}
|
||||
|
||||
pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection,
|
||||
pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection,
|
||||
pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection,
|
||||
pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection {
|
||||
background-color: hsla(135, 73%, 55%, 0.25);
|
||||
background-color: hsla(135, 73%, 55%, 0.25);
|
||||
}
|
||||
|
||||
/* Previewers plugin overrides */
|
||||
@ -388,48 +388,48 @@ pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection {
|
||||
/* Border around popup */
|
||||
.prism-previewer.prism-previewer:before,
|
||||
.prism-previewer-gradient.prism-previewer-gradient div {
|
||||
border-color: hsl(0, 0, 95%);
|
||||
border-color: hsl(0, 0, 95%);
|
||||
}
|
||||
|
||||
/* Angle and time should remain as circles and are hence not included */
|
||||
.prism-previewer-color.prism-previewer-color:before,
|
||||
.prism-previewer-gradient.prism-previewer-gradient div,
|
||||
.prism-previewer-easing.prism-previewer-easing:before {
|
||||
border-radius: 0.3em;
|
||||
border-radius: 0.3em;
|
||||
}
|
||||
|
||||
/* Triangles pointing to the code */
|
||||
.prism-previewer.prism-previewer:after {
|
||||
border-top-color: hsl(0, 0, 95%);
|
||||
border-top-color: hsl(0, 0, 95%);
|
||||
}
|
||||
|
||||
.prism-previewer-flipped.prism-previewer-flipped.after {
|
||||
border-bottom-color: hsl(0, 0, 95%);
|
||||
border-bottom-color: hsl(0, 0, 95%);
|
||||
}
|
||||
|
||||
/* Background colour within the popup */
|
||||
.prism-previewer-angle.prism-previewer-angle:before,
|
||||
.prism-previewer-time.prism-previewer-time:before,
|
||||
.prism-previewer-easing.prism-previewer-easing {
|
||||
background: hsl(0, 0%, 100%);
|
||||
background: hsl(0, 0%, 100%);
|
||||
}
|
||||
|
||||
/* For angle, this is the positive area (eg. 90deg will display one quadrant in this colour) */
|
||||
/* For time, this is the alternate colour */
|
||||
.prism-previewer-angle.prism-previewer-angle circle,
|
||||
.prism-previewer-time.prism-previewer-time circle {
|
||||
stroke: hsl(230, 8%, 24%);
|
||||
stroke-opacity: 1;
|
||||
stroke: hsl(230, 8%, 24%);
|
||||
stroke-opacity: 1;
|
||||
}
|
||||
|
||||
/* Stroke colours of the handle, direction point, and vector itself */
|
||||
.prism-previewer-easing.prism-previewer-easing circle,
|
||||
.prism-previewer-easing.prism-previewer-easing path,
|
||||
.prism-previewer-easing.prism-previewer-easing line {
|
||||
stroke: hsl(230, 8%, 24%);
|
||||
stroke: hsl(230, 8%, 24%);
|
||||
}
|
||||
|
||||
/* Fill colour of the handle */
|
||||
.prism-previewer-easing.prism-previewer-easing circle {
|
||||
fill: transparent;
|
||||
fill: transparent;
|
||||
}
|
||||
|
@ -2,11 +2,7 @@
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"target": "es6",
|
||||
"lib": [
|
||||
"dom",
|
||||
"dom.iterable",
|
||||
"esnext"
|
||||
],
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": true,
|
||||
@ -19,14 +15,8 @@
|
||||
"isolatedModules": true,
|
||||
"jsx": "preserve",
|
||||
// "typeRoots": ["./types", "./node_modules/@types"],
|
||||
"incremental": true,
|
||||
"incremental": true
|
||||
},
|
||||
"include": [
|
||||
"next-env.d.ts",
|
||||
"**/*.ts",
|
||||
"**/*.tsx"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
|
Reference in New Issue
Block a user