I hope this works

This commit is contained in:
Dane Everitt 2018-07-25 23:21:17 -07:00
parent cd19c793ad
commit 9aca28b219
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -26,7 +26,7 @@ div[class*="language-"] {
} }
pre, pre[class*="language-"] { pre, pre[class*="language-"] {
@apply .bg-transparent .relative .m-0; @apply .bg-transparent .relative .m-0 .mr-4;
z-index: 1; z-index: 1;
} }
@ -77,31 +77,40 @@ div[class*="language-"] {
@each $lang in js,ts,html,md,vue,css,sass,scss,less,stylus,go,java,c,sh,yaml,conf { @each $lang in js,ts,html,md,vue,css,sass,scss,less,stylus,go,java,c,sh,yaml,conf {
div[class~="language-#{$lang}"]:before { div[class~="language-#{$lang}"]:before {
@apply .mr-8;
content: '#{$lang}'; content: '#{$lang}';
} }
} }
div[class~="language-javascript"]:before { div[class~="language-javascript"]:before {
@apply .mr-8;
content: "js"; content: "js";
} }
div[class~="language-typescript"]:before { div[class~="language-typescript"]:before {
@apply .mr-8;
content: "ts"; content: "ts";
} }
div[class~="language-markup"]:before { div[class~="language-markup"]:before {
@apply .mr-8;
content: "html"; content: "html";
} }
div[class~="language-markdown"]:before { div[class~="language-markdown"]:before {
@apply .mr-8;
content: "md"; content: "md";
} }
div[class~="language-json"]:before { div[class~="language-json"]:before {
@apply .mr-8;
content: "json"; content: "json";
} }
div[class~="language-ruby"]:before { div[class~="language-ruby"]:before {
@apply .mr-8;
content: "rb"; content: "rb";
} }
div[class~="language-python"]:before { div[class~="language-python"]:before {
@apply .mr-8;
content: "py"; content: "py";
} }
div[class~="language-bash"]:before { div[class~="language-bash"]:before {
@apply .mr-8;
content: "sh"; content: "sh";
} }