cognitom / riot-bootstrap

Bootstrap-like Components for Riot.js
http://cognitom.github.io/riot-bootstrap/
136 stars 11 forks source link

<style scoped> only works in FF #8

Closed nevf closed 9 years ago

nevf commented 9 years ago

From my reading <style scoped> is only supported by Firefox. The Demo does work in Chrome, which may simply be ignoring the scoped keyword.

rsbondi commented 9 years ago

riot does its own scoping replacing selector {...} with my-tag selector {...}

nevf commented 9 years ago

@rsbondi Thanks for that, definitely good to know.

Slight change of discussion. If you use <style scoped> then I assume higher level CSS used to specify themes won't work. ie. the "danger" color for all Riot Bootstrap Tags.

cognitom commented 9 years ago

At this time, riot-bootstrap is providing no way to customise the theme. But this code works:

btn button[data-option="danger"] { background-color: red }

Theming seems an interest issue. Feel free to open a new one :)