Problem
install-page.html.twig markup structure should be the same as page.html.twig & maintenance-page.html.twig
install-page.html.twig is having classes & markup thats used specific for the seven theme
Proposed solution
stark:
updated the markup to the same structure as stark page.html.twig
seven:
update install-page.css to follow the structure of page.html.twig
update mobile.install.js to follow the structure of page.html.twig
Seven theme
* cleaned up the order or the css to follow a mobile first approach
* changed the class selected in mobile.install.js
* moved the install-page.html.twig with the classes for horizontal & vertical center into the seven theme (where it belongs)
Issues / Todo
* Unused Regions
It not clear why the regions, sidebar first, footer, header sidebar left is there ?
if install-page.twig is only available through the seven theme it should not use regions that is not available for it
Blockers: #2011578: Markup for Stark's page.html.twig + maintenance-page.html.twig needs to be rtbc
Comment | File | Size | Author |
---|---|---|---|
#73 | Screen Shot 2014-01-07 at 11.37.20 PM.png | 185.23 KB | webchick |
#71 | install-page-twig-markup-2041793-71.patch | 11.89 KB | LewisNyman |
#71 | interdiff.txt | 1.95 KB | LewisNyman |
#56 | Screen Shot 2013-11-26 at 13.10.22.png | 1.53 MB | Dragan Eror |
#51 | install.png | 836.7 KB | rteijeiro |
Comments
Comment #1
mortendk CreditAttribution: mortendk commentedadded tag
Comment #2
mortendk CreditAttribution: mortendk commentedfirst clanup of maintenance & the install page
Comment #3
mortendk CreditAttribution: mortendk commentedcleaned up the inconsistencies in use of em & px
Comment #4
mortendk CreditAttribution: mortendk commentedreorded the css to follow a mobile first approach
changed the js selector so it now works
Comment #5
mortendk CreditAttribution: mortendk commentedComment #6
mortendk CreditAttribution: mortendk commentedinstall-page.html.twig is having markup defined only for the seven theme - copied the file over to seven & removed the markup from stark - keeping it clean
Comment #7
mortendk CreditAttribution: mortendk commentedboot get to work
Comment #7.0
mortendk CreditAttribution: mortendk commentedupdate the desctiption
Comment #8
LewisNymanNice clean up!
Looks like these max-widths don't match up
The left margin is wrong, it should match 50px
You could argue that we don't even need the role="banner"
The border radius shouldn't appear on narrow views, we also need some padding and margins to match the previous design.
Comment #9
LewisNymanComment #10
mortendk CreditAttribution: mortendk commentedNew patch rolled and screenshots attached for the changes
Mobile:
Wide
Comment #11
LewisNymanThe install process looks good, I noticed a few things on the “already installed” page.
I noticed this before I uninstalled, I guess we've lost those sidebar classes?
Floating right makes the page look weird when there is no left sidebar. I guess we don't have the .no-sidebar class anymore?
We need this ul declaration, I'm happy for it to stay this broad, it makes sense.
Comment #12
LewisNymanComment #13
rteijeiro CreditAttribution: rteijeiro commentedFixed #11 issues.
Comment #14
LewisNymanThere's a conflict with the "already installed page" and the normal installed page. We've moved the sidebar mark up below the main content mark up, which means we need to float the main content right in or for the sidebar to sit left of it.
I don't really want to pull in the
.no-sidebar
classes, the easiest way to fix this is to move the sidebar mark up back above the content. This is fine with me because the sidebar content is navigation.Comment #15
rteijeiro CreditAttribution: rteijeiro commentedFixing...
Comment #16
rteijeiro CreditAttribution: rteijeiro commentedThis patch fixed #14 issue and seems to work also in "already installed" page.
Comment #17
LewisNymanThis looks good! I'm happy with the code.
Comment #18
Outi CreditAttribution: Outi commentedFor me the latest patch doesn't apply... I couldn't simplytest it, neither.
Comment #19
rteijeiro CreditAttribution: rteijeiro commentedRe-rolled.
Comment #21
rteijeiro CreditAttribution: rteijeiro commented#19: 2041793-19.patch queued for re-testing.
Comment #22
magnify CreditAttribution: magnify commentedTestet patch and added missing curly brackets.
Comment #23
zorp CreditAttribution: zorp commentedI can confirm that patch #22 passed manual testing
Comment #24
zorp CreditAttribution: zorp commentedUpdate, noticed that MAIN i lacking some padding-right.
setting status as needs work.
Comment #25
LewisNymanSee #2094445: Fix installer right padding - make it look balanced
Comment #26
zorp CreditAttribution: zorp commentedUpdated patch to include padding-right on main.
Please test and confirm it look good.
Comment #27
magnify CreditAttribution: magnify commentedPatch #25 passed manual testing.
Comment #28
magnify CreditAttribution: magnify commentedAdded missing comment.
Comment #29
magnify CreditAttribution: magnify commentedRemoved the /* LTR */ comments they are not needed here. The padding is the same for a RTL website.
Comment #30
LewisNymanSorry, I found some RTL issues.
There is no padding set on ltr, not sure why we are setting it on rtl.
We still need to remove the padding here for rtl
Comment #31
axe312 CreditAttribution: axe312 commentedi am working on this
Comment #32
axe312 CreditAttribution: axe312 commentedI fixed the paddings. What do you think about it?
Comment #33
LewisNymanGreat, thanks!
Comment #34
rteijeiro CreditAttribution: rteijeiro commentedComment #35
Xano#32: 2041793-32.patch queued for re-testing.
Comment #36
star-szrHere's my review, unfortunately this one is not ready yet. Important stuff up front followed by nitpicks.
The @file should probably say something like 'Seven's implementation to display…', and also the spacing (blank lines) and alignment (some errors) of this template is very different from the core install-page.html.twig. I think when diffing the two files it should be much more obvious what we are changing between the two templates, which after tweaking looks like just the markup order of the first sidebar and adding a class to the html tag.
Should the .l-container div be indented one level within
<body>
? In the most recent patch, the seven install-page.html.twig does this but the system one doesn't. I would definitely lean towards indenting it but maybe there's a standard or convention I'm missing.If we're removing this paragraph, we need to remove the blank '*' line above it as well.
Extra blank '*' line here should be removed.
Extra space between "and" and "(max-width…" can be removed.
Need a space before the { per CSS coding standards: https://drupal.org/node/1887862
Extra space here between "Positioning" and "sidebar".
This comment should be at least capitalized (http://drupal.org/node/1354#drupal) if not fleshed out a bit more.
Extra space between media query and { can be removed.
Comment #37
RainbowArrayI'll make these fixes.
Comment #38
RainbowArrayHere's a patch to make the fixes Cottser's suggested in #36.
I kept the same indenting as was in system, although I tend to agree that it makes sense to indent the container div.
Comment #39
RainbowArrayComment #40
RainbowArrayComment #41
star-szrLooking much better, thanks @mdrummond!
Missed this before, the opening if block needs to be indented by one more space. (Needs to be fixed in the seven template as well.)
Comment #42
LewisNymanThanks @Cottser! Let's get this in.
Comment #42.0
LewisNymanupdated info about the maintainence template moved to seven theme folder
Comment #43
LewisNyman42: install-page-twig-markup-2041793-42.patch queued for re-testing.
Comment #45
LewisNymanNeeded a reroll.
Comment #47
LewisNyman45: install-page-twig-markup-2041793-44.patch queued for re-testing.
Comment #49
LewisNymanComment #51
rteijeiro CreditAttribution: rteijeiro commentedAfter apply the patch the installer looks like the following screenshot:
Comment #52
Dragan Eror CreditAttribution: Dragan Eror commented49: install-page-twig-markup-2041793-49.patch queued for re-testing.
Comment #53
Dragan Eror CreditAttribution: Dragan Eror commentedThe patch from #49 forks fine form me. I tested it with simplytest.me as well as on my local environment.
Comment #55
rteijeiro CreditAttribution: rteijeiro commentedIt seems testbot is broken now. Some of the servers where updated to PHP 5.3.27 and Debian Wheezy as rfay told me and they are working to fix that.
Also thanks @Dragan. It seems I'm doing something wrong trying to test this patch. I will try again.
Comment #56
Dragan Eror CreditAttribution: Dragan Eror commentedTested again, looks it is really broken.
Will see what I can do here...
Comment #57
Dragan Eror CreditAttribution: Dragan Eror commentedHere is new image
Comment #58
Dragan Eror CreditAttribution: Dragan Eror commentedI saw it, took screenshot, then I updated issue... But when I returned back to debug and work on it, I just reloaded page and everything works fine again... Tried to remove files, and to create settings.php again, but can't reproduce the BUG again :S
Comment #59
Dragan Eror CreditAttribution: Dragan Eror commentedHere is example of showed slogan during installation. looks a bit ugly and like it doesn't follow the layout.
Comment #60
LewisNymanTwig templates are cached by default, so you'd have to clear the cache to see the mark up changes.
There's an issue for that ;) #2043047: Slogan shown on installation pages
Comment #61
LewisNymanComment #62
mortendk CreditAttribution: mortendk commentedComment #63
mortendk CreditAttribution: mortendk commentedComment #64
rteijeiro CreditAttribution: rteijeiro commentedNew re-roll.
Comment #65
LewisNymanSaw a few things
We are missing some padding here. The previous #page selector was inheriting padding: 20px 0 40px 0; from Seven's style.css before.
I think we should have a blank line above comments. We also have a mix between block comments and one line comments.
Comment #66
rteijeiro CreditAttribution: rteijeiro commentedApplied suggested changes in #65
Comment #67
LewisNymanLooks like the the Seven install.html.twig file fell out of the patch Ruben :(
Comment #68
rteijeiro CreditAttribution: rteijeiro commentedSorry, hope now it's correct :)
Comment #69
LewisNymanhmm the l-container class is missing a lot of styling. The #page selector still has the width and padding on it.
Comment #71
LewisNymanAlright, I've tested this in all the things. Mobile, desktop, rtl, ltr, tlr. Let get this RTBC'd before we have to reroll again.
Comment #72
rteijeiro CreditAttribution: rteijeiro commentedPatch applies well and install page looks awesome. Let's go for RTBC!!
Comment #73
webchickCool, this looks like good clean-up.
Committed and pushed to 8.x. Thanks!
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 #74
mortendk CreditAttribution: mortendk commentednope there isnt an issue afaik - guess we need some design on it as well [2169655]
Comment #75
nod_Comment #76
philipz CreditAttribution: philipz commentedPlease ignore me if this is stupid question but I'm wondering why do we need two install-page.html.twig files (one in /core/themes/seven and one in /core/modules/system/templates)? It seems there's one too many ;)
Comment #77
LewisNymanI have been thinking about this. The installation design feels about 'loud' for update.php but we could have a tweaked version that's a little calmer. The progress elements should be more consistent at least.
#2169765: Redesign update.php to be more consistent with the installation process
/core/modules/system/templates is the default for every theme used in Drupal, the #1980004: [meta] Creating Dream Markup initiative aims to remove a lot of default Drupal html that is in 'just in case' some one needs it. If a theme requires extra elements or classes then the html should only be loaded for that theme not every theme.
Comment #78
philipz CreditAttribution: philipz commented@LewisNyman ok so we have two install-page.html.twig files and that's fine, thanks for clarifying that!
One last thing that bothers me is the /core/themes/seven/install-page.html.twig which should rather be in /core/themes/seven/templates/install-page.html.twig.
Comment #79
star-szrYes, I think install-page.css should probably get moved to the 'css' folder too. Can we get a small follow-up issue created to fix up those items? Thanks!
Edit: Actually there's a bunch of loose CSS, what do you think @LewisNyman? https://drupal.org/node/1887922 seems to say they should live under 'css'. Maybe there's an issue already.
Comment #80
philipz CreditAttribution: philipz commentedI say this definitely should be cleaned up. While moving the files we might change "seven.base.css" to "base.css" to unify naming too.
Edit: duplicate issue link deleted.
Comment #81
LewisNymanWr already have an issue to move the CSS into a directory #2033211: Move Seven CSS files into css directory.