Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Зуев Егор
/
wiki.dev
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Dan Brown
2015-07-30 23:43:18 +0100
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
2aca1794de84fb928541da6057cf33a39b54772f
2aca1794
1 parent
b506beac
Fixed link hooks
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
resources/assets/sass/styles.scss
resources/views/pages/show.blade.php
resources/assets/sass/styles.scss
View file @
2aca179
...
...
@@ -241,15 +241,23 @@ a.link-hook {
position
:
absolute
;
display
:
inline-block
;
top
:
$-xs
;
left
:
-
$-xl
+
2px
;
left
:
-
$-l
;
padding-bottom
:
30px
;
font-size
:
20px
;
line-height
:
20px
;
color
:
#BBB
;
opacity
:
0
;
transform
:
translate3d
(
10px
,
0
,
0
);
transition
:
all
ease-in-out
240ms
;
background-color
:
transparent
;
&
:hover
{
color
:
$primary
;
}
}
h1
,
h2
,
h3
,
h4
,
h5
,
h6
{
&
:hover
a
.link-hook
{
opacity
:
1
;
transform
:
translate3d
(
0
,
0
,
0
);
}
}
...
...
resources/views/pages/show.blade.php
View file @
2aca179
...
...
@@ -74,7 +74,7 @@
headers
.
each
(
function
()
{
var
text
=
$
(
this
).
text
().
trim
();
var
link
=
'/link/'
+
pageId
+
'#'
+
encodeURIComponent
(
text
);
var
linkHook
=
$
(
'<a class="link-hook"><i class="
fa fa
-link"></i></a>'
)
var
linkHook
=
$
(
'<a class="link-hook"><i class="
zmdi zmdi
-link"></i></a>'
)
.
attr
({
"data-content"
:
link
,
href
:
link
,
target
:
'_blank'
});
linkHook
.
click
(
function
(
e
)
{
e
.
preventDefault
();
...
...
Please
register
or
sign in
to post a comment