Skip to content

Commit

Permalink
updated checkout nav, updated icon set, styles/templates for checkout…
Browse files Browse the repository at this point in the history
… area
  • Loading branch information
Jon Price committed Apr 15, 2013
1 parent d98f344 commit 83321e8
Show file tree
Hide file tree
Showing 27 changed files with 588 additions and 79 deletions.
32 changes: 32 additions & 0 deletions sites/demo/static/demo/fonts/icomoon.dev.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sites/demo/static/demo/fonts/icomoon.eot
Binary file not shown.
32 changes: 32 additions & 0 deletions sites/demo/static/demo/fonts/icomoon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sites/demo/static/demo/fonts/icomoon.ttf
Binary file not shown.
Binary file modified sites/demo/static/demo/fonts/icomoon.woff
Binary file not shown.
5 changes: 4 additions & 1 deletion sites/demo/static/demo/fonts/lte-ie7.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ window.onload = function() {
'icon-mail' : '',
'icon-plus' : '+',
'icon-noun_project_62' : '!',
'icon-arrow-down' : '"'
'icon-arrow-down' : '"',
'icon-check-alt' : '#',
'icon-x-altx-alt' : '$',
'icon-checkout-half-wheel' : '%'
},
els = document.getElementsByTagName('*'),
i, attr, html, c, el;
Expand Down
Binary file added sites/demo/static/demo/img/ui/sprite.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 15 additions & 1 deletion sites/demo/static/demo/js/site/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,21 @@
});
}

function matchHeight(hasChanged) {
if (!hasChanged) {
return;
}
var matchHeight = $('[data-behaviours~="match-height"]');

if(matchHeight.length > 1) {
var rowHeight = matchHeight.closest('.row-fluid').height() - 40;

matchHeight.each(function() {
$(this).css('min-height', rowHeight);
});
}
}


// Register modernizr function against all viewports
site.responsive.register(svgModernizr);
Expand All @@ -71,6 +86,5 @@
site.responsive.register(megaCarousel, ['desktop', 'tablet']);
site.responsive.register(productCarousel, ['desktop', 'tablet']);
site.responsive.register(productSingleCarousel, ['desktop', 'tablet']);
// site.responsive.register(productAffix, ['desktop', 'tablet']);

}(site, jQuery));
5 changes: 5 additions & 0 deletions sites/demo/static/demo/less/bootstrap/forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,11 @@ input.search-query {
select {
.input-block-level();
}
.checkbox, .radio {
input {
width:auto;
}
}
}
.form-search label,
.form-inline label,
Expand Down
2 changes: 1 addition & 1 deletion sites/demo/static/demo/less/bootstrap/layouts.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ body {
}

.page_inner {
padding:@gridGutterWidth 0;
padding:@gridGutterWidth 0 50px;
.clearfix();
}
6 changes: 6 additions & 0 deletions sites/demo/static/demo/less/bootstrap/type.less
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,18 @@ h3 {
// -------------------------

.page-header {
.clearfix();
margin: 0 0 (@baseLineHeight * 1.5);
h1 {
font-size:@headingTwoSize;
line-height: 38px;
text-transform: uppercase;
}
.verisign {
position: relative;
top:-10px;
float:right;
}
}
.well .sub-header {
margin: 0 0 (@baseLineHeight);
Expand Down
122 changes: 70 additions & 52 deletions sites/demo/static/demo/less/page/checkout.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
margin-bottom: 18px;
}
}
//Basket column names
.basket-title {
clear:both;
border:1px solid #ddd;
Expand All @@ -40,6 +41,7 @@
border-bottom-width:1px;
}
}
//Basket list item
.basket-items {
border-bottom:1px solid lighten(@grayLight, 30%);
padding:15px 0;
Expand Down Expand Up @@ -95,52 +97,35 @@
.checkout-proceed {
float:right;
text-align: right;
> span {
margin-bottom:30px;
span {
display:inline-block;
text-align: left;
margin:0 20px;
}
.credit-cards {
margin:0;
}
> strong {
font-size:@headingFourSize;
text-transform: uppercase;
display:block;
margin:20px 0;
}
}

.shipping_address {
h2 {
margin-bottom: @baseLineHeight;
}
}
//Shipping addresses
.choose-block {
margin-top:10px;
ul {
.remove_bullets();
.clearfix();
li {
width: @third;
float: left;
.default-address {
background-color: @grayLighter;
}
}
}
.well {
position:relative;
form {
position:relative;
padding-bottom:35px;
margin-bottom:0;
.ship-address {
bottom: 0;
position: absolute;
}
}
.remove-item {
position:absolute;
bottom: 10px;
right: 19px;
margin-bottom: 0;
input {
margin-bottom: 0;
}
}
form {
margin-bottom:0;
}
.well-info.default-address {
background-color: @successBackground;
Expand All @@ -160,35 +145,34 @@
}
}
}

.total {
background-color:#FDF5D9!important;
.shipping-payment {
.span6 > .well {
min-height:380px;
}
}
//Checkout navigation
.checkoutNav {
.container-fluid {
max-width: 960px;
}
position: relative;
margin:30px 0 60px;
hr {
margin:0;
border-top:2px solid @navbarInverseBackground;
margin:30px 0 50px;
background:#F2F2F2;
padding:5px 0;
border-top:2px solid @navbarInverseBackground;
border-bottom:1px solid #DDD;
i {
display:none;
vertical-align: bottom;
position: absolute;
bottom:0;
left:0;
width:100%;
}
i {
font-size: @headingTwoSize;
line-height: @headingFourSize;
vertical-align: middle;
position: relative;
top:5px;
}
div {
height:25px;
overflow: hidden;
left:0;
top:-25px;
}
ul {
.clearfix();
li {
position: relative;
list-style: none;
display:block;
text-align: center;
Expand All @@ -199,11 +183,45 @@
text-transform: uppercase;
color:@navbarInverseBackground;
font-size: 18px;
&.visited {
color:@green;
i:first-child + i {
display:inline-block;
font-size: @headingThreeSize;
line-height: @headingThreeSize;
}
a {
color:@green;
}
}
&.active {
color:@blue;
border-bottom:2px solid yellow;
i:first-child {
display:inline-block;
font-size: @headingTwoSize;
line-height: @headingTwoSize;
height:32px;
overflow: hidden;
top:-38px;
}
}
}
}
}
//Footer and Checkout images
.credit-cards,
.verisign {
display:inline-block;
vertical-align: middle;
margin:0 4px;
}
.credit-cards {
width:178px;
height:21px;
background: url(/static/demo/img/ui/sprite.png) 0 -49px repeat transparent;
}
.verisign {
width:100px;
height:49px;
background: url(/static/demo/img/ui/sprite.png) 0 0 repeat transparent;
}

16 changes: 15 additions & 1 deletion sites/demo/static/demo/less/page/head_foot.less
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,20 @@
left:0;
}
}
.credit-cards,
.verisign {
margin:0;
}
.credit-cards {
margin-top:5px;
}
}
//Checkout header
.checkout-page .header-content {
margin-top:10px;
p {
margin-bottom:30px;
}
}
// OSCAR FOOTER UNIQUE STYLES
// -----------
Expand Down Expand Up @@ -113,6 +123,10 @@
.footer-disclaimer {
font-size: @fontSizeSmall;
line-height: @baseLineHeight * 2;
text-align: right;
background: #091624;
.clearfix();
p {
margin:0;
text-align: center;
}
}

0 comments on commit 83321e8

Please sign in to comment.