Skip to content

Commit

Permalink
css update
Browse files Browse the repository at this point in the history
  • Loading branch information
ccoenraets committed Dec 15, 2015
1 parent e384088 commit 6022f53
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 50 deletions.
130 changes: 85 additions & 45 deletions css/styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,52 @@
body {
font-family: 'Roboto', 'Sans Serif';
font-size: 16px;
padding: 0;
margin: 0;
}

header {
background-color: #03A9F4;
padding: 14px;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

h1, h2, h3 {
font-weight: 300;
}

header > h1 {
font-weight: 300;
font-size: 24px;
margin: 0;
color: #FFFFFF;
}

h2 {
font-size: 22px;
margin: 20px 0 0 0;
}

h2 > .currency {
color: #0288D1;
}

h3 {
margin: 10px 0 28px 0;
}

h3 > span {
color: #0288D1;
}

.principal {
color: #0288D1;
}

.interest {
color: #EF6C00;
}

input[type=text] {
-webkit-appearance: none;
width: 150px;
Expand All @@ -12,53 +61,22 @@ input[type=text] {
box-shadow: none;
}

button {
-webkit-appearance: button;
color: #333;
background-color: #DDD;
border-color: #ccc;
display: inline-block;
padding: 6px 12px;
font-size: 14px;
font-weight: 400;
line-height: 1.42857143;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-image: none;
border: 1px solid #CCC;
border-radius: 2px;
}

button:hover {
background: none repeat scroll 0 0 #CCC;
}

button:active {
background: none repeat scroll 0 0 #BBB;
}

button:focus {
outline:0;
}

table {
border-collapse: collapse;
font-weight: 300;
font-size: 12px;
}

th {
text-align: right;
font-weight: 400;
}

td {
text-align: right;
padding: 0 .5rem;
}


th,
td {
border: solid 1px #EEEEEE !important;
Expand All @@ -69,6 +87,7 @@ label {
display: inline-block;
width: 80px;
text-align: right;
margin-right: 4px;
}

.content {
Expand All @@ -82,13 +101,13 @@ label {
}

.bar.principal {
background-color: rgb(166, 197, 103);
margin-right:.5px;
background-color: #0288D1;
margin-right:1px;
}

.bar.interest {
background-color: rgb(252, 187, 105);
margin-left:.5px;

This comment has been minimized.

Copy link
@Sidsubh

Sidsubh Aug 29, 2016

margin-right:1.5px;

background-color: #EF6C00;
margin-left:1px;
}

.stretch {
Expand All @@ -114,7 +133,28 @@ label {
margin: 6px 0;
}

.form button {
margin: 8px 0;
margin-left: 84px;
button {
text-transform: none;
-webkit-appearance: none;
cursor: pointer;
padding: 12px 18px;
border-radius: 2px;
background: #FCFCFC;
font-size: 16px;
border: solid 1px #ddd;
color: #444;
}

button:hover {
background: #F4F4F4;
border: solid 1px #ccc;
}

button:active {
background: #FEFEFE;
border: solid 1px #ddd;
}

button:focus {
outline:0;
}
17 changes: 12 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,31 @@
<html>
<head>
<meta charset="utf-8">
<link href='http://fonts.googleapis.com/css?family=Roboto:400,300,700' rel='stylesheet' type='text/css'>
<link href="css/styles.css" rel="stylesheet" type="text/css">
</head>
<body>
<header>
<h1>Mortgage Calculator</h1>
</header>
<div class="content">
<div class="form">
<div>
<label for="principal">Principal:</label>
<label>Principal:</label>
<input type="text" id="principal" value="200000"/>
</div>
<div>
<label for="years">Years:</label>
<label>Years:</label>
<input type="text" id="years" value="30"/>
</div>
<div>
<label for="rate">Rate:</label>
<input type="text" id="rate" value="5.0">
<label htmlFor="rate">Rate:</label>
<input type="text" id="rate" value="5.0"/>
</div>
<div>
<label htmlFor="calcBtn"></label>
<button id="calcBtn">Calculate</button>
</div>
<button id="calcBtn">Calculate</button>
</div>
<h2>Monthly Payment: <span id="monthlyPayment" class="currency"></span></h2>

This comment has been minimized.

Copy link
@Sidsubh

Sidsubh Aug 29, 2016

monthly review:

</div>
Expand Down

0 comments on commit 6022f53

Please sign in to comment.