Browse Source

menu icon update

master
filesite 1 day ago
parent
commit
9606fd89d8
  1. 4
      themes/beauty/views/site/index.php
  2. 2
      www/img/beauty/calendar.svg

4
themes/beauty/views/site/index.php

@ -58,7 +58,7 @@ $main_view_cls = $menu_ext_status == 'opened' ? '' : 'full'; @@ -58,7 +58,7 @@ $main_view_cls = $menu_ext_status == 'opened' ? '' : 'full';
<!--侧边栏-->
<ul class="nav navbar-fixed-left <?=$menu_expand_icon_cls?>">
<li class="menu-title">年月归类</li>
<li class="menu-title">年月</li>
<?php
if (!empty($viewData['cacheDataByDate'])) {
$arrYears = array_keys($viewData['cacheDataByDate']);
@ -66,7 +66,7 @@ $main_view_cls = $menu_ext_status == 'opened' ? '' : 'full'; @@ -66,7 +66,7 @@ $main_view_cls = $menu_ext_status == 'opened' ? '' : 'full';
foreach($arrYears as $year) {
$intYear = str_replace('y', '', $year);
echo <<<eof
<li><a href="###"><img src="/img/beauty/calendar.svg" alt="calendar" width="14" class="menu-icon"> {$intYear}年</a></li>
<li><a href="###"><img src="/img/beauty/calendar.svg?gray" alt="calendar" width="14" class="menu-icon"> {$intYear}年</a></li>
eof;
}
}else {

2
www/img/beauty/calendar.svg

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-calendar" viewBox="0 0 16 16">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="darkgray" class="bi bi-calendar" viewBox="0 0 16 16">
<path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4z"/>
</svg>

Before

Width:  |  Height:  |  Size: 362 B

After

Width:  |  Height:  |  Size: 358 B

Loading…
Cancel
Save