feat: unifier le style des tags avec variables CSS --tag-bg/--tag-text, standardiser les dimensions des boutons de suppression (1.1rem), convertir les valeurs px en rem pour meilleure cohérence, améliorer l'indentation des règles CSS de la modale et des cartes, et harmoniser les styles entre note-modal-tags et note-tags pour interface cohérente

This commit is contained in:
Bruno Charest 2026-02-18 20:47:54 -05:00
parent 37fbded5a4
commit 84c7585816
5 changed files with 479 additions and 283 deletions

View File

@ -452,275 +452,283 @@ body.view-notes .content-container {
border-top-color: rgba(255, 255, 255, 0.12); border-top-color: rgba(255, 255, 255, 0.12);
} }
.note-modal-tags.is-empty { .note-modal-tags.is-empty {
display: none; display: none;
} }
.note-modal-tags .note-tag { .note-modal-tags .note-tag {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
gap: 6px; gap: 0.25rem;
background: rgba(0, 0, 0, 0.06); background: var(--tag-bg);
border: 1px solid rgba(0, 0, 0, 0.14); color: var(--tag-text);
color: inherit; border-radius: 999px;
border-radius: 999px; padding: 0.25rem 0.5rem;
padding: 4px 8px; font-size: 0.75rem;
font-size: 0.72rem; font-weight: 500;
letter-spacing: 0.02em; }
}
.note-modal-tags .note-tag-text { .note-modal-tags .note-tag-text {
line-height: 1.2; line-height: 1.2;
} }
.note-modal-tags .note-tag-remove-btn { .note-modal-tags .note-tag-remove-btn {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 18px; width: 1.1rem;
height: 18px; height: 1.1rem;
border: none; border: none;
border-radius: 999px; border-radius: 999px;
background: rgba(0, 0, 0, 0.12); background: rgba(0, 0, 0, 0.12);
color: currentColor; color: currentColor;
cursor: pointer; cursor: pointer;
padding: 0; padding: 0;
line-height: 1; line-height: 1;
font-size: 14px; font-size: 0.8rem;
opacity: 0.9; }
}
[data-theme="dark"] .note-modal-tags .note-tag-remove-btn { [data-theme="dark"] .note-modal-tags .note-tag-remove-btn {
background: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.18);
} }
.note-modal-actions { .note-modal-actions {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
gap: 6px; gap: 6px;
padding: 8px 12px; padding: 8px 12px;
border-top: 1px solid rgba(0, 0, 0, 0.12); border-top: 1px solid rgba(0, 0, 0, 0.12);
background: rgba(0, 0, 0, 0.03); background: rgba(0, 0, 0, 0.03);
flex-shrink: 0; flex-shrink: 0;
flex-wrap: wrap; flex-wrap: wrap;
} }
[data-theme="dark"] .note-modal-actions { [data-theme="dark"] .note-modal-actions {
border-top-color: rgba(255, 255, 255, 0.12); border-top-color: rgba(255, 255, 255, 0.12);
background: rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.06);
} }
.note-modal-actions-left { .note-modal-actions-left {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 2px; gap: 2px;
flex-wrap: wrap; flex-wrap: wrap;
} }
.note-modal-actions-left > button, .note-modal-actions-left > button,
.note-modal-actions-left > a, .note-modal-actions-left > a,
.note-modal-actions-left > .note-modal-color-picker > button { .note-modal-actions-left > .note-modal-color-picker > button {
background: transparent; background: transparent;
border: none; border: none;
color: inherit; color: inherit;
opacity: 0.9; opacity: 0.9;
width: 32px; width: 32px;
height: 32px; height: 32px;
border-radius: 50%; border-radius: 50%;
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
cursor: pointer; cursor: pointer;
text-decoration: none; text-decoration: none;
} }
.note-modal-actions-left > button:hover, .note-modal-actions-left > button:hover,
.note-modal-actions-left > a:hover, .note-modal-actions-left > a:hover,
.note-modal-actions-left > .note-modal-color-picker > button:hover { .note-modal-actions-left > .note-modal-color-picker > button:hover {
opacity: 1; opacity: 1;
background: rgba(0, 0, 0, 0.08); background: rgba(0, 0, 0, 0.08);
} }
[data-theme="dark"] .note-modal-actions-left > button:hover, [data-theme="dark"] .note-modal-actions-left > button:hover,
[data-theme="dark"] .note-modal-actions-left > a:hover, [data-theme="dark"] .note-modal-actions-left > a:hover,
[data-theme="dark"] .note-modal-actions-left > .note-modal-color-picker > button:hover { [data-theme="dark"] .note-modal-actions-left > .note-modal-color-picker > button:hover {
background: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.14);
} }
.note-modal-close-btn { .note-modal-close-btn {
background: transparent; background: transparent;
border: none; border: none;
color: inherit; color: inherit;
font-weight: 600; font-weight: 600;
border-radius: 8px; border-radius: 8px;
padding: 6px 10px; padding: 6px 10px;
cursor: pointer; cursor: pointer;
} }
.note-modal-close-btn:hover { .note-modal-close-btn:hover {
background: rgba(0, 0, 0, 0.08); background: rgba(0, 0, 0, 0.08);
} }
[data-theme="dark"] .note-modal-close-btn:hover { [data-theme="dark"] .note-modal-close-btn:hover {
background: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.14);
} }
.note-modal-pin-toggle { .note-modal-pin-toggle {
background: transparent; background: transparent;
border: none; border: none;
color: inherit; color: inherit;
opacity: 0.85; opacity: 0.85;
width: 34px; width: 34px;
height: 34px; height: 34px;
border-radius: 50%; border-radius: 50%;
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
cursor: pointer; cursor: pointer;
flex-shrink: 0; flex-shrink: 0;
} }
.note-modal-pin-toggle:hover, .note-modal-pin-toggle:hover,
.note-modal-pin-toggle.active { .note-modal-pin-toggle.active {
opacity: 1; opacity: 1;
background-color: rgba(0, 0, 0, 0.08); background-color: rgba(0, 0, 0, 0.08);
} }
[data-theme="dark"] .note-modal-pin-toggle:hover, [data-theme="dark"] .note-modal-pin-toggle:hover,
[data-theme="dark"] .note-modal-pin-toggle.active { [data-theme="dark"] .note-modal-pin-toggle.active {
background-color: rgba(255, 255, 255, 0.14); background-color: rgba(255, 255, 255, 0.14);
} }
/* --- CARD STYLING --- */ /* --- CARD STYLING --- */
.note-card { .note-card {
background-color: var(--background-secondary, #ffffff); background-color: var(--background-secondary, #ffffff);
border: 1px solid #e0e0e0; border: 1px solid #e0e0e0;
border-radius: 8px; border-radius: 8px;
margin-bottom: 16px; margin-bottom: 16px;
break-inside: avoid; break-inside: avoid;
position: relative; position: relative;
transition: box-shadow 0.2s, transform 0.2s, background-color 0.2s; transition: box-shadow 0.2s, transform 0.2s, background-color 0.2s;
overflow: visible; overflow: visible;
color: var(--note-card-fg, #202124); color: var(--note-card-fg, #202124);
} }
[data-theme="dark"] .note-card { [data-theme="dark"] .note-card {
background-color: #202124; background-color: #202124;
border: 1px solid #5f6368; border: 1px solid #5f6368;
color: #e8eaed; color: #e8eaed;
} }
.note-card:hover { .note-card:hover {
box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15); box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
} }
[data-theme="dark"] .note-card:hover { [data-theme="dark"] .note-card:hover {
background-color: #202124; background-color: #202124;
} }
/* Cover Image */ /* Cover Image */
.note-cover { .note-cover {
overflow: hidden; overflow: hidden;
border-radius: 8px 8px 0 0; border-radius: 8px 8px 0 0;
} }
.note-cover img { .note-cover img {
width: 100%; width: 100%;
height: auto; height: auto;
display: block; display: block;
object-fit: cover; object-fit: cover;
} }
/* Inner Content */ /* Inner Content */
.note-inner { .note-inner {
padding: 12px 16px; padding: 12px 16px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 8px; gap: 8px;
} }
/* Title */ /* Title */
.note-title { .note-title {
font-size: 1rem; font-size: 1rem;
font-weight: 500; font-weight: 500;
margin: 0; margin: 0;
line-height: 1.5rem; line-height: 1.5rem;
color: var(--text-color, #202124); color: var(--text-color, #202124);
} }
[data-theme="dark"] .note-title { [data-theme="dark"] .note-title {
color: #e8eaed; color: #e8eaed;
} }
/* Body (Truncated) */ /* Body (Truncated) */
.note-body { .note-body {
font-size: 0.875rem; font-size: 0.875rem;
line-height: 1.25rem; line-height: 1.25rem;
color: var(--text-color, #202124); color: var(--text-color, #202124);
word-wrap: break-word; word-wrap: break-word;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 12; -webkit-line-clamp: 12;
line-clamp: 12; line-clamp: 12;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
overflow: hidden; overflow: hidden;
max-height: 300px; max-height: 300px;
} }
[data-theme="dark"] .note-body { [data-theme="dark"] .note-body {
color: #e8eaed; color: #e8eaed;
} }
/* Tags */ /* Tags */
.note-tags { .note-tags {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 6px; gap: 6px;
margin-top: 4px; margin-top: 4px;
} }
.note-tag { .note-tag {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
gap: 6px; gap: 0.25rem;
background: rgba(0, 0, 0, 0.06); background: var(--tag-bg);
padding: 2px 8px; padding: 0.25rem 0.5rem;
border-radius: 999px; border-radius: 999px;
font-size: 0.7rem; font-size: 0.75rem;
color: var(--text-light); font-weight: 500;
} color: var(--tag-text);
}
[data-theme="dark"] .note-tag { [data-theme="dark"] .note-tag {
background: rgba(255, 255, 255, 0.1); background: var(--tag-bg);
color: #9aa0a6; color: var(--tag-text);
} }
.note-tag-text { .note-tag-text {
line-height: 1.2; line-height: 1.2;
} }
.note-tag-remove-btn { .note-tag-remove-btn {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 18px; width: 1.1rem;
height: 18px; height: 1.1rem;
border: none; border: none;
border-radius: 999px; border-radius: 999px;
background: rgba(0, 0, 0, 0.12); background: rgba(0, 0, 0, 0.12);
color: currentColor; color: currentColor;
cursor: pointer; cursor: pointer;
padding: 0; padding: 0;
line-height: 1; line-height: 1;
font-size: 14px; font-size: 0.8rem;
opacity: 0.9; }
}
[data-theme="dark"] .note-tag-remove-btn { [data-theme="dark"] .note-tag-remove-btn {
background: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.18);
} }
/* Hover Actions */ .note-tag:hover,
.note-modal-tags .note-tag:hover {
background: var(--primary);
color: white;
}
.note-tag:hover .note-tag-remove-btn,
.note-modal-tags .note-tag:hover .note-tag-remove-btn {
background: rgba(255, 255, 255, 0.22);
}
.note-hover-actions { .note-hover-actions {
display: flex; display: flex;
align-items: center; align-items: center;

View File

@ -401,8 +401,11 @@ input:checked+.theme-slider:before {
.header-nav-link { .header-nav-link {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.375rem; justify-content: center;
padding: 0.5rem 1rem; gap: 0;
width: 38px;
height: 38px;
padding: 0;
color: rgba(255, 255, 255, 0.85); color: rgba(255, 255, 255, 0.85);
font-weight: 500; font-weight: 500;
font-size: 0.9rem; font-size: 0.9rem;
@ -421,10 +424,14 @@ input:checked+.theme-slider:before {
} }
.header-nav-link.active { .header-nav-link.active {
background: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.15);
color: white; color: white;
} }
.header-nav-link span {
display: none;
}
.header-nav-link i { .header-nav-link i {
font-size: 1.125rem; font-size: 1.125rem;
} }
@ -660,6 +667,66 @@ input:checked+.theme-slider:before {
display: flex; display: flex;
} }
.modal-overlay,
.qrcode-modal-overlay {
position: fixed;
inset: 0;
display: none;
align-items: center;
justify-content: center;
padding: 1rem;
background: rgba(6, 10, 22, 0.65);
z-index: 520;
}
.modal-overlay.show,
.qrcode-modal-overlay.show {
display: flex;
}
.modal-content,
.qrcode-modal-content {
position: relative;
width: min(900px, 92vw);
max-height: 85vh;
overflow: auto;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 0.75rem;
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
padding: 1rem;
}
.modal-close,
.qrcode-modal-close {
position: absolute;
top: 0.5rem;
right: 0.5rem;
display: inline-flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
border: 1px solid var(--border);
border-radius: 0.375rem;
background: var(--bg-card);
color: var(--text-secondary);
font-size: 1.1rem;
line-height: 1;
cursor: pointer;
}
.modal-close:hover,
.qrcode-modal-close:hover {
background: var(--primary-light);
color: var(--primary);
}
.modal-body,
#qrcode-modal-body {
margin-top: 1.75rem;
}
@keyframes fadeIn { @keyframes fadeIn {
from { from {
opacity: 0; opacity: 0;
@ -1504,7 +1571,7 @@ body.view-notes .paging {
} }
.view-grid .link-footer { .view-grid .link-footer {
flex-direction: column-reverse; flex-direction: column;
align-items: flex-end; align-items: flex-end;
gap: 0.5rem; gap: 0.5rem;
} }
@ -1529,6 +1596,7 @@ body.view-notes .paging {
font-size: 0.75rem; font-size: 0.75rem;
font-weight: 500; font-weight: 500;
transition: all 0.15s ease; transition: all 0.15s ease;
max-width: 100%;
} }
.link-tag.is-tech-tag { .link-tag.is-tech-tag {
@ -1540,6 +1608,31 @@ body.view-notes .paging {
text-decoration: none; text-decoration: none;
display: inline-block; display: inline-block;
line-height: 1.2; line-height: 1.2;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tag-remove-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 1.1rem;
height: 1.1rem;
border: none;
border-radius: 999px;
background: rgba(0, 0, 0, 0.12);
color: inherit;
font-size: 0.8rem;
line-height: 1;
padding: 0;
cursor: pointer;
transition: background-color 0.15s ease, color 0.15s ease;
}
[data-theme="dark"] .tag-remove-btn {
background: rgba(255, 255, 255, 0.18);
} }
.link-tag:hover { .link-tag:hover {
@ -1547,47 +1640,29 @@ body.view-notes .paging {
color: white; color: white;
} }
.link-tag:hover .link-tag-link {
color: inherit;
}
.link-tag .tag-remove-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
border: none;
border-radius: 999px;
background: rgba(0, 0, 0, 0.12);
color: currentColor;
cursor: pointer;
padding: 0;
line-height: 1;
font-size: 14px;
opacity: 0.9;
}
[data-theme="dark"] .link-tag .tag-remove-btn {
background: rgba(255, 255, 255, 0.18);
}
.link-tag:hover .tag-remove-btn { .link-tag:hover .tag-remove-btn {
background: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.22);
} }
.view-grid .link-tag-list { .view-grid .link-tag-list {
align-self: stretch; order: 2;
width: 100%;
justify-content: flex-end; justify-content: flex-end;
} }
.view-grid .link-actions {
order: 1;
}
/* Actions */ /* Actions */
.link-actions { .link-actions {
display: flex; display: flex;
gap: 0.25rem; gap: 0.25rem;
flex-shrink: 0; flex-shrink: 0;
align-items: center; align-items: center;
flex-wrap: nowrap; flex-wrap: wrap;
justify-content: flex-end;
max-width: 100%;
margin-left: auto; margin-left: auto;
/* Force alignment to the right */ /* Force alignment to the right */
} }
@ -1805,6 +1880,124 @@ body.view-notes .paging {
background: var(--primary-hover); background: var(--primary-hover);
} }
/* ===== Footer ===== */
.footer-main {
margin-top: 1.25rem;
padding: 1rem 0 1.25rem;
border-top: 1px solid var(--border);
color: var(--text-secondary);
}
.footer-main p {
margin: 0;
font-size: 0.95rem;
}
.footer-feeds {
margin-top: 0.55rem;
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.45rem;
font-size: 0.95rem;
}
.footer-separator {
color: var(--text-muted);
}
.plugin-footer-text {
margin-top: 0.5rem;
color: var(--text-secondary);
}
/* ===== Media Player Bar ===== */
.media-player-bar {
position: fixed;
left: var(--sidebar-width);
right: 0;
bottom: 0;
z-index: 155;
padding: 0.7rem 1.2rem;
border-top: 1px solid var(--border);
background: var(--bg-card);
box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.15);
display: none;
}
.media-player-bar.show {
display: block;
}
.media-player-inner {
display: grid;
grid-template-columns: auto minmax(180px, 1fr) auto auto auto;
gap: 0.75rem;
align-items: center;
}
.media-player-btn {
width: 34px;
height: 34px;
border: 1px solid var(--border);
border-radius: 0.5rem;
background: var(--bg-body);
color: var(--text-main);
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
.media-player-btn:hover {
background: var(--primary-light);
color: var(--primary);
}
.media-player-title {
font-size: 0.88rem;
color: var(--text-main);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.media-player-time {
font-variant-numeric: tabular-nums;
color: var(--text-secondary);
font-size: 0.8rem;
min-width: 82px;
text-align: right;
}
.media-player-progress,
.media-player-volume {
width: 100%;
}
.media-player-volume-wrap {
width: 130px;
display: flex;
align-items: center;
gap: 0.4rem;
}
@media (max-width: 991px) {
.media-player-bar {
left: 0;
}
}
@media (max-width: 768px) {
.media-player-inner {
grid-template-columns: auto minmax(120px, 1fr) auto;
}
.media-player-volume-wrap {
display: none;
}
}
/* ===== Sticky Links ===== */ /* ===== Sticky Links ===== */
.link-outer.is-sticky { .link-outer.is-sticky {
border-left: 3px solid var(--primary); border-left: 3px solid var(--primary);

View File

@ -29,10 +29,4 @@
<div class="paging-stats"> <div class="paging-stats">
{$paging_label} <strong>{$from}</strong> - <strong>{$to}</strong> / <strong>{$total}</strong> {$paging_label} <strong>{$from}</strong> - <strong>{$to}</strong> / <strong>{$total}</strong>
</div> </div>
{loop="$action_plugin"}
<div class="paging-plugin">
{$plugin_html=$value.html}
<a {loop="$value.attr"}{$key}="{$value}"{/loop}>{$plugin_html}</a>
</div>
{/loop}
</div> </div>

View File

@ -13,10 +13,6 @@
<a href="{$base_path}/daily" title="Daily">Daily</a> <a href="{$base_path}/daily" title="Daily">Daily</a>
</div> </div>
{loop="$plugins_footer.text"}
<div class="plugin-footer-text">{$value}</div>
{/loop}
{loop="$plugins_footer.js"} {loop="$plugins_footer.js"}
<script src="/{function="ltrim($value, '/')"}"></script> <script src="/{function="ltrim($value, '/')"}"></script>
{/loop} {/loop}

View File

@ -22,11 +22,11 @@ Bookmarklet detection logic
<i class="mdi mdi-bookmark-multiple-outline" aria-hidden="true"></i> <i class="mdi mdi-bookmark-multiple-outline" aria-hidden="true"></i>
<span>Tous les bookmarks</span> <span>Tous les bookmarks</span>
</a> </a>
<a href="{$base_path}/?searchtags=shaarli-pin" class="sidebar-link{if="isset($search_tags)&&$search_tags=='shaarli-pin'"} active{/if}" aria-label="Épinglés"> <a href="{$base_path}/?searchtags=shaarli-pin" class="sidebar-link{if="isset($search_tags) && preg_match('/(^|[\s,])shaarli-pin([\s,]|$)/i', (string) $search_tags)"} active{/if}" aria-label="Épinglés">
<i class="mdi mdi-pin-outline" aria-hidden="true"></i> <i class="mdi mdi-pin-outline" aria-hidden="true"></i>
<span>Épinglés</span> <span>Épinglés</span>
</a> </a>
<a href="{$base_path}/tags/cloud" class="sidebar-link{if="$pageName=='tagcloud'"} active{/if}" <a href="{$base_path}/tags/cloud" class="sidebar-link{if="$pageName=='tag.cloud' || $pageName=='tag.list'"} active{/if}"
aria-label="Nuage de tags"> aria-label="Nuage de tags">
<i class="mdi mdi-tag-multiple-outline" aria-hidden="true"></i> <i class="mdi mdi-tag-multiple-outline" aria-hidden="true"></i>
<span>Nuage de tags</span> <span>Nuage de tags</span>
@ -40,15 +40,15 @@ Bookmarklet detection logic
<i class="mdi mdi-calendar-today" aria-hidden="true"></i> <i class="mdi mdi-calendar-today" aria-hidden="true"></i>
<span>Quotidien</span> <span>Quotidien</span>
</a> </a>
<a href="{$base_path}/?searchtags=todo" class="sidebar-link{if="isset($search_tags)&&$search_tags=='todo'"} active{/if}" aria-label="Mes tâches"> <a href="{$base_path}/?searchtags=todo" class="sidebar-link{if="isset($search_tags) && preg_match('/(^|[\s,])todo([\s,]|$)/i', (string) $search_tags)"} active{/if}" aria-label="Mes tâches">
<i class="mdi mdi-check-circle-outline" aria-hidden="true"></i> <i class="mdi mdi-check-circle-outline" aria-hidden="true"></i>
<span>Mes tâches</span> <span>Mes tâches</span>
</a> </a>
<a href="{$base_path}/?searchtags=note" class="sidebar-link{if="isset($search_tags)&&$search_tags=='note'"} active{/if}" aria-label="Notes"> <a href="{$base_path}/?searchtags=note" class="sidebar-link{if="isset($search_tags) && preg_match('/(^|[\s,])note([\s,]|$)/i', (string) $search_tags)"} active{/if}" aria-label="Notes">
<i class="mdi mdi-note-text-outline" aria-hidden="true"></i> <i class="mdi mdi-note-text-outline" aria-hidden="true"></i>
<span>Notes</span> <span>Notes</span>
</a> </a>
<a href="{$base_path}/?searchtags=readitlater" class="sidebar-link{if="isset($search_tags)&&$search_tags=='readitlater'"} active{/if}" aria-label="Read It Later"> <a href="{$base_path}/?searchtags=readitlater" class="sidebar-link{if="isset($search_tags) && preg_match('/(^|[\s,])readitlater([\s,]|$)/i', (string) $search_tags)"} active{/if}" aria-label="Read It Later">
<i class="mdi mdi-bookmark-outline" aria-hidden="true"></i> <i class="mdi mdi-bookmark-outline" aria-hidden="true"></i>
<span>Read It Later</span> <span>Read It Later</span>
</a> </a>
@ -110,12 +110,17 @@ Bookmarklet detection logic
<!-- Main Navigation --> <!-- Main Navigation -->
<nav class="header-nav" aria-label="Navigation principale"> <nav class="header-nav" aria-label="Navigation principale">
<a href="{$base_path}/" class="header-nav-link{if="$pageName=='linklist'"} active{/if}" <a href="{$base_path}/" class="header-nav-link{if="$pageName=='linklist' && empty($search_tags)"} active{/if}"
aria-label="Accueil"> aria-label="Accueil">
<i class="mdi mdi-home-outline" aria-hidden="true"></i> <i class="mdi mdi-home-outline" aria-hidden="true"></i>
<span>ACCUEIL</span> <span>ACCUEIL</span>
</a> </a>
<a href="{$base_path}/tags/cloud" class="header-nav-link{if="$pageName=='tagcloud'"} active{/if}" <a href="{$base_path}/?searchtags=shaarli-pin" class="header-nav-link{if="isset($search_tags) && preg_match('/(^|[\s,])shaarli-pin([\s,]|$)/i', (string) $search_tags)"} active{/if}"
aria-label="Épinglés">
<i class="mdi mdi-pin-outline" aria-hidden="true"></i>
<span>ÉPINGLÉS</span>
</a>
<a href="{$base_path}/tags/cloud" class="header-nav-link{if="$pageName=='tag.cloud' || $pageName=='tag.list'"} active{/if}"
aria-label="Nuage de tags"> aria-label="Nuage de tags">
<i class="mdi mdi-tag-multiple" aria-hidden="true"></i> <i class="mdi mdi-tag-multiple" aria-hidden="true"></i>
<span>TAGS</span> <span>TAGS</span>
@ -129,15 +134,15 @@ Bookmarklet detection logic
<i class="mdi mdi-calendar" aria-hidden="true"></i> <i class="mdi mdi-calendar" aria-hidden="true"></i>
<span>QUOTIDIEN</span> <span>QUOTIDIEN</span>
</a> </a>
<a href="{$base_path}/?searchtags=todo" class="header-nav-link{if="isset($search_tags)&&$search_tags=='todo'"} active{/if}" aria-label="Mes tâches"> <a href="{$base_path}/?searchtags=todo" class="header-nav-link{if="isset($search_tags) && preg_match('/(^|[\s,])todo([\s,]|$)/i', (string) $search_tags)"} active{/if}" aria-label="Mes tâches">
<i class="mdi mdi-check-circle-outline" aria-hidden="true"></i> <i class="mdi mdi-check-circle-outline" aria-hidden="true"></i>
<span>TÂCHES</span> <span>TÂCHES</span>
</a> </a>
<a href="{$base_path}/?searchtags=note" class="header-nav-link{if="isset($search_tags)&&$search_tags=='note'"} active{/if}" aria-label="Notes"> <a href="{$base_path}/?searchtags=note" class="header-nav-link{if="isset($search_tags) && preg_match('/(^|[\s,])note([\s,]|$)/i', (string) $search_tags)"} active{/if}" aria-label="Notes">
<i class="mdi mdi-note-text-outline" aria-hidden="true"></i> <i class="mdi mdi-note-text-outline" aria-hidden="true"></i>
<span>NOTES</span> <span>NOTES</span>
</a> </a>
<a href="{$base_path}/?searchtags=readitlater" class="header-nav-link{if="isset($search_tags)&&$search_tags=='readitlater'"} active{/if}" aria-label="Read It Later"> <a href="{$base_path}/?searchtags=readitlater" class="header-nav-link{if="isset($search_tags) && preg_match('/(^|[\s,])readitlater([\s,]|$)/i', (string) $search_tags)"} active{/if}" aria-label="Read It Later">
<i class="mdi mdi-bookmark-outline" aria-hidden="true"></i> <i class="mdi mdi-bookmark-outline" aria-hidden="true"></i>
<span>READ IT LATER</span> <span>READ IT LATER</span>
</a> </a>