Skip to content

Commit

Permalink
use table layout to align input elements #51 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Sep 4, 2017
1 parent 2ea3f17 commit a376336
Showing 1 changed file with 25 additions and 10 deletions.
35 changes: 25 additions & 10 deletions lib/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,31 @@ <h4 class="mt0 tc fw5 f5 teal pa2 mb0">
<h2 class="mt0 fw5 tc f2 bg-teal white pa2"><em>How?</em></h2>
<div id="how" class="dn">

<p class="pl2">
Input your <strong class="fw5">GitHub Username</strong>
(<em> <strong class="u">or</strong> org name</em>):
<input class="input-reset f4 pa2 ba bw1" type="text" id="username" name="username" placeholder="username" autofocus>
</p>

<p class="pl2">
Input the <strong class="fw5">GitHub Project/Repository</strong> name:
<input class="input-reset f4 pa2 ba bw1" type="text" id="repo" name="repo" placeholder="repo/project">
</p>
<table class="collapse pv2 ph3 w-100">
<tr class="">
<td class="pv2 ph3 w-40">
Input your <strong class="fw5">GitHub Username</strong>
(<em> <strong class="u">or</strong> org name</em>):
</td>
<td class="pv2 ph3 w-50">
<input class="input-reset f4 pa2 ba bw1 mr5 w-100" type="text"
id="username" name="username" placeholder="username" autofocus>
</td>
</tr>
<tr class="">
<td class="pv2 ph3 w-40">
Input the <strong class="fw5">GitHub Project/Repository</strong>
name:
</td>
<td class="pv2 ph3 w-50">
<input class="input-reset f4 pa2 ba bw1 mr5 w-100" type="text"
id="repo" name="repo" placeholder="repo/project">
</td>
</tr>
</table>

<h3 class="mt0 fw5 tc f3 bg-teal white pa2">Your Badge <em>Markdown:</em></h3>
<h3 class="mt3 fw5 tc db f3 bg-teal white pa2">Your Badge <em>Markdown:</em></h3>
</div>
<pre id="badge" class="pl2 fw4 ba bw1 pa3 ma2" style="white-space: pre-wrap; word-break: keep-all;">
[![HitCount](http://hits.dwyl.io/{username}/{repo}.svg)](http://hits.dwyl.io/{username}/{repo})
Expand All @@ -56,6 +69,7 @@ <h2 class="mt0 fw5 tc f4 bg-teal white pa2 mt5"><em>Recently</em> Viewed Project
<div class="h5 pl2" id='hits'>
<div style="display:none">Dummy Child Node for insertBefore to work</div>
</div>

<style>
.teal {
color: #4DB6AC;
Expand All @@ -68,5 +82,6 @@ <h2 class="mt0 fw5 tc f4 bg-teal white pa2 mt5"><em>Recently</em> Viewed Project
}
</style>
<script src="/client.js"></script>

</body>
</html>

0 comments on commit a376336

Please sign in to comment.