Skip to content

Commit

Permalink
#6:
Browse files Browse the repository at this point in the history
- beautified buttons
- commented out navigation buttons
  • Loading branch information
Dennis Stritzke committed Sep 15, 2016
1 parent 35b6895 commit 4f93f95
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 7 deletions.
30 changes: 27 additions & 3 deletions src/main/resources/static/css/style.css
Original file line number Diff line number Diff line change
@@ -1,25 +1,49 @@
@import 'https://fonts.googleapis.com/css?family=Roboto:300,400,500';

body {
font-family: "Roboto", "Helvetica", "Arial", sans-serif;
color: #555;
margin: 0 auto;
padding: 15px;
max-width: 50em;
}

body, input, button {
font-family: "Roboto", "Helvetica", "Arial", sans-serif;
color: #555;
}

h1 {
text-align: center;
clear: both;
}

form {
display: block;
}

input {
width: 100%;
padding: 12px 12px;
margin: 8px 0;
margin: 4px 0;
box-sizing: border-box;
font-size: 1.5em;
}

form button {
float: right;
margin: 4px 0 15px 0;
}

button {
border: none;
background: none;
cursor: pointer;
}

form button, body > button {
font-size: 1.5em;
padding: 10px 0 10px 20px;
}

table {
width: 100%;
border-collapse: collapse;
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
<h1>Money Tracking</h1>

<form name="newExpense" novalidate ng-submit="newExpense.$valid && submit(expense)">
Amount: <input type="number" step="0.01" ng-model="expense.amount">
Comment: <input type="text" ng-model="expense.comment"><br>
<input type="number" step="0.01" placeholder="Amount" ng-model="expense.amount">
<input type="text" placeholder="Comment" ng-model="expense.comment">
<button type="submit">Add</button>
</form>

<h1>{{ selectedMonthName() }}</h1>
<button ng-click="changeMonth(expenses._links.previous.href)">&lt; previous</button>
<button ng-click="changeMonth(expenses._links.next.href)">next &gt;</button>
<!--<button ng-click="changeMonth(expenses._links.previous.href)">&lt; previous</button>-->
<!--<button ng-click="changeMonth(expenses._links.next.href)">next &gt;</button>-->
<p>Total: {{ calculateTotal() | number: 2 }} €</p>
<table>
<tr>
Expand Down

0 comments on commit 4f93f95

Please sign in to comment.