update dashbiard ui

This commit is contained in:
Yan
2017-08-14 15:57:34 +06:30
parent 5a5e654dbc
commit ac47d7d8f0
2 changed files with 24 additions and 25 deletions

View File

@@ -32,7 +32,7 @@ ul.dropdown-menu li a{
margin :0px !important; margin :0px !important;
} }
.card-block { .center-text {
text-align:center; text-align:center;
background-color:#ddd; background-color:#ddd;
} }
@@ -45,3 +45,10 @@ ul.dropdown-menu li a{
background-color: #ef404a; background-color: #ef404a;
width: 100%; width: 100%;
} }
.footer-header {
color : #ef404a;
font-weight:bold;
font-style:italic;
margin-bottom:0px;
}

View File

@@ -16,27 +16,19 @@
<% shop = Shop.first %> <% shop = Shop.first %>
</div> </div>
</div> </div>
<div class="footer"> <div class="footer">
<div class="card"> <div class="card">
<div class="page-header" style="width:100%;text-align:center;background-color:#ddd;"> <div class="page-header center-text">
<h4 style="color : #ef404a;font-weight:bold;font-style:italic;margin-bottom:0px;"><%= shop.name %></h4> <h4 class="footer-header">
</div> <%= shop.name %>
<div class="card-block" style="text-align:center;background-color:#ddd;padding:0rem;"> </h4>
<%= shop.address %>
</div>
<div class="card-block" style="text-align:center;background-color:#ddd;padding:0rem;">
<%= shop.phone_no %>
</div>
</div>
</div> </div>
<style type="text/css"> <div class="center-text">
.footer { <%= shop.address %>
position: fixed; </div>
bottom: 0; <div class="center-text">
left: 0; <%= shop.phone_no %>
height: auto; </div>
background-color: #ef404a; </div>
width: 100%; </div>
}
</style>