spectre icon indicating copy to clipboard operation
spectre copied to clipboard

JS code ?

Open 9Emi opened this issue 8 years ago • 7 comments

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

9Emi avatar Mar 09 '18 18:03 9Emi

Nowhere? To quote the documentation:

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

Vectrex avatar Mar 10 '18 12:03 Vectrex

# but why navbar is not responsive 01

9Emi avatar Mar 11 '18 21:03 9Emi

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.

Vectrex avatar Mar 11 '18 21:03 Vectrex

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

anthrogan avatar Apr 09 '18 08:04 anthrogan

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

picturepan2 avatar Apr 22 '18 07:04 picturepan2

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.

iredmail avatar May 14 '18 09:05 iredmail

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

niutech avatar Apr 12 '24 15:04 niutech