Skip to content

Commit

Permalink
better mobile for list
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdiana committed Nov 10, 2015
1 parent fd96f0f commit d8157cd
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 8 deletions.
28 changes: 27 additions & 1 deletion css/simpleStore.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ a.hover {

.simpleCart_shelfItem {
border: 1px solid #EFEFEF;
padding: 25px 18px;
padding: 25px 18px 10px 18px;
margin: 15px 0;
}

Expand Down Expand Up @@ -150,6 +150,13 @@ a.hover {

/* Views */

.simpleStore_getDetail_container {
display: block;
float: left;
width: 50%;
padding: 5px 0px;
}

.simpleStore_detailView {
margin: 15px 0px;
border: 1px solid #EFEFEF;
Expand Down Expand Up @@ -279,6 +286,25 @@ p.error_text {
margin-bottom: 0rem;
}

@media (max-width: 920px) {
.simpleStore_getDetail_container {
width: 100%;
}
.simpleCart_shelfItem {
position: relative;
}
.simpleCart_shelfItem .item_name {
font-size: 1.8rem;
}
.simpleStore_getDetail {
position: inherit;
display: block;
width: 100%;
margin: 0px;
margin-bottom: 0px;
}
}

@media (max-width: 620px) {

.simpleStore_detailView .item_thumb {
Expand Down
4 changes: 2 additions & 2 deletions css/simpleStore.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,16 @@
<div class="column">
<div class="simpleCart_shelfItem">
<img src="" class="item_thumb"/>
<h5 class="item_name"></h5>
<span class="item_price"></span>
<a class="button u-pull-right simpleStore_getDetail">Details</a>
<div class="row">
<h5 class="item_name"></h5>
<div class="simpleStore_getDetail_container">
<span class="item_price"></span>
</div>
<div class="simpleStore_getDetail_container">
<a class="button u-pull-right simpleStore_getDetail">Details</a>
</div>
</div>

</div>
</div>
</script>
Expand Down
2 changes: 1 addition & 1 deletion js/simpleStore.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simplestore",
"version": "1.4",
"version": "1.5",
"description": "A clean, responsive storefront boilerplate with no database or backend.",
"main": "index.html",
"scripts": {
Expand Down

0 comments on commit d8157cd

Please sign in to comment.