Skip to content

update css for 404 pages to not look like we are in 1995 and have a cons... #240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 0 commits into from
Jan 14, 2013

Conversation

pascalchevrel
Copy link
Contributor

update css for 404 pages to not look like we are in 1999 and have a consistent layout across browsers.

Here is a before/after screenshot:
http://chevrel.org/images/phpbugs/bug63242v2_compare.png

Margins/paddings are explicitely set and no longer depend on browser defaults, better readability of fonts while keeping the typical PHP-blue background color on h1.

I don't think it's possible to add a test for that pull request since it is fixing an esthaetics problem to make look the PHP integrated server more visually appealing for people like me that use it a lot.

@pascalchevrel
Copy link
Contributor Author

updated the pull request to also highlight the query that is 404:
http://chevrel.org/images/phpbugs/php404.png
Uses default monospace font for readability.

@xiongchiamiov
Copy link

It's a minor change, but it certainly does look a lot better.

@@ -280,8 +280,10 @@
* copied from ext/standard/info.c
*/
static const char php_cli_server_css[] = "<style>\n" \
"body { background-color: #ffffff; color: #000000; }\n" \
"h1 { font-family: sans-serif; font-size: 150%; background-color: #9999cc; font-weight: bold; color: #000000; margin-top: 0;}\n" \
"body { background-color: #FCFCFC; color: #333333; margin: 0; padding:0; }\n" \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There does appear to be a preference (in this file and elsewhere) for lowercase letters in hex color codes.

@pascalchevrel
Copy link
Contributor Author

Updated pull request to use lowercase HEX values and resync with master

@pascalchevrel
Copy link
Contributor Author

Is there anything else I should do to get that pull request accepted?

@lstrojny
Copy link
Contributor

Could you please squash the commits?

@pascalchevrel pascalchevrel merged commit 79dc69b into php:master Jan 14, 2013
@pascalchevrel
Copy link
Contributor Author

OK, I think I failed squashing my commits and just destroyed my branch :/ I am going to recreate a branch and redo the pull request

@lstrojny
Copy link
Contributor

No need to open a new one. Just reopen and push with --force.

@pascalchevrel
Copy link
Contributor Author

It doesn't work, I only end up making noise in your repo :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants