justboil / bulma-switch-control Goto Github PK
View Code? Open in Web Editor NEWSwitch controls for Bulma CSS Framework
Home Page: https://justboil.github.io/bulma-switch-control/
License: MIT License
Switch controls for Bulma CSS Framework
Home Page: https://justboil.github.io/bulma-switch-control/
License: MIT License
Thanks for your good component to use easily.
I will use this component with bulmaswatch, and I wrote a scss file.
@import "bulma-switch-control/bulma-switch-control";
@import "bulmaswatch/flatly/bulmaswatch";
Then, the styles(especially colors) are broken.
I found _variables.scss imports bulma, I feel happy the line is separated.
Thank you.
bulma-switch-control: 1.1.1
sass: 1.39.2
[WEBPACK] DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
[WEBPACK]
[WEBPACK] Recommendation: math.div($switch-width, 2)
[WEBPACK]
[WEBPACK] More info and automated migrator: https://sass-lang.com/d/slash-div
[WEBPACK]
[WEBPACK] ╷
[WEBPACK] 25 │ height: #{$switch-width / 2 + $switch-padding};
[WEBPACK] │ ^^^^^^^^^^^^^^^^^
[WEBPACK] ╵
[WEBPACK] node_modules/bulma-switch-control/scss/_switch.scss 25:17 @import
[WEBPACK] node_modules/bulma-switch-control/bulma-switch-control.scss 3:9 @import
Hi,
We're using this Bulma switch in our ElectronJS application. We've successfully added the switch component but can't modify the color of it.
We've imported @import "~bulma-switch-control";
in our SCSS
file and using the components in a ts
file as follows,
<label className="switch is-rounded">
<input type="checkbox"
// and so on
We've tried adding is-success
and is-danger
to className
following https://wikiki.github.io/form/switch/ but no effect.
Any comments would be appreciated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.