Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 代码块首行边距 #246

Merged
merged 1 commit into from Nov 16, 2022
Merged

fix: 代码块首行边距 #246

merged 1 commit into from Nov 16, 2022

Conversation

5ime
Copy link
Member

@5ime 5ime commented Oct 14, 2022

article codepadding 样式影响到了 article pre code

article code {
    background-color: rgba(27,31,35,0.05);
    border-radius: 6px;
    font-size: 85%;
    padding: 0.2em 0.4em;
    font-family: Consolas;
}

如图所示
image

article pre code 添加 padding: 0 即可修复

article pre code {
	position: relative;
	border: none;
	border-radius: 0;
	font-size: 100%;
	font-family: Consolas;
	padding: 0;
}

image

@DeltaLimit
Copy link

+1

@nexmoe nexmoe merged commit 151c13e into theme-nexmoe:master Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants