Skip to content

Commit

Permalink
Возвращение к оригинальной теме
Browse files Browse the repository at this point in the history
  • Loading branch information
dx3mod committed Nov 2, 2024
1 parent edd69fd commit 3065bdb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 159 deletions.
8 changes: 5 additions & 3 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from "vitepress";

import { ru } from './ru'
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "ocamlportal",
Expand All @@ -9,6 +9,7 @@ export default defineConfig({
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
logo: "favicon.ico",
outlineTitle: 'Содержание',
nav: [
{ text: "Главная", link: "/" },
{ text: "Ментейнерам", link: "/maintainers" },
Expand Down Expand Up @@ -128,8 +129,9 @@ export default defineConfig({
},
markdown: {
theme: {
light: "vitesse-light",
dark: "vitesse-dark",
light: "kanagawa-lotus",
dark: "kanagawa-dragon",
},
},

});
156 changes: 0 additions & 156 deletions docs/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
@@ -1,156 +0,0 @@
:root {
--vp-c-brand-1: #5086a1;
--vp-c-brand-2: #6aa1b7;
--vp-c-brand-3: #8cccd5;
--vp-c-brand-soft: #83d0da50;
--vp-c-bg-alt: #f9f9f9;

--vp-c-yellow-1: #edb253;
--vp-c-yellow-2: #daac61;
--vp-c-yellow-3: #e6cc78;

--vp-c-red-1: #b34e52;
--vp-c-red-2: #bc6063;
--vp-c-red-3: #cb7676;
}

.dark {
--vp-c-brand-1: #8cccd5;
--vp-c-brand-2: #6aa1b7;
--vp-c-brand-3: #5086a1;
--vp-c-brand-soft: #83d0da50;
--vp-c-bg-alt: #18181b;

--vp-c-yellow-1: #e6cc78;
--vp-c-yellow-2: #daac61;
--vp-c-yellow-3: #edb253;

--vp-c-red-1: #cb7676;
--vp-c-red-2: #bc6063;
--vp-c-red-3: #b34e52;
}

:root {
--vp-c-default-1: var(--vp-c-gray-1);
--vp-c-default-2: var(--vp-c-gray-2);
--vp-c-default-3: var(--vp-c-gray-3);
--vp-c-default-soft: var(--vp-c-gray-soft);

--vp-c-tip-1: var(--vp-c-brand-1);
--vp-c-tip-2: var(--vp-c-brand-2);
--vp-c-tip-3: var(--vp-c-brand-3);
--vp-c-tip-soft: var(--vp-c-brand-soft);

--vp-c-warning-1: var(--vp-c-yellow-1);
--vp-c-warning-2: var(--vp-c-yellow-2);
--vp-c-warning-3: var(--vp-c-yellow-3);
--vp-c-warning-soft: var(--vp-c-yellow-soft);

--vp-c-danger-1: var(--vp-c-red-1);
--vp-c-danger-2: var(--vp-c-red-2);
--vp-c-danger-3: var(--vp-c-red-3);
--vp-c-danger-soft: var(--vp-c-red-soft);
}

:root {
-vp-c-text-1: rgba(42, 40, 47);
-vp-c-text-2: rgba(42, 40, 47, 0.78);
-vp-c-text-3: rgba(42, 40, 47, 0.56);
--black-text-1: rgba(42, 40, 47);
}

.dark {
--vp-c-text-1: rgba(255, 255, 245, 0.86);
--vp-c-text-2: rgba(235, 235, 245, 0.6);
--vp-c-text-3: rgba(235, 235, 245, 0.38);
}

/**
* Component: Button
* -------------------------------------------------------------------------- */

:root {
--vp-button-brand-border: transparent;
--vp-button-brand-text: var(--vp-c-white);
--vp-button-brand-bg: var(--vp-c-brand-1);
--vp-button-brand-hover-border: transparent;
--vp-button-brand-hover-text: var(--vp-c-white);
--vp-button-brand-hover-bg: var(--vp-c-brand-2);
--vp-button-brand-active-border: transparent;
--vp-button-brand-active-text: var(--vp-c-white);
--vp-button-brand-active-bg: var(--vp-c-brand-1);
}

.dark {
--vp-button-brand-text: var(--black-text-1);
--vp-button-brand-bg: var(--vp-c-brand-2);
--vp-button-brand-hover-text: var(--black-text-1);
--vp-button-brand-hover-bg: var(--vp-c-brand-1);
--vp-button-brand-active-text: var(--black-text-1);
--vp-button-brand-active-bg: var(--vp-c-brand-3);
}

/**
* Component: Home
* -------------------------------------------------------------------------- */

:root {
--vp-home-hero-name-color: var(--vp-c-brand-1);
}

@media (min-width: 640px) {
:root {
--vp-home-hero-image-filter: blur(56px);
}
}

@media (min-width: 960px) {
:root {
--vp-home-hero-image-filter: blur(72px);
}
}

/**
* Component: Custom Block
* -------------------------------------------------------------------------- */

:root {
--vp-custom-block-tip-border: transparent;
--vp-custom-block-tip-text: var(--vp-c-text-1);
--vp-custom-block-tip-bg: var(--vp-c-brand-soft);
--vp-custom-block-tip-code-bg: var(--vp-c-brand-soft);
}

/**
* Component: Algolia
* -------------------------------------------------------------------------- */

.DocSearch {
--docsearch-primary-color: var(--vp-c-brand-1) !important;
}


.vp-code .tab,
.vp-code .space {
position: relative;
}

.vp-code .tab::before {
content: '⇥';
position: absolute;
opacity: 0.3;
}

.vp-code .space::before {
content: '·';
position: absolute;
opacity: 0.3;
}

.vp-code .highlighted-word {
background-color: var(--vp-c-bg-soft);
border: 1px solid var(--vp-c-border);
padding: 1px 3px;
margin: -1px -3px;
border-radius: 4px;
}
File renamed without changes.

0 comments on commit 3065bdb

Please sign in to comment.