New buttons styles for default theme

This commit is contained in:
James Koster 2012-01-11 19:07:19 +00:00
parent c7a044cfd6
commit d77fef200d
3 changed files with 1538 additions and 255 deletions

File diff suppressed because it is too large Load Diff

View File

@ -317,17 +317,17 @@ form.cart {
.button { .button {
vertical-align: middle; vertical-align: middle;
float: left; float: left;
margin: 2px 0; //margin: 2px 0;
} }
} }
span.onsale { span.onsale {
background: green;
color: #fff; color: #fff;
min-height: 32px; min-height: 32px;
min-width: 32px; min-width: 32px;
padding: 4px; padding: 4px;
font-size: 12px; font-size: 12px;
font-weight: bold;
position: absolute; position: absolute;
text-align: center; text-align: center;
line-height: 32px; line-height: 32px;
@ -335,6 +335,20 @@ span.onsale {
left: 6px; left: 6px;
margin:0; margin:0;
.border_radius(20px); .border_radius(20px);
.vertical_gradient(#a1c41e,#8fae1b);
.text_shadow(0,-1px,0,#8fae1b);
-webkit-box-shadow:
inset 0 1px 0 rgba(255,255,255,0.3),
inset 0 -1px 0 rgba(0,0,0,0.2),
0 1px 2px rgba(0,0,0,0.2);
-moz-box-shadow:
inset 0 1px 0 rgba(255,255,255,0.3),
inset 0 -1px 0 rgba(0,0,0,0.2),
0 1px 2px rgba(0,0,0,0.2);
box-shadow:
inset 0 1px 0 rgba(255,255,255,0.3),
inset 0 -1px 0 rgba(0,0,0,0.2),
0 1px 2px rgba(0,0,0,0.2);
} }
.products ul, ul.products { .products ul, ul.products {
@ -390,6 +404,7 @@ ul.products {
display: block; display: block;
margin: 0 0 8px; margin: 0 0 8px;
border: 1px solid #ddd; border: 1px solid #ddd;
.box_shadow(0,1px,2px,0,rgba(0,0,0,0.1));
} }
a:hover img { a:hover img {
border: 1px solid #bbb; border: 1px solid #bbb;
@ -433,36 +448,61 @@ ul.products {
/* =Buttons /* =Buttons
-------------------------------------------------------------- */ -------------------------------------------------------------- */
a.button, button.button, input.button, #review_form #submit { a.button, button.button, input.button, #review_form #submit {
color: #fff; font-size: 100%;
background-color: #ff9c07; margin: 0;
padding: 6px; vertical-align: baseline;
line-height: 1em; *vertical-align: middle;
margin: 4px 2px 0 0; line-height: normal;
float: left;
font-size: 12px;
width: auto;
vertical-align: middle;
text-align: center;
text-decoration: none;
border:none;
cursor: pointer; cursor: pointer;
font-family: inherit;
.border_radius(3px);
position: relative; position: relative;
.transition(); font-family: sans-serif;
text-decoration:none;
overflow:visible;
border:1px solid #969696;
.vertical_gradient(#f5f5f5,#e1e1e1);
padding:5px 10px;
color:#676767;
text-decoration:none;
font-weight:bold;
text-shadow:0 1px 0 #fff;
margin:0;
.border_radius(2px);
-webkit-box-shadow:
inset 0 -1px 0 rgba(0,0,0,0.075),
inset 0 1px 0 rgba(255,255,255,0.3),
0 1px 2px rgba(0,0,0,0.1);
-moz-box-shadow:
inset 0 -1px 0 rgba(0,0,0,0.075),
inset 0 1px 0 rgba(255,255,255,0.3),
0 1px 2px rgba(0,0,0,0.1);
box-shadow:
inset 0 -1px 0 rgba(0,0,0,0.075),
inset 0 1px 0 rgba(255,255,255,0.3),
0 1px 2px rgba(0,0,0,0.1);
&.loading { &.loading {
.opacity(0.5); //.opacity(0.5);
color:#999;
border-color:#ccc;
&:before { &:before {
content:""; /*content:"";
position: absolute; position: absolute;
height:16px; height:16px;
width:16px; width:16px;
top:0.35em; top:0.35em;
right:-26px; right:-26px;
text-indent: 0; text-indent: 0;
background: url(../images/ajax-loader.gif) no-repeat; background: url(../images/ajax-loader.gif) no-repeat;*/
content: "";
position: absolute;
top:0;
right:0;
left:0;
bottom:0;
background: url(../images/ajax-loader.gif) center no-repeat rgba(255,255,255,0.65);
} }
} }
@ -480,36 +520,35 @@ a.button, button.button, input.button, #review_form #submit {
} }
&:hover { &:hover {
background-color: #ff9933; .vertical_gradient(#fafafa,#e6e6e6);
text-decoration: none; text-decoration: none;
} }
&:active {
top:1px;
}
&.alt {
.vertical_gradient(#ad74a2,#935386);
border-color:#522e4b;
color:#fff;
.text_shadow(0,-1px,0,rgba(0,0,0,0.6));
&:hover {
.vertical_gradient(#b784ad,#935386);
}
}
}
input.button {
padding-top:6px;
padding-bottom:7px;
} }
.cart .button, .cart input.button { .cart .button, .cart input.button {
float:none; float:none;
} }
.button.alt {
color: #fff;
background: #069bcd;
padding: 6px;
line-height: 1em;
margin: 4px 2px 0 0;
float: left;
font-size: 12px;
width: auto;
vertical-align: middle;
text-align: center;
text-decoration: none;
border:none;
cursor: pointer;
font-family: inherit;
.border_radius(3px);
}
.button.alt:hover {
background:#0588b5;
}
/* =Reviews/comments /* =Reviews/comments
-------------------------------------------------------------- */ -------------------------------------------------------------- */
#reviews { #reviews {
@ -709,7 +748,7 @@ table.shop_table {
vertical-align: middle; vertical-align: middle;
a.button { a.button {
margin:0 3px; //margin:0 3px;
} }
} }
tfoot td { tfoot td {
@ -725,7 +764,7 @@ table.my_account_orders {
} }
.button { .button {
white-space: nowrap; white-space: nowrap;
margin: 4px 0; //margin: 4px 0;
} }
} }
@ -809,7 +848,7 @@ td.actions {
} }
.button.alt { .button.alt {
float: right; float: right;
margin:2px 0 0 6px; //margin:2px 0 0 6px;
} }
} }
td.product-name { td.product-name {
@ -831,36 +870,78 @@ td.product-name {
td.quantity { td.quantity {
min-width: 80px; min-width: 80px;
} }
.quantity input { .quantity {
margin-left:0; margin-right:0; width:60px;
position: relative;
input.qty {
width:40px;
height:28px;
padding:0;
text-align: center;
border:1px solid #969696;
border-right:0;
.border_radius_right(0);
.inset_box_shadow(0,0,2px,0,#ccc);
font-weight: bold;
.border_radius_left(2px);
} }
.quantity input.qty {
border:1px solid #ccc; .plus, .minus {
display: block;
padding:0;
position: absolute;
text-align: center;
vertical-align: text-top;
margin:0 !important;
width:20px; width:20px;
display: inline; height: 15px;
padding:1px 5px 2px; text-decoration:none;
line-height: 1em; overflow:visible;
vertical-align: middle; border:1px solid #969696;
.vertical_gradient(#f5f5f5,#e1e1e1);
color:#676767;
text-decoration:none;
font-weight:bold;
text-shadow:0 1px 0 #fff;
margin:0; margin:0;
}
.quantity input.plus, .quantity input.minus {
background: #ccc;
padding: 4px;
vertical-align: middle;
line-height: 1em;
border:none; width:20px;
color:#fff;
cursor: pointer; cursor: pointer;
margin:0; line-height: 0em;
display:inline; .border_radius(2px);
border:0; -webkit-box-shadow:
inset 0 -1px 0 rgba(0,0,0,0.075),
inset 0 1px 0 rgba(255,255,255,0.3),
0 1px 2px rgba(0,0,0,0.1);
-moz-box-shadow:
inset 0 -1px 0 rgba(0,0,0,0.075),
inset 0 1px 0 rgba(255,255,255,0.3),
0 1px 2px rgba(0,0,0,0.1);
box-shadow:
inset 0 -1px 0 rgba(0,0,0,0.075),
inset 0 1px 0 rgba(255,255,255,0.3),
0 1px 2px rgba(0,0,0,0.1);
&:hover {
.vertical_gradient(#f5f5f5,#e6e6e6);
}
}
.plus {
top:0;
right:0;
border-bottom:0;
.border_radius_bottom(0);
}
.minus {
bottom:0;
right:0;
.border_radius_top(0);
}
} }
.quantity input.minus { .border_radius_left(5px); }
.quantity input.plus { .border_radius_right(5px); float:none; }
.quantity input.minus:hover, .quantity input.plus:hover { background: #f93; }
.cart input { .cart input {
width:100px; //width:100px;
margin: 0; margin: 0;
vertical-align: middle; vertical-align: middle;
line-height: 1em; line-height: 1em;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 911 B