Problem/Motivation

Bartik's code needs to meet current Drupal coding standards.

Proposed resolution

This issue takes a specific section of Bartik's code, it acts as a "component" issue and improves that section of code with minimal impact on the rest of Bartik's codebase.

This issue aims to clean up and properly format the CSS and templates files without breaking Bartik visually.

This issue primarily looks at the css/components/content.css file.

Work that needs to be included in patches for this issue are fully outlined in the META issue #1342054: [META] Clean up templates and CSS.

The work needs to be crossed off the list below as completed or stated why they were not applicable to this issue in the comments below, to make sure we cover everything.

Also very helpful! Noting the list items in your comment with the patch to show what parts you added to the patch.

Create a patch containing the potential following work:

Code cleanup work

  1. Check each selector in the CSS file (associated with the particular issue) is in use within core right now.
    If not...
    a) Check to see if the classes in core have been changed and correct them (for e.g. I found this in this issue ).
    or
    b) Remove that CSS completely from the CSS file.
  2. a) Check the CSS selectors are not being replicated in other stylesheets in Bartik.
    b) Check the CSS properties are not being overridden by other stylesheets in Bartik.
    If a) move all of the properties to the selector in the stylesheet that you think most appropriate for the component you are dealing with.
    If a) and b) also remove the CSS properties and values being overridden within that ruleset.
  3. If you find CSS for a component which seems out of place in the file it is currently in move it to the one you think is the correct one.
  4. If a selector appears to be too long and/or too specific, check if the selector can be simplified. for eg. .something .something .something { } being modified to .something .something { }.
  5. Check that RTL styles exist when needed and are formatted as per the guidelines. (for e.g. we found that RTL styles are broken on certain pages in this issue, so fix anything you see missing/incorrect in the CSS file.
  6. If you think the contents of the CSS file could be further broken down into more components CSS files, or grouped together with other existing CSS files to form one component do it. The initial SMACSS issue may not of been perfect, guidelines on CSS file organisation for Drupal 8 can be found here.
  7. Check the markup from the templates that all of the classes are used as selectors in the CSS files. If not remove them. See an example issue here for this.

Code formatting work

  1. Add a File comment to the top of the stylesheet - see here for guidelines.
  2. Check any other comments are formatted correctly - see here for guidelines.
  3. Check Whitespace is being used correctly, this includes indentations and line breaks - see here for guidelines.
  4. Check the formatting of rulesets, properties and media queries are correct - see here for guidelines.
  5. As mentioned above, check existing RTL styles are formatted correctly - see here for guidelines.

Remaining tasks

  • Review the patch - code review and visual changes
    Review instructions:
    • Create a node with as much WYSIWYG content and different fields as you can.
    • Take before and after applied screenshots of the node at a few different screen widths to show nothing/something is broken on the frontend.

User interface changes

None, we are cleaning up CSS and markup in templates. The use of Bartik's UI and design will stay the same.

API changes

n/a

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue category Task because it is a code clean up overhaul of a theme.
Unfrozen changes Unfrozen because it only refactors CSS and templates, no changes to UI or APIs
Prioritized changes The main goal of this issue is usability and performance. We want Bartik code to be up to date and something to be proud of.
Disruption No disruption it's only refactoring code not changing how to use the theme
CommentFileSizeAuthor
#165 bartik-content-css-visual-testing.pdf13.74 MBemma.maria
#165 Screen Shot 2015-08-10 at 11.25.57.png385.17 KBemma.maria
#165 Screen Shot 2015-08-10 at 11.23.50.png391.38 KBemma.maria
#163 clean_up_the_content_2398463-162.patch20.87 KBemma.maria
#159 issue.png292.74 KBprabhurajn654
#157 clean_up_the_content_2398463-157.patch20.85 KBrachel_norfolk
#156 Screen Shot 2015-08-02 at 18.41.53.png600.72 KBemma.maria
#155 clean_up_the_content_2398463-155.patch21.48 KBemma.maria
#155 clean_up_the_content_2398463-155.patch21.48 KBemma.maria
#154 clean_up_the_content-2398463-154.patch21.2 KBLewisNyman
#154 intertdiff.txt1.21 KBLewisNyman
#146 clean_up_the_content-2398463-146.patch20.38 KBManjit.Singh
#138 clean_up_the_content-2398463-138.patch20.4 KBbixgomez
#138 interdiff-2398463-132-138.txt5.43 KBbixgomez
#132 clean_up_the_content-2398463-132.patch25.29 KBManjit.Singh
#130 cleanup-bartik-components-patch-130-no-regressions.pdf31.91 MBthamas
#130 interdiff-2398463-128-130.txt4.04 KBthamas
#130 clean_up_the_content-2398463-130.patch25.33 KBthamas
#129 cleanup-bartik-components-patch-128-regressions.pdf33.77 MBthamas
#128 clean_up_the_content-2398463-128.patch25 KBtadityar
#124 clean_up_the_content-2398463-124.patch24.91 KBhaasontwerp
#124 interdiff-107-124.txt2.27 KBhaasontwerp
#124 visual-test-succeeds.pdf21.41 MBhaasontwerp
#120 backstop.json_.zip628 bytesemma.maria
#118 visual-testing-with-user-created-content-fails.pdf41.33 MBemma.maria
#107 interdiff.txt984 bytespguillard
#107 clean-up-bartiks-contentcss-2398463-107.patch24.44 KBpguillard
#102 clean-up-bartiks-contentcss-2398463-102.patch200.97 KBmajmunbog
#102 interdiff.txt1.02 KBmajmunbog
#102 maintenance-page-without-patch.png48.64 KBmajmunbog
#102 maintenance-page-with-patch.png51.04 KBmajmunbog
#96 interdiff.txt3.19 KBthamas
#96 clean-up-bartiks-contentcss-2398463-96.patch24.52 KBthamas
#94 interdiff.txt11.51 KBthamas
#94 clean-up-bartiks-contentcss-2398463-94.patch23.93 KBthamas
#93 clean-up-bartiks-contentcss-2398463-93.patch15.27 KBthamas
#88 clean_up_the_content-2398463-88.patch7.63 KBManinders
#86 clean-up-bartiks-contentcss-2398463-86.patch17.75 KBLewisNyman
#83 interdiff.txt3.14 KBthamas
#83 clean-up-bartiks-contentcss-2398463-82.patch17.88 KBthamas
#76 screenshot-content-75-after.png41.69 KBthamas
#76 screenshot-content-75-before.png43.96 KBthamas
#75 interdiff-2398463-73-75.txt1.76 KBDickJohnson
#75 clean-up-bartiks-contentcss-2398463-75.patch18.08 KBDickJohnson
#73 interdiff-2398463-72-73.txt2.68 KBDickJohnson
#73 clean-up-bartiks-contentcss-2398463-73.patch18.24 KBDickJohnson
#72 interdiff-2398463-71-72.txt2.36 KBDickJohnson
#72 clean-up-bartiks-contentcss-2398463-72.patch17.34 KBDickJohnson
#71 clean-up-bartiks-contentcss-2398463-71.patch15.94 KBDickJohnson
#69 interdiff-66-69.txt11.41 KBtadityar
#69 clean-up-bartiks-contentcss-2398463-69.patch13.54 KBtadityar
#67 preview.png145.88 KBrteijeiro
#67 node.png123.47 KBrteijeiro
#66 clean-up-bartiks-contentcss-2398463-66.patch6.93 KBamolnw2778
#64 loaded-css-files.jpg246.7 KBamolnw2778
#63 node-css-file-not-loaded.png151.42 KBamolnw2778
#62 preview-before.png200.02 KBrteijeiro
#62 preview-after.png203.8 KBrteijeiro
#62 node-before.png247.85 KBrteijeiro
#62 node-after.png251.43 KBrteijeiro
#61 clean-up-bartiks-contentcss-2398463-61.patch4.52 KBamolnw2778
#57 clean-up-bartiks-contentcss-2398463-57.patch7.52 KBamolnw2778
#52 node-after.png193.77 KBrteijeiro
#52 preview-after.png194.96 KBrteijeiro
#52 preview.png250.16 KBrteijeiro
#52 node.png246.96 KBrteijeiro
#51 clean-up-bartiks-contentcss-2398463-51.patch8.98 KBamolnw2778
#47 clean-up-bartiks-contentcss-2398463-47.patch9.72 KBamolnw2778
#44 clean-up-bartiks-contentcss-2398463-44.patch9.74 KBamolnw2778
#41 clean-up-bartiks-contentcss-2398463-41.patch9.67 KBamolnw2778
#36 clean-up-bartiks-contentcss-2398463-36.patch9.65 KBamolnw2778
#34 clean-up-bartiks-contentcss-2398463-34.patch9.72 KBamolnw2778
#30 clean-up-bartiks-contentcss-2398463-30.patch2.01 KBamolnw2778
#28 clean-up-bartiks-contentcss-2398463-28.patch2.01 KBamolnw2778
#28 content-common-font-family-selectors.jpg10.46 KBamolnw2778
#27 unpublished-class.png67.09 KBDickJohnson
#25 clean-up-bartiks-contentcss-2398463-25.patch6.01 KBlauriii
#20 clean-up-bartiks-contentcss-2398463-20.patch8.63 KBlauriii
#16 interdiff-2398463-13-16.txt523 bytesDickJohnson
#16 clean-up-bartiks-contentcss-2398463-16.patch12.02 KBDickJohnson
#13 clean-up-bartiks-contentcss-2398463-13.patch12.02 KBDickJohnson
#9 clean-up-bartiks-contentcss-2398463-9.patch9.08 KBDickJohnson
#1 clean-up-bartiks-contentcss-2398463-2.patch768 bytesDickJohnson
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DickJohnson’s picture

Status: Active » Needs work
FileSize
768 bytes

While working for #2398461: Clean up the "comments" component in Bartik I noticed that styles for unpublished comments where both in comments.css and content.css. So removed it from content.css.

A patch that is doing only that.

adci_contributor’s picture

Status: Needs work » Needs review

Just to test request

adci_contributor’s picture

Status: Needs review » Needs work
emma.maria’s picture

Title: Clean up "content" CSS in Bartik » Clean up the "content" component in Bartik
DickJohnson’s picture

Took a quick look inside of current content.css file. Content as a name is way too generic and the file should be splitted up.

On lines 19-44 we have stuff that is related to view mode teaser in all content types. I would split this one up to it's own file.
On lines 61-91 we have stuff that is related to taxonomy term reference field. I'd put it either to it's own file or then I'd create a new file for all field-related styles.
On lines 117-177 we have node-preview related stuff which should be in already existing component called node-preview. Didn't make a complete check but it looks like most of it already is there.

Rest of the stuff is mostly .node__meta, .node__links, .node--unpublished etc node-related so for that I might create one file called node.css.

I will take a look on template a bit later.

DickJohnson’s picture

#content has mentions in 6 different css-files:
1. admin.css
.path-admin #content image
2. content.css
#content h2
3. form.css
#content h2.comment-form
4. layout.css
50 different mentions
5. maintenance-page.css
.maintenance-page #content .section
6. print.css
.one-sidebar #content
.two-sidebars #content

I'm not sure if these should be handled together with this issue, but those mostly look like things we should get rid of.

DickJohnson’s picture

By looking to page.html.twig I think that

        <main id="content" class="column" role="main">
          <section class="section">
            {% if page.highlighted %}<div id="highlighted">{{ page.highlighted }}</div>{% endif %}
            <a id="main-content" tabindex="-1"></a>
            {{ title_prefix }}
            {% if title %}
              <h1 class="title" id="page-title">
                {{ title }}
              </h1>
            {% endif %}
            {{ title_suffix }}
            {% if tabs %}
              <nav class="tabs" role="navigation" aria-label="{{ 'Tabs'|t }}">
                {{ tabs }}
              </nav>
            {% endif %}
            {{ page.help }}
            {% if action_links %}
              <ul class="action-links">{{ action_links }}</ul>
            {% endif %}
            {{ page.content }}
          </section>  <!-- /.section -->
        </main> <!-- /#content -->

That area is the one we should be looking for in this issue?

emma.maria’s picture

Just adding this as it was raised in this issue #2064379: Remove ckeditor-iframe.css and load relevant Bartik CSS files for CKEditor's iframe mode.. I agree with Wim and #5 in this issue. We should rename content.css to node.css as there are so many node styles and make sure all of the unapplicable CSS is split out into the correct components.

DickJohnson’s picture

Status: Needs work » Needs review
FileSize
9.08 KB

Worked a bit on this. Compared node-preview related stuff and it was already on node-preview.css, so I removed it. Changed the file name to node.css also.

tadityar’s picture

Hello!
This is my input reg patch in #9. How about making the diff with git diff -C --staged after adding all files so that the history won't be lost?

tadityar’s picture

Status: Needs review » Needs work
tadityar’s picture

Oh yeah my comment in #10 is about the renaming of content.css to node.css

DickJohnson’s picture

Status: Needs work » Needs review
FileSize
12.02 KB

Worked a bit on this.
1. Separated purely field-related stuff to field.css.
2. Moved ul.links to list.css.
3. Changed node__meta to node__metadata in node.html.twig and changed the css to match that change.
4. Changed h1-id to class and css to match that.
5. Added few comments to files.

Status: Needs review » Needs work

The last submitted patch, 13: clean-up-bartiks-contentcss-2398463-13.patch, failed testing.

Wim Leers’s picture

Invalid library definition in core/themes/bartik/bartik.libraries.yml: Unexpected characters near ";" at line 16 (near "css/components/field.css: {};").

+++ b/core/themes/bartik/bartik.libraries.yml
@@ -10,11 +10,11 @@ global-styling:
+      css/components/field.css: {};

i.e. this. Should be an easy fix :)

DickJohnson’s picture

lauriii’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 16: clean-up-bartiks-contentcss-2398463-16.patch, failed testing.

DickJohnson’s picture

Issue tags: +Needs reroll

Content.css has been changed since my last patch so it needs reroll.

lauriii’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
FileSize
8.63 KB

page.html.twig has changed a bit so needed to reroll it. Also compiled multiple class attributes into one.

LewisNyman’s picture

Status: Needs review » Needs work

@lauriii It looks like we're missing the new node.css and field.css files?

+++ b/core/themes/bartik/templates/node.html.twig
@@ -83,7 +83,7 @@
-      <div class="node__meta">
+      <div class="node__metadata">

I would be careful about doing this just in Bartik. This should be consistent across of core

DickJohnson’s picture

"node__meta" has one mention outside Bartik, it's in core/modules/node/templates/node.html.twig line 92 <footer class="node__meta">.

My current quess is that it's not consistent across of core, but no idea how to grep all possible options.

tadityar’s picture

btw patch in #20 didn't move the content of content.css to node.css

thamas’s picture

lauriii’s picture

LewisNyman’s picture

Status: Needs review » Needs work
  1. +++ b/core/themes/bartik/css/components/list.css
    @@ -65,3 +65,7 @@ ul.tips {
    +ul.links {
    +  color: #68696b;
    +  font-size: 0.821em;
    +}
    

    This styling is still in node.css. Is this a node specific thing? Maybe we should change the class to node__links?

  2. +++ b/core/themes/bartik/css/components/node.css
    @@ -0,0 +1,94 @@
    +.content {
    +  margin-top: 10px;
    +}
    +.content__page-title {
    

    The content component should stay in the content.css file

  3. +++ b/core/themes/bartik/css/components/node.css
    @@ -0,0 +1,94 @@
    +  line-height: 1;
    ...
    +  line-height: 1.4;
    ...
    +  line-height: 1.6;
    

    We always add em to the end of line height units.

  4. +++ b/core/themes/bartik/css/components/node.css
    @@ -0,0 +1,94 @@
    +/* Is this actually targetting something? */
    

    Can we not leave these kinds of comments in the code? Conversation happens in the issue queue.

  5. +++ b/core/themes/bartik/css/components/node.css
    @@ -0,0 +1,94 @@
    +.node__content {
    +  font-size: 1.071em;
    +  margin-top: 10px;
    +}
    +/* Visual styles for view mode teaser */
    +.node--view-mode-teaser .node__content {
    +  font-size: 1em;
    +}
    

    If we specify the full-content view mode gets the increased font size, then we won't have to reset it for the teaser, right?

  6. +++ b/core/themes/bartik/css/components/node.css
    @@ -0,0 +1,94 @@
    +.node--unpublished,
    +.unpublished {
    

    Why do we have two classes? I don't think we use both

  7. +++ b/core/themes/bartik/templates/page.html.twig
    @@ -126,12 +126,12 @@
    -              <h1 class="title" id="page-title">
    +              <h1 class="title" class="content__page-title">
    

    I think this makes more sense as just page-title. No reason for it to sit inside of component, also we have two class attributes now, I wonder if we can remove title....

My current quess is that it's not consistent across of core, but no idea how to grep all possible options.

I mean the system node.html.twig file, that has node__meta so if we are going to change the class we should do it there as well. Probably in another issue

DickJohnson’s picture

FileSize
67.09 KB

Node--unpublished points to unpublished nodes. Unpublished points to unpublished comments. So that should probably go under comments component and I'd like to see it as node--comment__unpublished or something.
unpublished

amolnw2778’s picture

Concatenated common font-family selectors in three CSS files - content.css, header.css, tabs.css

rteijeiro’s picture

Nice job @Amol,

A few things to consider:

- Don't forget to change issue status to "Needs review" in order to let testbot to test your patch and let reviews know that you submitted it.
- Your patch doesn't include the changes in the patch in comment #25: https://www.drupal.org/node/2398463#comment-9544083
- Read carefully the comments #26 and #27 and fix those suggestions.

amolnw2778’s picture

Status: Needs work » Needs review
FileSize
2.01 KB

Updated patch with #25 merged!

rteijeiro’s picture

Status: Needs review » Needs work

Nice work, @Amol. There are still a few things to do:

- In core/themes/bartik/css/components/content.css file I can see a few errors reported by CSSLint. For example the use of IDs and overqualified elements.

Please, check the errors in this list made by @lewisnyman: http://lewisnyman.co.uk/drupalcore-frontend-toolkit

Let me know if you need help.

DickJohnson’s picture

It doesn't look like #25 + #28 to me. In #25 there's a file called field.css, things done in page.html.twig and bartik.libraries.yml.

The last submitted patch, 30: clean-up-bartiks-contentcss-2398463-30.patch, failed testing.

amolnw2778’s picture

Status: Needs work » Needs review
FileSize
9.72 KB

Updated patch considering comments #31, #32

Status: Needs review » Needs work

The last submitted patch, 34: clean-up-bartiks-contentcss-2398463-34.patch, failed testing.

amolnw2778’s picture

Status: Needs work » Needs review
FileSize
9.65 KB

Updated patch with minor correction. Hoping this will pass the test!

Status: Needs review » Needs work

The last submitted patch, 36: clean-up-bartiks-contentcss-2398463-36.patch, failed testing.

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 36: clean-up-bartiks-contentcss-2398463-36.patch, failed testing.

tadityar’s picture

@amolnw2778 are you sure you are working with the latest updates of Drupal?
The patch can't be applied because things have changed since the version of Drupal you're using.
Please git reset HEAD --hard and git pull origin 8.0.x before making a patch :)

amolnw2778’s picture

FileSize
9.67 KB

+updates

amolnw2778’s picture

Status: Needs work » Needs review

ignore #41. Needs review

Status: Needs review » Needs work

The last submitted patch, 41: clean-up-bartiks-contentcss-2398463-41.patch, failed testing.

amolnw2778’s picture

Status: Needs work » Needs review
FileSize
9.74 KB

Fixes

Status: Needs review » Needs work

The last submitted patch, 44: clean-up-bartiks-contentcss-2398463-44.patch, failed testing.

tadityar’s picture

@amolnw2778 When applying the patch the error lies in content.css, which means your content.css file is not up to date. It's also nice to post an interdiff after each change, see interdiff.

amolnw2778’s picture

Status: Needs work » Needs review
FileSize
9.72 KB

+1 content.css error fixes? hope so!

tadityar’s picture

@amolnw2778 Great Job! I'll leave the reviewing to others :)

amolnw2778’s picture

@tadityar this worked for me git fetch then git reset --hard origin/8.0.x but not yours, sorry! And thanks for the help :)

LewisNyman’s picture

Status: Needs review » Needs work

Thanks for the patches here! I think there are a few changes that need to be closer aligned to our CSS coding standards

  1. +++ b/core/themes/bartik/css/components/content.css
    @@ -4,45 +4,26 @@
    +
    +/* @group Common font family */
    +
    +.node__meta,
    +.field-type-taxonomy-term-reference,
    +ul.links,
    +#page .ui-widget,
    +.content .ui-widget {
    +  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    

    I think we want to keep the font family in each component, it's important to keep all the styling for, see #2398447: Remove the "typography" CSS file in Bartik

  2. +++ b/core/themes/bartik/css/components/content.css
    @@ -91,35 +71,14 @@ h1#page-title {
    -.node--unpublished,
     .unpublished {
    

    We want to keep the node---unpublished file, the unpublished class is the one that is too broad and we should remove that one

  3. +++ b/core/themes/bartik/css/components/content.css
    @@ -139,10 +98,28 @@ ul.links {
    +
    +/* @group common background image selectors */
    +
    

    We don't usually use @group tags in CSS, can we use standards docblocks please?

  4. +++ b/core/themes/bartik/css/components/content.css
    @@ -139,10 +98,28 @@ ul.links {
    +.node-preview-backlink,
    +.node-preview-backlink:focus,
    +.node-preview-backlink:hover,
    +.node-preview-backlink:active {
    +  background-image: url(../../../../misc/icons/000000/chevron-left.svg);
    +  background-repeat: no-repeat;
    +  background-position: left;
    +}
    

    I think we only need the one class here, as the focus/hover/active selectors will inherit from it'?

  5. +++ b/core/themes/bartik/css/components/tabs.css
    @@ -1,18 +1,17 @@
    -div.tabs {
    -  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    -  margin-bottom: 20px;
    -}
    +div.tabs,
     .tabs ul.primary {
       font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
     }
    +div.tabs {
    +  margin-bottom: 20px;
    +}
    

    I'm confused, why are we removing the margin?

amolnw2778’s picture

Status: Needs work » Needs review
FileSize
8.98 KB

Considered @LewisNyman's points.

  1. Separated font-family selectors. Gone through the link. But still recommends to use global font-family at one place and let it inherit for all child selectors. Wonder if we could have one global stylesheet file, which takes care of all repetitive properties.
  2. Removed unpublished class and moved .node--unpublished to node.css. How about moving all ^.node selectors to node.css?
  3. Cleaned.
  4. Agreed! Cleaned.
  5. Margin wasn't removed.
rteijeiro’s picture

Issue summary: View changes
Status: Needs review » Needs work
FileSize
246.96 KB
250.16 KB
194.96 KB
193.77 KB

Nice job @Amol,

A few questions that maybe @lewisnyman can resolve:

+++ b/core/themes/bartik/bartik.libraries.yml
@@ -15,6 +15,7 @@ global-styling:
+      css/components/field.css: {}

I think we should remove this library dependency because the CSS file doesn't exist.

--- a/core/themes/bartik/bartik.libraries.yml
+++ b/core/themes/bartik/bartik.libraries.yml

@@ -15,6 +15,7 @@ global-styling:
       # @see https://www.drupal.org/node/2389735

@@ -22,6 +23,7 @@ global-styling:
+      css/components/node.css: {}

Same here.

+++ b/core/themes/bartik/css/components/content.css
@@ -139,10 +86,20 @@ ul.links {
+/* Grouped common background image selectors */
+.node-preview-backlink {
+  background-image: url(../../../../misc/icons/000000/chevron-left.svg);
+  background-repeat: no-repeat;
+  background-position: left;
+}
+[dir="rtl"] .node-preview-backlink {
+  background-image: url(../../../../misc/icons/000000/chevron-right.svg);
+  background-repeat: no-repeat;
+  background-position: right;
+}

We are not using /* LTR */ comment to indicate left-to-right styling anymore?

It still needs some work. You can see in the following screenshots that sidebar first blocks disappear and preview page is different (check preview button in the top):

Node BEFORE

Node AFTER

Preview BEFORE

Preview AFTER

emma.maria’s picture

Assigned: Unassigned » LewisNyman
DickJohnson’s picture

Original idea was to get rid of content.css and replace it with node.css and field.css. Content as name is way too generic and its not a component.

LewisNyman’s picture

Separated font-family selectors. Gone through the link. But still recommends to use global font-family at one place and let it inherit for all child selectors. Wonder if we could have one global stylesheet file, which takes care of all repetitive properties.

Ok, but this is undoing the work that we have just done in #2398447: Remove the "typography" CSS file in Bartik right? We are not in a situation where we can set one global font-family and let it inherit for everything, because we use two different font families for two different situations.

It's important that we try and make decisions that are inline with our CSS coding standards to keep our CSS consistent and predictable.

LewisNyman’s picture

  1. +++ b/core/themes/bartik/css/components/content.css
    @@ -139,10 +86,20 @@ ul.links {
    +/* Grouped common background image selectors */
    

    We need a full stop at the end of this comment.

  2. +++ b/core/themes/bartik/css/components/content.css
    index 0d4cb58..439e6b4 100644
    --- a/core/themes/bartik/css/components/header.css
    
    +++ b/core/themes/bartik/css/components/header.css
    index d927c69..7a58c89 100644
    --- a/core/themes/bartik/css/components/tabs.css
    

    There are a few changes to other files that are not within the scope of this issue. Please try and keep all changes within the scope of this issue.

amolnw2778’s picture

Assigned: LewisNyman » amolnw2778
Status: Needs work » Needs review
FileSize
7.52 KB

@Ruben #52:

  1. Thanks for pointing out the preview issue. Its fixed!
  2. node.css is used to take out all node
  3. node.css, field.css not exist, but has in the previous patch flow, hence included. @LewisNyman your call.

@LewisNyman #56

  1. Full stop at the end of comment
  2. Excluded header.css and tabs.css, but kept node.css due to patch flow.
DickJohnson’s picture

In @lauriiis patch #25 field.css had all field-spesific styles.

LewisNyman’s picture

Assigned: amolnw2778 » Unassigned
LewisNyman’s picture

Status: Needs review » Needs work

Thanks for the progress, we need to add the node.css and field.css files to the next patch.

  1. +++ b/core/themes/bartik/css/components/content.css
    @@ -4,43 +4,15 @@
    -h1#page-title {
    +#page-title {
    

    This needs to be changed to a class not an ID.

  2. +++ b/core/themes/bartik/css/components/content.css
    @@ -119,19 +72,10 @@ ul.links {
    -  background: #d1e8f5;
    -  background-image: -webkit-linear-gradient(top, #d1e8f5, #d3e8f4);
    -  background-image: linear-gradient(to bottom, #d1e8f5, #d3e8f4);
    +  background-color: #d1e8f5;
    +  background-color: -webkit-linear-gradient(top, #d1e8f5, #d3e8f4);
    +  background-color: linear-gradient(to bottom, #d1e8f5, #d3e8f4);
    

    We are setting the gradients on background color when they need to be set on background image, see the MDN documentation:

    The CSS linear-gradient() function creates an which represents a linear gradient of colors.

  3. +++ b/core/themes/bartik/css/components/content.css
    @@ -139,10 +83,15 @@ ul.links {
     .node-preview-backlink {
       background-color: #419ff1;
    -  background: url(../../../../misc/icons/000000/chevron-left.svg) left no-repeat, -webkit-linear-gradient(top, #419ff1, #1076d5);
    -  background: url(../../../../misc/icons/000000/chevron-left.svg) left no-repeat, linear-gradient(to bottom, #419ff1, #1076d5); /* LTR */
    +  background-color: -webkit-linear-gradient(top, #419ff1, #1076d5);
    +  background-color: linear-gradient(to bottom, #419ff1, #1076d5); /* LTR */
    +  background-image: url(../../../../misc/icons/000000/chevron-left.svg); /* LTR */
    +  background-repeat: no-repeat;
    +  background-position: left;
    

    Writing these values in separate properties is less efficient then the previous implementation, we don't need to declare them separate because this is the first time we are setting these properties.

  4. +++ b/core/themes/bartik/css/components/content.css
    @@ -154,36 +103,32 @@ ul.links {
     .node-preview-backlink:focus,
    -.node-preview-backlink:hover {
    +.node-preview-backlink:hover,
    +[dir="rtl"] .node-preview-backlink:focus,
    +[dir="rtl"] .node-preview-backlink:hover {
    

    We don't need to add the rtl selectors here because they are inherited anyway.

  5. +++ b/core/themes/bartik/css/components/content.css
    @@ -154,36 +103,32 @@ ul.links {
    +  background-color: linear-gradient(to bottom, #59abf3, #2a90ef); /* LTR */
    

    This is not an LTR specific property so we don't need to add the comment here

  6. +++ b/core/themes/bartik/css/components/content.css
    @@ -154,36 +103,32 @@ ul.links {
    +.node-preview-backlink:active,
    +[dir="rtl"] .node-preview-backlink:active {
    

    We don't need the rtl selector here

amolnw2778’s picture

Status: Needs work » Needs review
FileSize
4.52 KB

Updated patch

rteijeiro’s picture

Status: Needs review » Needs work
FileSize
251.43 KB
247.85 KB
203.8 KB
200.02 KB

I think it still needs some work. There are things that change a little, like authoring font size (author and date) and the position of the body. Check screenshots:

Preview BEFORE

Preview AFTER

Node BEFORE

Node AFTER

amolnw2778’s picture

FileSize
151.42 KB

Question to experts!

I have included node.css in bartik.libraries.yml file css/components/node.css, but to surprise, node.css was not loaded on the page when I tested it in browser. See screenshot
node-css-file-not-loaded.png

And that is why the CSS styles moved from content.css to node.css, is not getting applied! @Ruben has mentioned it as UI issue, which I doubt.

So two questions:

  1. Why node.css is not getting loaded?
  2. An alternative way to load node.css (at for testing)?
amolnw2778’s picture

FileSize
246.7 KB

Following CSS files included in header in 'View Source'
https://www.drupal.org/files/issues/loaded-css-files.jpg

rteijeiro’s picture

@amolnw2778, your patch doesn't include node.css file. I can't find it in core/themes/bartik/css/components/node.css

Check patch in comment #25 and include node.css file and corrections pointed in comment #26, please.

amolnw2778’s picture

Status: Needs work » Needs review
FileSize
6.93 KB

Updated patch with node.css included

rteijeiro’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
123.47 KB
145.88 KB

Now it's fixed. Thanks @Amol! Nice work!!

Node

Preview

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
  1. +++ b/core/themes/bartik/bartik.libraries.yml
    @@ -15,6 +15,7 @@ global-styling:
    +      css/components/field.css: {}
    

    Where is field.css

  2. +++ b/core/themes/bartik/css/components/content.css
    @@ -119,15 +69,6 @@ ul.links {
     .node-preview-container {
    

    Should this be here on in node - I would have thought node.

  3. +++ b/core/themes/bartik/css/components/node.css
    @@ -0,0 +1,96 @@
    +}
    \ No newline at end of file
    

    No new line at end of file.

tadityar’s picture

Status: Needs work » Needs review
FileSize
13.54 KB
11.41 KB

Trying to fix issues mentioned in #68.

emma.maria’s picture

Status: Needs review » Needs work

Reviewing the latest patch I have noticed that the most recent patches seem to contain very different content to the patch back in #25. The most recent patch also includes brand new CSS that did not exist originally in Bartik and has moved away from the great progress in #25. It has become very difficult to review with the variety of changes plus no interdiff files to accompany the patches.

As we have lost track of things I suggest we start over by creating a patch using the patch in #25 and adding the improvements suggested in #26. Then we can move on from there.

Here are instructions on how to apply the last patch someone worked on: Applying patches

How to create an interdiff to show the changes between the last patch and the patch you created: Interdiff instructions

DickJohnson’s picture

Status: Needs work » Needs review
FileSize
15.94 KB

Rerolled to #25 as @emma.maria said in #70. Starting to work on #26 and forward now.

Interdiff was not possible.

DickJohnson’s picture

Fixed most of the issues from #72. Still continuing with this one.

DickJohnson’s picture

Fixed em and page-title things from #26. Now this is really in need of review.

LewisNyman’s picture

Status: Needs review » Needs work

Looking good!

  1. +++ b/core/themes/bartik/css/components/comments.css
    +++ b/core/themes/bartik/css/components/comments.css
    @@ -97,6 +97,18 @@
    
    @@ -97,6 +97,18 @@
       padding: 5px 5px 5px 2px;
     }
    +/**
    + * @todo:
    + * unpublished nodes have class .node--unpublished
    + * change this to .comment--unpublished
    + */
    

    We need a blank line before a comment

  2. +++ b/core/themes/bartik/css/components/node.css
    @@ -0,0 +1,67 @@
    +.content,
    +.node__content {
    +  margin-top: 10px;
    +}
    

    Can we remove the .content class from this file and have this styling in content?

  3. +++ b/core/themes/bartik/css/components/node.css
    @@ -0,0 +1,67 @@
    +.content h2 {
    +  margin-bottom: 2px;
    

    This feels like it should go inside the content file?

  4. +++ b/core/themes/bartik/css/components/node.css
    @@ -0,0 +1,67 @@
    +}
    +/* View mode teaser styles*/
    +.node--view-mode-teaser .node__content {
    +  font-size: 1em;
    +}
    

    We also need a blank line before here

  5. +++ b/core/themes/bartik/css/components/node.css
    @@ -0,0 +1,67 @@
    +  line-height: 1.6em;
    +}
    +/* Node metadata styles */
    +.node__meta {
    ...
    +}
    +/* Unpublished node styles */
    +.node--unpublished {
    +  padding: 20px 15px 0;
    

    Also here

DickJohnson’s picture

Status: Needs work » Needs review
FileSize
18.08 KB
1.76 KB

Fixed #74.1-#74.5.

thamas’s picture

Issue summary: View changes
Status: Needs review » Needs work
FileSize
43.96 KB
41.69 KB

After applying the patch the layout is broken. Code review later.

Before:

After:

thamas’s picture

+++ b/core/themes/bartik/templates/page.html.twig
@@ -124,12 +124,12 @@
+              <h1 class="title" class="page-title">

Class is declared two times, it does not seem to work.

thamas’s picture

+++ b/core/themes/bartik/css/layout.css
@@ -178,30 +178,30 @@ body,
-  .layout-sidebar-first #content {
+  .layout-sidebar-first .content {
     margin-left: 25%; /* LTR */
     margin-right: 0; /* LTR */
   }

The goal of the layout rules defined here (and before and after) is to affect the main html element in our page template which have a content class (page.html.twig, line 127).

However some levels deeper we have a div which also has the content class (defined by block.html.twig, line 52). This exact code shifts the content to the right which can be seen on my screenshot above, but in other situations (left sidebar etc) the same class can generate further problems.

LewisNyman’s picture

@thamas Ah yes, that is true, I think .content is too generic to be a reliable class, my suggestion is .main-content. Hopefully we will also fix the block classes soon as well to .block__content

thamas’s picture

@LevisNyman So the next patch should change the class of the main element to .main-content but changing the class of the block will be the subject of an other issue. Am I right?

thamas’s picture

It is also the .content class of div what breaks the layout of the sidebar blocks. (See screenshot in #76.)
It worth to mention that there is a .sidebar .block .content selector at line 20 in sidebar.css so we will lost its formatting when rename the block's class to block__content!

thamas’s picture

+++ b/core/themes/bartik/bartik.libraries.yml
@@ -10,18 +10,20 @@ global-styling:
-      css/components/content.css: {}

+++ b/core/themes/bartik/css/components/comments.css
@@ -97,6 +97,19 @@
diff --git a/core/themes/bartik/css/components/content.css b/core/themes/bartik/css/components/content.css

diff --git a/core/themes/bartik/css/components/content.css b/core/themes/bartik/css/components/content.css
index 6c70680..7ce5dc1 100644

index 6c70680..7ce5dc1 100644
--- a/core/themes/bartik/css/components/content.css

--- a/core/themes/bartik/css/components/content.css
+++ b/core/themes/bartik/css/components/content.css

+++ b/core/themes/bartik/css/components/content.css
+++ b/core/themes/bartik/css/components/content.css
@@ -1,193 +1,19 @@

@@ -1,193 +1,19 @@
-/* ----------------- Content ------------------ */
+/**
+ * @file
+ * Visual styles for Bartik's content component.
+ */
 
-.content,
-.node__content {
+.content {
   margin-top: 10px;

content.css is removed while it has styling??

thamas’s picture

Status: Needs work » Needs review
FileSize
17.88 KB
3.14 KB

Fixed the issues mentioned in previous comments. Also set back the main content anchor class to id whicgh had been changed by accident.

(We still have several id-s in page.html.twig. Is this the subject of an other issue?)

(I missed the patch number, sorry.)

DickJohnson’s picture

We have different clean up issues for every component. So yes, we will get rid of all ID's in page.html.twig, but it's going to take some time.

LewisNyman’s picture

@LevisNyman So the next patch should change the class of the main element to .main-content but changing the class of the block will be the subject of an other issue. Am I right?

Yep that makes sense, let's try and fix everything in content and avoid changing things in other files that we don't have to to fix content

LewisNyman’s picture

LewisNyman’s picture

Status: Needs review » Needs work

We are almost there!

  1. +++ b/core/themes/bartik/css/components/content.css
    @@ -1,188 +1,19 @@
    -h1#page-title {
    +.page-title {
       font-size: 2em;
    -  line-height: 1;
    

    Can we move the page-title component into its own file?

  2. +++ b/core/themes/bartik/css/components/content.css
    @@ -1,188 +1,19 @@
     .region-content ul,
     .region-content ol {
    

    Is it possible to use the .content class here as a wrapper instead of region-content? Then all the classes would match the file name

  3. +++ b/core/themes/bartik/templates/page.html.twig
    @@ -120,12 +120,12 @@
    -        <main id="content" class="column" role="main">
    +        <main class="main-content column" role="main">
    

    We've changed the class from content to main-content now right? There are still a lot of instances of the .content class, also the name of the files needs to be main-content.css instead of content.css

Maninders’s picture

#87 I worked on the 3rd step of that. I am not able to understand 1st and 2nd point. Please elaborate that.

Maninders’s picture

Status: Needs work » Needs review
Issue tags: +SprintWeekend2015

#87 I worked on the 3rd step of that. I am not able to understand 1st and 2nd point. Please elaborate that.

Status: Needs review » Needs work

The last submitted patch, 88: clean_up_the_content-2398463-88.patch, failed testing.

LewisNyman’s picture

@Maninders Looks like your patch is missing a lot of changes from the previous patch?

thamas’s picture

Assigned: Unassigned » thamas
Issue tags: +Needs reroll

@LewisNyman So I will continue from #86 and #87

thamas’s picture

Rerolled. Currently applies to the latest HEAD.

Still needs to work in things mentioned in #87

thamas’s picture

Status: Needs work » Needs review
FileSize
23.93 KB
11.51 KB

Made the changes mentioned in #87.

Also removed duplicated code from (main-)content.css which was added in the last reroll and moved new code which was added since the #87 into their own components.

LewisNyman’s picture

Status: Needs review » Needs work

The only code improvement I could find was:

+++ b/core/themes/bartik/css/components/block.css
@@ -3,6 +3,12 @@
+.content {
+  margin-top: 10px;
+}

If this is only for the block component then we should add the .block class to the selector so it can't affect anything else

thamas’s picture

Status: Needs work » Needs review
FileSize
24.52 KB
3.19 KB

Made the recommended change from #95.

Also looked for selectors which was not changed from .content to .main-content. Found some and also fixed some code comment issues of those files.

Cleaning up content.css now seems to be ready (as we are left with only some lines) but I think we need follow up issues to clean up / refactor a lot of other (new) components.

thamas’s picture

  1. +++ b/core/themes/bartik/css/components/form.css
    @@ -237,9 +241,6 @@ input.form-submit:focus {
    -#content h2.comment-form {
    -  margin-bottom: 0.5em;
    -}
    

    .comment-form class does not exist anymore. Comment form's title is styled in comments.css.

  2. +++ b/core/themes/bartik/css/maintenance-page.css
    @@ -24,10 +24,10 @@ body.maintenance-page {
    -.maintenance-page #content .section {
    +.maintenance-page .content .section {
       padding: 0 0 0 10px; /* LTR */
     }
    -[dir="rtl"] .maintenance-page #content .section {
    +[dir="rtl"] .maintenance-page .content .section {
       padding-left: 0;
       padding-right: 10px;
     }
    

    These rules does not apply but it is good, because it would be a broken layout. I do not know the motivation of these rules but it seems to me that they could be removed.

Status: Needs review » Needs work

The last submitted patch, 96: clean-up-bartiks-contentcss-2398463-96.patch, failed testing.

LewisNyman’s picture

Status: Needs work » Needs review
Issue tags: +Needs screenshots, +Needs visual regression testing

@thamas Ok thanks, I think a screenshot of the maintenance page would be useful to show we haven't broken anything?

Also tagging for visual regression testing.

+++ b/core/themes/bartik/css/components/admin.css
@@ -1,12 +1,16 @@
-/* ---------- Admin-specific Theming ---------- */
-.path-admin .content img {
+/**
+ * @file
+ * Visual styles for using Bartik as an adminstration theme.
+ */

+++ b/core/themes/bartik/css/components/form.css
@@ -1,11 +1,14 @@
-/* -------------- Password Field  ------------- */
+/**
+ * @file
+ * Visual styles for Bartik's forms.
+ */
...
-/* -------------- Form Elements   ------------- */
-
+/* Form elements. */

We should avoid making changes to files outside the scope of this issue so we don't overlap with other issues, can you remove these comment changes please?

LewisNyman’s picture

Status: Needs review » Needs work
Issue tags: +Novice

Setting to needs work toe revert the comment changes about. Feels like it's a novice issue

majmunbog’s picture

Finished all the changes from the comment #100

Maintenance page looks the same as before the patch.

patch
patch

Status: Needs review » Needs work

The last submitted patch, 102: clean-up-bartiks-contentcss-2398463-102.patch, failed testing.

LewisNyman’s picture

@trboslav I think there is a another patch mixed in with the patch you posted?

thamas’s picture

@trboslav thanks for your work! Something must have gone wrong because there is a lot of "noise" (unneeded code at the beginning of the patch). We can fix it in the next step if you have more energy to work on it… :)

For anyone who feels that the screenshots shows that the two states are different: they are not, only the size of the two picture differs.

thamas’s picture

+++ b/core/themes/bartik/css/components/form.css
@@ -1,11 +1,9 @@
 /* -------------- Password Field  ------------- */
-
 .password-field {
...
 /* -------------- Form Elements   ------------- */
-
 form {

As we keep the original comment style of the forms.css file (in this issue) these empty lines should not be removed I think.

pguillard’s picture

Rerolled : I took #96 and applied what is suggested at #100 and #106

Maintenance page after patch :
after-patch

rteijeiro’s picture

Status: Needs work » Needs review

Let's test it!

thamas’s picture

@pguillard thanks! Patch applies flawlessly.

+++ b/core/themes/bartik/css/components/form.css
@@ -1,11 +1,14 @@
-/* -------------- Password Field  ------------- */
...
-/* -------------- Form Elements   ------------- */
-

Lewis asked in #100 to keep this original comments. I do not know if it is really important.

What do you think Lewis?

thamas’s picture

So it is (almost) OK. How should it be reviewed (beyond checking the code)? Summary talks about screenshots but we could say what pages / content should be in screenshots.

Should / can we list the tasks of reviewing (by editing the summary)?

thamas’s picture

Assigned: thamas » Unassigned
ti2m’s picture

I checked the patch in #107 with siteeffect and I couldn't find any regressions.

pguillard’s picture

Cool. Maybe RTBC ?

LewisNyman’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs screenshots, -Needs visual regression testing

Great, thanks! Looks like it's ready to go. Good work everyone

emma.maria’s picture

Status: Reviewed & tested by the community » Needs review

Thanks, before we set this to RTBC we should test the patch with examples of user generated content. This issue is for the content component so we should thoroughly test this and then post some screenshots to the issue.

Review instructions:

- Create a node with as much WYSIWYG content and different fields as you can.
- Take before and after applied screenshots of the node at a few different screen widths.

thamas’s picture

Issue summary: View changes
emma.maria’s picture

Issue tags: +drupaldevdays
emma.maria’s picture

Status: Needs review » Needs work
FileSize
41.33 MB

To review this issue I added dummy content to every block and also created 2 nodes and a view of the nodes.

I found a ton of visual regressions. I tested many URLs at 3 screen widths detailed in the test results and compared Bartik before and after applying the patch.

Attached is a pdf file containing all of the fails from the tool I used. I am going to go through and highlight the sections that are a problem in a follow up comment.

thamas’s picture

@emma.maria Could you share the backtopjs.json you used for this test? Thanks!

emma.maria’s picture

FileSize
628 bytes

@thamas
Sure I've added it here. Also for my list of tests you need to create node/1 and node/2 content in Drupal, and a view of articles called article-view to get all results.
Also do not forget to enable all permissions in Drupal as the library tests as a logged out user.

thamas’s picture

Assigned: Unassigned » thamas

Thanks @emma.maria! I create a similar test and will fix the problems.

haasontwerp’s picture

@thamas, are you still working on this issue? I got asked to look at this issue at the devdays as well, and i also have a solution. Thnx!

emma.maria’s picture

Assigned: thamas » Unassigned

I am un-assigning, I have tried contacting @thamas through IRC and the issue and I have spoken to @haasontwerp who has a patch ready to contribute to this issue.

haasontwerp’s picture

So biggest problem was that node.css wasn't loading. After a clearing my cache, it did load and there were only a few minor visual differences, which i fixed.

haasontwerp’s picture

Status: Needs work » Needs review
thamas’s picture

@haasontwerp @emma.maria Sorry for being unavailable, I was on my way to home in the last days.

thamas’s picture

Status: Needs review » Needs work
Issue tags: -Novice +Needs reroll

Patch does not apply to the latest head… :(

tadityar’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
FileSize
25 KB

Hope I rerolled it rightly.

thamas’s picture

Status: Needs review » Needs work
FileSize
33.77 MB

Patch applies to the latest head but there are visual regressions. (See the attached pdf.)

thamas’s picture

New patch. Applies to the latest head. No visual regressions. Comments later. :)

LewisNyman’s picture

Status: Needs review » Needs work

Great work! I found only a few things to fix.

+++ b/core/themes/bartik/css/components/comments.css
@@ -116,6 +116,19 @@
+ * @todo:
+ * unpublished nodes have class .node--unpublished
+ * change this to .comment--unpublished

The @todo comments don't usually break the line, also this comment should have a full stop at the end

  1. +++ b/core/themes/bartik/bartik.libraries.yml
    @@ -10,19 +10,25 @@ global-styling:
    +      css/components/footer.css: {}
    

    This is adding a footer.css file that doesn't exist, the file is called site-footer.css now, so we can just delete this line

  2. +++ b/core/themes/bartik/css/components/ui.widget.css
    index bb23434..0112af4 100644
    --- a/core/themes/bartik/css/layout.css
    
    --- a/core/themes/bartik/css/layout.css
    +++ b/core/themes/bartik/css/layout.css
    
    +++ b/core/themes/bartik/css/layout.css
    +++ b/core/themes/bartik/css/layout.css
    @@ -11,10 +11,208 @@
    
    @@ -11,10 +11,208 @@
       margin-left: auto;
       margin-right: auto;
     }
    +#header div.section {
    +  position: relative;
    +}
    

    This patch is adding all the CSS back into the layout.css file that was removed in #2398451: Clean up "layout" CSS in Bartik. I think we should be able to remove all of this CSS, let's just make sure that the main-content selectors are replicated in main-content.css

Manjit.Singh’s picture

Changes as suggested in #131

Also @lewis

#header div.section {
  position: relative;
}

is already in header.css file. you can find it as

.header .section {
  position: relative;
}
thamas’s picture

Status: Needs work » Needs review

Check the patch.

Status: Needs review » Needs work

The last submitted patch, 132: clean_up_the_content-2398463-132.patch, failed testing.

Status: Needs work » Needs review
LewisNyman’s picture

Status: Needs review » Needs work
  1. +++ b/core/themes/bartik/css/components/comments.css
    @@ -116,6 +116,17 @@
    +/**
    + * @todo: unpublished nodes have class .node--unpublished change this to .comment--unpublished.
    

    When the length of this line goes over 80 characters, then we have to break the line. We should break to a new line before ".comment--unpublished"

  2. +++ b/core/themes/bartik/css/components/ui.widget.css
    index bb23434..0112af4 100644
    --- a/core/themes/bartik/css/layout.css
    
    --- a/core/themes/bartik/css/layout.css
    +++ b/core/themes/bartik/css/layout.css
    

    We are still adding loads of CSS into layout.css that we removed before, we need to remove all these lines.

bixgomez’s picture

Assigned: Unassigned » bixgomez
bixgomez’s picture

Assigned: bixgomez » Unassigned
FileSize
5.43 KB
20.4 KB

Split long (80+ char) comment line in comments.css file into two lines.

Modified layout.css file to eliminate class selectors that have previously been moved to other css files.

bixgomez’s picture

Status: Needs work » Needs review

Changing status to "needs review"

LewisNyman’s picture

Status: Needs review » Reviewed & tested by the community

Great, thank you!

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 138: clean_up_the_content-2398463-138.patch, failed testing.

Status: Needs work » Needs review
lauriii’s picture

Status: Needs review » Reviewed & tested by the community

re-rtbc

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 138: clean_up_the_content-2398463-138.patch, failed testing.

lauriii’s picture

Manjit.Singh’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll +SrijanSprintNight
FileSize
20.38 KB
lauriii’s picture

bill richardson’s picture

Status: Needs review » Needs work

patch 146 breaks layout -- no sidebars,etc . Patch 132 looks a good candidate to work forward from.

emma.maria’s picture

@Manjit.Singh Please in future can you include an interdiff file with every patch you create so we can see the changes you made.

I can not tell if the patch in #146, #138 or #132 introduces code that causes visual regressions as no one tested for this and we do not have any interdiffs.

The nicest way to handle this problem would probably be take the patch in #130 that was confirmed as not visually broken and apply the improvements stated in #131 and #136.

lauriii’s picture

emma.maria: interdiffs are not possible for rerolls :)

emma.maria’s picture

@lauriii Ack I didn't see that. I was so caught up in looking inside the patches to see where things broke.
@Manjit.Singh Apologies :)

Manjit.Singh’s picture

@emma no issues.

rachel_norfolk’s picture

ignore me - accidentally pressed submit on the wrong tab!!!

(hides in corner for a bit)

LewisNyman’s picture

It looks like there was some styling that was not moved from content.css into another CSS file. It would be worth someone going through each line that was removed to make sure that it was moved somewhere else.

emma.maria’s picture

emma.maria’s picture

Issue summary: View changes
Status: Needs review » Needs work
FileSize
600.72 KB

I can confirm that there are still visual problems with the latest patch. I will try and debug them. Otherwise I might step back through patches to see where styles fell out.

rachel_norfolk’s picture

Wanted to take a look at this but first I seem to need to re-roll again...

nlisgo’s picture

Status: Needs work » Needs review

Trigger testbot

prabhurajn654’s picture

Status: Needs review » Needs work
FileSize
292.74 KB

@emma.maria i am not able to reproduce issue which you shown via screenshots in #156. Can you please try to clear a cache.
when i cleared my cache its something looks like this. please check below screenshot

uygu

rachel_norfolk’s picture

@prabhurajn654 - can you post a screenshot of what that same content looks like running on current 8.0.x branch, please? Would be good to see you comparison.

Also, which browser(s)?

Thanks

emma.maria’s picture

Issue tags: +Needs reroll

Sorry with all the things being committed to Bartik recently this needs another reroll.

rachel_norfolk’s picture

Ha ha - after this week, I'm going to change my d.o username to re-roll-rachel!

emma.maria’s picture

Status: Needs work » Needs review
FileSize
20.87 KB

Itching to visually test the patch so I quickly rerolled.

nlisgo’s picture

@emma.maria we are trying to keep with you! :)

emma.maria’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs reroll
FileSize
391.38 KB
385.17 KB
13.74 MB

I have no idea how I saw the bugs in #156 but for this issue you definitely have to make sure you clear the caches.

Thank you @LewisNyman for finding the things that had fallen out of the patch in #154.

I tested the reroll in #163 and I found 0 visual regressions. I took note of the files affected in the patch and added dummy content of those component. I also tested one sidebar and two sidebars because of the previous layout issues due to things falling out the patch.

Here are some screenshots for good measure.

Also attached is a whopping big visual regression report that shows no differences.

Setting this to RTBC.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed d5669ee and pushed to 8.0.x. Thanks!

Thanks for adding the beta evaluation to the issue summary.

  • alexpott committed d5669ee on 8.0.x
    Issue #2398463 by amolnw2778, DickJohnson, thamas, emma.maria,...
thamas’s picture

Yeah! :)

emma.maria’s picture

Hooray! Thanks all!

Wim Leers’s picture

  • alexpott committed a3542ee on 8.0.x
    Issue #2552175 by nlisgo, Wim Leers: Follow-up for #2398463: Bartik is...

Status: Fixed » Closed (fixed)

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

Maninders’s picture

Maninders’s picture

Maninders’s picture

Maninders’s picture