Skip to content

Commit 1758cfd

Browse files
authored
Merge pull request #89 from telerik/copy-code-snippet
feat: Code snippet copy button
2 parents fc3db11 + c7f20bb commit 1758cfd

File tree

4 files changed

+96
-16
lines changed

4 files changed

+96
-16
lines changed

_assets/css/_styles.scss

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4630,3 +4630,24 @@ div#sidetoc {
46304630
display: none;
46314631
}
46324632
}
4633+
4634+
div{
4635+
&.k-content {
4636+
&.k-state-active{
4637+
.copy-code-btn {
4638+
padding:7px 10px;
4639+
}
4640+
}
4641+
}
4642+
}
4643+
.copy-code-btn {
4644+
position: absolute;
4645+
top: 0;
4646+
right: 0;
4647+
padding:10px;
4648+
z-index: 100;
4649+
4650+
&:hover {
4651+
cursor: pointer;
4652+
}
4653+
}

0 commit comments

Comments
 (0)