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

Add Bikeshed's style-dfn-panels styles to standard.css #343

Merged
merged 1 commit into from
Oct 2, 2020

Conversation

andreubotella
Copy link
Member

@andreubotella andreubotella commented Sep 25, 2020

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.

andreubotella pushed a commit to andreubotella/html that referenced this pull request Sep 25, 2020
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.
andreubotella pushed a commit to andreubotella/html that referenced this pull request Sep 25, 2020
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.
@annevk
Copy link
Member

annevk commented Sep 28, 2020

Thanks for working on this. Can we merge this without merging the HTML change or will HTML be badly impacted if we do that?

@andreubotella
Copy link
Member Author

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 dfn-panel is HTML's dfnPanel, and HTML has no equivalent of Bikeshed's dfn-paneled).

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.

andreubotella pushed a commit to andreubotella/bikeshed that referenced this pull request Sep 29, 2020
See whatwg/whatwg.org#343, which moves those styles into WHATWG's
standard.css stylesheet.
andreubotella pushed a commit to andreubotella/bikeshed that referenced this pull request Sep 29, 2020
See whatwg/whatwg.org#343, which moves those styles into WHATWG's
standard.css stylesheet.
Copy link
Member

@domenic domenic left a 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,
Copy link
Member

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.

andreubotella pushed a commit to andreubotella/html that referenced this pull request Oct 1, 2020
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.
@domenic domenic merged commit b02ad9a into whatwg:master Oct 2, 2020
domenic pushed a commit to speced/bikeshed that referenced this pull request Oct 2, 2020
See whatwg/whatwg.org#343, which moves those styles into WHATWG's
standard.css stylesheet.
@andreubotella andreubotella deleted the dfn-panel-styles branch October 2, 2020 15:58
domenic pushed a commit to whatwg/html that referenced this pull request Oct 2, 2020
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.
mfreed7 pushed a commit to mfreed7/html that referenced this pull request Oct 2, 2020
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants