Skip to content
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

UI refresh #280

Merged
merged 1 commit into from
Feb 10, 2017
Merged

UI refresh #280

merged 1 commit into from
Feb 10, 2017

Conversation

zarino
Copy link
Member

@zarino zarino commented Feb 9, 2017

This brings the generic UI improvements from mysociety/mapit.mysociety.org#29 into mapit core.

Works really well with the latest version of mysociety/mapit.mysociety.org#32, but needs testing in the other mapit cobrands (like global, and italy).

@@ -1,88 +1,4 @@
{% load static from staticfiles %}
{% extends "mapit/base.html" %}
Copy link
Member

Choose a reason for hiding this comment

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

Drive-by: This won't work I'm afraid because it's the same template being overridden.
Put the description in a separate template and then override that?

Copy link
Member Author

Choose a reason for hiding this comment

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

The only reason I'm overriding base.html here is to insert the translated page description. Could we just upload the translation via Transifex instead, and then the override wouldn't even be required?

Copy link
Member

Choose a reason for hiding this comment

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

It already is trans, so yes,i don't think this is necessary at all.

@zarino zarino added Reviewing and removed Current labels Feb 10, 2017
@zarino zarino requested a review from dracos February 10, 2017 14:56
Copy link
Member

@dracos dracos left a comment

Choose a reason for hiding this comment

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

A few small things lost that I might like back (definitely the indenting thing :) ), and one display bug, plus ditching that Italy base as discussed, otherwise 🌈

margin-top: 0;
}

.mapit-copyright {
Copy link
Member

Choose a reason for hiding this comment

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

Could we keep the copyright text being a bit smaller? :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!

@media (min-width: 60em) {
float: right;
clear: none;
width: 28.75em;
Copy link
Member

Choose a reason for hiding this comment

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

I quite liked the two columns of text output on an area page.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!

input[type="text"] {
@extend .form-control;
@extend .form-control--inline;
text-transform: uppercase;
Copy link
Member

Choose a reason for hiding this comment

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

On Global, "LATITUDE,LONGITUDE" does not fit.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!

// Creates area_level_1 to area_level_10
// optionally add to list items to add indentation suggesting hierarchy

@while $area_level > 0 {
Copy link
Member

Choose a reason for hiding this comment

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

It would be a shame to lose this (which indents the area lists on e.g. http://global.mapit.mysociety.org/point/4326/8.55,47.366667.html).

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!

@dracos
Copy link
Member

dracos commented Feb 10, 2017

One other thing, do you think the line between sections of the docs might be a bit faint? I can only just see it on my monitor :)

@zarino zarino force-pushed the ui-refresh branch 2 times, most recently from bab8048 to 29d097d Compare February 10, 2017 16:48
This includes mysociety-docs-theme as a submodule, to build on the
standard theme we use for other documentation sites.
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.

2 participants