Modified Floating button based on Material Design specs.

feature/appm-store/pbac
Menaka Jayawardena 7 years ago
parent 3c83cd9b80
commit 8f1c09f779

@ -33,8 +33,10 @@ class FloatingButton extends Component {
let classes = 'btn-circle ' + this.props.className; let classes = 'btn-circle ' + this.props.className;
return ( return (
<div className={classes} onClick={this.handleClick.bind(this)}> <div className={classes} onClick={this.handleClick.bind(this)}>
<div className={classes + " btn-shade"}>
<i className="fw fw-add"></i> <i className="fw fw-add"></i>
</div> </div>
</div>
) )
} }
} }

@ -27,8 +27,20 @@
box-shadow: rgba(0, 0, 0, 0.156863) 0px 3px 10px, rgba(0, 0, 0, 0.227451) 0px 3px 10px box-shadow: rgba(0, 0, 0, 0.156863) 0px 3px 10px, rgba(0, 0, 0, 0.227451) 0px 3px 10px
} }
.btn-circle:hover {
cursor: pointer;
}
.btn-shade:focus {
background-color: rgba(0, 0, 0, .12);
}
.btn-circle i { .btn-circle i {
margin-top: 40%; height: 24px;
width: 24px;
font-size: 18px;
padding: 3px;
margin-top: 16px
} }
.small { .small {
@ -40,7 +52,3 @@
height: 100px; height: 100px;
width: 100px; width: 100px;
} }
.primary {
background-color: blue;
}

Loading…
Cancel
Save