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

how to set the specific page that using the self cssclasses own self line width, and not affect other obsidian doc's linewidth #676

Open
ai-chen2050 opened this issue Dec 9, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ai-chen2050
Copy link

Is the bug present when using the default Obsidian theme?

No

Is the bug present when snippets and plugins are disabled?

No

Minimal theme version

7.3.0

Describe the bug

I am working on making my homepage, and set its' self cssclasses, .myhome cssstyles, my demand is it own self linewidth showing, and not affect other obsidian doc's linewidth.

I wrote the below code in my myhome.css file, it affect global doc showing。but I just want to change the one doc page, homepage.

how would change the below code to achieve my goals? please help me, thx. all bros.

.myhome, body {
--file-line-width: 100% !important;
--max-width: var(--file-line-width) !important;
--line-width: var(--file-line-width) !important;
}

Debug info

I am working on making my homepage, and set its' self cssclasses, .myhome cssstyles, my demand is it own self linewidth showing, and not affect other obsidian doc's linewidth.

I wrote the below code in my myhome.css file, it affect global doc showing。but I just want to change the one doc page, homepage.

how would change the below code to achieve my goals? please help me, thx. all bros.

.myhome, body {
--file-line-width: 100% !important;
--max-width: var(--file-line-width) !important;
--line-width: var(--file-line-width) !important;
}

@ai-chen2050 ai-chen2050 added the bug Something isn't working label Dec 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant