-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add Bikeshed's style-dfn-panels styles to standard.css #343
Conversation
This change removes the HTML-specific styles dealing with the dfn panels, and changes html-dfn.js to have those panels match Bikeshed's output more closely. The particular changes are: - Panels have the "dfn-panel" class, rather than "dfnPanel". They also have the "on" class, to make them visible. - Dfn panels get created as children of body rather than of the dfn element, and their position is set when they are created. - Moved panels gain the "activated" class, instead of gaining inline styles. - The elements that can open a dfn panel when clicked now include headings with the "data-dfn-type" attribute (corresponding to a "dfn" attribute in the source), and every such element is populated with the "dfn-paneled" class when the script first runs. - Removes the "dfnEnabled" class from body. See whatwg/whatwg.org#343, which adds Bikeshed's dfn panel styles to standard.css.
This change removes the HTML-specific styles dealing with the dfn panels, and changes html-dfn.js to have those panels match Bikeshed's output more closely. The particular changes are: - Panels have the "dfn-panel" class, rather than "dfnPanel". They also have the "on" class, to make them visible. - Dfn panels get created as children of body rather than of the dfn element, and their position is set when they are created. - Moved panels gain the "activated" class, instead of gaining inline styles. - The elements that can open a dfn panel when clicked now include headings with the "data-dfn-type" attribute (corresponding to a "dfn" attribute in the source), and every such element is populated with the "dfn-paneled" class when the script first runs. - Removes the "dfnEnabled" class from body. See whatwg/whatwg.org#343, which adds Bikeshed's dfn panel styles to standard.css.
Thanks for working on this. Can we merge this without merging the HTML change or will HTML be badly impacted if we do that? |
Merging this before the HTML change is fine, since the HTML panels use different classes than Bikeshed's (Bikeshed's However, since @sideshowbarker has raised concerns in whatwg/html#5947 about the way I've changed the way the dfn panels are positioned in the HTML spec, it's probably best to wait until that's resolved, so the styles can be adjusted. |
See whatwg/whatwg.org#343, which moves those styles into WHATWG's standard.css stylesheet.
See whatwg/whatwg.org#343, which moves those styles into WHATWG's standard.css stylesheet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, and seems to address @sideshowbarker's comments earlier. Happy to merge as soon as you confirm that it's all good to merge.
The dfn-paneled class is specific to Bikeshed, while dfnEnabled | ||
identifies builds of the HTML spec that support dfn panels. */ | ||
.dfn-paneled, | ||
body.dfnEnabled dfn, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we probably can't use :is()
yet, sigh.
This change removes the HTML-specific styles dealing with the dfn panels, and changes html-dfn.js to have those panels match Bikeshed's output more closely. The particular changes are: - Panels have the "dfn-panel" class, rather than "dfnPanel". They also have the "on" class, to make them visible. - Moved panels gain the "activated" class, instead of gaining inline styles. - The elements that can open a dfn panel when clicked now include headings with the "data-dfn-type" attribute (corresponding to a "dfn" attribute in the source). See whatwg/whatwg.org#343, which adds Bikeshed's dfn panel styles to standard.css.
This change additionally modifies a few rules from Bikeshed's styles for integration with the dfn panels in the HTML spec. See speced/bikeshed#1772, which turns off Bikeshed's style-dfn-panels styles, and whatwg/html#5947, which modifies HTML's html-dfn.js script to work with these styles.
b0da1b8
to
46bf931
Compare
See whatwg/whatwg.org#343, which moves those styles into WHATWG's standard.css stylesheet.
This change removes the HTML-specific styles dealing with the dfn panels, and changes html-dfn.js to have those panels match Bikeshed's output more closely. The particular changes are: - Panels have the "dfn-panel" class, rather than "dfnPanel". They also have the "on" class, to make them visible. - Moved panels gain the "activated" class, instead of gaining inline styles. - The elements that can open a dfn panel when clicked now include headings with the "data-dfn-type" attribute (corresponding to a "dfn" attribute in the source). See whatwg/whatwg.org#343, which adds Bikeshed's dfn panel styles to standard.css.
This change removes the HTML-specific styles dealing with the dfn panels, and changes html-dfn.js to have those panels match Bikeshed's output more closely. The particular changes are: - Panels have the "dfn-panel" class, rather than "dfnPanel". They also have the "on" class, to make them visible. - Moved panels gain the "activated" class, instead of gaining inline styles. - The elements that can open a dfn panel when clicked now include headings with the "data-dfn-type" attribute (corresponding to a "dfn" attribute in the source). See whatwg/whatwg.org#343, which adds Bikeshed's dfn panel styles to standard.css.
This change additionally modifies a few rules from Bikeshed's styles for integration with the dfn panels in the HTML spec.
See speced/bikeshed#1772, which turns off Bikeshed's
style-dfn-panels
styles, and whatwg/html#5947, which modifies HTML'shtml-dfn.js
script to work with these styles.