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