glidejs / glide

A dependency-free JavaScript ES6 slider and carousel. It’s lightweight, flexible and fast. Designed to slide. No less, no more
https://glidejs.com
MIT License
7.28k stars 771 forks source link

Reduce CSS classes #5

Closed rilwis closed 11 years ago

rilwis commented 11 years ago

I see you're using slider, slides & slide classes in CSS. IMHO, we can use only slider class (or better glide to not conflict with other sliders if we're using 2 sliders on same page) and style other elements using slider ul, slider li, etc.

jedrzejchalubek commented 11 years ago

There are no contraindications to do so. But this is not consistent with the OOCSS & BEM assumptions, also efficiency and css specificity management becomes more difficult.

As I wrote on the slider: "I needed simple and fast slider with fully customizable OOCSS markup."

If you worry about js & css conflicts just make sure that classes are unique. There is no other way but to adapt it to the specific project.