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

Styling and icon for out of scale nodes #1161

Merged
merged 1 commit into from
May 10, 2016

Conversation

pgiraud
Copy link
Contributor

@pgiraud pgiraud commented May 10, 2016

I created an icon, and I hope it's clear enough.
The text is now italic when the layer is out of scale.
IMO the icon is intrusive and no really relevant when the node is not active so I hide it in this case.

Demos:
https://pgiraud.github.io/ngeo/layertree_out_of_scale/examples/contribs/gmf/apps/desktop
https://pgiraud.github.io/ngeo/layertree_out_of_scale/examples/contribs/gmf/apps/mobile

Remaining issues:
Positioning of elements is not perfect and the icon will be visible if the name of the layer is very long.

Please review.

@@ -53,4 +53,8 @@
&.gmf-icon-text:after {
content: '\e906';
}

&.gmf-icon-search-go:after {
content: '\e908';
Copy link
Contributor

Choose a reason for hiding this comment

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

should use the double dot :: for pseudo element

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed.
Let's be consistent for now and change all the selectors once for all.
Can you please open an issue for addressing this right after that?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok

@sbrunner
Copy link
Member

The icon don't mean anything at the standard zoom..., should the arrow be moved on the right?

@pgiraud
Copy link
Contributor Author

pgiraud commented May 10, 2016

The icon don't mean anything at the standard zoom..., should the arrow be moved on the right?

You're right. I tried to change it a bit. I hope this is a bit clearer.
screenshot from 2016-05-10 11 40 10

@sbrunner
Copy link
Member

@pgiraud Yes, wonderful :-)

@fredj
Copy link
Member

fredj commented May 10, 2016

LGTM

@ybolognini
Copy link
Member

Nice!
Could we add a little space between layer name and go-to-scale icon?

@pgiraud
Copy link
Contributor Author

pgiraud commented May 10, 2016

Space added (with an arbitrary value chosen). Merging.

@pgiraud pgiraud merged commit ac9bb51 into camptocamp:master May 10, 2016
@pgiraud pgiraud deleted the layertree_out_of_scale branch May 13, 2016 07:26
@sbrunner sbrunner added this to the Older milestone Aug 23, 2019
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.

None yet

5 participants