From 8b3cd82c0d53595b9230a610b45a0884d736afaa Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Sun, 6 Dec 2020 00:58:54 +0800 Subject: [PATCH] Remove the style of span.exturl --- README.md | 2 +- docs/ru/README.md | 2 +- source/css/_common/components/post/post-collapse.styl | 2 +- source/css/_common/outline/header/menu.styl | 2 +- .../css/_common/outline/sidebar/sidebar-author-links.styl | 2 +- source/css/_common/scaffolding/base.styl | 4 +--- source/css/_common/scaffolding/tags/note.styl | 2 +- source/css/_mixins.styl | 2 +- source/css/_schemes/Mist/_menu.styl | 2 +- source/css/_schemes/Muse/_menu.styl | 2 +- source/css/_schemes/Muse/_sidebar.styl | 6 +++--- source/css/_schemes/Pisces/_menu.styl | 2 +- source/css/_schemes/Pisces/_sidebar.styl | 2 +- source/css/_schemes/Pisces/_sub-menu.styl | 2 +- 14 files changed, 16 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index e85f8c0..c2763c6 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ $ cd hexo-site $ npm install hexo-theme-next@latest ``` -Or update to latest master branch: +Or update to the latest master branch: ```sh $ cd themes/next diff --git a/docs/ru/README.md b/docs/ru/README.md index 34eb4bd..0fd79c7 100644 --- a/docs/ru/README.md +++ b/docs/ru/README.md @@ -98,7 +98,7 @@ $ cd hexo-site $ npm install hexo-theme-next@latest ``` -Or update to latest master branch: +Or update to the latest master branch: ```sh $ cd themes/next diff --git a/source/css/_common/components/post/post-collapse.styl b/source/css/_common/components/post/post-collapse.styl index 99e55df..7f5ebc1 100644 --- a/source/css/_common/components/post/post-collapse.styl +++ b/source/css/_common/components/post/post-collapse.styl @@ -85,7 +85,7 @@ .post-title { display: inline; - a, span.exturl { + a { border-bottom: 0; color: var(--link-color); } diff --git a/source/css/_common/outline/header/menu.styl b/source/css/_common/outline/header/menu.styl index aedfdbe..d5a6e0c 100644 --- a/source/css/_common/outline/header/menu.styl +++ b/source/css/_common/outline/header/menu.styl @@ -20,7 +20,7 @@ } } - a, span.exturl { + a { border-bottom: 0; display: block; font-size: $font-size-smaller; diff --git a/source/css/_common/outline/sidebar/sidebar-author-links.styl b/source/css/_common/outline/sidebar/sidebar-author-links.styl index 7eb9f7d..38d82d8 100644 --- a/source/css/_common/outline/sidebar/sidebar-author-links.styl +++ b/source/css/_common/outline/sidebar/sidebar-author-links.styl @@ -1,5 +1,5 @@ .links-of-author { - a, span.exturl { + a { font-size: $font-size-smaller; } diff --git a/source/css/_common/scaffolding/base.styl b/source/css/_common/scaffolding/base.styl index aaeb285..23e0aa5 100644 --- a/source/css/_common/scaffolding/base.styl +++ b/source/css/_common/scaffolding/base.styl @@ -35,11 +35,9 @@ p { margin: 0 0 20px; } -a, span.exturl { +a { border-bottom: 1px solid $link-decoration-color; color: var(--link-color); - // For spanned external links. - cursor: pointer; outline: 0; text-decoration: none; word-wrap(); diff --git a/source/css/_common/scaffolding/tags/note.styl b/source/css/_common/scaffolding/tags/note.styl index ca5ffce..e2a9aad 100644 --- a/source/css/_common/scaffolding/tags/note.styl +++ b/source/css/_common/scaffolding/tags/note.styl @@ -77,7 +77,7 @@ border-color: $note-modern-border[$type]; color: $note-modern-text[$type]; - a, span.exturl { + a { &:not(.btn) { border-bottom-color: $note-modern-text[$type]; color: $note-modern-text[$type]; diff --git a/source/css/_mixins.styl b/source/css/_mixins.styl index 93d07d5..cce9d99 100644 --- a/source/css/_mixins.styl +++ b/source/css/_mixins.styl @@ -70,7 +70,7 @@ disable-user-select() { sidebar-inline-links-item() { margin: 5px 0 0; - a, span.exturl { + a { box-sizing: border-box; display: inline-block; max-width: 100%; diff --git a/source/css/_schemes/Mist/_menu.styl b/source/css/_schemes/Mist/_menu.styl index 1402098..10489ca 100644 --- a/source/css/_schemes/Mist/_menu.styl +++ b/source/css/_schemes/Mist/_menu.styl @@ -18,7 +18,7 @@ margin-top: 5px; } - a, span.exturl { + a { border-radius: 2px; padding: 0 10px; transition-property: background; diff --git a/source/css/_schemes/Muse/_menu.styl b/source/css/_schemes/Muse/_menu.styl index 054aa13..f019494 100644 --- a/source/css/_schemes/Muse/_menu.styl +++ b/source/css/_schemes/Muse/_menu.styl @@ -16,7 +16,7 @@ margin: 0 10px; } - a, span.exturl { + a { border-bottom: 1px solid transparent; +mobile() { diff --git a/source/css/_schemes/Muse/_sidebar.styl b/source/css/_schemes/Muse/_sidebar.styl index 5d68c39..f306fd8 100644 --- a/source/css/_schemes/Muse/_sidebar.styl +++ b/source/css/_schemes/Muse/_sidebar.styl @@ -40,7 +40,7 @@ if (hexo-config('sidebar.position') == 'right') { width: $sidebar-desktop; z-index: $zindex-2; - a, span.exturl { + a { border-bottom-color: $black-light; color: $grey-dark; @@ -56,7 +56,7 @@ if (hexo-config('sidebar.position') == 'right') { margin-top: 15px; } - a, span.exturl { + a { border-bottom-color: $black-light; display: inline-block; margin-bottom: 10px; @@ -83,7 +83,7 @@ if (hexo-config('sidebar.position') == 'right') { } padding: 2px 10px; - a, span.exturl { + a { box-sizing: border-box; display: inline-block; max-width: 280px; diff --git a/source/css/_schemes/Pisces/_menu.styl b/source/css/_schemes/Pisces/_menu.styl index d42cf13..0269eed 100644 --- a/source/css/_schemes/Pisces/_menu.styl +++ b/source/css/_schemes/Pisces/_menu.styl @@ -8,7 +8,7 @@ display: block; margin: 0; - a, span.exturl { + a { padding: 5px 20px; position: relative; text-align: left; diff --git a/source/css/_schemes/Pisces/_sidebar.styl b/source/css/_schemes/Pisces/_sidebar.styl index 021b576..9c6ac15 100644 --- a/source/css/_schemes/Pisces/_sidebar.styl +++ b/source/css/_schemes/Pisces/_sidebar.styl @@ -62,7 +62,7 @@ width: 50%; } - a, span.exturl { + a { border-bottom: 0; border-radius: 4px; display: block; diff --git a/source/css/_schemes/Pisces/_sub-menu.styl b/source/css/_schemes/Pisces/_sub-menu.styl index 7929b24..166f600 100644 --- a/source/css/_schemes/Pisces/_sub-menu.styl +++ b/source/css/_schemes/Pisces/_sub-menu.styl @@ -5,7 +5,7 @@ .menu-item { display: inline-block; - a, span.exturl { + a { background: transparent; margin: 5px 10px; padding: initial;