Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kityminder-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吴志俊
kityminder-core
Commits
7acf1d8b
Commit
7acf1d8b
authored
Jul 01, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
把草稿箱挪回下面
parent
556a006c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
social.css
social/social.css
+2
-2
social.js
social/social.js
+2
-3
social.less
social/social.less
+3
-0
No files found.
social/social.css
View file @
7acf1d8b
...
...
@@ -21,9 +21,9 @@ button.file-button:active,button.file-button.active{background:#007fcc;box-shado
#save-button
:hover
a
:before
{
background-position
:
0
-24px
}
#share-button
a
{
position
:
relative
}
#share-button
a
:before
{
content
:
' '
;
display
:
block
;
width
:
24px
;
height
:
24px
;
background
:
url(../themes/default/images/share.png)
;
position
:
absolute
;
left
:
4px
;
top
:
2px
}
#share-button
:hover
a
:before
{
background-position
:
0
-24px
}
#draft-btn
{
padding-right
:
28px
;
position
:
relative
;
border-radius
:
5px
5px
0
0
}
#draft-btn
:after
{
content
:
' '
;
display
:
block
;
position
:
absolute
;
right
:
10px
;
top
:
12px
;
width
:
0
;
height
:
0
;
border
:
solid
;
border-width
:
4px
5px
;
border-color
:
#333
transparent
transparent
transparent
}
#draft-btn
{
padding-right
:
28px
;
position
:
relative
;
border-radius
:
5px
5px
0
0
;
float
:
left
;
margin-left
:
0
}
#draft-btn
:after
{
content
:
' '
;
display
:
block
;
position
:
absolute
;
right
:
10px
;
top
:
12px
;
width
:
0
;
height
:
0
;
border
:
solid
;
border-width
:
4px
5px
;
border-color
:
#333
transparent
transparent
transparent
}
#draft-btn
:active:after
,
#draft-btn
.active
:after
{
border-color
:
#fff
transparent
transparent
transparent
}
.draft-menu.kmui-dropdown-menu
{
margin-top
:
14px
;
margin-left
:
-1px
}
.draft-menu.kmui-dropdown-menu
span
.update-time
{
float
:
right
;
color
:
#ccc
;
margin-left
:
20px
;
padding-right
:
16px
}
.draft-menu.kmui-dropdown-menu
{
margin-top
:
14px
;
margin-left
:
-1px
;
box-shadow
:
0
1px
5px
rgba
(
0
,
0
,
0
,
0.3
)
}
.draft-menu.kmui-dropdown-menu
span
.update-time
{
float
:
right
;
color
:
#ccc
;
margin-left
:
20px
;
padding-right
:
16px
}
.draft-menu.kmui-dropdown-menu
li
.draft-item
a
{
position
:
relative
}
.draft-menu.kmui-dropdown-menu
li
.draft-item
a
:before
{
content
:
' '
;
display
:
block
;
width
:
24px
;
height
:
24px
;
background
:
url(../themes/default/images/draft.png)
no-repeat
0
-24px
;
position
:
absolute
;
left
:
4px
;
top
:
2px
}
.draft-menu.kmui-dropdown-menu
li
.draft-item
:hover
a
:before
{
background-position
:
0
-48px
}
.draft-menu.kmui-dropdown-menu
li
.draft-item
{
position
:
relative
}
.draft-menu.kmui-dropdown-menu
li
.draft-item
:hover
a
.delete
{
display
:
block
}
...
...
social/social.js
View file @
7acf1d8b
...
...
@@ -100,7 +100,6 @@ $(function() {
bindShortCuts
();
bindDraft
();
if
(
draftManager
)
watchChanges
();
loadDraft
(
0
);
}
// 创建 UI
...
...
@@ -146,7 +145,7 @@ $(function() {
$save_btn
=
$
(
'#save-button'
).
addClass
(
'baidu-cloud'
).
find
(
'a'
);
$share_btn
=
$
(
'#share-button'
).
addClass
(
'share'
).
find
(
'a'
);
$draft_btn
=
$
(
'<button id="draft-btn">草稿箱</button>'
).
appendTo
(
$menu
);
$draft_btn
=
$
(
'<button id="draft-btn">草稿箱</button>'
).
prependTo
(
$
(
'#about'
)
);
$draft_menu
=
$
.
kmuidropmenu
().
addClass
(
'draft-menu kmui-combobox-menu'
).
appendTo
(
'body'
);
$draft_menu
.
kmui
().
attachTo
(
$draft_btn
);
...
...
@@ -833,7 +832,7 @@ $(function() {
$draft_menu
.
append
(
'<li class="draft-clear"><a href="#">清空草稿箱</a></li>'
);
}
//
adjustDraftMenu();
adjustDraftMenu
();
}
function
adjustDraftMenu
()
{
...
...
social/social.less
View file @
7acf1d8b
...
...
@@ -200,10 +200,13 @@ button {
#draft-btn {
.dropdown;
border-radius: 5px 5px 0 0;
float: left;
margin-left: 0;
}
.draft-menu.kmui-dropdown-menu {
margin-top: 14px;
margin-left: -1px;
box-shadow: 0px 1px 5px rgba(0,0,0, .3);
span.update-time {
float: right;
color: #CCC;
...
...
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