Skip to content

Commit

Permalink
Merge pull request #642 from informa/issue/557/demo
Browse files Browse the repository at this point in the history
Front end for detail.html, promotions, widgets, basket.html, checkout nav
  • Loading branch information
codeinthehole committed Apr 15, 2013
2 parents a3508d7 + 83321e8 commit 4384e09
Show file tree
Hide file tree
Showing 73 changed files with 2,272 additions and 754 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/carousel/banner-01.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sites/demo/static/demo/img/carousel/banner-02.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion sites/demo/static/demo/js/oscar/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ var oscar = (function(o, $) {
init: function() {
if (o.responsive.isDesktop()) {
o.responsive.initNav();
o.responsive.initCarousel();
}
},
isDesktop: function() {
Expand Down
60 changes: 60 additions & 0 deletions sites/demo/static/demo/js/site/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,74 @@
});
}

function productImageCarousel() {
$('#product-image-carousel').flexslider({
animation: "slide"
});
}

function productSingleCarousel() {
$('.product-single-carousel .flexslider').flexslider({
animation: "slide"
});
}

function productAffix() {
$('.product-gallery').affix();
}

function productCarousel() {
$('.product-carousel .flexslider').each(function(){
var productPage = $('.product-page'),
homePage = $('.home-page'),
imageWidth = 180,
maxProducts = 4,
showNav = true;
if (productPage.length > 0) {
imageWidth = 150;
maxProducts = 5;
showNav = false;
}
if (homePage.length > 0) {
imageWidth = 140;
}
$(this).flexslider({
animation: "slide",
animationLoop: true,
itemWidth: imageWidth,
minItems: 1,
maxItems: maxProducts,
controlNav: showNav
});
});
}

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);
site.responsive.register(productImageCarousel);

// Register mobile callback


// Register desktop callback
site.responsive.register(megaCarousel, ['desktop', 'tablet']);
site.responsive.register(productCarousel, ['desktop', 'tablet']);
site.responsive.register(productSingleCarousel, ['desktop', 'tablet']);

}(site, jQuery));
7 changes: 2 additions & 5 deletions sites/demo/static/demo/less/bootstrap/breadcrumbs.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
// Breadcrumbs
// --------------------------------------------------


.breadcrumb {
padding: 8px 15px;
margin: 0 0 @baseLineHeight;
padding: 8px 0;
margin: 0 0 20px;
list-style: none;
background-color: #f5f5f5;
.border-radius(@baseBorderRadius);
> li {
display: inline-block;
.ie7-inline-block();
Expand Down
6 changes: 3 additions & 3 deletions sites/demo/static/demo/less/bootstrap/buttons.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
.btn {
display: inline-block;
.ie7-inline-block();
padding: 4px 12px;
padding: 8px 16px;
margin-bottom: 0; // For input.btn
font-size: @baseFontSize;
line-height: @baseLineHeight;
Expand Down Expand Up @@ -68,8 +68,8 @@

// Large
.btn-large {
padding: @paddingLarge;
font-size: @fontSizeLarge;
padding: 20px 30px;
font-size: @headingThreeSize;
.border-radius(@borderRadiusLarge);
}
.btn-large [class^="icon-"],
Expand Down
49 changes: 41 additions & 8 deletions sites/demo/static/demo/less/bootstrap/forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// Make all forms have space below them
form {
margin: 0 0 @baseLineHeight;
.clearfix();
}

fieldset {
Expand Down Expand Up @@ -55,6 +56,8 @@ textarea {
label {
display: block;
margin-bottom: 5px;
color:@navbarInverseBackground;
font-weight: bold;
}

// Form controls
Expand All @@ -79,13 +82,12 @@ input[type="tel"],
input[type="color"],
.uneditable-input {
display: inline-block;
height: @baseLineHeight;
padding: 4px 6px;
margin-bottom: @baseLineHeight / 2;
font-size: @baseFontSize;
line-height: @baseLineHeight;
height: @headingThreeSize;
padding: 6px;
margin-bottom: @headingThreeSize / 2;
font-size: @headingFourSize;
line-height: @headingThreeSize;
color: @gray;
.border-radius(@inputBorderRadius);
vertical-align: middle;
}

Expand Down Expand Up @@ -119,7 +121,6 @@ input[type="color"],
.uneditable-input {
background-color: @inputBackground;
border: 1px solid @inputBorder;
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
.transition(~"border linear .2s, box-shadow linear .2s");

// Focus state
Expand Down Expand Up @@ -596,6 +597,18 @@ input.search-query {
display: none;
}
}
.form-stacked {
input,
textarea,
select {
.input-block-level();
}
.checkbox, .radio {
input {
width:auto;
}
}
}
.form-search label,
.form-inline label,
.form-search .btn-group,
Expand Down Expand Up @@ -631,7 +644,7 @@ input.search-query {

// Margin to space out fieldsets
.control-group {
margin-bottom: @baseLineHeight / 2;
margin-bottom: 10px;
}

// Legend collapses margin, so next element is responsible for spacing
Expand Down Expand Up @@ -688,3 +701,23 @@ legend + .control-group {
padding-left: @horizontalComponentOffset;
}
}

//For IE: adds width for selects inside overflow hidden containers
.select-open {
width:300px!important;
}

// ADDITIONAL ERRORS
.errorlist {
margin:0;
padding:0 0 10px 0;
color:#B94A48;
li {
padding:0 0 5px 0;
list-style:none;
}
}

.control-label.required span {
color: #FF0000;
}
23 changes: 16 additions & 7 deletions sites/demo/static/demo/less/bootstrap/layouts.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,24 @@
// Layouts
// --------------------------------------------------

// Demo page structure
html,
body {
height: 100%;
}

// Container (centered, fixed-width layouts)
.container {
.container-fixed();
#layout {
min-height: 100%;
margin-bottom: -(@footer-height);
}

// Fluid layouts (left aligned, with sidebar, min- & max-width content)
.container-fluid {
padding-right: @gridGutterWidth;
padding-left: @gridGutterWidth;
.clearfix();
padding:0px;
margin:0px auto;
max-width:1170px;
}

.page_inner {
padding:@gridGutterWidth 0 50px;
.clearfix();
}
37 changes: 37 additions & 0 deletions sites/demo/static/demo/less/bootstrap/mixins.less
Original file line number Diff line number Diff line change
Expand Up @@ -700,3 +700,40 @@

}
}

// OSC PRODUCT WIDTHS
// --------------------------------------------------
@fifth: 20%;
@quart: 25%;
@third: 33.33333333333333%;
@half: 50%;
@three_quart: 75%;
@full:100%;

@footer-height: 330px;

// OSC MIXINS
// --------------------------------------------------
.remove_bullets() {
margin: 0;
padding: 0;
li {
padding: 0;
list-style:none;
}
}
.horiz_col() {
padding:0px;
margin:0px;
.clearfix();
> li {
list-style:none;
}
li {
float:left;
li {
float:none;
}
}
}

8 changes: 8 additions & 0 deletions sites/demo/static/demo/less/bootstrap/navbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@
.checkbox {
.navbarVerticalAlign(30px); // Vertically center in navbar
}
input {
height: @baseLineHeight;
padding: 4px 6px;
margin-bottom: @baseLineHeight / 2;
font-size: @baseFontSize;
line-height: @baseLineHeight;
.border-radius(@inputBorderRadius);
}
input,
select,
.btn {
Expand Down

0 comments on commit 4384e09

Please sign in to comment.