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

CSS is affecting parent page #445

Closed
bvj opened this issue Jan 6, 2020 · 7 comments
Closed

CSS is affecting parent page #445

bvj opened this issue Jan 6, 2020 · 7 comments
Assignees
Labels

Comments

@bvj
Copy link
Contributor

bvj commented Jan 6, 2020

Example - in PrestaShop are menu styles in conflict (app.css from line 52).
It would be good to use hslayers CSS only for hslayers elements.

@jmacura jmacura added the bug label Jan 6, 2020
@raitisbe
Copy link
Collaborator

raitisbe commented Jan 6, 2020

An option would be to contain all hslayers css in some container class ".hslng" for example
and write in all css rules
.hslng .menu ...
.hslng .lm-title {...

Did you notice any more classes except .menu? Menu seems to be a realy bad name for a css class.

raitisbe added a commit that referenced this issue Jan 6, 2020
@raitisbe raitisbe self-assigned this Jan 6, 2020
@bvj
Copy link
Contributor Author

bvj commented Jan 6, 2020

noticed only the menu class, but for the future will be good solution your container class option

@jmacura
Copy link
Collaborator

jmacura commented Jan 7, 2020

Or maybe use 'hs-' prefix for every CSS class, as with the IDs here: #408 ?

@bvj
Copy link
Contributor Author

bvj commented Jan 7, 2020

Sounds good

@raitisbe
Copy link
Collaborator

raitisbe commented Jan 8, 2020

Yes, prefixing is better. Because it protects from external css messing up hsl css, and not just other direction.

@raitisbe
Copy link
Collaborator

raitisbe commented Jan 8, 2020

Also we should use ids less, because they wont work correctly when we have multiple hsl maps in the same page

raitisbe added a commit that referenced this issue Jan 8, 2020
raitisbe added a commit that referenced this issue Jan 8, 2020
raitisbe added a commit that referenced this issue Jan 8, 2020
raitisbe added a commit that referenced this issue Jan 8, 2020
raitisbe added a commit that referenced this issue Jan 8, 2020
raitisbe added a commit that referenced this issue Jan 8, 2020
raitisbe added a commit that referenced this issue Jan 8, 2020
raitisbe added a commit that referenced this issue Jan 8, 2020
raitisbe added a commit that referenced this issue Jan 8, 2020
raitisbe added a commit that referenced this issue Jan 8, 2020
FilipLeitner pushed a commit that referenced this issue Jan 9, 2020
Map div should not be with unique id
refs #445

Css to get rid of element IDs and prefix with hs-
refs #445

map-container element renamed to hs-map-container
refs #445

infopanel element renamed to gs-infopanel class
refs #445

Make panelplace and dialog-area into property in layoutService
ref #445

Wait for map to load before adding geolocation controls

hs-minisidebar should be a class not id
refs #445

sidebar-list class should be hs-sidebar-list
refs #445

Remove a lot of duplicate id=ows_type for various elements
ref #445

hs-page-wrapper is a class not id

Add hs preposition to element selection in panelSpaceHeight function

Fix service name typo in vgi-draw component location->layout

Fix sidebar width on mobile

refactor layoutService.SidebarBottom function

Fix closed sidebar width on mobile
raitisbe added a commit that referenced this issue Jan 9, 2020
Map div should not be with unique id
refs #445

Css to get rid of element IDs and prefix with hs-
refs #445

map-container element renamed to hs-map-container
refs #445

infopanel element renamed to gs-infopanel class
refs #445

Make panelplace and dialog-area into property in layoutService
ref #445

Wait for map to load before adding geolocation controls

hs-minisidebar should be a class not id
refs #445

sidebar-list class should be hs-sidebar-list
refs #445

Remove a lot of duplicate id=ows_type for various elements
ref #445

hs-page-wrapper is a class not id

Add hs preposition to element selection in panelSpaceHeight function

Fix service name typo in vgi-draw component location->layout

Fix sidebar width on mobile

refactor layoutService.SidebarBottom function

Fix closed sidebar width on mobile
raitisbe added a commit that referenced this issue Jan 26, 2020
raitisbe added a commit that referenced this issue Jan 26, 2020
raitisbe added a commit that referenced this issue Jan 26, 2020
Map div should not be with unique id
refs #445

Css to get rid of element IDs and prefix with hs-
refs #445

map-container element renamed to hs-map-container
refs #445

infopanel element renamed to gs-infopanel class
refs #445

Make panelplace and dialog-area into property in layoutService
ref #445

Wait for map to load before adding geolocation controls

hs-minisidebar should be a class not id
refs #445

sidebar-list class should be hs-sidebar-list
refs #445

Remove a lot of duplicate id=ows_type for various elements
ref #445

hs-page-wrapper is a class not id

Add hs preposition to element selection in panelSpaceHeight function

Fix service name typo in vgi-draw component location->layout

Fix sidebar width on mobile

refactor layoutService.SidebarBottom function

Fix closed sidebar width on mobile
raitisbe added a commit that referenced this issue Jan 26, 2020
@raitisbe
Copy link
Collaborator

raitisbe commented Feb 3, 2020

raitisbe added a commit that referenced this issue Feb 3, 2020
raitisbe added a commit that referenced this issue Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants