Add prism!

This commit is contained in:
MattIPv4
2020-05-07 20:46:52 +01:00
parent 8ee4a8eb88
commit 8d9ffc6e39
7 changed files with 120 additions and 20 deletions

View File

@@ -14,6 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
@import url("https://assets.digitalocean.com/prism/prism.css");
$header: #0071fe;
$highlight: #f2c94c;
@import "~do-bulma/src/style";
@@ -379,4 +381,32 @@ $highlight: #f2c94c;
margin: 1rem 0;
}
}
pre {
&[class*="language-"] {
padding: .5rem 1rem;
code {
&[class*="language-"] {
.token {
font-weight: normal;
// Fix Bulma interfering with Prism
&.number,
&.tag {
background: transparent;
border-radius: initial;
color: inherit;
display: initial;
font-size: inherit;
margin: initial;
padding: initial;
text-align: initial;
vertical-align: initial;
}
}
}
}
}
}
}