From c896442fcf46fe12fc1c8b811ddc71f8127e8509 Mon Sep 17 00:00:00 2001 From: jeffreytse Date: Fri, 8 Jan 2021 11:59:28 +0800 Subject: refactor: migrate code highlight to an extension --- _sass/yat/_base.scss | 20 -------------------- 1 file changed, 20 deletions(-) (limited to '_sass/yat') diff --git a/_sass/yat/_base.scss b/_sass/yat/_base.scss index 879442a..224c287 100644 --- a/_sass/yat/_base.scss +++ b/_sass/yat/_base.scss @@ -159,26 +159,6 @@ pre { position: relative; background-color: #f0f0f0; - // code language badge - &::before { - content: attr(data-lang); - color: #fff; - background-color: #ff4e00; - padding: 0 .5em; - border-radius: 0 2px; - text-transform: uppercase; - text-align: center; - min-width: 32px; - display: inline-block; - position: absolute; - right: 0; - } - - // fix wrong badge display for firefox browser - code > table pre::before { - display: none; - } - > code { display: inline-block; padding: 20px!important; -- cgit v1.2.3