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
d81b8019
Commit
d81b8019
authored
Jul 08, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix copy button bug in ff
parent
66e7aba5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
244 deletions
+35
-244
social.css
social/social.css
+25
-242
social.js
social/social.js
+4
-0
social.less
social/social.less
+2
-2
expand.js
src/module/expand.js
+4
-0
No files found.
social/social.css
View file @
d81b8019
.niceblue
{
color
:
white
;
background
:
-moz-linear-gradient
(
top
,
#0099f2
0%
,
#4096ee
0%
,
#0076dd
100%
);
/* FF3.6+ */
background
:
-webkit-gradient
(
linear
,
left
top
,
left
bottom
,
color-stop
(
0%
,
#0099f2
),
color-stop
(
0%
,
#4096ee
),
color-stop
(
100%
,
#0076dd
));
/* Chrome,Safari4+ */
background
:
-webkit-linear-gradient
(
top
,
#0099f2
0%
,
#4096ee
0%
,
#0076dd
100%
);
/* Chrome10+,Safari5.1+ */
background
:
-o-linear-gradient
(
top
,
#0099f2
0%
,
#4096ee
0%
,
#0076dd
100%
);
/* Opera 11.10+ */
background
:
-ms-linear-gradient
(
top
,
#0099f2
0%
,
#4096ee
0%
,
#0076dd
100%
);
/* IE10+ */
background
:
linear-gradient
(
to
bottom
,
#0099f2
0%
,
#4096ee
0%
,
#0076dd
100%
);
/* W3C */
}
.dropdown
{
padding-right
:
28px
;
position
:
relative
;
}
.dropdown
: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
;
}
.dropdown
:active:after
,
.dropdown.active
:after
{
border-color
:
#fff
transparent
transparent
transparent
;
}
button
{
font-family
:
Arial
,
"Heiti SC"
,
"Microsoft Yahei"
;
outline
:
none
;
display
:
inline-block
;
vertical-align
:
middle
;
padding
:
0
15px
;
height
:
30px
;
font-size
:
13px
;
line-height
:
30px
;
text-align
:
center
;
color
:
#000
;
text-decoration
:
none
;
border
:
none
;
margin-left
:
5px
;
background
:
none
;
color
:
white
;
background
:
-moz-linear-gradient
(
top
,
#0099f2
0%
,
#4096ee
0%
,
#0076dd
100%
);
/* FF3.6+ */
background
:
-webkit-gradient
(
linear
,
left
top
,
left
bottom
,
color-stop
(
0%
,
#0099f2
),
color-stop
(
0%
,
#4096ee
),
color-stop
(
100%
,
#0076dd
));
/* Chrome,Safari4+ */
background
:
-webkit-linear-gradient
(
top
,
#0099f2
0%
,
#4096ee
0%
,
#0076dd
100%
);
/* Chrome10+,Safari5.1+ */
background
:
-o-linear-gradient
(
top
,
#0099f2
0%
,
#4096ee
0%
,
#0076dd
100%
);
/* Opera 11.10+ */
background
:
-ms-linear-gradient
(
top
,
#0099f2
0%
,
#4096ee
0%
,
#0076dd
100%
);
/* IE10+ */
background
:
linear-gradient
(
to
bottom
,
#0099f2
0%
,
#4096ee
0%
,
#0076dd
100%
);
/* W3C */
}
button
:hover
,
button
.hover
{
background
:
#009fff
;
}
button
:active
,
button
.active
{
background
:
#007fcc
;
box-shadow
:
inset
0
2px
3px
rgba
(
0
,
0
,
0
,
0.2
);
}
button
[
disabled
]
{
cursor
:
default
;
background
:
#ccc
;
}
.draft-menu.kmui-dropdown-menu
{
margin-top
:
24px
;
margin-left
:
1px
;
}
.draft-menu.kmui-dropdown-menu
span
.update-time
{
float
:
right
;
color
:
#CCC
;
margin-left
:
40px
;
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
;
}
.draft-menu.kmui-dropdown-menu
li
.draft-item
a
.delete
{
display
:
none
;
cursor
:
pointer
;
position
:
absolute
;
width
:
20px
;
height
:
20px
;
right
:
4px
;
top
:
4px
;
padding
:
0
;
background
:
url(../themes/default/images/close-button.png)
no-repeat
0
0
;
}
.draft-menu.kmui-dropdown-menu
li
.draft-item
a
.delete
:before
{
display
:
none
;
}
.draft-menu.kmui-dropdown-menu
li
.draft-item
a
.delete
:hover
{
background-position
:
0
-20px
;
}
.draft-menu.kmui-dropdown-menu.kmui-combobox-menu
.kmui-combobox-checked
{
overflow
:
hidden
;
opacity
:
1
;
color
:
#CCC
;
}
.draft-menu.kmui-dropdown-menu.kmui-combobox-menu
.kmui-combobox-checked
.kmui-combobox-icon
{
float
:
left
;
margin
:
5px
0
;
width
:
28px
;
background-position
:
center
0
;
opacity
:
.3
;
}
.draft-menu.kmui-dropdown-menu.kmui-combobox-menu
.kmui-combobox-checked
.kmui-combobox-item-label
{
display
:
block
;
margin-left
:
28px
;
}
.draft-menu.kmui-dropdown-menu.kmui-combobox-menu
.kmui-combobox-checked
:hover
{
color
:
#CCC
;
}
.draft-menu.kmui-dropdown-menu.kmui-combobox-menu
.kmui-combobox-checked
:hover
.kmui-combobox-icon
{
background-position
:
center
0
;
}
.file-menu.kmui-dropdown-menu
{
margin-top
:
24px
;
margin-left
:
1px
;
box-shadow
:
0px
1px
5px
rgba
(
0
,
0
,
0
,
0.3
);
}
.file-menu.kmui-dropdown-menu
#save-button
,
.file-menu.kmui-dropdown-menu
#manage-file-button
{
display
:
none
;
}
.file-menu.kmui-dropdown-menu.logined
#save-button
,
.file-menu.kmui-dropdown-menu.logined
#manage-file-button
{
display
:
block
;
}
.file-menu.kmui-dropdown-menu.logined
#net-hint-buttom
{
display
:
none
;
}
.user-menu.kmui-dropdown-menu
{
margin-top
:
24px
;
margin-left
:
-25px
;
min-width
:
130px
;
box-shadow
:
0px
1px
5px
rgba
(
0
,
0
,
0
,
0.3
);
}
.user-menu.kmui-dropdown-menu
li
a
{
padding-left
:
40px
;
}
#share-dialog
{
position
:
absolute
;
padding
:
20px
;
left
:
50%
;
top
:
40%
;
margin-left
:
-175px
;
margin-top
:
-100px
;
background
:
white
;
width
:
350px
;
box-shadow
:
1px
2px
16px
rgba
(
0
,
0
,
0
,
0.5
);
display
:
none
;
}
#share-dialog
h3
{
margin
:
0
;
font-size
:
16px
;
color
:
#666
;
}
#share-dialog
input
{
width
:
260px
;
height
:
22px
;
line-height
:
22px
;
padding
:
4px
4px
0
;
border
:
1px
solid
#999
;
vertical-align
:
middle
;
margin-right
:
3px
;
background
:
#EEE
;
}
#share-dialog
input
:focus
{
border
:
1px
solid
#99f
;
outline
:
none
;
}
#share-dialog
p
,
#share-dialog
#share-platform
{
margin
:
20px
0
30px
;
}
#share-dialog
#copy-share-url
{
display
:
inline-block
;
margin
:
0
;
width
:
70px
;
height
:
28px
;
line-height
:
28px
;
vertical-align
:
middle
;
color
:
white
;
background
:
-moz-linear-gradient
(
top
,
#0099f2
0%
,
#4096ee
0%
,
#0076dd
100%
);
/* FF3.6+ */
background
:
-webkit-gradient
(
linear
,
left
top
,
left
bottom
,
color-stop
(
0%
,
#0099f2
),
color-stop
(
0%
,
#4096ee
),
color-stop
(
100%
,
#0076dd
));
/* Chrome,Safari4+ */
background
:
-webkit-linear-gradient
(
top
,
#0099f2
0%
,
#4096ee
0%
,
#0076dd
100%
);
/* Chrome10+,Safari5.1+ */
background
:
-o-linear-gradient
(
top
,
#0099f2
0%
,
#4096ee
0%
,
#0076dd
100%
);
/* Opera 11.10+ */
background
:
-ms-linear-gradient
(
top
,
#0099f2
0%
,
#4096ee
0%
,
#0076dd
100%
);
/* IE10+ */
background
:
linear-gradient
(
to
bottom
,
#0099f2
0%
,
#4096ee
0%
,
#0076dd
100%
);
/* W3C */
}
#share-dialog
#copy-share-url
:hover
,
#share-dialog
#copy-share-url
.hover
{
background
:
#009fff
;
}
#share-dialog
#copy-share-url
:active
,
#share-dialog
#copy-share-url
.active
{
background
:
#007fcc
;
box-shadow
:
inset
0
2px
3px
rgba
(
0
,
0
,
0
,
0.2
);
}
#share-dialog
#share-platform
{
margin-bottom
:
0
;
}
/*# sourceMappingURL=social.css.map */
\ No newline at end of file
.niceblue
{
color
:
#fff
;
background
:
-moz-linear-gradient
(
top
,
#0099f2
0
,
#4096ee
0
,
#0076dd
100%
);
background
:
-webkit-gradient
(
linear
,
left
top
,
left
bottom
,
color-stop
(
0
,
#0099f2
),
color-stop
(
0
,
#4096ee
),
color-stop
(
100%
,
#0076dd
));
background
:
-webkit-linear-gradient
(
top
,
#0099f2
0
,
#4096ee
0
,
#0076dd
100%
);
background
:
-o-linear-gradient
(
top
,
#0099f2
0
,
#4096ee
0
,
#0076dd
100%
);
background
:
-ms-linear-gradient
(
top
,
#0099f2
0
,
#4096ee
0
,
#0076dd
100%
);
background
:
linear-gradient
(
to
bottom
,
#0099f2
0
,
#4096ee
0
,
#0076dd
100%
);}
.dropdown
{
padding-right
:
28px
;
position
:
relative
}
.dropdown
: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
}
.dropdown
:active:after
,
.dropdown.active
:after
{
border-color
:
#fff
transparent
transparent
transparent
}
button
{
font-family
:
Arial
,
"Heiti SC"
,
"Microsoft Yahei"
;
outline
:
none
;
display
:
inline-block
;
vertical-align
:
middle
;
padding
:
0
15px
;
height
:
30px
;
font-size
:
13px
;
line-height
:
30px
;
text-align
:
center
;
color
:
#000
;
text-decoration
:
none
;
border
:
none
;
margin-left
:
5px
;
background
:
none
;
color
:
#fff
;
background
:
-moz-linear-gradient
(
top
,
#0099f2
0
,
#4096ee
0
,
#0076dd
100%
);
background
:
-webkit-gradient
(
linear
,
left
top
,
left
bottom
,
color-stop
(
0
,
#0099f2
),
color-stop
(
0
,
#4096ee
),
color-stop
(
100%
,
#0076dd
));
background
:
-webkit-linear-gradient
(
top
,
#0099f2
0
,
#4096ee
0
,
#0076dd
100%
);
background
:
-o-linear-gradient
(
top
,
#0099f2
0
,
#4096ee
0
,
#0076dd
100%
);
background
:
-ms-linear-gradient
(
top
,
#0099f2
0
,
#4096ee
0
,
#0076dd
100%
);
background
:
linear-gradient
(
to
bottom
,
#0099f2
0
,
#4096ee
0
,
#0076dd
100%
);}
button
:hover
,
button
.hover
{
background
:
#009fff
}
button
:active
,
button
.active
{
background
:
#007fcc
;
box-shadow
:
inset
0
2px
3px
rgba
(
0
,
0
,
0
,
0.2
)}
button
[
disabled
]
{
cursor
:
default
;
background
:
#ccc
}
.draft-menu.kmui-dropdown-menu
{
margin-top
:
24px
;
margin-left
:
1px
}
.draft-menu.kmui-dropdown-menu
span
.update-time
{
float
:
right
;
color
:
#ccc
;
margin-left
:
40px
;
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
}
.draft-menu.kmui-dropdown-menu
li
.draft-item
a
.delete
{
display
:
none
;
cursor
:
pointer
;
position
:
absolute
;
width
:
20px
;
height
:
20px
;
right
:
4px
;
top
:
4px
;
padding
:
0
;
background
:
url(../themes/default/images/close-button.png)
no-repeat
0
0
}
.draft-menu.kmui-dropdown-menu
li
.draft-item
a
.delete
:before
{
display
:
none
}
.draft-menu.kmui-dropdown-menu
li
.draft-item
a
.delete
:hover
{
background-position
:
0
-20px
}
.draft-menu.kmui-dropdown-menu.kmui-combobox-menu
.kmui-combobox-checked
{
overflow
:
hidden
;
opacity
:
1
;
color
:
#ccc
}
.draft-menu.kmui-dropdown-menu.kmui-combobox-menu
.kmui-combobox-checked
.kmui-combobox-icon
{
float
:
left
;
margin
:
5px
0
;
width
:
28px
;
background-position
:
center
0
;
opacity
:
.3
}
.draft-menu.kmui-dropdown-menu.kmui-combobox-menu
.kmui-combobox-checked
.kmui-combobox-item-label
{
display
:
block
;
margin-left
:
28px
}
.draft-menu.kmui-dropdown-menu.kmui-combobox-menu
.kmui-combobox-checked
:hover
{
color
:
#ccc
}
.draft-menu.kmui-dropdown-menu.kmui-combobox-menu
.kmui-combobox-checked
:hover
.kmui-combobox-icon
{
background-position
:
center
0
}
.file-menu.kmui-dropdown-menu
{
margin-top
:
24px
;
margin-left
:
1px
;
box-shadow
:
0
1px
5px
rgba
(
0
,
0
,
0
,
0.3
)}
.file-menu.kmui-dropdown-menu
#save-button
,
.file-menu.kmui-dropdown-menu
#manage-file-button
{
display
:
none
}
.file-menu.kmui-dropdown-menu.logined
#save-button
,
.file-menu.kmui-dropdown-menu.logined
#manage-file-button
{
display
:
block
}
.file-menu.kmui-dropdown-menu.logined
#net-hint-buttom
{
display
:
none
}
.user-menu.kmui-dropdown-menu
{
margin-top
:
24px
;
margin-left
:
-25px
;
min-width
:
130px
;
box-shadow
:
0
1px
5px
rgba
(
0
,
0
,
0
,
0.3
)}
.user-menu.kmui-dropdown-menu
li
a
{
padding-left
:
40px
}
#share-dialog
{
position
:
absolute
;
padding
:
20px
;
left
:
50%
;
top
:
40%
;
margin-left
:
-175px
;
margin-top
:
-100px
;
background
:
#fff
;
width
:
350px
;
box-shadow
:
1px
2px
16px
rgba
(
0
,
0
,
0
,
0.5
);
display
:
none
}
#share-dialog
h3
{
margin
:
0
;
font-size
:
16px
;
color
:
#666
}
#share-dialog
input
{
width
:
255px
;
height
:
22px
;
line-height
:
22px
;
padding
:
4px
4px
0
;
border
:
1px
solid
#999
;
vertical-align
:
middle
;
margin-right
:
3px
;
background
:
#eee
}
#share-dialog
input
:focus
{
border
:
1px
solid
#99f
;
outline
:
none
}
#share-dialog
p
,
#share-dialog
#share-platform
{
margin
:
20px
0
30px
}
#share-dialog
#copy-share-url
{
display
:
inline-block
;
margin
:
0
;
width
:
75px
;
height
:
28px
;
line-height
:
28px
;
vertical-align
:
middle
;
color
:
#fff
;
background
:
-moz-linear-gradient
(
top
,
#0099f2
0
,
#4096ee
0
,
#0076dd
100%
);
background
:
-webkit-gradient
(
linear
,
left
top
,
left
bottom
,
color-stop
(
0
,
#0099f2
),
color-stop
(
0
,
#4096ee
),
color-stop
(
100%
,
#0076dd
));
background
:
-webkit-linear-gradient
(
top
,
#0099f2
0
,
#4096ee
0
,
#0076dd
100%
);
background
:
-o-linear-gradient
(
top
,
#0099f2
0
,
#4096ee
0
,
#0076dd
100%
);
background
:
-ms-linear-gradient
(
top
,
#0099f2
0
,
#4096ee
0
,
#0076dd
100%
);
background
:
linear-gradient
(
to
bottom
,
#0099f2
0
,
#4096ee
0
,
#0076dd
100%
);}
#share-dialog
#copy-share-url
:hover
,
#share-dialog
#copy-share-url
.hover
{
background
:
#009fff
}
#share-dialog
#copy-share-url
:active
,
#share-dialog
#copy-share-url
.active
{
background
:
#007fcc
;
box-shadow
:
inset
0
2px
3px
rgba
(
0
,
0
,
0
,
0.2
)}
#share-dialog
#share-platform
{
margin-bottom
:
0
}
social/social.js
View file @
d81b8019
...
...
@@ -249,6 +249,10 @@ $(function() {
e
.
stopPropagation
();
});
$
(
'body'
).
delegate
(
'#global-zeroclipboard-html-bridge'
,
'mousedown'
,
function
(
e
)
{
e
.
stopPropagation
();
});
var
copyTrickTimer
=
0
;
$
(
'body'
).
on
(
'mousedown'
,
function
(
e
)
{
copyTrickTimer
=
setTimeout
(
function
()
{
...
...
social/social.less
View file @
d81b8019
...
...
@@ -183,7 +183,7 @@ button {
}
input {
width: 2
60
px;
width: 2
55
px;
height: 22px;
line-height: 22px;
padding: 4px 4px 0;
...
...
@@ -204,7 +204,7 @@ button {
#copy-share-url {
display: inline-block;
margin: 0;
width: 7
0
px;
width: 7
5
px;
height: 28px;
line-height: 28px;
vertical-align: middle;
...
...
src/module/expand.js
View file @
d81b8019
...
...
@@ -163,6 +163,10 @@ KityMinder.registerModule('Expand', function() {
e
.
stopPropagation
();
e
.
preventDefault
();
});
this
.
on
(
'dblclick click mouseup'
,
function
(
e
)
{
e
.
stopPropagation
();
e
.
preventDefault
();
});
},
setState
:
function
(
state
)
{
...
...
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