added tag
This commit is contained in:
parent
ea96128920
commit
70c88f14b4
@ -10,6 +10,7 @@ class Crunchbutton_Community extends Cana_Table {
|
|||||||
select restaurant.* from restaurant
|
select restaurant.* from restaurant
|
||||||
left join restaurant_community using(id_restaurant)
|
left join restaurant_community using(id_restaurant)
|
||||||
where id_community="'.$this->id_community.'"
|
where id_community="'.$this->id_community.'"
|
||||||
|
order by restaurant.delivery asc
|
||||||
');
|
');
|
||||||
}
|
}
|
||||||
return $this->_restaurants;
|
return $this->_restaurants;
|
||||||
|
|||||||
@ -638,6 +638,22 @@ and (max-width : 1024px) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.meal-item-tag {
|
||||||
|
background: #ff3f1f;
|
||||||
|
border: 1px solid #ff6648;
|
||||||
|
padding: 5px 20px 5px 15px;
|
||||||
|
font-size: 12px;
|
||||||
|
margin-top: -80px;
|
||||||
|
position: absolute;
|
||||||
|
z-index: 20;
|
||||||
|
box-shadow: 1px 1px 1px rgba(0,0,0,.3);
|
||||||
|
|
||||||
|
text-align: left;
|
||||||
|
margin-left: 206px;
|
||||||
|
color: #fff;
|
||||||
|
text-shadow: 1px 1px 0px #e0221a;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@media only screen
|
@media only screen
|
||||||
and (min-device-width : 320px)
|
and (min-device-width : 320px)
|
||||||
@ -645,6 +661,12 @@ and (max-device-width : 480px) {
|
|||||||
*/
|
*/
|
||||||
@media only screen
|
@media only screen
|
||||||
and (max-width : 769px) {
|
and (max-width : 769px) {
|
||||||
|
|
||||||
|
.meal-item-tag {
|
||||||
|
margin-left: 198px;
|
||||||
|
margin-top: -72px;
|
||||||
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 5px 0 12px 0;
|
padding: 5px 0 12px 0;
|
||||||
@ -1070,4 +1092,6 @@ th {
|
|||||||
list-style-type:circle;
|
list-style-type:circle;
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
line-height: 14px;
|
line-height: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -159,6 +159,10 @@ App.page.community = function(id) {
|
|||||||
.append('<h2 class="meal-restaurant">' + rs[x]['name'] + '</h2>')
|
.append('<h2 class="meal-restaurant">' + rs[x]['name'] + '</h2>')
|
||||||
.append('<h3 class="meal-food">Top Item: ' + rs[x].top().name + '</h3>');
|
.append('<h3 class="meal-food">Top Item: ' + rs[x].top().name + '</h3>');
|
||||||
|
|
||||||
|
if (rs[x].delivery != '1') {
|
||||||
|
restaurantContent.append('<div class="meal-item-tag">Take out only</div>');
|
||||||
|
}
|
||||||
|
|
||||||
restaurant
|
restaurant
|
||||||
.append('<div class="meal-item-spacer"></div>')
|
.append('<div class="meal-item-spacer"></div>')
|
||||||
.append(restaurantContent);
|
.append(restaurantContent);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user