—ฅ/ᐠ. ̫ .ᐟ\ฅ —

Tip

[Tistory] 백틱을 회색 인라인 코드 블럭으로 사용하기

WIFI-Aircat 2025. 4. 6. 01:23

스킨 HTML 편집

HTML
</div>
<!-- // wrap -->
</s_t3>
<!----from here----->
<script>
    let textNodes = document.querySelectorAll("div.tt_article_useless_p_margin.contents_style > *:not(figure):not(pre)");
    textNodes.forEach(node => {
    node.innerHTML = node.innerHTML.replace(/`(.*?)`/g, '<code>$1</code>');
    });
</script>
<!-----to here------->
</body>
</html>

 

 

CSS

/*------from here------*/
code {
    background-color: #e9ecef;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: SF Mono, Menlo, Consolas, Monaco, monospace;
    font-size: 0.95em;
}
/*------to here--------*/
kbd,
samp {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}
반응형

'Tip' 카테고리의 다른 글

유용한 사이트 모음  (0) 2025.06.17
[Ubuntu] 유용한 준비 과정  (0) 2025.04.07
이사하였습니다.  (0) 2024.11.21