diff --git a/Documentation/guides/advanced/http-interactions.md b/Documentation/guides/advanced/http-interactions.md index 8e851c11e..1193bd217 100644 --- a/Documentation/guides/advanced/http-interactions.md +++ b/Documentation/guides/advanced/http-interactions.md @@ -10,7 +10,7 @@ Follow the [installation guide](installing-native-dependencies.md) to install th To handle HTTP interactions, you need to use @NetCord.Hosting.Rest.RestClientServiceCollectionExtensions.AddDiscordRest(Microsoft.Extensions.DependencyInjection.IServiceCollection) to add the @NetCord.Rest.RestClient and then call @NetCord.Hosting.AspNetCore.EndpointRouteBuilderExtensions.UseHttpInteractions(Microsoft.AspNetCore.Routing.IEndpointRouteBuilder,System.String) to map the interactions route. -[!code-cs[Program.cs](HttpInteractions/Program.cs?highlight=10,17-18)] +[!code-cs[Program.cs](HttpInteractions/Program.cs?highlight=10,18)] ## Finding Public Key and Specifying Interaction Endpoint URL diff --git a/Documentation/templates-src/NetCord/src/highlight.scss b/Documentation/templates-src/NetCord/src/highlight.scss index fef603446..6102d9b9d 100644 --- a/Documentation/templates-src/NetCord/src/highlight.scss +++ b/Documentation/templates-src/NetCord/src/highlight.scss @@ -3,16 +3,19 @@ * The .NET Foundation licenses this file to you under the MIT license. */ -@import "highlight.js/scss/vs"; +[data-bs-theme]:not([data-bs-theme="dark"]) { + @import "highlight.js/scss/base16/dirtysea"; +} -@include color-mode(dark) { - /* stylelint-disable-next-line no-invalid-position-at-import-rule */ +[data-bs-theme]:not([data-bs-theme="dark"]) .hljs { + background-color: #f5f5f5; +} + +[data-bs-theme="dark"] { @import "highlight.js/scss/vs2015"; } .hljs { - background-color: #f5f5f5; - @media print { overflow-x: hidden; text-wrap: pretty; @@ -26,6 +29,6 @@ pre > code .line-highlight { @include color-mode(dark) { pre > code .line-highlight { - background-color: #4a4a00; + background-color: #323110; } } diff --git a/Documentation/templates-src/NetCord/src/main.css b/Documentation/templates-src/NetCord/src/main.css index e89a187f9..7550fe519 100644 --- a/Documentation/templates-src/NetCord/src/main.css +++ b/Documentation/templates-src/NetCord/src/main.css @@ -12,6 +12,7 @@ :root { --bs-font-monospace: Cascadia Code, monospace; + --light-blurple: #6c82ff; --blurple: #5865f2; --dark-blurple: #4752c4; --ligatures: none; @@ -22,17 +23,39 @@ :root, [data-bs-theme="light"] { --tooltip-color: black; + --bs-secondary-rgb: 100, 100, 100; + --bs-secondary: #646464; + --bs-code-color: #d5025e; } [data-bs-theme="dark"] { --tooltip-color: white; + --bs-secondary-rgb: 170, 170, 170; + --bs-secondary: #aaaaaa; + --bs-code-color: #e685b5; } .navbar-nav { --bs-nav-link-color: var(--bs-emphasis-color); + --bs-nav-link-hover-color: var(--light-blurple); + --bs-navbar-active-color: var(--light-blurple); + --bs-nav-link-font-weight: 600; +} + +:root[data-bs-theme="light"] .navbar-nav { --bs-nav-link-hover-color: var(--blurple); --bs-navbar-active-color: var(--blurple); - --bs-nav-link-font-weight: 600; +} + +:root[data-bs-theme="light"] .alert-info a { + --bs-link-color-rgb: 0, 75, 255; + --bs-link-color: #004bff; + --bs-link-hover-color-rgb: 0, 50, 202; + --bs-link-hover-color: #0032ca; +} + +:root[data-bs-theme="light"] .alert-info a:hover { + --bs-link-color-rgb: var(--bs-link-hover-color-rgb); } .btn {