Skip to content

Commit

Permalink
Adjustments to the 'Out of Stock' styling.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwanberg committed Jul 16, 2015
1 parent b9c3a65 commit fcdaa57
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
12 changes: 12 additions & 0 deletions sites/all/themes/zen-sullivan/css/zen-sullivan-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -2543,6 +2543,18 @@ h2.out-of-stock-label {
}

/* line 18, ../sass/component-styles/_products.scss */
.node.out-of-stock:before {
background-color: #2e5f80;
color: white;
content: 'Currently unavailable';
display: block;
font-family: "Cinzel Decorative", "Times New Roman", Times, Georgia, "DejaVu Serif", serif;
font-size: 2.25em;
margin-bottom: .25em;
padding: .5em 1.5em;
text-align: center;
}
/* line 29, ../sass/component-styles/_products.scss */
.node.out-of-stock .commerce-add-to-cart {
display: none;
}
Expand Down
2 changes: 1 addition & 1 deletion sites/all/themes/zen-sullivan/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
// Add "Out of stock" notice to product pages
Drupal.behaviors.stockNotice = {
attach: function ( context, settings ) {
$('.out-of-stock.node').before('<h2 class="out-of-stock-label">Currently unavailable</h2>');
// $('.out-of-stock.node').before('<h2 class="out-of-stock-label">Currently unavailable</h2>');
}
}

Expand Down
11 changes: 11 additions & 0 deletions sites/all/themes/zen-sullivan/sass/component-styles/_products.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ h2.out-of-stock-label {

// Out of stock styling - hide elements
.node.out-of-stock {
&:before {
background-color: $blue;
color: $white;
content: 'Currently unavailable';
display: block;
font-family: $heading-f;
font-size: 2.25em;
margin-bottom: .25em;
padding: .5em 1.5em;
text-align: center;
}
.commerce-add-to-cart {
display: none;
}
Expand Down

0 comments on commit fcdaa57

Please sign in to comment.