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

Guide to change the font size for inline code #377

Open
westerdaled opened this issue Nov 12, 2023 · 3 comments
Open

Guide to change the font size for inline code #377

westerdaled opened this issue Nov 12, 2023 · 3 comments

Comments

@westerdaled
Copy link

westerdaled commented Nov 12, 2023

I want to increase the font size to the value shown in image highlight from the default 1em. However, I don't seem to acheive this when setting similar values in the Enlighter customizer base theme settings. Is there another setting I should adjust ?

image

@AndiDittrich
Copy link
Member

to change the font-sizes of different views independently you've to match the views:

.enlighter-v-standard .enlighter span{
  font-size: 1.1rem;
}

.enlighter-v-inline .enlighter span{
  font-size: 1.3rem;
}

@westerdaled
Copy link
Author

Hi Andi

Thanks for you reply. I think you are referring to adding your classes to each inline code block. If I want to make these changes globally, would I need to enter the font size values somewhere in the Enlighter customizer base theme settings. Alternatively, do I simply add your classes to the my theme -> Customising -> Additional CSS. The current styles are listed below:

.codeAgain {
	padding: 12px 12px 12px !important;
}
.enlighter-default {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    max-height: 620px;
    overflow: auto;
} 

@westerdaled
Copy link
Author

Ok, I have now added your styles to my theme -> Customising -> Additional CSS. I think that has done the job. I might change the default gray background to Monoka background, but it is getting there.

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

No branches or pull requests

2 participants