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

JS code ? #412

Open
9Emi opened this issue Mar 9, 2018 · 7 comments
Open

JS code ? #412

9Emi opened this issue Mar 9, 2018 · 7 comments
Labels

Comments

@9Emi
Copy link

9Emi commented Mar 9, 2018

Where is javascript code for navbar ,Modals,....,. ?

@Vectrex
Copy link

Vectrex commented Mar 10, 2018

Nowhere? To quote the documentation:

Spectre.css does not include JavaScript code, you will need to implement your JS to interact with modals.

@9Emi
Copy link
Author

9Emi commented Mar 11, 2018

# but why navbar is not responsive
01

@Vectrex
Copy link

Vectrex commented Mar 11, 2018

Haven't used the navbar and I'm not the author of Spectre.css, but responsiveness doesn't require JS. You might want to report this issue as a bug.

@anthrogan
Copy link

You'd have to write your own JS to change the display of the navbar. In to a burger menu for example. If you want a out the box responsive menu use tabs

@picturepan2
Copy link
Owner

@9Emi There is no JS in Spectre, because JS code is opinionated thing. There are already some pure CSS solutions.

@iredmail
Copy link

Why not leave this half-done? Why not make it working out of box with CSS built in spectre? This tab-thing is very useful. Please consider implementing it out of box.

@niutech
Copy link

niutech commented Apr 12, 2024

Which Spectre components require JS? Modals, accordions and tabs are pure CSS, no JS in my version 0.6.0.

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

No branches or pull requests

6 participants