-
Notifications
You must be signed in to change notification settings - Fork 1
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
Indent Headings and 'Children' items #24
Comments
Indentation Values Per @janasoroczak: |
Can we first try this with some site styles and see if it still makes sense? We can add the settings to the document settings for the site and get a preview that way. Also, I wish we used ems or rems, but I don't think we are set up properly for that :/ |
@caffodian Could you clarify what is meant by site styles? I came up with these numbers by playing with styles in Chrome Inspector. |
https://pstatdev.pstatbeta.com/admin/doc_settings/ <-- no code changes needed |
Need code changes for the indentation to apply to all children. |
how so? |
... looks weird, and unclear without. IMHO. |
No, I mean, why does it need code changes? I think you can just use a sibling selector (https://developer.mozilla.org/en/docs/Web/CSS/General_sibling_selectors) and it lasts until the next such selector takes effect |
OH RIGHT.. hmmmmm.. testing now |
Some change should make it into this code base eventually. But we should make sure everyone accepts the styling (and make sure we don't have unintended consequences on real documents - for example printer friendly sizing ) |
Sibling Selectors don't work quite as expected...
This comes out as
all future paragraphs are indented to the last indentation level, even if not intended to be a part of it, because they all share the common parent of document-body. |
Why are they not intended to be part of it? Because of the break in between? |
Yes, I mean as long as you're sticking into the structure it works ok, but would that meet user's expectations? They'd need another H1/2 to bring it back into left aligned. Maybe that's not a big deal. |
Nope, nevermind. This happens:
it doesn't reset back |
Does it do that if the last h1 is an h2 instead? My guess is you might have forgotten to have an h1 sibling selector because it's not indented. I could be wrong and I use a lot of reference when playing with general selectors though |
Yes, because all previous levels of indentation are being applied to thelast P, and it's taking the largest value. |
:( |
It would be nice if one of the approaches in there works. I'm a bit worried about adding more classes than strictly needed |
On the PolicyStat side, it just means more show changes cases to handle :( |
Changed to standard indent / outdent if outside of a header element by calling the existing indent plugin function
Also adjusted the state of the commands to accomodate being outside of a header
Phase 1
Phase 2
The text was updated successfully, but these errors were encountered: