-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
529 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Copyright (c) 2013 Thibaut Courouble | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Shopping Cart Checkout Widget — CSS Code Snippet | ||
|
||
**Demo**: [cssflow.com/snippets/shopping-cart-checkout-widget/demo](http://www.cssflow.com/snippets/shopping-cart-checkout-widget/demo) | ||
|
||
Download the latest version of this snippet [here](http://www.cssflow.com/snippets/shopping-cart-checkout-widget.zip). | ||
|
||
[![Preview](http://cdn.cssflow.com/snippets/shopping-cart-checkout-widget/preview-580.png)](http://www.cssflow.com/snippets/shopping-cart-checkout-widget) | ||
|
||
This snippet is implemented with [Sass](https://github.com/nex3/sass). | ||
|
||
To compile: | ||
|
||
`sass --update scss:css` | ||
|
||
To compile and watch: | ||
|
||
`sass --watch scss:css` | ||
|
||
## Browser Compatibility | ||
|
||
Firefox 4+, Safari 4+, Chrome 14+, Opera 10+, Internet Explorer 8+. | ||
|
||
## Credits | ||
|
||
Coded by [Thibaut Courouble](http://thibaut.me). | ||
|
||
Original PSD by [Aleksandar Djuric](http://pixelb.in/simple-shopping-cart-checkout-widget-507/). | ||
|
||
For more snippets, visit [CSSFlow.com](http://www.cssflow.com) or follow [@CSSFlow](https://twitter.com/CSSFlow). | ||
|
||
## License | ||
|
||
Copyright (c) 2013 Thibaut Courouble | ||
|
||
Licensed under the MIT License | ||
|
||
## More CSS3 | ||
|
||
Checkout my [UI kits built entirely with CSS](http://www.cssflow.com/ui-kits): | ||
|
||
[![Preview](http://cdn.cssflow.com/kits/all_kits_preview_850.png)](http://www.cssflow.com/ui-kits) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,259 @@ | ||
html, body, div, span, applet, object, iframe, | ||
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | ||
a, abbr, acronym, address, big, cite, code, | ||
del, dfn, em, img, ins, kbd, q, s, samp, | ||
small, strike, strong, sub, sup, tt, var, | ||
b, u, i, center, | ||
dl, dt, dd, ol, ul, li, | ||
fieldset, form, label, legend, | ||
table, caption, tbody, tfoot, thead, tr, th, td, | ||
article, aside, canvas, details, embed, | ||
figure, figcaption, footer, header, hgroup, | ||
menu, nav, output, ruby, section, summary, | ||
time, mark, audio, video { | ||
margin: 0; | ||
padding: 0; | ||
border: 0; | ||
font-size: 100%; | ||
font: inherit; | ||
vertical-align: baseline; | ||
} | ||
|
||
article, aside, details, figcaption, figure, | ||
footer, header, hgroup, menu, nav, section { | ||
display: block; | ||
} | ||
|
||
body { | ||
line-height: 1; | ||
} | ||
|
||
ol, ul { | ||
list-style: none; | ||
} | ||
|
||
blockquote, q { | ||
quotes: none; | ||
} | ||
|
||
blockquote:before, blockquote:after, | ||
q:before, q:after { | ||
content: ''; | ||
content: none; | ||
} | ||
|
||
table { | ||
border-collapse: collapse; | ||
border-spacing: 0; | ||
} | ||
|
||
.about { | ||
margin: 70px auto 40px; | ||
padding: 8px; | ||
width: 260px; | ||
font: 10px/18px 'Lucida Grande', Arial, sans-serif; | ||
color: #bbb; | ||
text-align: center; | ||
text-shadow: 0 -1px rgba(0, 0, 0, 0.3); | ||
background: #383838; | ||
background: rgba(34, 34, 34, 0.8); | ||
border-radius: 4px; | ||
background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3)); | ||
background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3)); | ||
background-image: -o-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3)); | ||
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3)); | ||
-webkit-box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2), 0 0 6px rgba(0, 0, 0, 0.4); | ||
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2), 0 0 6px rgba(0, 0, 0, 0.4); | ||
} | ||
.about a { | ||
color: #eee; | ||
text-decoration: none; | ||
border-radius: 2px; | ||
-webkit-transition: background 0.1s; | ||
-moz-transition: background 0.1s; | ||
-o-transition: background 0.1s; | ||
transition: background 0.1s; | ||
} | ||
.about a:hover { | ||
text-decoration: none; | ||
background: #555; | ||
background: rgba(255, 255, 255, 0.15); | ||
} | ||
|
||
.about-links { | ||
height: 30px; | ||
} | ||
.about-links > a { | ||
float: left; | ||
width: 50%; | ||
line-height: 30px; | ||
font-size: 12px; | ||
} | ||
|
||
.about-author { | ||
margin-top: 5px; | ||
} | ||
.about-author > a { | ||
padding: 1px 3px; | ||
margin: 0 -1px; | ||
} | ||
|
||
/* | ||
* Copyright (c) 2013 Thibaut Courouble | ||
* http://www.cssflow.com | ||
* | ||
* Licensed under the MIT License: | ||
* http://www.opensource.org/licenses/mit-license.php | ||
*/ | ||
body { | ||
font: 13px/20px 'Lucida Grande', Verdana, sans-serif; | ||
color: #404040; | ||
background: #eee; | ||
} | ||
|
||
.cart { | ||
margin: 50px auto; | ||
width: 300px; | ||
overflow: hidden; | ||
color: white; | ||
text-shadow: 0 1px rgba(0, 0, 0, 0.6); | ||
background: #525252; | ||
border: 1px solid #202020; | ||
border-radius: 3px; | ||
-webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); | ||
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); | ||
} | ||
|
||
.cart-top { | ||
position: relative; | ||
z-index: 1; | ||
height: 24px; | ||
line-height: 24px; | ||
padding: 8px 15px; | ||
font-size: 14px; | ||
font-weight: bold; | ||
color: #eee; | ||
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8); | ||
background: #404040; | ||
border-bottom: 1px solid #222; | ||
border-radius: 2px 2px 0 0; | ||
-webkit-font-smoothing: antialiased; | ||
background-image: -webkit-linear-gradient(top, #525252, #3d3d3d 80%, #383838); | ||
background-image: -moz-linear-gradient(top, #525252, #3d3d3d 80%, #383838); | ||
background-image: -o-linear-gradient(top, #525252, #3d3d3d 80%, #383838); | ||
background-image: linear-gradient(to bottom, #525252, #3d3d3d 80%, #383838); | ||
-webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 1px 2px rgba(0, 0, 0, 0.25); | ||
box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 1px 2px rgba(0, 0, 0, 0.25); | ||
} | ||
|
||
.cart-top-title { | ||
float: left; | ||
} | ||
|
||
.cart-top-info { | ||
float: right; | ||
} | ||
|
||
.cart-item { | ||
position: relative; | ||
line-height: 20px; | ||
padding: 10px 80px 10px 15px; | ||
font-weight: bold; | ||
background: #525252; | ||
border-bottom: 1px solid #222; | ||
background-image: -webkit-linear-gradient(top, #575757, #4e4e4e); | ||
background-image: -moz-linear-gradient(top, #575757, #4e4e4e); | ||
background-image: -o-linear-gradient(top, #575757, #4e4e4e); | ||
background-image: linear-gradient(to bottom, #575757, #4e4e4e); | ||
-webkit-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); | ||
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); | ||
} | ||
.cart-item:first-child { | ||
margin-top: -1px; | ||
padding-top: 11px; | ||
} | ||
|
||
.cart-item-pic { | ||
position: relative; | ||
float: left; | ||
margin: -2px 12px 0 -7px; | ||
} | ||
.cart-item-pic > img { | ||
display: block; | ||
height: 44px; | ||
width: 44px; | ||
border-radius: 3px; | ||
} | ||
.cart-item-pic:before { | ||
content: ''; | ||
position: absolute; | ||
top: -1px; | ||
bottom: -1px; | ||
left: -1px; | ||
right: -1px; | ||
border: 1px solid #000; | ||
border-radius: 4px; | ||
background-image: -webkit-linear-gradient(top left, rgba(255, 255, 255, 0.15) 50%, transparent 50%); | ||
background-image: -moz-linear-gradient(top left, rgba(255, 255, 255, 0.15) 50%, transparent 50%); | ||
background-image: -o-linear-gradient(top left, rgba(255, 255, 255, 0.15) 50%, transparent 50%); | ||
background-image: linear-gradient(to bottom right, rgba(255, 255, 255, 0.15) 50%, transparent 50%); | ||
-webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.12); | ||
box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.12); | ||
} | ||
|
||
.cart-item-desc { | ||
display: block; | ||
font-size: 12px; | ||
font-weight: normal; | ||
color: #b8c6cc; | ||
} | ||
|
||
.cart-item-price { | ||
position: absolute; | ||
top: 50%; | ||
right: 15px; | ||
margin-top: -10px; | ||
color: #eee; | ||
} | ||
|
||
.cart-bottom { | ||
line-height: 31px; | ||
padding: 10px 10px 10px 15px; | ||
font-weight: bold; | ||
background: #484848; | ||
background-image: -webkit-linear-gradient(top, #545454, #434343); | ||
background-image: -moz-linear-gradient(top, #545454, #434343); | ||
background-image: -o-linear-gradient(top, #545454, #434343); | ||
background-image: linear-gradient(to bottom, #545454, #434343); | ||
-webkit-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); | ||
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); | ||
} | ||
.cart-bottom > .cart-button { | ||
float: right; | ||
} | ||
|
||
.cart-button { | ||
line-height: 29px; | ||
padding: 0 25px; | ||
color: white; | ||
text-decoration: none; | ||
text-shadow: 0 1px rgba(0, 0, 0, 0.3); | ||
background: #5aa327 padding-box; | ||
border: 1px solid #333; | ||
border-radius: 4px; | ||
background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1) 50%, transparent 50%, rgba(0, 0, 0, 0.04)); | ||
background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1) 50%, transparent 50%, rgba(0, 0, 0, 0.04)); | ||
background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1) 50%, transparent 50%, rgba(0, 0, 0, 0.04)); | ||
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1) 50%, transparent 50%, rgba(0, 0, 0, 0.04)); | ||
-webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.1); | ||
box-shadow: inset 0 1px rgba(255, 255, 255, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.1); | ||
} | ||
.cart-button:hover { | ||
background-color: #5daa2d; | ||
} | ||
.cart-button:active { | ||
background-image: none; | ||
border-color: rgba(0, 0, 0, 0.4); | ||
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px rgba(255, 255, 255, 0.05); | ||
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px rgba(255, 255, 255, 0.05); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<!DOCTYPE html> | ||
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> | ||
<!--[if IE 7]> <html class="lt-ie9 lt-ie8" lang="en"> <![endif]--> | ||
<!--[if IE 8]> <html class="lt-ie9" lang="en"> <![endif]--> | ||
<!--[if gt IE 8]><!--> <html lang="en"> <!--<![endif]--> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<title>Shopping Cart Checkout Widget</title> | ||
<link rel="stylesheet" href="css/style.css"> | ||
<!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]--> | ||
</head> | ||
<body> | ||
<div class="cart"> | ||
<div class="cart-top"> | ||
<h2 class="cart-top-title">Checkout</h2> | ||
<div class="cart-top-info">3 items</div> | ||
</div> | ||
|
||
<ul> | ||
<li class="cart-item"> | ||
<span class="cart-item-pic"> | ||
<img src="http://upload.wikimedia.org/wikipedia/en/a/a7/Random_Access_Memories.jpg"> | ||
</span> | ||
Item #1 | ||
<span class="cart-item-desc">Description</span> | ||
<span class="cart-item-price">$16.80</span> | ||
</li> | ||
<li class="cart-item"> | ||
<span class="cart-item-pic"> | ||
<img src="http://upload.wikimedia.org/wikipedia/en/7/71/Justice_-_Cross_%282007%29.jpg"> | ||
</span> | ||
Item #2 | ||
<span class="cart-item-desc">Description</span> | ||
<span class="cart-item-price">$15.00</span> | ||
</li> | ||
<li class="cart-item"> | ||
<span class="cart-item-pic"> | ||
<img src="http://upload.wikimedia.org/wikipedia/en/c/c4/The_Matrix_Revolutions_-_Music_From_The_Motion_Picture.jpeg"> | ||
</span> | ||
Item #3 | ||
<span class="cart-item-desc">Description</span> | ||
<span class="cart-item-price">$23.00</span> | ||
</li> | ||
</ul> | ||
|
||
<div class="cart-bottom"> | ||
Total: $54.80 | ||
<a href="#" class="cart-button">Continue</a> | ||
</div> | ||
</div> | ||
|
||
<div class="about"> | ||
<p class="about-links"> | ||
<a href="http://www.cssflow.com/snippets/shopping-cart-checkout-widget" target="_parent">View Article</a> | ||
<a href="http://www.cssflow.com/snippets/shopping-cart-checkout-widget.zip" target="_parent">Download</a> | ||
</p> | ||
<p class="about-author"> | ||
© 2013 <a href="http://thibaut.me" target="_blank">Thibaut Courouble</a> - | ||
<a href="http://www.cssflow.com/mit-license" target="_blank">MIT License</a><br> | ||
Original PSD by <a href="http://pixelb.in/simple-shopping-cart-checkout-widget-507/" target="_blank">Aleksandar Djuric</a> | ||
</p> | ||
</div> | ||
</body> | ||
</html> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.