A
A
Adex2017-08-11 22:36:17
Pug
Adex, 2017-08-11 22:36:17

How to make a separate class for the first element in the PUG mixin?

https://codepen.io/anon/pen/JyNMWz?editors=1000
I made such a mixin for nested lists, but due to layout specificity, the very first link should have a separate class and not have common classes with other links (i.e. .Services should have their own styles and not interact with the styles of other links). Can this be done somehow?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2017-08-12
@Adex

For example, add an index and check it
each item, index in data.items

M
mrSand, 2017-09-13
@mrSand

this is a native task for CSS and not for the template engine.
Is it just me?)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question