Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
Seven theme
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 Jan 2015 at 11:48 UTC
Updated:
2 Apr 2015 at 16:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
lewisnymanUploaded the css file so it can reviewed with Dreditor
Comment #2
lewisnymanComment #3
psebborn commentedI went to look at this, and noticed that the CSS posted has changed, as part of #2422351.
I've reviewed the CSS, and really there were two things I changed:
@file)..content-headerfrom the.page-titleselectorI know
<div class="page-title">used elsewhere e.g. maintenance-page.html.twig, but then it's also overriden in mainentance-page.css so it shouldn't be an issue?Have attached a patch with these two changes in..
Comment #4
lewisnymanNice thanks. I think there are a few more things we can do here, also I think we can merge some of the styling in the h1 styling as h1 only get's used in the same place as page-title. We will have to double check that we don't cause regression in the install screen.
We can remove this color setting as it is set globally.
Instead of overridden these properties here, can we merge these settings into the h1 styling?
Comment #5
psebborn commentedHmm, yes that could definitely be merged a bit.
I might be opening a can of worms here, but I'm not sure about the line-height.. To me it's more of a general issue with the theme. On the body the line-height is set with a unit:
..what's the rationale for that? The upshot is, for
.page-titlethe font-size is 21px but in Chrome the line-height is 20px. Theoretically it should be relative to the font size but Chrome doesn't behave that way (not for me anyway)If it was set without a unit , e.g.
1.5then it would be a nice ratio and could be a set-once, work-everywhere solution..Comment #6
psebborn commentedIf I ignore that for the context of this issue (as I think it could lead to a whole heap of regression!), then I could propose the attached patch perhaps..?
Comment #7
lewisnymanComment #8
lewisnymanThanks! This makes a lot of sense. Here are some before/after screenshots.
Before:

After:

Comment #10
alexpottCSS is not frozen. Committed 6f83b4e and pushed to 8.0.x. Thanks!