Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Input fields box-sizing setting is declared at line 797.
This is duplicated in the "Improve form element usability on narrow devices." section at line 855.
Than those fields are listed again at line 874.
Comment | File | Size | Author |
---|---|---|---|
#11 | duplicated-code-seven-styles-css-2202999-11.patch | 1.41 KB | thamas |
#1 | drupal-duplicated-code-seven-styles-css-2202999-1.patch | 1.35 KB | thamas |
Comments
Comment #1
thamasRemove duplicated (input related) lines, move one line to the right place (max-width) and move the input width setting to the code block which we keep.
(I do not understand the reason of mixing mobile first and desktop first approach in the style.css file, but ironing out that would need more work. Or could someone explain the reasons?)
Comment #2
Cameron Tod CreditAttribution: Cameron Tod commentedComment #3
YesCT CreditAttribution: YesCT commentedBefore and after screenshots (showing it's the same before and after) would help confidence in this review https://drupal.org/contributor-tasks/add-screenshots
Maybe also both wide screen and narrow.
The question in #1 might need an answer about mixing mobile and desktop CSS, and/or a link to an issue trying to discuss/fix that or a follow up issue for it.
Comment #4
catchComment #5
LewisNymanI didn't think I'd find a problem but I did ;-)
This selector needs to be moved down below the one after it otherwise it won't override.
Comment #6
Cameron Tod CreditAttribution: Cameron Tod commentedComment #7
YesCT CreditAttribution: YesCT commentedunassigning... but @thamas if you want to work on that fix, just make a comment. :)
after that change is in, it will need new before and after screenshots.
Comment #8
thamasI can do it, just had no time. Maybe the next weekend.
I found this when looked an other bug of the installer page (#2202973: Input fields overflow on install config page on desktop), but that is not the best place to take screenshots(?). Perhaps you have a better idea…
Comment #9
Sill CreditAttribution: Sill commentedBefore Widescreen - http://screencast.com/t/ASNXNt6rJb
Before Narrow - http://screencast.com/t/vzuBe4pH
Applied patch
After Widescreen - http://screencast.com/t/GvPEZ4ERvjVH
After Narrow - http://screencast.com/t/GvPEZ4ERvjVH
- First time contributing to core so hopefully this is useful --
Comment #10
YesCT CreditAttribution: YesCT commented@Sill Thanks!
it is best to embed images in comments (or the issue summary).
To do that, you will need to upload the files do d.o
https://drupal.org/contributor-tasks/add-screenshots has more help for you.
It would also be good to mark up the screenshots to point out the differences (or note if you saw *no* differences) between before and after.
And also what was expected (are we expecting a difference, or expecting them to be identical?)
How did you decide to use the create article as the page to test?
We should wait for a new patch addressing the concern in #5 before we do another set of screenshots.
Comment #11
thamasSo here we go again with a new patch. Changes are the same as in #1 plus the fix which was asked in #5 (by the way I do not understand why we want auto width to number fields when every other input is 100% width…).
You should see on the screenshots that the field looks the same, but after the change we have less lines of code and no overrided same box-sizing property. :)
Before:
After:
So much rounds from us to make a stylesheet 15 lines lighter… :)
Comment #12
LewisNyman11: duplicated-code-seven-styles-css-2202999-11.patch queued for re-testing.
Comment #13
LewisNymanOk the issue I found is fixed and this looks good. That patch applies so I'm assuming this comes back green.
Comment #14
catchCommitted/pushed to 8.x, thanks!