Skip to content

Commit

Permalink
- added refresh and filter buttons
Browse files Browse the repository at this point in the history
- added refresh functionality
- local storage when data is loaded
  • Loading branch information
= committed Jun 2, 2016
1 parent ddc3b36 commit bf90bdc
Show file tree
Hide file tree
Showing 7 changed files with 219 additions and 273 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
platforms/*
hooks/
plugins/
plugins/*
.idea
176 changes: 99 additions & 77 deletions www/css/beerific.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,12 @@ html {
}

body {
background-color: #fff;
background-image: linear-gradient(top, #FBCB23 0%, #fbd118 51%);
background-image: -moz-linear-gradient(top, #FBCB23 0%, #fbd118 51%);
background-image: -webkit-linear-gradient(top, #FBCB23 0%, #fbd118 51%);
background-image: -ms-linear-gradient(top, #FBCB23 0%, #fbd118 51%);
background-image: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0, #FBCB23),
color-stop(0.51, #fbd118)
);
background-attachment: fixed;
background-color: #fac117;
background-image: url(../img/icon.png);

background-repeat: no-repeat;
background-position: center 20%;
/*background-size: 60%;*/
background-position: center;
background-size: 30% auto;
font-family: Helvetica, Arial, sans-serif;
height: 100%;
width: 100%;
Expand All @@ -41,75 +30,45 @@ body {
text-align: right;
}

.search {
position: relative;
}
.search.grid {
position: relative;
padding: 0.5em 0;
width: 100%;
max-width: none;
}

.search .search-field {
width: 100%;
font-size: 1.15em;
padding: 0.5em 1em 0.5em 2.5em;
padding: 0.5rem 1rem 0.5rem 2.5rem;
border: 1px solid #999;
margin-left: 0.5rem;
width: calc(100% - 6.1em);
}

.search i:not(.magnify) {
font-size: 1.4em;
text-align: center;
background-color: #fff;
border: 1px solid #999;
width: 2.5rem;
padding: 0.5rem 0;
float: right;
margin-right: 0.5rem;
cursor: pointer;
}

.search .magnify {
position: absolute;
left: 0;
top: 0;
top: 0.5rem;
width: 1em;
font-size: 1.25em;
color: #777;
padding: 0.6em 0 0.6em 0.5em;
padding: 0.5em 0 0 1em;
}

#content {
background-color: #fff;
color: #777;
margin: 0.5em 0 0;
}

#beer-garden-list {
font-size: 0.9rem;
background-color: #fff;
border-top: 1px solid #777;
margin: 0;
padding: 0;
}

#beer-garden-list li {
padding: 0.5em;
border-bottom: 1px solid #777;
cursor: pointer;
}

#beer-garden-list p {
background-color: #fff;
min-width: 100%;
}

#beer-garden-list p + p {
padding-top: 0.25em;
}

#beer-garden-list span.title {
font-weight: bold;
}

#beer-garden-list span.status.open {
color: #1fa85c;
}

#beer-garden-list span.status.closed {
color: #ff0000;
}

#beer-garden-list li {
list-style-type: none;
list-style-position: inside;
width: 100%;
}

#beer-garden-list .align-right {
padding-right: 0;
}

.tab-navigation {
Expand Down Expand Up @@ -163,21 +122,26 @@ p + p {
list-style-type: none;
font-size: 0.9em;
line-height: 1.25em;
border-top: 1px solid #777777;
border-bottom: 1px solid #777777;
}

#beer-garden-list li + li {
border-top: 1px solid #999;
background-color: #fff;
margin: 0;
padding: 0;
}

#beer-garden-list li {
margin: 0;
position: relative;
font-weight: bold;
padding: 0.5em;
clearfix: after;
clear: both;
border-top: 1px solid #999;
list-style-type: none;
list-style-position: inside;
width: 100%;
cursor: pointer;
}

#beer-garden-list li:last-child {
border-bottom: 1px solid #999;
}

#beer-garden-list li > span.status {
Expand Down Expand Up @@ -216,9 +180,21 @@ p + p {
padding-left: 110px;
}

#beer-garden-list p {
background-color: #fff;
min-width: 100%;
}

#beer-garden-list p + p {
padding-top: 0.25em;
}

#beer-garden-list .align-right {
padding-right: 0;
}

header {
background-color: rgba(252, 252, 252, 0.9);
border-bottom: 1px solid #777;
color: #000;
left: 0;
padding: 0.6rem 0;
Expand Down Expand Up @@ -287,4 +263,50 @@ header .back {

.details .food h2 {
font-size: 1.5em;
}

.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
display: none;
}

.overlay-load {
text-align: center;
padding-top: 10em;
}

.overlay-load i {
font-size: 5em;
margin: auto;
display: inline-block;
color: #fff;
}

.overlay-load span span {
margin-top: 1em;
font-size: 1.5em;
color: #fff;
display: block;
}

@-moz-keyframes spin {
0% { -moz-transform: rotate(0deg); }
100% { -moz-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

.overlay-load i {
animation: spin 3s linear infinite;
}
130 changes: 0 additions & 130 deletions www/data/beer.json

This file was deleted.

Binary file modified www/img/icon-gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified www/img/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit bf90bdc

Please sign in to comment.