Skip to content

Commit a992fa9

Browse files
committed
(fix): clip image path and nav folder tag
1 parent 460a5aa commit a992fa9

4 files changed

Lines changed: 17 additions & 14 deletions

File tree

documentation/modules/ROOT/pages/_partials/eventing-snippets.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
#tag:eventing-nav-folder[]
2+
# tag::eventing-nav-folder[]
33

44
Navigate to the tutorial chapter's `knative` folder:
55

@@ -10,7 +10,7 @@ cd $TUTORIAL_HOME/{eventing-repo}/knative
1010
----
1111
copyToClipboard::eventing-navigate-to-folder[]
1212

13-
#end:eventing-nav-folder[]
13+
# end::eventing-nav-folder[]
1414

1515
# tag::cronjob-source[]
1616

lib/copy-to-clipboard.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ const BlockCopyToClipboardMacro = (() => {
2222
const t = target.startsWith(":") ? target.substr(1) : target;
2323
//console.log("target:", t);
2424
const createHtmlFragment = html => this.createBlock(parent, "pass", html);
25-
const html = `<button class="copybtn" title="Copy to clipboard" data-clipboard-target="#${t}">
26-
<img src="/_/img/clippy.svg" width="13">
27-
</button><br/>`;
25+
const html = `<button class="copybtn" title="Copy to clipboard" data-clipboard-target="#${t}"><i class="fa fa-copy"></i></button><br/>`;
2826
parent.blocks.push(createHtmlFragment(html));
2927
});
3028

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
img.clippy {
2-
margin-top: -3px;
3-
position: relative;
4-
top: 3px;
5-
}
6-
7-
button.copybtn {
8-
padding: 2px 6px;
1+
.copybtn {
2+
background-color: #cc0000;
3+
border: none;
4+
color: white;
5+
padding: 10px 10px;
6+
font-size: 12px;
7+
cursor: pointer !important;
8+
outline: none;
99
right: 4px;
1010
top: 4px;
1111
float: right;
12-
cursor: pointer !important;
12+
}
13+
14+
/* Darker background on mouse-over */
15+
.copybtn:hover {
16+
background-color: #820000;
1317
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
<link rel="icon" href="{{uiRootPath}}/img/favicon.ico" type="image/x-icon">
2+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
23
<link rel="stylesheet" href="{{uiRootPath}}/css/vendor/knative-tutorial-site.css">

0 commit comments

Comments
 (0)