diff --git a/public/css/global.css b/public/css/global.css index 42134c5..031131d 100644 --- a/public/css/global.css +++ b/public/css/global.css @@ -9,27 +9,28 @@ } @font-face { - font-family: 'Iosevka Fixed Web'; - font-display: swap; - font-weight: 700; - font-stretch: normal; - font-style: normal; - src: url('/Iosevka/Bold.woff2') format('woff2'); + font-family: 'Iosevka Fixed Web'; + font-display: swap; + font-weight: 700; + font-stretch: normal; + font-style: normal; + src: url('/Iosevka/Bold.woff2') format('woff2'); } :root { --c-bg: #121212; - --c-text: rgb(200,200,200); + --c-text: rgb(200, 200, 200); --c-text-2: white; --c-primary: #884b6a; --c-purple: #7F669D; --c-purple-light: #BA94D1; --c-box-shadow: #FBFACD; --c-pink: #AE508D; + --c-link: #38bdf8; --c-nav-bg: rgb(18, 18, 18, 0.5); - --c-secondary: rgba(136,75,106, 0.5); + --c-secondary: rgba(136, 75, 106, 0.5); } @media (prefers-color-scheme: light) { @@ -42,6 +43,7 @@ --c-box-shadow: #374259; --c-primary: rgb(255, 180, 180); --c-pink: #374259; + --c-link: #0284c7; --c-nav-bg: rgb(255, 247, 255, 0.5); --c-secondary: rgba(255, 255, 240, 0.5); @@ -57,6 +59,7 @@ html { font-size: 17px; } } + body { font-family: Inter, 'Fira Sans', Inter, sans-serif; } @@ -67,7 +70,8 @@ body { } } -pre, code { +pre, +code { font-family: "Iosevka Fixed Web", "Iosevka Nerd Font", Iosevka, monospace; } @@ -84,7 +88,7 @@ pre, code { } /* Used by headers generated from markdown */ -.heading-linked :hover::after{ +.heading-linked :hover::after { color: var(--c-primary); content: "#"; display: inline-block; @@ -92,6 +96,7 @@ pre, code { line-height: 1; margin-left: 0.5rem; } + .heading-linked :hover { text-decoration: underline var(--c-primary); -} +} \ No newline at end of file diff --git a/public/css/pages.css b/public/css/pages.css index f96cf3c..2e1455e 100644 --- a/public/css/pages.css +++ b/public/css/pages.css @@ -48,3 +48,8 @@ color: var(--code-theme-color); background: var(--code-theme-bg-color); } + +.markdown a { + color: var(--c-link); + text-decoration: underline; +} diff --git a/public/css/xcode-colors.css b/public/css/xcode-colors.css index 340f86e..696649b 100644 --- a/public/css/xcode-colors.css +++ b/public/css/xcode-colors.css @@ -14,11 +14,15 @@ /* ? */ --code-theme-c3: #39adb5; /* string */ - --code-theme-c4: #fc6a5d; + --code-theme-c4: rgb(124, 201, 117); + /* #fc6a5d; */ /* declaration */ --code-theme-c5: #5dd8ff; /* proyect function */ - --code-theme-c6: #67b7a4; /*#e53935;*/ + --code-theme-c6: #67b7a4; + /*#e53935;*/ + /* function */ + --code-theme-c7: rgb(179, 146, 240); --code-theme-punctuation: #dedede; } @@ -42,7 +46,10 @@ --code-theme-c4: #c41a16; /* declaration */ --code-theme-c5: #0f68a0; - --code-theme-c6: #326d74; /*#e53935;*/ + --code-theme-c6: #326d74; + /*#e53935;*/ + /* function */ + --code-theme-c7: rgb(95, 74, 134); --code-theme-punctuation: #202020; } @@ -86,13 +93,13 @@ pre[class*="language-"] ::selection { color: var(--code-theme-color_selection); } -:not(pre) > code[class*="language-"] { +:not(pre)>code[class*="language-"] { white-space: normal; border-radius: 0.2em; padding: 0.1em; } -:not(pre) > code { +:not(pre)>code { background-color: var(--code-theme-bg-color); padding: 0 0.25rem; border-radius: 5px; @@ -106,9 +113,9 @@ pre[class*="language-"] { border: 1px solid var(--code-theme-border-color); } -.language-css > code, -.language-sass > code, -.language-scss > code { +.language-css>code, +.language-sass>code, +.language-scss>code { color: var(--code-theme-c1); } @@ -177,7 +184,7 @@ pre[class*="language-"] { } .token.function { - color: var(--code-theme-c2); + color: var(--code-theme-c7); } .token.hexcode { @@ -260,4 +267,4 @@ pre[class*="language-"] { .token.variable { color: var(--code-theme-c6); -} +} \ No newline at end of file diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index 9b45393..2933b5a 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -43,10 +43,10 @@ const { showSidebarButton = true } = Astro.props; Language reference - Stdlib API + std reference diff --git a/src/components/TwoColumn.astro b/src/components/TwoColumn.astro new file mode 100644 index 0000000..7fe456b --- /dev/null +++ b/src/components/TwoColumn.astro @@ -0,0 +1,3 @@ +