Button (page action) styling

This commit is contained in:
Ben Ramey
2014-06-22 15:34:28 -05:00
parent bf81cfb603
commit d4ca5187f3
9 changed files with 38 additions and 27 deletions

View File

@@ -6,7 +6,6 @@
@import "nav.less"; @import "nav.less";
@import "header-footer.less"; @import "header-footer.less";
@import "update-order.less"; @import "update-order.less";
@import "buttons.less";
body { body {
color: #fff; color: #fff;

View File

@@ -1,13 +0,0 @@
.run-nav {
box-shadow: 5px 5px 10px #222;
.run-nav-btn {
font-size: 24px;
border-radius: 0;
text-align: center;
background-color: darkolivegreen;
color: white;
margin-right: 1px;
padding: 10px 20px;
}
}

View File

@@ -1,3 +1,21 @@
.page-actions {
float: right;
padding: 30px 0;
.run-actions {
box-shadow: 2px 2px 8px black;
.run-actions-btn {
font-size: 24px;
border-radius: 0;
text-align: center;
background-color: darkolivegreen;
color: white;
margin-right: 2px;
padding: 5px 20px;
}
}
}
footer { footer {
position: absolute; position: absolute;
bottom: 0; bottom: 0;

View File

@@ -30,6 +30,6 @@
} }
} }
.run-show-run-nav a.back-to-run { .run-show-actions a.back-to-run {
display: none; display: none;
} }

View File

@@ -0,0 +1,5 @@
div.run-actions.btn-group
a.btn.run-actions-btn.back-to-run(href='/#/run/{{ run.id }}',title='Back to Run')
span.glyphicon.glyphicon-share-alt
a.btn.run-actions-btn(href='{{ run.menuUrl }}',target="_blank",data-toggle='modal',data-target='#menuModal',ng-show='showMenuUrl',title='Show menu')
span.glyphicon.glyphicon-list-alt

View File

@@ -1,5 +0,0 @@
div.run-nav.btn-group
a.btn.run-nav-btn.back-to-run(href='/#/run/{{ run.id }}',title='Back to Run')
span.glyphicon.glyphicon-share-alt
a.btn.run-nav-btn(href='{{ run.menuUrl }}',target="_blank",data-toggle='modal',data-target='#menuModal',ng-show='showMenuUrl',title='Show menu')
span.glyphicon.glyphicon-list-alt

View File

@@ -4,9 +4,9 @@ block pagetitle
span.glyphicon.glyphicon-list.title-icon span.glyphicon.glyphicon-list.title-icon
span.text-muted Enter your order for:  span.text-muted Enter your order for: 
a(href='/#/run/{{ run.id }}') {{ run.name }} a(href='/#/run/{{ run.id }}') {{ run.name }}
.pull-right
include ../includes/run-nav block pageactions
include ../includes/run-actions
block interiorcontent block interiorcontent
div(ng-show='show') div(ng-show='show')

View File

@@ -3,8 +3,13 @@
a(href='/') a(href='/')
| lunch run | lunch run
span.text-muted |me span.text-muted |me
h1 .row
block pagetitle .col-xs-12.col-sm-8
h1.page-title
block pagetitle
.col-xs-12.col-sm-4
.page-actions
block pageactions
block interiorcontent block interiorcontent

View File

@@ -4,8 +4,10 @@ block pagetitle
span.glyphicon.glyphicon-list.title-icon span.glyphicon.glyphicon-list.title-icon
span.text-muted Lunch run status: span.text-muted Lunch run status:
|  {{ run.name }} |  {{ run.name }}
.pull-right.run-show-run-nav
include ../includes/run-nav block pageactions
.run-show-actions
include ../includes/run-actions
block interiorcontent block interiorcontent
.run-details(ng-show="show") .run-details(ng-show="show")