From 73e3917c8829197e58137488f54a283c28c08cc1 Mon Sep 17 00:00:00 2001 From: gonpombo8 Date: Thu, 13 Oct 2022 14:21:55 -0300 Subject: [PATCH] add external-link --- assets/_main.scss | 11 +++++++++++ layouts/partials/docs/menu-filetree.html | 5 +++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/assets/_main.scss b/assets/_main.scss index 4feaeb0..89653bd 100644 --- a/assets/_main.scss +++ b/assets/_main.scss @@ -546,6 +546,17 @@ body[dir="rtl"] .book-menu { @import "syntax.scss"; +.book-menu .external-link { + display: flex; + align-items: center; + font-weight: 600 !important; + color: #0d0d17; + img { + width: 12px; + margin-left: 6px; + } +} + .code { font-family: 'monospace' !important; } diff --git a/layouts/partials/docs/menu-filetree.html b/layouts/partials/docs/menu-filetree.html index dd04718..b046435 100644 --- a/layouts/partials/docs/menu-filetree.html +++ b/layouts/partials/docs/menu-filetree.html @@ -36,11 +36,12 @@ {{ else if .Page.Params.BookHref }} - + {{- partial "docs/title" .Page -}} + external-link {{ else if .Page.Content }} - + {{- partial "docs/sidebar-title" .Page -}} {{ else }}