Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo
Commits
d5ce7caf
Commit
d5ce7caf
authored
Sep 06, 2016
by
Vanesssa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改进 -
https://hacpai.com/article/1473088343125#1473088705456
3.2 & 3.3
parent
9326c7ed
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
94 additions
and
5 deletions
+94
-5
src/main/webapp/skins/next/css/next.css
src/main/webapp/skins/next/css/next.css
+37
-0
src/main/webapp/skins/next/footer.ftl
src/main/webapp/skins/next/footer.ftl
+3
-1
src/main/webapp/skins/next/js/next.js
src/main/webapp/skins/next/js/next.js
+48
-2
src/main/webapp/skins/next/lang/lang_en_US.properties
src/main/webapp/skins/next/lang/lang_en_US.properties
+3
-1
src/main/webapp/skins/next/lang/lang_zh_CN.properties
src/main/webapp/skins/next/lang/lang_zh_CN.properties
+3
-1
No files found.
src/main/webapp/skins/next/css/next.css
View file @
d5ce7caf
...
...
@@ -386,6 +386,10 @@ img {
-webkit-transform
:
translateZ
(
0
);
}
.sidebar-toggle.has-toc
.sidebar-toggle-line
{
background
:
#87daff
;
}
.sidebar-toggle-line
{
position
:
relative
;
display
:
inline-block
;
...
...
@@ -570,6 +574,34 @@ img {
font-size
:
14px
;
line-height
:
2
;
}
.sidebar
section
{
opacity
:
0
;
position
:
relative
;
}
.sidebar
>
ul
>
li
{
display
:
inline-block
;
cursor
:
pointer
;
border-bottom
:
1px
solid
transparent
;
font-size
:
14px
;
color
:
#555
;
}
.sidebar
>
ul
>
li
:hover
{
color
:
#f5f5f5
;
}
.sidebar
>
ul
>
li
.current
{
color
:
#87daff
;
border-bottom-color
:
#87daff
;
}
.sidebar
>
ul
>
li
:last-child
{
margin-left
:
10px
;
}
/* end side */
/* start list*/
...
...
@@ -714,6 +746,11 @@ img {
.article-body
{
overflow
:
auto
;
text-align
:
justify
;
}
.article-body
p
{
margin
:
0
0
25px
0
;
}
/* end article */
...
...
src/main/webapp/skins/next/footer.ftl
View file @
d5ce7caf
...
...
@@ -39,7 +39,9 @@
"em11Label": "${em11Label}",
"em12Label": "${em12Label}",
"em13Label": "${em13Label}",
"em14Label": "${em14Label}"
"em14Label": "${em14Label}",
"tocLabel": "${tocLabel}",
"siteViewLabel": "${siteViewLabel}"
};
</script>
${plugins}
src/main/webapp/skins/next/js/next.js
View file @
d5ce7caf
...
...
@@ -37,6 +37,7 @@ var NexT = {
$sidebar
.
animate
({
right
:
-
320
});
$sidebar
.
find
(
'
section
'
).
css
(
'
opacity
'
,
0
);
}
else
{
$
(
this
).
addClass
(
'
sidebar-active
'
);
$
(
'
body
'
).
animate
({
...
...
@@ -44,6 +45,10 @@ var NexT = {
});
$sidebar
.
animate
({
right
:
0
},
function
()
{
$sidebar
.
find
(
'
section:first
'
).
animate
({
'
opacity
'
:
1
});
});
}
});
...
...
@@ -54,6 +59,7 @@ var NexT = {
$
(
document
).
ready
(
function
()
{
setTimeout
(
function
()
{
// logo animate
$
(
'
.logo-wrap
'
).
css
(
'
opacity
'
,
1
);
$
(
'
.logo-line-before i
'
).
animate
({
'
left
'
:
'
0
'
...
...
@@ -66,6 +72,11 @@ var NexT = {
});
$
(
'
.main
'
).
css
(
'
opacity
'
,
1
).
animate
({
'
top
'
:
'
0
'
},
function
()
{
// 当有文章页面有目录时,回调不放这里,侧边栏就会一片空白
if
(
$
(
'
.b3-solo-list li
'
).
length
>
0
&&
$
(
window
).
width
()
>
700
)
{
$
(
'
.sidebar-toggle
'
).
click
();
}
});
});
...
...
@@ -80,8 +91,43 @@ var NexT = {
},
initArticle
:
function
()
{
if
(
$
(
'
.b3-solo-list li
'
).
length
>
0
&&
$
(
window
).
width
()
>
700
)
{
$
(
'
.sidebar
'
).
html
(
$
(
'
.b3-solo-list
'
));
$
(
'
.sidebar-toggle
'
).
click
();
// add color to sidebar menu
$
(
'
.sidebar-toggle
'
).
addClass
(
'
has-toc
'
);
// append toc to sidebar menu
var
articleTocHTML
=
'
<ul><li class="current" data-tab="toc">
'
+
Label
.
tocLabel
+
'
</li><li data-tab="site">
'
+
Label
.
siteViewLabel
+
'
</li></ul><section></section>
'
;
$
(
'
.sidebar
'
).
prepend
(
articleTocHTML
);
var
$sectionF
=
$
(
'
.sidebar section:first
'
).
html
(
$
(
'
.b3-solo-list
'
)),
$sectionL
=
$
(
'
.sidebar section:last
'
);
// 切换 tab
$
(
'
.sidebar > ul > li
'
).
click
(
function
()
{
if
(
$
(
this
).
data
(
'
tab
'
)
===
'
toc
'
)
{
$sectionL
.
animate
({
"
opacity
"
:
'
0
'
,
"
top
"
:
'
-50px
'
},
300
,
function
()
{
$sectionF
.
show
().
css
(
'
top
'
,
'
-50px
'
);
$sectionF
.
animate
({
"
opacity
"
:
'
1
'
,
"
top
"
:
'
0
'
},
300
);
});
}
else
{
$sectionF
.
animate
({
"
opacity
"
:
'
0
'
,
"
top
"
:
'
-50px
'
},
300
,
function
()
{
$sectionF
.
hide
().
css
(
'
top
'
,
'
-50px
'
);
$sectionL
.
animate
({
"
opacity
"
:
'
1
'
,
"
top
"
:
'
0
'
},
300
);
});
}
$
(
'
.sidebar > ul > li
'
).
removeClass
(
'
current
'
);
$
(
this
).
addClass
(
'
current
'
);
});
}
}
};
...
...
src/main/webapp/skins/next/lang/lang_en_US.properties
View file @
d5ce7caf
...
...
@@ -16,11 +16,13 @@
#
# Description: B3log Solo language configurations(en_US).
# Version: 1.
0.1.2, Sep 4, 2015
# Version: 1.
1.1.2, Sep 6, 2016
# Author: Liyuan Li
# Author: Liang Ding
#
tocLabel
=
\u6587\u
7ae0
\u
76ee
\u
5f55
siteViewLabel
=
\u
7ad9
\u
70b9
\u6982\u
89c8
viewsLabel
=
Heat
cmtLabel
=
Comments
postTimeLabel
=
Post At
...
...
src/main/webapp/skins/next/lang/lang_zh_CN.properties
View file @
d5ce7caf
...
...
@@ -16,10 +16,12 @@
#
# Description: B3log Solo default language configurations(zh_CN).
# Version: 1.
0.0.1, Jul 30
, 2016
# Version: 1.
1.1.2, Sep 6
, 2016
# Author: Liyuan Li
#
tocLabel
=
\u6587\u
7ae0
\u
76ee
\u
5f55
siteViewLabel
=
\u
7ad9
\u
70b9
\u6982\u
89c8
viewsLabel
=
\u
70ed
\u
5ea6
cmtLabel
=
\u6761\u
8bc4
\u
8bba
postTimeLabel
=
\u
53d1
\u8868\u
4e8e
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment