Follow-up to #1342054: [META] Clean up templates and CSS

Problem/Motivation

Bartik's code needs to meet current coding standards in Drupal.
Lists.css currently only contains component specific list styles. As part of the coding standards, styles for components need to be kept together in one file and not be split across files.

Proposed resolution

We need to split out all of the styles in lists.css into the correct components and remove the file from Bartik.

Remaining tasks

Write a patch.
Visual review of the patch + screenshots - to check we do not visually change/break anything in Bartik.
Code review of the patch - to check the standards have been met correctly.

User interface changes

None, we are cleaning up files and code.

API changes

n/a

Comments

DickJohnson’s picture

Status: Active » Needs review
StatusFileSize
new4.24 KB

Pager and tips related things are duplicates at the moment so removing those.

For block related styles I created new file.

Content related stuff went to content.css.

Item-list related stuff got a new file called item-list.css.

ul.menu li { margin: 0 } didn't do anything so I removed it.

Sending to testbot.

Status: Needs review » Needs work

The last submitted patch, 1: bartik-remove-listcss-2408655-1.patch, failed testing.

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 1: bartik-remove-listcss-2408655-1.patch, failed testing.

DickJohnson’s picture

StatusFileSize
new4.24 KB
new522 bytes

Ok, so there was a typo.

DickJohnson’s picture

Status: Needs work » Needs review
lewisnyman’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new1.49 MB

I diffed the pages using BackstopJS and it's all clear! I've attached the report.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed
+++ /dev/null
@@ -1,67 +0,0 @@
-ul.menu li {
-  margin: 0;
-}

This seems to the be only css rule that is being removed. Are we sure that this is ok? Seems to be as this is a duplicate of the rule in system.theme.css

ul.menu li {
  padding-top: 0.2em;
  margin: 0;
}

CSS changes are permitted during beta. Committed 0f97b4f and pushed to 8.0.x. Thanks!

  • alexpott committed 0f97b4f on 8.0.x
    Issue #2408653 by DickJohnson, LewisNyman: Remove lists.css from Bartik...
emma.maria’s picture

Status: Fixed » Needs work

Just noticed that we have forgotten to remove list.css from the list of stylesheets in the info file to be used by ckeditor.

ckeditor_stylesheets:
  - css/base/elements.css
  - css/base/typography.css
  - css/components/captions.css
  - css/components/content.css
  - css/components/list.css
  - css/components/table.css

Core currently has a 404 error looking for the removed file.
We need to create a follow up patch to take this file out of the there asap.

emma.maria’s picture

StatusFileSize
new418 bytes

Patch to remove declaration of list.css for the ckeditor in the info file.

emma.maria’s picture

Status: Needs work » Needs review
lewisnyman’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new302.36 KB

After the patch there is no longer a 404 on this page

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 11: bartik-remove-listcss-2408655-11.patch, failed testing.

emma.maria’s picture

StatusFileSize
new1.34 KB

Doh! I forgot about the test!
New patch.

emma.maria’s picture

Status: Needs work » Needs review
idebr’s picture

Go, testbot!

emma.maria’s picture

Status: Needs review » Closed (fixed)
idebr’s picture

Status: Closed (fixed) » Fixed

I think the correct status is 'Fixed', since it was only resolved recently in #8

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.