csswizardry / beautons Goto Github PK
View Code? Open in Web Editor NEWA beautifully simple button toolkit
Home Page: http://csswizardry.com/beautons
A beautifully simple button toolkit
Home Page: http://csswizardry.com/beautons
Wouldn't it be visually more consistent, when a disabled button has cursor: default
? This way the cursor doesn't change at all, when it enters the button. Otherwise there is this slight hint of possible action, and be it only to mark the text of it.
.btn--natural.btn--disabled
could remain with cursor: text
, since this is most probably the cursor state around it.
What's the license?
I'd like to see you set your .btn--soft
border-radius
in em
s instead of pixels. That way, the border radii will always be larger than the button's font-size
.
I know 200px
is set to be an extreme, but someone may view your button on a ultra-wide television screen and the pill-like effect will be lost.
I'd like to see some hover, click, active and visited states. Something like the following that could add to the button without affecting the individual styles:
.btn{ /* drop shadow */
-webkit-box-shadow: rgba(0, 0, 0, 0.5) .2em .2em .2em;
-moz-box-shadow: rgba(0, 0, 0, 0.5) .2em .2em .2em;
box-shadow: rgba(0, 0, 0, 0.5) .2em .2em .2em;
}
.btn:focus
.btn:hover{ /* drop shadow with glow */
-webkit-box-shadow: rgba(0, 0, 0, 0.5) .2em .2em .2em, inset 0 0 1em rgba(255, 255, 255, 0.5);
-moz-box-shadow: rgba(0, 0, 0, 0.5) .2em .2em .2em, inset 0 0 1em rgba(255, 255, 255, 0.5);
box-shadow: rgba(0, 0, 0, 0.5) .2em .2em .2em, inset 0 0 1em rgba(255, 255, 255, 0.5);
}
.btn:active,{ /*no shadow */
margin-top:.1em;
-webkit-box-shadow: 0 0 0 transparent;
-moz-box-shadow: 0 0 0 transparent;
box-shadow: 0 0 0 transparent;
}
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.