mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 12:03:31 +08:00
Add GitLab Snippets Shortcode
This commit is contained in:
parent
5608f0a5e1
commit
d9c50c7a41
@ -387,6 +387,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gitlab-embed-snippets {
|
||||||
|
margin: 0 !important;
|
||||||
|
|
||||||
|
.file-holder.snippet-file-content {
|
||||||
|
margin-block-end: 0 !important;
|
||||||
|
margin-block-start: 0 !important;
|
||||||
|
margin-left: calc((var(--card-padding)) * -1) !important;
|
||||||
|
margin-right: calc((var(--card-padding)) * -1) !important;
|
||||||
|
padding: 0 var(--card-padding) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// Negative margins
|
/// Negative margins
|
||||||
blockquote,
|
blockquote,
|
||||||
figure,
|
figure,
|
||||||
|
4
layouts/shortcodes/gitlab.html
Normal file
4
layouts/shortcodes/gitlab.html
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<script
|
||||||
|
type="application/javascript"
|
||||||
|
src="https://gitlab.com/-/snippets/{{ index .Params 0 }}.js"
|
||||||
|
></script>
|
Loading…
Reference in New Issue
Block a user