sidebar
This commit is contained in:
parent
49ddbefad4
commit
749c1af54c
|
@ -14,7 +14,7 @@ function layoutDiv() {
|
|||
el += '<div class="logo-wrap wiki">';
|
||||
// all products
|
||||
el += '<a style="filter: grayscale(100%)" class="wiki-home cap" href="' + url_for(config.wiki_dir) + '">';
|
||||
el += '<img src="https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/arrow/f049bbd4e88ec.svg"/>';
|
||||
el += '<svg aria-hidden="true" viewBox="0 0 16 16" width="1rem" height="1rem" fill="currentColor"><path fill-rule="evenodd" d="M7.78 12.53a.75.75 0 01-1.06 0L2.47 8.28a.75.75 0 010-1.06l4.25-4.25a.75.75 0 011.06 1.06L4.81 7h7.44a.75.75 0 010 1.5H4.81l2.97 2.97a.75.75 0 010 1.06z"></path></svg>';
|
||||
el += __('btn.all_wiki');
|
||||
el += '</a>';
|
||||
// this product
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div class='widget-wrap' id='markdown'>
|
||||
<div class='widget-header h4 dis-select'>
|
||||
<div class='widget-header cap dis-select'>
|
||||
<span class='name'><%- item.title %></span>
|
||||
</div>
|
||||
<div class='widget-body fs14'>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
function layoutDiv() {
|
||||
var el = '<div class="widget-wrap" id="recent">';
|
||||
// header
|
||||
el += '<div class="widget-header h4 dis-select">';
|
||||
el += '<div class="widget-header cap dis-select">';
|
||||
el += '<span class="name">' + __("meta.recent_update") + '</span>';
|
||||
if (item.rss) {
|
||||
el += '<a class="cap-action" id="rss" title="Subscribe" href="' + item.rss + '">';
|
||||
|
|
|
@ -24,7 +24,7 @@ function layoutDiv(fallback) {
|
|||
var el = '';
|
||||
if (t.length > 0) {
|
||||
el += '<div class="widget-wrap" id="toc">';
|
||||
el += '<div class="widget-header h4 dis-select">';
|
||||
el += '<div class="widget-header cap dis-select">';
|
||||
if (page.toc_title) {
|
||||
el += '<span class="name">' + page.toc_title + '</span>';
|
||||
} else if (t == 'wiki') {
|
||||
|
|
|
@ -14,7 +14,7 @@ function layoutDiv() {
|
|||
}
|
||||
var el = '';
|
||||
el += '<div class="widget-wrap" id="related">';
|
||||
el += '<div class="widget-header h4 dis-select">';
|
||||
el += '<div class="widget-header cap dis-select">';
|
||||
el += '<span class="name">更多' + current_group.title + '</span>';
|
||||
el += '</div>';
|
||||
el += '<div class="widget-body fs14">';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<body>
|
||||
<%- partial('_partial/main/article/wiki_cover') %>
|
||||
<div class='l_body' id='start'>
|
||||
<aside class='l_left'>
|
||||
<aside class='l_left' layout='<%- page.layout %>'>
|
||||
<%- partial('_partial/sidebar/index') %>
|
||||
</aside>
|
||||
<div class='l_main<%- page.content ? "" : " list" %>'>
|
||||
|
|
|
@ -68,10 +68,11 @@
|
|||
|
||||
|
||||
.logo-wrap.wiki
|
||||
margin: 1rem 0 1.5rem 0
|
||||
flex-direction: column
|
||||
align-items: flex-start
|
||||
a.wiki-home
|
||||
margin-bottom: .5rem
|
||||
margin-bottom: .75rem
|
||||
color: var(--text-p2)
|
||||
img
|
||||
height: .9em
|
||||
|
@ -120,10 +121,9 @@ nav.menu
|
|||
scrollbar(0, 0)
|
||||
z-index: 1
|
||||
.widget-wrap
|
||||
margin: 1rem 0 2rem 0
|
||||
margin: 1rem 0 3rem 0
|
||||
.widget-header
|
||||
display: flex
|
||||
color: var(--text-meta)
|
||||
justify-content: space-between
|
||||
align-items: center
|
||||
font-weight: 500
|
||||
|
@ -149,7 +149,7 @@ nav.menu
|
|||
|
||||
.widget-body
|
||||
margin: 0.5rem 0
|
||||
color: var(--text-p2)
|
||||
color: var(--text-p1)
|
||||
p
|
||||
margin-top: 0.5em
|
||||
margin-bottom: 0.5em
|
||||
|
@ -190,3 +190,9 @@ nav.menu
|
|||
overflow: hidden
|
||||
-webkit-line-clamp: 3
|
||||
|
||||
.l_left[layout='wiki'] .widgets
|
||||
margin-top: 0
|
||||
.widget-wrap#toc
|
||||
margin-top: 0
|
||||
.widget-body
|
||||
margin-top: 0
|
||||
|
|
Loading…
Reference in New Issue