日々のいろいろ

日々を綴ったほとんど日記

コード部分のレイアウト

コードタグ<pre>と<code>のレイアウトを変更しました。

背景カラーはもう少し輝度を上げるか悩んでいます。

今後、シンタックスハイライトも実装して行きます。

.entry-content pre,
.entry-content code {
    font-family: 'Monaco', 'Consolas', 'Courier New', Courier, monospace, sans-serif;
    color: white;
}

.entry-content pre {
    background: #112;
    border: none;
    white-space: pre-wrap;
    text-overflow: ellipsis;
    line-height: 1.6;
    font-size: 1rem;
    padding: 10px;
}
    
    .entry-content code {
    font-size: 90%;
    margin: 0 2px;
    background-color: #112;
    border-radius: 3px;
    padding: 6px;
}