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.
As mentioned in #2041793: install-page.html.twig markup and CSS
When testing this, I noticed that update.php and install.php are now wildly out of sync with each other in terms of look and feel. Is there a separate issue about cleaning that up?
Comment | File | Size | Author |
---|---|---|---|
#56 | Update_page.png | 48.64 KB | StuartJNCC |
#49 | Screen Shot 2014-03-25 at 1.18.10 PM.png | 82.79 KB | webchick |
#49 | Screen Shot 2014-03-25 at 1.17.28 PM.png | 122.01 KB | webchick |
#49 | Screen Shot 2014-03-25 at 1.17.36 PM.png | 95.57 KB | webchick |
#44 | update_php-redesign-2169765-44.patch | 16.77 KB | philipz |
Comments
Comment #1
webchickYeah, specifically I thought the task completion-related design could really stand to be unified. I agree we don't need to be as "POW!" about it since this is ultimately a maintenance task, but it's really weird to have two very different designs for tracking "you're at step 1 of N." Also weird to see Druplicon in one and not the other.
Comment #2
philipz CreditAttribution: philipz commentedSo something in this direction?
Comment #3
webchickOoooh! Maybe! That looks really nice. Ideally, whatever we did here would apply to all maintenance pages. It makes sense to one-off the installer, but not sure about update vs. 'site down' vs. 'omg something happened' :)
Comment #4
philipz CreditAttribution: philipz commentedPossibly related #1189822: Convert maintenance-page.html.twig to HTML5
Comment #5
LewisNyman@philipz Great, pretty much. I think the first step would be component-izing the install-page.css file so elements like the columns, progress steps, and the white wrapper can be reused here. It would be nice if we could get #2017257: Create generic layout classes in first.
Comment #6
ckrinaStarting to work on that.
Comment #7
ckrinaChanges done:
- Updated template maintenance-page.html.twig to follow markup from install-page.html.twig.
- Updated seven/style.css with styles from install-page.css
- Updated file update.php to use "button--primary" class instead "button-primary" for the input.
Comment #8
ckrinaComment #9
ckrinaComment #10
ckrinaNot sure if the
element should be the {{ title }} or the {{ site_name }}. The #7 patch is made with the {{ site_name }} because on some steps the title changes to "home". See attached file update_php-redesign-2169765-7B-firefox.png.
Comment #12
ckrinaMoved the title of the page to the header like in design.
Comment #13
philipz CreditAttribution: philipz commentedIt looks really good! Two small things I would change:
1. Move and indent {{ page_top }} - see interdiff.txt.
2. Consider min-height for l-container. After jumping from first page to "No updates..." the window jumps suddenly and becomes small and still centered vertically. This looks bad IMO. It should be as high as first step.
Comment #15
LewisNymanIt would be nice if we could move this CSS out of style.css but ideally the two pages could share the same CSS as they are so similar.
Comment #16
philipz CreditAttribution: philipz commentedI'm starting to work on it.
Comment #17
philipz CreditAttribution: philipz commentedinstall-task-list
class totask-list
. This could be a follow up if decided so.#page
and#content
from install-page.css.Comment #18
LewisNymanOooh I like it! Just a few things really:
Visually
ol { padding: 0; }
in seven.base.cssMobile only
Code review
+++ b/core/themes/seven/maintenance-page.css
@@ -0,0 +1,199 @@
+ .task-list,
+ .install-task-list {
I don't think we need to have two separate classes for the same component. We could always add task-list--install to the element on the installer page if we need to tweak it, but I can't see any need for it.
Comment #19
LewisNymanBy the way, here's a patch to add a fake update hook for anyone wanting to test this out.
Comment #20
philipz CreditAttribution: philipz commentedAll good catches :) I have most of them fixed now and patch is coming soon.
Comment #21
philipz CreditAttribution: philipz commentedFixed:
ol
identation fixed.install-task-list
class removed both from css and theme function. Moreover I've changed the variant (if defined at any point in future) to task-list--[variant] in theme function.I expect some failing tests now but lets see what happens :)
Comment #22
LewisNymanOnly one piece of code review, which I probably should of mentioned before.
This class variant stuff was only added because update and install had completely different task list styles. Now that they match we can probably remove that code completely
A few “out there” things popped into my head while looking at the design that I'd like your opinion on:
Comment #23
philipz CreditAttribution: philipz commentedIn attached patch:
Comment #24
philipz CreditAttribution: philipz commentedA quick mockup of green background makes me sure it's a bad idea :)
Comment #25
LewisNymanOnly because rounded corners imply friendlyness and a safer environment, which update.php is not. They were rough ideas though, I don't feel strongly about any of them.
We've made enough improvements and iterations here. Let's commit this, if we want a further discussion on the background later we can open a follow up.
The latest patch works great, code is good. RTBC.
Comment #26
LewisNymanComment #27
alexpottupdate_php-redesign-2169765-23.patch no longer applies.
Comment #28
Sutharsan CreditAttribution: Sutharsan commentedPatch #23 rerolled.
seven_library_info()
got replaced byseven.libraries.yml
in #1996238: Replace hook_library_info() by *.libraries.yml file.Someone with inside knowledge should check if the replaced if the changes in seven_library_info() are fully replaced by the configuration in seven.libraries.yml.
Patch #23
seven.libraries.yml
Comment #30
Sutharsan CreditAttribution: Sutharsan commentedAgain, reroll of #23 patch.
Comment #31
philipz CreditAttribution: philipz commentedNice re-roll! I didn't know about libraries.yml but I love it :) This requires adding maintenance section to libraries.yml I guess... I hope it is ok like this.
Other than that still looks good.
Comment #32
LewisNymanGood stuff. I had another look over it. The patch is applying fine.
Comment #33
alexpottupdate_php-redesign-2169765-31.patch no longer applies.
Comment #34
Sutharsan CreditAttribution: Sutharsan commentedRerolled #31 patch
Comment #36
c_lehel CreditAttribution: c_lehel commented34: update_php-redesign-2169765-34.patch queued for re-testing.
Comment #38
c_lehel CreditAttribution: c_lehel commentedRerolled.
Comment #39
k_zoltan CreditAttribution: k_zoltan commentedComment #40
k_zoltan CreditAttribution: k_zoltan commentedI couldn't apply the patch. there were errors while apply the part with the seven.theme file
Comment #41
philipz CreditAttribution: philipz commentedI thought you assigned for re-roll :) I'll do it today then.
Comment #42
philipz CreditAttribution: philipz commented38: update_php-redesign-2169765-37.patch queued for re-testing.
Comment #44
philipz CreditAttribution: philipz commentedReady to review again.
Comment #45
LewisNymanStill looks good. Two thumbs up.
Comment #47
philipz CreditAttribution: philipz commented44: update_php-redesign-2169765-44.patch queued for re-testing.
Comment #48
LewisNymanComment #49
webchickInstall:
Update:
Even the "responsive-y" stuff works!
Awesome work! :D
Committed and pushed to 8.x. Woot!
Comment #51
longwave#70719: Add Unicode::ucwords() and Unicode::lcfirst() implementation and make use of them in core got accidentally committed here too by the looks of it.
Comment #52
longwaveSuggest rolling this back and recommitting them separately?
Comment #55
LewisNymanComment #56
StuartJNCC CreditAttribution: StuartJNCC commentedThe site slogan seems to have been missed during this redesign.
Comment #57
StuartJNCC CreditAttribution: StuartJNCC commentedChange status.
Comment #58
penyaskitoOpened follow-up at #2230997: Remove the slogan in install.php and update.php. With the different commits and reverts this one is getting messy.