pages/site/.vitepress/theme/custom.css

692 lines
14 KiB
CSS
Raw Normal View History

2024-06-17 04:30:48 +00:00
html {
overflow-x: hidden;
}
2022-10-05 04:19:22 +00:00
:root {
2024-06-17 04:30:48 +00:00
--vp-c-bg: #3B4252;
--vp-c-bg-elv: #434C5E;
--vp-font-family-base: Itim;
2024-06-15 17:03:00 +00:00
--vp-font-family-mono: Roboto Mono;
2024-06-17 04:30:48 +00:00
--vp-layout-max-width: 1080px;
--vp-nav-height: 48px;
2024-06-19 01:03:25 +00:00
--vp-local-search-bg: var(--vp-c-bg-alt);
2022-10-05 04:19:22 +00:00
}
2024-06-17 04:30:48 +00:00
footer {
color: var(--vp-c-default-1);
2024-06-15 17:15:21 +00:00
}
2024-06-17 04:30:48 +00:00
footer a[href^=http]:after {
color: var(--vp-c-border) !important;
2024-06-06 04:37:14 +00:00
}
.title {
justify-content: center;
2024-06-17 04:30:48 +00:00
border: none !important;
position: unset !important;
padding: 0 !important;
width: unset !important;
2024-06-06 04:37:14 +00:00
}
.title span {
font-size: x-large;
}
.search {
padding-left: 0;
2024-06-17 04:30:48 +00:00
display: flex;
flex-grow: 0 !important;
padding-left: unset !important;
2024-06-06 04:37:14 +00:00
}
.DocSearch-Button {
margin: auto;
width: unset;
2024-06-17 04:30:48 +00:00
border: none !important;
}
.DocSearch-Button-Placeholder {
margin-top: unset !important;
padding: unset !important;
font-size: unset !important;
font-weight: unset !important;
color: unset !important;
margin-right: 8px;
}
.VPNavBarMenu {
align-items: flex-end;
}
.VPNavBarMenuLink {
line-height: unset !important;
font-size: unset !important;
font-weight: unset !important;
color: unset !important;
2024-06-06 04:37:14 +00:00
}
2024-06-06 05:00:23 +00:00
ul > li > ul {
position: relative;
}
ul > li > ul::before {
2024-06-17 04:30:48 +00:00
position: absolute;
content: "";
width: 2px;
background: var(--vp-c-text-1);
opacity: 0.3;
left: -16px;
top: 8px;
bottom: 8px;
}
.aside {
display: none !important;
}
.img-container {
padding: 15px;
position: relative;
height: 11lh;
width: fit-content;
2024-06-18 17:37:35 +00:00
margin: auto;
2024-06-17 04:30:48 +00:00
}
.img-container img {
clip-path: polygon(18px 0%, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0% 18px);
height: 100%;
object-fit: contain;
background: white;
}
.img-container:after,
.img-container:before {
content: "";
display: block;
position: absolute;
border: 50px solid transparent;
transform: rotate(135deg);
}
.img-container:after {
bottom: -60px;
right: -65px;
box-shadow: 0px 7px 6px -9px black;
}
.img-container:before {
top: -60px;
left: -65px;
box-shadow: 0px -7px 6px -9px black;
}
.VPDoc {
padding: 0 32px !important;
}
2024-06-18 17:52:48 +00:00
.vp-doc a {
2024-06-17 04:30:48 +00:00
color: unset;
text-decoration: unset;
font-weight: unset;
text-underline-offset: unset;
margin: 0 -0.4em;
padding: 0.1em 0.4em;
border-radius: 0.8em 0.3em;
background: transparent;
background-image: linear-gradient(
to right,
rgba(255, 225, 0, 0.05),
rgba(255, 225, 0, 0.35) 4%,
rgba(255, 225, 0, 0.15)
);
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}
2024-06-18 17:52:48 +00:00
.vp-doc a:hover {
2024-06-17 04:30:48 +00:00
color: unset;
background-image: linear-gradient(
to right,
rgba(255, 225, 0, 0.1),
rgba(255, 225, 0, 0.7) 4%,
rgba(255, 225, 0, 0.3)
);
}
.vp-doc a[href^="http"]:after {
content: "";
display: inline-block;
margin-top: -1px;
margin-left: 4px;
width: 11px;
height: 11px;
background: currentColor;
color: var(--vp-c-text-3);
flex-shrink: 0;
--icon: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M0 0h24v24H0V0z' fill='none' /%3E%3Cpath d='M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z' /%3E%3C/svg%3E");
-webkit-mask-image: var(--icon);
mask-image: var(--icon);
}
.VPNav {
2024-06-17 16:48:04 +00:00
left: 96px !important;
right: 32px !important;
2024-06-17 04:30:48 +00:00
width: unset !important;
position: absolute !important;
2024-06-17 16:48:04 +00:00
overflow: hidden;
2024-06-17 04:30:48 +00:00
}
.wrapper {
2024-06-17 16:48:04 +00:00
padding: 0 !important;
2024-06-17 04:30:48 +00:00
}
.VPNavBar {
background-color: unset !important;
}
.VPNav .container {
align-items: flex-end;
}
.VPNav .content {
padding: 0 !important;
}
.VPNav .content-body {
height: unset !important;
align-items: flex-end !important;
2024-06-17 16:48:04 +00:00
column-gap: unset !important;
}
.VPNavBarHamburger {
width: unset !important;
2024-06-17 04:30:48 +00:00
}
.title {
height: unset !important;
}
2024-06-17 16:48:04 +00:00
a.title, .VPNavBarMenuLink, .VPNavBarSocialLinks a, .DocSearch-Button, .VPNav button {
2024-06-17 04:30:48 +00:00
height: 36px !important;
border-radius: 10px 10px 0 0;
padding: 8px !important;
padding-bottom: 16px !important;
margin-bottom: -8px !important;
}
.VPNav a:hover, .DocSearch-Button:hover, .VPNav button:hover {
margin-bottom: unset !important;
}
a.title {
background-color: #00ffff;
}
.DocSearch-Button {
background-color: #ffff00 !important;
}
2024-06-17 16:48:04 +00:00
.VPNav .VPNavBarMenuLink[href="https://moddingtree.com"] {
2024-06-17 04:30:48 +00:00
background-color: #00ff00;
}
2024-06-17 16:48:04 +00:00
.VPNav .VPNavBarMenuLink[href="https://incremental.social"] {
2024-06-17 04:30:48 +00:00
background: #ff00ff;
}
.VPNav button {
background: #ff0000;
}
2024-06-17 16:48:04 +00:00
.VPNav .VPNavBarSocialLinks [href="https://code.incremental.social/thepaperpilot"] {
2024-06-17 04:30:48 +00:00
background: #ff7700;
}
2024-06-17 16:48:04 +00:00
.VPNav .VPNavBarSocialLinks [href="https://matrix.to/#/@thepaperpilot:incremental.social"] {
2024-06-17 04:30:48 +00:00
background: #3c9a3c;
}
2024-06-17 16:48:04 +00:00
.VPNav .VPNavBarSocialLinks [href="https://incremental.social/u/thepaperpilot"] {
2024-06-17 04:30:48 +00:00
background: #a75aff;
2024-06-06 05:00:23 +00:00
}
2024-06-16 13:28:58 +00:00
2024-06-17 04:30:48 +00:00
.VPNav .divider {
display: none !important;
}
.VPSocialLinks {
2024-06-17 05:41:25 +00:00
align-items: flex-end !important;
margin-right: 0 !important;
2024-06-17 04:30:48 +00:00
}
.VPSocialLinks::before {
display: none;
}
.VPNavBarExtra {
2024-06-17 05:41:25 +00:00
display: none !important;
}
.VPNavBarSocialLinks {
display: flex !important;
2024-06-17 04:30:48 +00:00
}
2024-06-17 16:48:04 +00:00
.VPNavScreenSocialLinks a,
.VPNavScreenMenuLink,
.VPNavScreenMenuLink::after {
color: var(--vp-c-bg-alt) !important;
}
@media (max-width: 500px) {
.VPNavBarSocialLinks {
display: none !important;
}
}
@media (min-width: 501px) {
.VPNavScreenSocialLinks {
display: none !important;
}
}
@media (max-width: 400px) {
.title span {
width: 60px;
}
.title span::before {
content: "Home.";
}
}
2024-06-17 04:30:48 +00:00
.VPContent {
padding-top: 0 !important;
margin-top: var(--vp-nav-height) !important;
padding-right: calc((100vw - var(--vp-layout-max-width)) / 2) !important;
padding-left: calc((100vw - var(--vp-layout-max-width)) / 2) !important;
}
@media (min-width: 960px) {
.VPNav {
2024-06-17 16:48:04 +00:00
right: calc(max(0px, (100vw - var(--vp-layout-max-width)) / 2) + 32px) !important;
left: calc(max(-15px, (100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width)) + 32px) !important;
2024-06-17 04:30:48 +00:00
}
.VPContent {
padding-left: calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width)) !important;
}
}
.vp-doc .header-anchor {
margin-left: calc(-1em - 23px);
2024-06-17 16:48:04 +00:00
}
.vp-doc :not(h1) > .header-anchor {
2024-06-17 04:30:48 +00:00
top: 24px;
}
2024-06-16 13:28:58 +00:00
.VPSidebar {
opacity: 1 !important;
2024-06-17 04:30:48 +00:00
transition: .5s ease-out !important;
box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.2) !important;
}
.VPLocalNav {
position: fixed !important;
border-bottom: none !important;
background-color: unset !important;
pointer-events: none;
}
2024-06-17 16:48:04 +00:00
.VPLocalNav .container {
align-items: flex-start !important;
flex-direction: column !important;
}
2024-06-17 04:30:48 +00:00
.VPLocalNav > .container > * {
pointer-events: all;
}
.VPLocalNav .menu {
background: #7afcff;
box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.2);
2024-06-17 16:48:04 +00:00
margin-top: 10px;
height: 30px;
width: 90px;
padding: 0 !important;
padding-left: 8px !important;
2024-06-17 04:30:48 +00:00
}
.VPLocalNav button:not(.menu) {
background: #ff7eb9;
padding: 4px 30px 4px 8px;
box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.2);
}
.outline-marker {
left: 16px !important;
}
2024-06-17 04:30:48 +00:00
.VPLocalNavOutlineDropdown {
2024-06-17 16:48:04 +00:00
padding: 0 !important;
margin-top: 10px;
}
.VPLocalNavOutlineDropdown button {
padding: 0 !important;
width: 90px;
height: 30px;
2024-06-17 04:30:48 +00:00
}
.curtain {
display: none;
}
2024-06-17 16:48:04 +00:00
@media (max-width: 840px) {
.DocSearch-Button-Keys {
display: none !important;
}
}
2024-06-17 04:30:48 +00:00
@media (max-width: 959px) {
.VPSidebar {
margin-left: -1000px !important;
padding: 30px !important;
padding-left: calc(1000px + 30px) !important;
box-sizing: content-box;
background: linear-gradient(to bottom, var(--vp-sidebar-bg-color) 29px, var(--vp-c-divider) 1px);
background-size: 100% 30px;
line-height: 30px;
2024-06-17 16:48:04 +00:00
width: calc(100vw - 128px);
2024-06-17 04:30:48 +00:00
}
}
2024-06-19 00:07:48 +00:00
.VPLocalNavOutlineDropdown .items {
background: linear-gradient(to bottom, var(--vp-sidebar-bg-color) 29px, var(--vp-c-divider) 1px);
background-size: 100% 30px;
top: 85px;
border-radius: 0;
}
.VPLocalNavOutlineDropdown ul>li>ul:before {
left: 0;
}
.VPLocalNavOutlineDropdown .header,
.VPLocalNavOutlineDropdown .outline {
background: none !important;
padding: 0 !important;
}
.VPLocalNavOutlineDropdown .top-link,
.VPLocalNavOutlineDropdown .outline-link {
line-height: 30px !important;
font-size: unset !important;
font-weight: unset !important;
}
.aside-curtain {
display: none !important;
}
2024-06-17 04:30:48 +00:00
@media (min-width: 960px) {
.VPSidebar {
transform: rotate(1.4deg) !important;
2024-06-17 17:03:52 +00:00
top: 1em !important;
2024-06-17 04:30:48 +00:00
bottom: unset !important;
2024-06-17 17:03:52 +00:00
--vp-sidebar-width: 250px !important;
2024-06-17 04:30:48 +00:00
background: #feff9c !important;
padding: 30px !important;
width: var(--vp-sidebar-width) !important;
margin-left: max(-15px, calc((100% - (var(--vp-layout-max-width) - 60px)) / 2)) !important;
max-height: 40vh;
2024-06-18 07:32:30 +00:00
transition-duration: 0s !important;
}
.VPLocalNavOutlineDropdown {
display: none;
}
.VPDoc .aside {
display: block !important;
transform: rotate(1.4deg) !important;
position: fixed;
top: calc(40vh + 2em);
left: 0;
--vp-sidebar-width: 250px !important;
background: #feff9c !important;
width: var(--vp-sidebar-width) !important;
padding: 0 !important;
margin-left: max(-15px, calc((100% - (var(--vp-layout-max-width) - 60px)) / 2)) !important;
max-height: 40vh;
2024-06-18 07:32:30 +00:00
overflow-y: auto;
}
.VPDoc .aside-container {
position: unset !important;
height: unset !important;
overflow: unset !important;
padding-top: unset !important;
width: unset !important;
}
.VPDoc .aside-content {
min-height: unset !important;
padding: 0 !important;
}
.VPDoc .aside-content .content {
padding: 30px !important;
}
.outline-title {
font-size: 14px;
font-weight: 700 !important;
line-height: 30px !important;
}
.VPDoc .aside ul>li>ul:before {
display: none;
2024-06-17 04:30:48 +00:00
}
}
.VPContent .container {
background: linear-gradient(to bottom, var(--vp-sidebar-bg-color) 29px, var(--vp-c-divider) 1px);
background-size: 100% 30px;
line-height: 30px;
box-shadow: 0 0 10px 1px #0003 !important;
}
2024-06-17 05:41:25 +00:00
.VPContent .content {
2024-06-17 16:48:04 +00:00
padding: 0 30px !important;
2024-06-17 04:30:48 +00:00
}
.content-container {
border-left: double 7px var(--vp-c-divider);
2024-06-17 16:48:04 +00:00
padding: 30px 0 30px 8px;
2024-06-17 04:30:48 +00:00
max-width: unset !important;
}
article {
padding-top: 30px;
}
.vp-doc .h-feed article {
padding-top: 0px !important;
2024-06-17 16:48:04 +00:00
}
.vp-doc h2 + .e-content {
margin-top: 0 !important;
}
2024-06-17 04:30:48 +00:00
.VPDoc h1, .VPDoc h2, .VPDoc h3, .VPDoc h4, .VPDoc h5, .VPDoc h6 {
margin: 0 !important;
padding: 0 !important;
line-height: 30px !important;
}
.VPDoc h1 + p {
margin-top: 0 !important;
}
.VPDoc h2, .VPDoc h3, .VPDoc h4, .VPDoc h5, .VPDoc h6 {
margin-top: -3px !important;
padding-top: 23px !important;
border-top-style: solid !important;
border-top-width: 10px !important;
border-image: url(/button.svg) 10 10 10 10 stretch stretch !important;
}
ul {
margin: 0 !important;
}
li + li {
margin: 0 !important;
}
.VPDoc p {
padding: 0 !important;
margin: 30px 0 !important;
line-height: 30px !important;
}
blockquote {
margin: 30px 0 !important;
}
blockquote:first-child,
blockquote:first-child p {
margin-top: 0 !important;
}
.VPDoc :has(+ hr), .VPDoc :has(+ h2), .VPDoc :has(+ h3), .VPDoc :has(+ h4), .VPDoc :has(+ h5), .VPDoc :has(+ h6), .VPDoc :has(+ ul) {
margin-bottom: 0 !important;
}
hr {
margin-top: -3px !important;
margin-bottom: -7px !important;
border-top-style: solid !important;
border-top-width: 10px !important;
border-image: url(/button.svg) 10 10 10 10 stretch stretch !important;
height: 0px !important;
}
.text {
line-height: 30px !important;
padding: 0 !important;
margin: 0 !important;
}
.group {
padding-top: 0 !important;
}
.group + .group {
/* Adapted from https://github.com/chr15m/DoodleCSS */
border-top-style: solid !important;
border-top-width: 10px !important;
border-image: url(/button.svg) 10 10 10 10 stretch stretch !important;
padding-top: 23px !important;
margin-top: -3px !important;
}
2024-06-17 16:48:04 +00:00
table {
2024-06-18 07:32:30 +00:00
margin: 30px 0 !important;
2024-06-17 16:48:04 +00:00
}
#app .vp-doc tr {
background-color: var(--vp-c-gray-2);
}
#app .vp-doc tr:nth-child(2n) {
background-color: var(--vp-c-bg-soft);
}
#app .vp-doc th, #app .vp-doc td {
font-size: unset !important;
font-weight: unset !important;
color: unset !important;
padding: 0 8px !important;
line-height: 29px;
}
2024-06-17 04:30:48 +00:00
.VPSidebarItem {
padding-bottom: 0 !important;
}
2024-06-17 17:03:52 +00:00
p:last-child {
2024-06-17 04:30:48 +00:00
margin-bottom: 0 !important;
2024-06-16 13:28:58 +00:00
}
2024-06-18 15:31:39 +00:00
.hero {
width: 60%;
margin: auto;
}
2024-06-18 17:37:35 +00:00
footer img {
height: 1lh;
display: inline;
border-radius: 50%;
margin: 0 .25em;
vertical-align: bottom;
}
2024-06-18 15:31:39 +00:00
@property --anim-bg {
syntax: '<color>';
initial-value: transparent;
inherits: false;
}
@keyframes vp-nolebase-highlight-targeted-heading-animation {
0% {
--anim-bg: transparent;
}
10%,35% {
--anim-bg: var(--vp-c-brand-soft);
}
99% {
--anim-bg: transparent;
}
to {
--anim-bg: transparent;
}
}
.VPNolebaseHighlightTargetedHeadingAnimated {
animation: vp-nolebase-highlight-targeted-heading-animation 1.5s ease-in-out;
background: linear-gradient(0deg, var(--anim-bg) 55%, transparent 45%) repeat-x;
}
2024-06-19 01:03:25 +00:00
.title-icon {
line-height: 30px
}
.excerpt {
margin: 8px 0 !important;
background: var(--docsearch-searchbox-background);
}
.excerpt-gradient-top {
background: var(--docsearch-searchbox-background) !important;
2024-06-19 01:21:02 +00:00
opacity: 0.5;
2024-06-19 01:03:25 +00:00
clip-path: polygon(0% 0%, 5% 100%, 10% 0%, 15% 100%, 20% 0%, 25% 100%, 30% 0%, 35% 100%, 40% 0%, 45% 100%, 50% 0%, 55% 100%, 60% 0%, 65% 100%, 70% 0%, 75% 100%, 80% 0%, 85% 100%, 90% 0%, 95% 100%, 100% 0%);
transform: translateY(-7px) rotateZ(180deg);
}
.excerpt-gradient-bottom {
background: var(--docsearch-searchbox-background) !important;
2024-06-19 01:21:02 +00:00
opacity: 0.5;
2024-06-19 01:03:25 +00:00
clip-path: polygon(0% 0%, 5% 100%, 10% 0%, 15% 100%, 20% 0%, 25% 100%, 30% 0%, 35% 100%, 40% 0%, 45% 100%, 50% 0%, 55% 100%, 60% 0%, 65% 100%, 70% 0%, 75% 100%, 80% 0%, 85% 100%, 90% 0%, 95% 100%, 100% 0%);
transform: translateY(7px);
}
2024-06-19 01:21:02 +00:00
.selected .excerpt-gradient-top,
.selected .excerpt-gradient-bottom {
opacity: 1;
}