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

Overbodig class gebruik (Direct code aanspreken) #3

Open
D-spacezero opened this issue Mar 10, 2023 · 1 comment
Open

Overbodig class gebruik (Direct code aanspreken) #3

D-spacezero opened this issue Mar 10, 2023 · 1 comment

Comments

@D-spacezero
Copy link

Bij bijvoorbeeld header.ejs

Classes als nav-list, nav-item, nav-link kunnen allemaal aangespronken door gerichte css

inplaats van bijvoorbeeld:

.nav-link {
color: var(--darkblue);
font-weight: 400;
font-family: 'Montserrat', sans-serif;
}

.nav-link:hover {
color: var(--green);
}

maak ervan

.nav-menu>ul>li>a {
color: var(--darkblue);
font-weight: 400;
font-family: 'Montserrat', sans-serif;
}

.nav-menu>ul>li>a:hover {
color: var(--green);
}

@sannevanseeventer
Copy link
Owner

Bedankt voor je handige feedback en de extra toelichting toen ik het niet begreep! Ik ga ermee aan de slag :)

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