Problem/Motivation

See: #1995272: [Meta] Refactor module CSS files inline with our CSS standards

Proposed resolution

Review the CSS against our standards, see:
http://drupal.org/node/1887918#best-practices
https://www.drupal.org/node/2408617
#1190252: [573] Use csslint as a weapon to beat the crappy CSS out of Drupal core

Remaining tasks

Review current CSS
Write a patch to fix the suggestions
Run CSSlint against the new CSS

Testing steps

You have to enable the core-language modules
Add a language
Go to admin/config/regional/content-language

User interface changes

None

API changes

None

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

LewisNyman’s picture

Issue summary: View changes
LewisNyman’s picture

rudraram’s picture

Status: Active » Needs review
FileSize
2.23 KB

Added class to the form and updated css.

rudraram’s picture

The above patch was wrong. Updated it.

The last submitted patch, 3: content-translation-css-2485409-3.patch, failed testing.

LewisNyman’s picture

Status: Needs review » Needs work
+++ b/core/modules/content_translation/css/content_translation.admin.css
@@ -3,31 +3,31 @@
-#language-content-settings-form table .bundle {
+.language-content-settings-form table .bundle {
...
-#language-content-settings-form table .field {
+.language-content-settings-form table .field {
...
-[dir="rtl"] #language-content-settings-form table .field {
+[dir="rtl"] .language-content-settings-form table .field {
...
-#language-content-settings-form table .column {
+.language-content-settings-form table .column {
...
-[dir="rtl"] #language-content-settings-form table .column {
+[dir="rtl"] .language-content-settings-form table .column {
...
+.language-content-settings-form table .field label,
+.language-content-settings-form table .column label {
...
-#language-content-settings-form table .translatable {
+.language-content-settings-form table .translatable {
...
-#language-content-settings-form table .operations {
+.language-content-settings-form table .operations {

Can we remove the table element from these selectors?

Manjit.Singh’s picture

removing table element as suggested by @lewis

Manjit.Singh’s picture

Status: Needs work » Needs review
LewisNyman’s picture

Issue tags: +Needs screenshots

Great, now we just need some before/after screenshots

rudraram’s picture

FileSize
23.72 KB
22.73 KB

Adding screenshots

Before:
before

After:
before

Manjit.Singh’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
69.83 KB
68.55 KB

uploaded rtl screenshots as well ;)

content translation

content translation

seems like no regression issues.. :) changing status to RTBC.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 7: content-translation-css-2485409-7.patch, failed testing.

lauriii’s picture

Status: Needs work » Needs review
LewisNyman’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs screenshots

Back to RTBC

alexpott’s picture

Isn't there a patch somewhere to change this to use the standard admin layout classes?

LewisNyman’s picture

@alexpott These width properties are for table cells instead of regular elements so we can't apply the reuseable classes to them. I'm not sure how we can make this CSS more generic, so for now the best we can do it remove the CSSLint errors.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 880007d and pushed to 8.0.x. Thanks!

CSS is not frozen in beta.

  • alexpott committed 880007d on 8.0.x
    Issue #2485409 by rudraram, Manjit.Singh, LewisNyman: Clean up content...

Status: Fixed » Closed (fixed)

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