Browse Source

Squishing buttons, counts and stuff.

pull/210/head
connors 11 years ago
parent
commit
003a4ad286
  1. 27
      lib/css/buttons.css
  2. 2
      lib/css/counts.css
  3. 2
      lib/css/toggles.css

27
lib/css/buttons.css

@ -10,25 +10,16 @@
line-height: 18px; line-height: 18px;
color: #333; color: #333;
text-align: center; text-align: center;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
vertical-align: top; vertical-align: top;
cursor: pointer; cursor: pointer;
background-color: #f8f8f8; background-color: transparent;
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: 1px solid rgba(0, 0, 0, .3);
border-radius: 3px; border-radius: 3px;
box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4), 0 1px 2px rgba(0, 0, 0, .05);
} }
/* Active */ /* Active */
[class*="button"]:active { [class*="button"]:active {
padding-top: 5px;
padding-bottom: 3px;
color: #333;
background-color: #ccc;
background-image: none; background-image: none;
box-shadow: inset 0 3px 3px rgba(0, 0, 0, .2);
} }
/* Button modifiers /* Button modifiers
@ -39,30 +30,23 @@
.button-positive, .button-positive,
.button-negative { .button-negative {
color: #fff; color: #fff;
text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
} }
/* Main button */ /* Main button */
.button-main { .button-main {
background-color: #1eafe7; 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; border: 1px solid #117aaa;
} }
/* Positive button */ /* Positive button */
.button-positive { .button-positive {
background-color: #34ba15; background-color: #4cd964;
background-image: -webkit-linear-gradient(top, #34ba15 0, #2da012 100%);
background-image: linear-gradient(to bottom, #34ba15 0, #2da012 100%);
border: 1px solid #278f0f; border: 1px solid #278f0f;
} }
/* Negative button */ /* Negative button */
.button-negative { .button-negative {
background-color: #e71e1e; 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; border: 1px solid #b51a1a;
} }
@ -90,10 +74,6 @@
font-size: 16px; font-size: 16px;
} }
/* Active state for block level buttons */
.button-block:active {
padding: 12px 0;
}
/* Counts in buttons /* Counts in buttons
-------------------------------------------------- */ -------------------------------------------------- */
@ -105,8 +85,7 @@
margin-right: -4px; margin-right: -4px;
margin-left: 4px; margin-left: 4px;
text-shadow: none; text-shadow: none;
background-color: rgba(0, 0, 0, .2); background-color: rgba(0, 0, 0, .1);
box-shadow: inset 0 1px 1px -1px #000000, 0 1px 1px -1px #fff;
} }
/* Position counts within block level buttons /* Position counts within block level buttons

2
lib/css/counts.css

@ -29,7 +29,7 @@
/* Positive count */ /* Positive count */
.count-positive { .count-positive {
background-color: #34ba15; background-color: #4cd964;
} }
/* Negative count */ /* Negative count */

2
lib/css/toggles.css

@ -21,7 +21,7 @@
background-color: #fff; background-color: #fff;
border: 1px solid rgba(0, 0, 0, .1); border: 1px solid rgba(0, 0, 0, .1);
border-radius: 100px; border-radius: 100px;
box-shadow: 0 3px 3px rgba(0,0,0,.1); box-shadow: 0 3px 3px rgba(0,0,0,.08);
-webkit-transition: -webkit-transform 0.1s ease-in-out, border 0.1s ease-in-out; -webkit-transition: -webkit-transform 0.1s ease-in-out, border 0.1s ease-in-out;
transition: transform 0.1s ease-in-out, border 0.1s ease-in-out; transition: transform 0.1s ease-in-out, border 0.1s ease-in-out;
} }

Loading…
Cancel
Save