Build mobile apps with simple HTML, CSS, and JS components. http://goratchet.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
1.7 KiB

//
// Buttons
// --------------------------------------------------
[class*="button"] {
position: relative;
display: inline-block;
padding: 4px 12px;
margin: 0;
font-weight: 500;
line-height: 1;
color: #333;
text-align: center;
vertical-align: top;
cursor: pointer;
background-color: transparent;
border: 1px solid rgba(0, 0, 0, .2);
border-radius: 4px;
// Active & filled button styles
&:active,
&.active,
&.button-filled {
color: #fff;
background-color: #333;
-webkit-transition: background-color .1s linear;
transition: background-color .1s linear;
}
// Disabled styles & filled button active styles
&:disabled,
&.disabled,
&.button-filled:active {
opacity: .6;
}
}
// Other button types
// --------------------------------------------------
// Primary button (Default color is blue)
.button-primary {
color: $app-color;
border: 1px solid $app-color;
&:active,
&.active,
&.button-filled {
background-color: $app-color;
}
}
// Positive button (Default color is green)
.button-positive {
color: $positive-color;
border: 1px solid $positive-color;
&:active,
&.active,
&.button-filled {
background-color: $positive-color;
}
}
// Negative button (Default color is red)
.button-negative {
color: $negative-color;
border: 1px solid $negative-color;
&:active,
&.active,
&.button-filled {
background-color: $negative-color;
}
}
// Block level buttons (full width buttons)
.button-block {
display: block;
padding: 12px 0;
margin-bottom: 10px;
font-size: 16px;
}
// Button overrides
// --------------------------------------------------
input[type="submit"],
input[type="reset"],
input[type="button"],
.button-block {
width: 100%;
}