Skip to content

Center 404 copy in a janky way :) #2768

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 2 commits into from
Mar 31, 2017
Merged

Center 404 copy in a janky way :) #2768

merged 2 commits into from
Mar 31, 2017

Conversation

ericholscher
Copy link
Member

No description provided.

@ericholscher ericholscher added PR: work in progress Pull request is not ready for full review PR: hotfix Pull request applied as hotfix to release labels Mar 30, 2017
Copy link
Contributor

@agjohnson agjohnson left a comment

Choose a reason for hiding this comment

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

This should be moved to core.css

@@ -11,6 +11,7 @@
{% endblock %}

{% block content %}
<div style="margin-left: auto; margin-right: auto; width: 900px; text-align: center">
Copy link
Contributor

Choose a reason for hiding this comment

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

We shouldn't be putting inline styles into templates, and the width shouldn't be set at a static width here.

Copy link
Member Author

Choose a reason for hiding this comment

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

That seems to go against the goal of keeping the donate stuff as it's own app? I think it probably makes sense for a small use-case like this.

Copy link
Contributor

@agjohnson agjohnson Mar 30, 2017

Choose a reason for hiding this comment

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

These rules don't need to be brought into core.css if they are specific to just this use case. A simple CSS include from a file in donate/static works. Inline styles should always be avoided as CSS can't be overhauled without sifting through templates on top of CSS.

Copy link
Member Author

Choose a reason for hiding this comment

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

True, that was pretty simple.

How should I fix the width?

@ericholscher ericholscher merged commit 3934601 into master Mar 31, 2017
@ericholscher ericholscher removed the PR: work in progress Pull request is not ready for full review label Mar 31, 2017
@stsewd stsewd deleted the center-404-text branch August 15, 2018 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: hotfix Pull request applied as hotfix to release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants