mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-09-20 18:59:17 +08:00
Add prism!
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user