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

Example of color styling #6

Closed
cassandi opened this issue Sep 11, 2019 · 1 comment
Closed

Example of color styling #6

cassandi opened this issue Sep 11, 2019 · 1 comment

Comments

@cassandi
Copy link

Hello,

In your demo, could you please provide some examples of the intended usage of custom classes for styling?

Thank you

@mopcweb
Copy link
Owner

mopcweb commented Sep 25, 2019

Hello, @dicksonca
Example of calling component in your app:

`<angular-breadcrumbs-light
[routes]="routes"
notFoundIcon='❗'
noTitlesOnMobile="true"
[customClasses]="{
root: 'customRootClass',
currentLink: 'customCurrentLinkClass',
separator: 'customSeparatorClass'
}"

`

And add this classes in your global stylesheet (by default: src/styles.css):

`.customRootClass {
margin: 40px;
}

.customCurrentLinkClass {
color: green !important;
}

.customSeparatorClass {
color: red;
position: relative;
}

.customSeparatorClass::after {
color: yellow;
display: block;
content: 'sep text from css'
}`

I've implemented this demo here.

You can also find all available classes here.

@mopcweb mopcweb closed this as completed Sep 25, 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

No branches or pull requests

2 participants