Skip to content

Instantly share code, notes, and snippets.

@yahei
Created June 23, 2023 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yahei/035b1a0c27ebf601c744e4f96dfb7fcb to your computer and use it in GitHub Desktop.
Save yahei/035b1a0c27ebf601c744e4f96dfb7fcb to your computer and use it in GitHub Desktop.
VSCodeのMarkdown用css
/* CSS for Markdown */
h1 {
padding: 5px 7px;
border-left: solid 7px;
background-color: var(--base2);
}
h2 {
padding: 5px 7px;
border-left: solid 7px #00000020;
}
h3 {
border-bottom: solid 3px #00000010;
position: relative;
}
h3:after {
position: absolute;
content: " ";
display: block;
border-bottom: solid 3px #00000010;
bottom: -3px;
width: 20%;
}
h1, h2, h3, h4, h5, h6 { font-weight: bold; }
h1 tt, h1 code { font-size: inherit; }
h2 tt, h2 code { font-size: inherit; }
h3 tt, h3 code { font-size: inherit; }
h4 tt, h4 code { font-size: inherit; }
h5 tt, h5 code { font-size: inherit; }
h6 tt, h6 code { font-size: inherit; }
h1 { font-size: 28px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 14px; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment