Skip to content
This repository has been archived by the owner on Jul 11, 2018. It is now read-only.

ngui overlay - how to change the styles #26

Open
Cristina-Alboni opened this issue Apr 18, 2017 · 2 comments
Open

ngui overlay - how to change the styles #26

Cristina-Alboni opened this issue Apr 18, 2017 · 2 comments

Comments

@Cristina-Alboni
Copy link

Hello,

I integrated the overlay in my project and I have some style issues.
What I need is to apply a custom style on the "ngui-overlay" element, which changes the transparency and z-index.
The "ngui-overlay" element is automatically added in the code behind and it looks like below:

<ngui-overlay style="display: flex; position: fixed; background-color: rgba(0, 0, 0, 0.2); top: 0px; left: 0px; bottom: 0px; right: 0px; width: 100%; height: 100%; justify-content: center; align-items: center;"><div id="window-loading" ngui-overlay-of="window" ng-reflect-overlay-of="window">

Shouldn't there be a possibility to add a custom class on this element, when it is generated? And this class should be added as attribute to the element, in case someone wants to use it.

Thank you.

@allenhwkim
Copy link
Contributor

I think you can override inline style with !important.

https://css-tricks.com/override-inline-styles-with-css/

@ghost
Copy link

ghost commented Jul 8, 2017

How does this solve the problem, the ngui-overlay element is dynamically created.
One would need to add this in component's css

:host /deep/ ng2-overlay{
 //add css here
}

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

No branches or pull requests

2 participants