Skip to content

Commit

Permalink
Added alert support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jellyfishboy committed Jun 21, 2016
1 parent c3024c5 commit d700e87
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/pages/checkout.hbs
@@ -1,4 +1,5 @@
<div class='checkout'>
{{ partial 'warning_alert' }}
<div class='container'>
<div class='row checkout-header hidden-xs'>
<div class='col-lg-8 col-sm-8'>
Expand Down
1 change: 1 addition & 0 deletions app/pages/mycart.hbs
@@ -1,4 +1,5 @@
<div class='checkout'>
{{ partial 'success_alert' }}
<div class='container'>
<div class='row checkout-header hidden-xs'>
<div class='col-lg-8 col-sm-8'>
Expand Down
4 changes: 4 additions & 0 deletions app/partials/success_alert.hbs
@@ -0,0 +1,4 @@
<div class="alert alert-green">
<i class="icon-checkmark"></i>
You have successfully updated your cart.
</div>
4 changes: 4 additions & 0 deletions app/partials/warning_alert.hbs
@@ -0,0 +1,4 @@
<div class="alert alert-orange">
<i class="icon-blocked"></i>
An error ocurred when trying to complete your order. Please try again.
</div>
30 changes: 30 additions & 0 deletions app/src/sass/_alert.scss
@@ -0,0 +1,30 @@
.alert
{
padding:15px 25px;
max-width:1170px;
margin:0px auto 20px;
color: #fff;
font-weight: 400;
@include box-sizing(border-box);
height:50px;
line-height: 20px;
font-size:0.9em;
@include border-radius(0px);

i
{
margin-right:7px;
}

&.alert-green
{
background-color: #74b71b;
border: 1px solid #5fa205;
}

&.alert-orange
{
background-color: #ea5f23;
border: 1px solid #d15018;
}
}
27 changes: 27 additions & 0 deletions app/src/sass/_responsive.scss
@@ -1,3 +1,30 @@
@media only screen and (min-width: 768px) {
body
{
.alert
{
width: 750px;
}
}
}
@media only screen and (min-width: 992px) {
body
{
.alert
{
width: 970px;
}
}
}
@media only screen and (min-width: 1200px) {
body
{
.alert
{
width: 1170px;
}
}
}
@media only screen and (max-width: 991px) {
body
{
Expand Down
1 change: 1 addition & 0 deletions app/src/sass/redlight.scss
Expand Up @@ -7,6 +7,7 @@ $red: #CD2626;
@import "header";
@import "tabs";
@import "form";
@import "alert";

@import "error";
@import "home";
Expand Down

0 comments on commit d700e87

Please sign in to comment.