mirror of https://github.com/twbs/ratchet.git
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.
126 lines
3.1 KiB
126 lines
3.1 KiB
11 years ago
|
/* General button styles
|
||
|
-------------------------------------------------- */
|
||
|
|
||
|
[class*="button"] {
|
||
|
position: relative;
|
||
|
display: inline-block;
|
||
|
padding: 4px 12px;
|
||
|
margin: 0;
|
||
|
font-weight: bold;
|
||
|
line-height: 18px;
|
||
|
color: #333;
|
||
|
text-align: center;
|
||
|
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
|
||
|
vertical-align: top;
|
||
|
cursor: pointer;
|
||
|
background-color: #f8f8f8;
|
||
|
background-image: -webkit-linear-gradient(top, #f8f8f8 0, #d4d4d4 100%);
|
||
|
background-image: linear-gradient(to bottom, #f8f8f8 0, #d4d4d4 100%);
|
||
|
border: 1px solid rgba(0, 0, 0, .3);
|
||
|
border-radius: 3px;
|
||
|
box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4), 0 1px 2px rgba(0, 0, 0, .05);
|
||
|
}
|
||
|
|
||
|
/* Active */
|
||
|
[class*="button"]:active {
|
||
|
padding-top: 5px;
|
||
|
padding-bottom: 3px;
|
||
|
color: #333;
|
||
|
background-color: #ccc;
|
||
|
background-image: none;
|
||
|
box-shadow: inset 0 3px 3px rgba(0, 0, 0, .2);
|
||
|
}
|
||
|
|
||
|
/* Button modifiers
|
||
|
-------------------------------------------------- */
|
||
|
|
||
|
/* Overriding styles for buttons with modifiers */
|
||
|
.button-main,
|
||
|
.button-positive,
|
||
|
.button-negative {
|
||
|
color: #fff;
|
||
|
text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
|
||
|
}
|
||
|
|
||
|
/* Main button */
|
||
|
.button-main {
|
||
|
background-color: #1eafe7;
|
||
|
background-image: -webkit-linear-gradient(top, #1eafe7 0, #1a97c8 100%);
|
||
|
background-image: linear-gradient(to bottom, #1eafe7 0, #1a97c8 100%);
|
||
|
border: 1px solid #117aaa;
|
||
|
}
|
||
|
|
||
|
/* Positive button */
|
||
|
.button-positive {
|
||
|
background-color: #34ba15;
|
||
|
background-image: -webkit-linear-gradient(top, #34ba15 0, #2da012 100%);
|
||
|
background-image: linear-gradient(to bottom, #34ba15 0, #2da012 100%);
|
||
|
border: 1px solid #278f0f;
|
||
|
}
|
||
|
|
||
|
/* Negative button */
|
||
|
.button-negative {
|
||
|
background-color: #e71e1e;
|
||
|
background-image: -webkit-linear-gradient(top, #e71e1e 0,#c71a1a 100%);
|
||
|
background-image: linear-gradient(to bottom, #e71e1e 0, #c71a1a 100%);
|
||
|
border: 1px solid #b51a1a;
|
||
|
}
|
||
|
|
||
|
/* Active state for buttons with modifiers */
|
||
|
.button-main:active,
|
||
|
.button-positive:active,
|
||
|
.button-negative:active {
|
||
|
color: #fff;
|
||
|
}
|
||
|
.button-main:active {
|
||
|
background-color: #0876b1;
|
||
|
}
|
||
|
.button-positive:active {
|
||
|
background-color: #298f11;
|
||
|
}
|
||
|
.button-negative:active {
|
||
|
background-color: #b21a1a;
|
||
|
}
|
||
|
|
||
|
/* Block level buttons (full width buttons) */
|
||
|
.button-block {
|
||
|
display: block;
|
||
|
padding: 11px 0 13px;
|
||
|
margin-bottom: 10px;
|
||
|
font-size: 16px;
|
||
|
}
|
||
|
|
||
|
/* Active state for block level buttons */
|
||
|
.button-block:active {
|
||
|
padding: 12px 0;
|
||
|
}
|
||
|
|
||
|
/* Make button elements go full width when given .button-block class */
|
||
|
button.button-block {
|
||
|
width: 100%;
|
||
|
}
|
||
|
|
||
|
/* Counts in buttons
|
||
|
-------------------------------------------------- */
|
||
|
|
||
|
/* Generic styles for all counts within buttons */
|
||
|
[class*="button"] [class*="count"] {
|
||
|
padding-top: 2px;
|
||
|
padding-bottom: 2px;
|
||
|
margin-right: -4px;
|
||
|
margin-left: 4px;
|
||
|
text-shadow: none;
|
||
|
background-color: rgba(0, 0, 0, .2);
|
||
|
box-shadow: inset 0 1px 1px -1px #000000, 0 1px 1px -1px #fff;
|
||
|
}
|
||
|
|
||
|
/* Position counts within block level buttons
|
||
|
Note: These are absolutely positioned so that text of button isn't "pushed" by count and always
|
||
|
stays at true center of button */
|
||
|
.button-block [class*="count"] {
|
||
|
position: absolute;
|
||
|
right: 0;
|
||
|
padding-top: 4px;
|
||
|
padding-bottom: 4px;
|
||
|
margin-right: 10px;
|
||
|
}
|