Fix PurgeCSS style for copy code block
This commit is contained in:
parent
7954aed9ef
commit
9e1de9865f
|
@ -84,3 +84,10 @@ $modal-background-background-color-dark: rgba($dark, 0.86) !default; // remove t
|
||||||
.modal-card-body { // remove this once https: //github.com/jloh/bulma-prefers-dark/pull/90 is merged and released
|
.modal-card-body { // remove this once https: //github.com/jloh/bulma-prefers-dark/pull/90 is merged and released
|
||||||
background-color: $background-dark;
|
background-color: $background-dark;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Support for copy code button */
|
||||||
|
.code-block>button {
|
||||||
|
position: absolute;
|
||||||
|
top: 0.5rem;
|
||||||
|
right: 0.5rem;
|
||||||
|
}
|
|
@ -106,12 +106,3 @@
|
||||||
<button class="button is-light is-outlined is-small p-2" on:click={copyFunction}>Copy</button>
|
<button class="button is-light is-outlined is-small p-2" on:click={copyFunction}>Copy</button>
|
||||||
<Highlight code={text} {language} />
|
<Highlight code={text} {language} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
|
||||||
/* for copy button */
|
|
||||||
.code-block > button {
|
|
||||||
position: absolute;
|
|
||||||
top: 0.5rem;
|
|
||||||
right: 0.5rem;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
Loading…
Reference in New Issue