Skip to content

Commit

Permalink
Added product hunt & Move buttons out of beta
Browse files Browse the repository at this point in the history
  • Loading branch information
ganapativs committed Jan 4, 2017
1 parent 0090e83 commit 42c731b
Show file tree
Hide file tree
Showing 21 changed files with 33 additions and 49 deletions.
5 changes: 1 addition & 4 deletions demo/components/bttns.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,28 +69,25 @@ export default [
displayName: 'Material - flat',
texts: defaultText
},
// Beta buttons
{
name: 'pill',
className: 'bttn-pill',
displayName: 'Pill',
isBeta: true,
texts: defaultText
},
{
name: 'float',
className: 'bttn-float',
displayName: 'Float',
isBeta: true,
texts: defaultText
},
{
name: 'unite',
className: 'bttn-unite',
displayName: 'Unite',
isBeta: true,
texts: defaultText
},
// Beta buttons
{
name: 'slant',
className: 'bttn-slant',
Expand Down
4 changes: 2 additions & 2 deletions demo/components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default class Header extends Component {
<div class="row col-xs-12 col-sm-8 col-md-6 col-lg-6 col-md-offset-3 col-lg-offset-3
col-sm-offset-2 around-xs author animated fadeInUp">
<div class="col-xs-12 download-bttn center-xs">
v0.2.3 • with ❤
v0.2.4 • with ❤
<a href="https://twitter.com/ganapativs" target="_blank">
<button class="bttn-simple bttn-sm bttn-no-outline">
@ganapativs
Expand All @@ -70,7 +70,7 @@ export default class Header extends Component {
<a href="https://www.producthunt.com/posts/bttn-css" target="_blank">
<div className="product-hunt-featured">
<h3 class="animated fadeInUp">Featured on</h3>
<span>
<span className="hint--bottom hint--bounce hint--rounded" data-hint="Product Hunt">
<img class="animated fadeInUp" src="http://i.imgur.com/BPK4eNA.png"/>
</span>
</div>
Expand Down
1 change: 0 additions & 1 deletion demo/components/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default class Options extends Component {
render({colors, sizes, fixed, setColor, setSize, activeColor, activeSize, blockButton, buttonOutline, setOptions}) {
let activeSizeIndex = Object.keys(sizes).findIndex((size) => size === activeSize);
let activeColorIndex = Object.keys(colors).find((color) => color === activeColor);
console.log(blockButton, buttonOutline)
return (
<div class={{"options-chooser animated fadeInUp": true, "fixed": fixed}}>
<div className="options-chooser-container">
Expand Down
38 changes: 13 additions & 25 deletions demo/styles/demo.styl
Original file line number Diff line number Diff line change
Expand Up @@ -448,17 +448,16 @@ body
animation slide-to-left 0.3s 1.2s anim_func forwards
.product-hunt-featured
position: absolute;
right: 0;
right: 20%;
height: 100%;
top: 0;
width: 45%;
text-align: left;
padding-left: 10%;
width: 25%;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
h3
color cWhite
color #da5630
animation-delay 1.8s
margin-top: -10px;
animation-duration 0.8s
Expand All @@ -469,21 +468,21 @@ body
animation-duration 0.8s
span
transition transform 0.2s 0.2s anim_func
display: inline-table;
span
&:hover
transform scale(1.2)
transform scale(1.1)
transition transform 0.2s anim_func
&:before
content ''
position: absolute;
background: #607D8B;
width: 0%;
height: 100%;
left: 30%;
background: transparent;
width: 0;
height: 110%;
left: 50%;
top: -5%;
transform: skewX(-10deg);
z-index: -1;
box-shadow: inset 20px 0 50px rgba(0,0,0,0.6), inset -10px 0 20px rgba(0,0,0,0.3);
box-shadow: inset 20px 0 50px #ecebd6, inset -10px 0 20px #ecebd6;
animation expand-from-left 0.3s 1.5s anim_func forwards

@keyframes slide-to-left {
Expand All @@ -498,21 +497,10 @@ body
@keyframes expand-from-left {
from {
width: 0
left: 30%;
left: 50%;
}
to {
width: 60%;
width: 100%;
left: 0
}
}

@keyframes scale-to-top {
from {
height 0
top: 50%;
}
to {
height 90%
top: 5%;
}
}
2 changes: 1 addition & 1 deletion dist/bttn.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*!
*
* bttn.css - https://ganapativs.github.io/bttn.css
* Version - 0.2.3
* Version - 0.2.4
* Demo: https://bttn.surge.sh
*
* Licensed under the MIT license - http://opensource.org/licenses/MIT
Expand Down
2 changes: 1 addition & 1 deletion dist/bttn.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/standalone/bordered.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*!
*
* bttn.css - https://ganapativs.github.io/bttn.css
* Version - 0.2.3
* Version - 0.2.4
* Demo: https://bttn.surge.sh
*
* Licensed under the MIT license - http://opensource.org/licenses/MIT
Expand Down
2 changes: 1 addition & 1 deletion dist/standalone/fill.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*!
*
* bttn.css - https://ganapativs.github.io/bttn.css
* Version - 0.2.3
* Version - 0.2.4
* Demo: https://bttn.surge.sh
*
* Licensed under the MIT license - http://opensource.org/licenses/MIT
Expand Down
2 changes: 1 addition & 1 deletion dist/standalone/float.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*!
*
* bttn.css - https://ganapativs.github.io/bttn.css
* Version - 0.2.3
* Version - 0.2.4
* Demo: https://bttn.surge.sh
*
* Licensed under the MIT license - http://opensource.org/licenses/MIT
Expand Down
2 changes: 1 addition & 1 deletion dist/standalone/gradient.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*!
*
* bttn.css - https://ganapativs.github.io/bttn.css
* Version - 0.2.3
* Version - 0.2.4
* Demo: https://bttn.surge.sh
*
* Licensed under the MIT license - http://opensource.org/licenses/MIT
Expand Down
2 changes: 1 addition & 1 deletion dist/standalone/jelly.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*!
*
* bttn.css - https://ganapativs.github.io/bttn.css
* Version - 0.2.3
* Version - 0.2.4
* Demo: https://bttn.surge.sh
*
* Licensed under the MIT license - http://opensource.org/licenses/MIT
Expand Down
2 changes: 1 addition & 1 deletion dist/standalone/material-circle.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*!
*
* bttn.css - https://ganapativs.github.io/bttn.css
* Version - 0.2.3
* Version - 0.2.4
* Demo: https://bttn.surge.sh
*
* Licensed under the MIT license - http://opensource.org/licenses/MIT
Expand Down
2 changes: 1 addition & 1 deletion dist/standalone/material-flat.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*!
*
* bttn.css - https://ganapativs.github.io/bttn.css
* Version - 0.2.3
* Version - 0.2.4
* Demo: https://bttn.surge.sh
*
* Licensed under the MIT license - http://opensource.org/licenses/MIT
Expand Down
2 changes: 1 addition & 1 deletion dist/standalone/minimal.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*!
*
* bttn.css - https://ganapativs.github.io/bttn.css
* Version - 0.2.3
* Version - 0.2.4
* Demo: https://bttn.surge.sh
*
* Licensed under the MIT license - http://opensource.org/licenses/MIT
Expand Down
2 changes: 1 addition & 1 deletion dist/standalone/pill.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*!
*
* bttn.css - https://ganapativs.github.io/bttn.css
* Version - 0.2.3
* Version - 0.2.4
* Demo: https://bttn.surge.sh
*
* Licensed under the MIT license - http://opensource.org/licenses/MIT
Expand Down
2 changes: 1 addition & 1 deletion dist/standalone/simple.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*!
*
* bttn.css - https://ganapativs.github.io/bttn.css
* Version - 0.2.3
* Version - 0.2.4
* Demo: https://bttn.surge.sh
*
* Licensed under the MIT license - http://opensource.org/licenses/MIT
Expand Down
2 changes: 1 addition & 1 deletion dist/standalone/slant.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*!
*
* bttn.css - https://ganapativs.github.io/bttn.css
* Version - 0.2.3
* Version - 0.2.4
* Demo: https://bttn.surge.sh
*
* Licensed under the MIT license - http://opensource.org/licenses/MIT
Expand Down
2 changes: 1 addition & 1 deletion dist/standalone/stretch.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*!
*
* bttn.css - https://ganapativs.github.io/bttn.css
* Version - 0.2.3
* Version - 0.2.4
* Demo: https://bttn.surge.sh
*
* Licensed under the MIT license - http://opensource.org/licenses/MIT
Expand Down
2 changes: 1 addition & 1 deletion dist/standalone/unite.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*!
*
* bttn.css - https://ganapativs.github.io/bttn.css
* Version - 0.2.3
* Version - 0.2.4
* Demo: https://bttn.surge.sh
*
* Licensed under the MIT license - http://opensource.org/licenses/MIT
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bttn.css",
"version": "0.2.3",
"version": "0.2.4",
"description": "Awesome buttons for awesome projects!",
"main": "bttn.min.css",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/copyright.styl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*!!
*
* bttn.css - https://ganapativs.github.io/bttn.css
* Version - 0.2.3
* Version - 0.2.4
* Demo: https://bttn.surge.sh
*
* Licensed under the MIT license - http://opensource.org/licenses/MIT
Expand Down

0 comments on commit 42c731b

Please sign in to comment.