merge node.*.css files into node.admin.css

Created on 6 February 2015, over 10 years ago
Updated 27 May 2024, about 1 year ago

Problem/Motivation

The node module has 3 different css files (node.admin.css, node.module.css, node.preview.css) that are all related to admin tasks.

Proposed resolution

Merge the 3 files into node.admin.css and remove any duplicated code.

Remaining tasks

1. Resolve questions raised in #35 โ†’ @idbr

The issue summary indicates all 3 nodes.*.css files are merged into a single node.admin.css, but the patch leaves node.module.css. Is this on purpose?

node.admin.theme.css contains box-sizing, float, width attributes that deliver layout. This seems inconsistent with the SMACCS policy. Can you include a comment why these attributes are in a .theme file instead of a .module file?

User interface changes

Nil.


API changes

Nil.

Beta phase evaluation

<!--Uncomment the relevant rows for the issue. -->
๐Ÿ“Œ Task
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
Node systemย  โ†’

Last updated about 15 hours ago

No maintainer
Created by

๐Ÿ‡ฉ๐Ÿ‡ฐDenmark mortendk

Live updates comments and jobs are added and updated live.
  • CSS

    It involves the content or handling of Cascading Style Sheets.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • Status changed to Needs review about 1 year ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia gauravvvv Delhi, India
  • Status changed to Needs work about 1 year ago
  • The Needs Review Queue Bot โ†’ tested this issue.

    While you are making the above changes, we recommend that you convert this patch to a merge request โ†’ . Merge requests are preferred over patches. Be sure to hide the old patch files as well. (Converting an issue to a merge request without other contributions to the issue will not receive credit.)

  • Pipeline finished with Failed
    about 1 year ago
    Total: 574s
    #182930
  • Status changed to Needs review about 1 year ago
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom catch

    Hiding patches.

    The MR merges the node preview CSS into node.css but leaves the library intact, I don't see a reason to merge the preview CSS - it's only used on preview, which is in a controller and attaches the preview library anyway.

    It seems like node.admin.css, which only contains a background colour, could possibly be removed altogether rather than merged?

  • Pipeline finished with Failed
    about 1 year ago
    Total: 179s
    #183293
  • Status changed to Needs work about 1 year ago
  • The Needs Review Queue Bot โ†’ tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.

    Consult the Drupal Contributor Guide โ†’ to find step-by-step guides for working with issues.

  • Pipeline finished with Failed
    about 1 year ago
    Total: 743s
    #183329
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia mithun s Bangalore

    Mithun S โ†’ made their first commit to this issueโ€™s fork.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia mithun s Bangalore

    Mithun S โ†’ changed the visibility of the branch 2421365-merge-node.css-files to hidden.

  • First commit to issue fork.
  • Status changed to Needs review 11 months ago
  • tried several patches bot not applied create my own MR please check added all node folder css inside node.admin.css

  • Status changed to Needs work 11 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave
  • Status changed to Postponed: needs info 9 days ago
  • ๐Ÿ‡ฆ๐Ÿ‡บAustralia acbramley

    I think I'm missing something, but why exactly do we want to combine all CSS into a single file? Currently these CSS files are split into separate libraries (although node.module.css is in 2 different libraries) which are added in different parts of the CMS depending on where they're needed. Combining all CSS into 1 file will mean adding CSS to places that it's not needed. Isn't it better to only add it where it's needed?

    We also have many themes overriding or extending these libraries to add their own CSS, we would have to very carefully coordinate releases between all of these otherwise there will be visual regressions. Furthermore, it means contrib would have to have a new major/minor targeting the specific core release this is changed in.

    The effort doesn't seem worth it IMO, what are we trying to gain here? Even though the CSS is all admin-ish related, it's for very different use cases.

Production build 0.71.5 2024