From ebe3d1df2c0ce956ae26444165c338c9c1b4aa1c Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Fri, 7 Apr 2023 14:36:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/css/edu-purge.css | 20 +++++++++++++++----- src/forge/Head/Header.js | 11 +++++++---- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/public/css/edu-purge.css b/public/css/edu-purge.css index ee9473c83..96cbc4a78 100644 --- a/public/css/edu-purge.css +++ b/public/css/edu-purge.css @@ -3993,7 +3993,9 @@ html>body #ajax-indicator { .downMenus li:hover aside{ color: #165dff!important; } - +.namediv{ + display: flex; +} .head-nav ul#header-nav li a { display: flex; align-items: center; @@ -4001,19 +4003,27 @@ html>body #ajax-indicator { width: 100%; color: #fff; font-size: 16px; + position: relative; } .head-nav ul#header-nav li a:hover{ color: #c5c5c5!important; } -#header-nav li a i{ +#header-nav li .namediv i{ font-size: 14px!important; display: inline-block; color: #979797; margin:0px 3.58px 0px 3px; + transform: translateY(0.5px); } - -.head-nav ul#header-nav li a:hover,.head-nav ul#header-nav li.active a { - color: #5091FF; +#header-nav li.active a::before{ + content: ''; + width: 100%; + height: 2px; + background: #c5c5c5; + position: absolute; + bottom: 12px; + left: 0; + border-radius: 1px; } .head-nav ul#header-nav li:last-child { diff --git a/src/forge/Head/Header.js b/src/forge/Head/Header.js index 710cd43ba..89d036850 100644 --- a/src/forge/Head/Header.js +++ b/src/forge/Head/Header.js @@ -384,7 +384,7 @@ class NewHeader extends Component { { item.map((i,k)=>{ return( - !i.hidden &&
  • {window.location.href=`https://data.educoder.net${i.link}`}}> + !i.hidden &&
  • {window.location.href=`https://www.educoder.net${i.link}`}}> {k!==0 &&}
    {i.content}
    @@ -450,11 +450,14 @@ class NewHeader extends Component { var new_link = item.link; var is_hidden = item.hidden; return ( -
  • this.headtypesonClick(item.link, true)} className={`${((isPath && item.name === "大学开源") || this.matchpaths(item.link) === true) ? 'pr active' : 'pr'}`} style={!is_hidden ? { display: 'flex' } : { display: 'none' }}> +
  • this.headtypesonClick(item.link, true)} className={`${((isPath && item.name === "大学开源") || this.matchpaths(item.link) === true) ? 'pr active' : 'pr'}`} style={!is_hidden ? { display: 'block' } : { display: 'none' }}> { item.subitem && item.subitem.length>0 ? -
    +
    +
    + +
    :
    @@ -502,7 +505,7 @@ class NewHeader extends Component { : -
    +
    头像