add 'console' in window block

This commit is contained in:
Simon Vieille 2022-09-02 13:08:24 +02:00
parent 5b9396f488
commit d487b604fa
Signed by: deblan
GPG key ID: 579388D585F70417
2 changed files with 5 additions and 0 deletions

View file

@ -517,6 +517,10 @@ pre[class*="language-"] {
.code-window {
height: 30px;
background: $color-code-title-background url('../images/window.svg') no-repeat center right;
padding-left: 15px;
font-family: Monospace;
color: #ccc;
line-height: 30px;
}
.body-content {

View file

@ -89,6 +89,7 @@ Code.prototype.init = function () {
pre.classList.add('with-title')
const win = this.window.document.createElement('div')
win.classList.add('code-window')
win.textContent = 'Console'
post.insertBefore(win, pre)
}