Last active
September 13, 2015 19:51
-
-
Save wrumsby/743fc0fc9f33efaa9dda to your computer and use it in GitHub Desktop.
Content blocks and tables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Content blocks and tables | |
*/ | |
body { | |
margin: 0; | |
padding: 10px; | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
font-size: 13px; | |
line-height: 24px; | |
background-color: #fff; | |
color: #32465a; | |
} | |
ol { | |
margin: 0; | |
padding: 0; | |
} | |
a { | |
color: #2baaed; | |
} | |
button { | |
background-color: #fff; | |
border: 1px solid #d0dae2; | |
border-radius: 3px; | |
box-sizing: border-box; | |
color: #2baaed; | |
cursor: pointer; | |
display: inline-block; | |
line-height: 1.5rem; | |
min-width: 7.5rem; | |
padding: 0.5em 1.5em; | |
text-align: center; | |
text-decoration: none; | |
} | |
.xui-secondary-text { | |
color: #8296aa; | |
} | |
.xui-section-heading { | |
background-color: #f6f9fC; | |
border: 1px solid #e6ebf0; | |
margin: 0; | |
} | |
.xui-section-heading-text { | |
padding: 4px 16px; | |
font-size: 10px; | |
font-weight: bold; | |
color: #8296aa; | |
text-transform: uppercase; | |
text-align: left; | |
} | |
.xui-avatar { | |
border: 1px solid #eee; | |
border-radius: 50%; | |
} | |
.xui-content-block-container { | |
width: 100%; | |
border-collapse: collapse; | |
} | |
.xui-content-block { | |
list-style: none; | |
margin: 0; | |
border: 1px solid #e6ebf0; | |
} | |
.xui-u-flex { | |
display: flex; | |
} | |
.xui-u-flex-col { | |
flex-direction: row; | |
} | |
.xui-u-flex-col + .xui-u-flex-col { | |
margin-left: 16px; | |
} | |
.xui-u-flex-grow { | |
flex: 1; | |
} | |
.xui-content-block:first-of-type, | |
.xui-content-block + .xui-content-block { | |
border-top: 0; | |
} | |
.xui-content-block-text { | |
padding: 16px; | |
} | |
.xui-content-block-number { | |
text-align: right; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- content to be placed inside <body>…</body> --> | |
<section class="xui-content-block-container"> | |
<h1 class="xui-section-heading xui-section-heading-text">Today</h1> | |
<ol> | |
<li class="xui-content-block xui-content-block-text xui-u-flex"> | |
<div class="xui-u-flex-col"> | |
<img src="https://s3.amazonaws.com/uifaces/faces/twitter/chrismerritt/48.jpg" alt="Not Hasslehoff " class="xui-avatar"/> | |
</div> | |
<div class="xui-u-flex-col xui-u-flex-grow"> | |
<a href="#">Parrot Dog</a> - Workpaper available for review | |
<div class="xui-secondary-text">1 January - 28 February 2015</div> | |
<ul style="margin-left: 0; padding-left: 0; list-style: none;"> | |
<li>More</li> | |
<li>Cruft</li> | |
<li>Noise</li> | |
<li>etc.</li> | |
<li>What's the problem here</li> | |
</ul> | |
</div> | |
<div class="xui-u-flex-col"> | |
<button>Action</button> | |
</div> | |
</li> | |
<li class="xui-content-block xui-content-block-text xui-u-flex"> | |
<div class="xui-u-flex-col"> | |
<img src="https://s3.amazonaws.com/uifaces/faces/twitter/kerihenare/48.jpg" alt="Not Hasslehoff " class="xui-avatar"/> | |
</div> | |
<div class="xui-u-flex-col xui-u-flex-grow"> | |
<div class="xui-u-flex"> | |
<div class="xui-u-flex-col xui-u-flex-grow"> | |
<a href="#">Garage Project</a> - Workpaper available for review | |
<div class="xui-secondary-text">1 January - 28 February 2015</div> | |
</div> | |
<div class="xui-u-flex-col"> | |
<button>Action</button> | |
</div> | |
</div> | |
<div class="xui-u-flex"> | |
<div class="xui-u-flex-col xui-u-flex-grow"> | |
<a href="#">Yeastie Boys</a> - Workpaper available for review | |
<div class="xui-secondary-text">1 January - 28 February 2015</div> | |
</div> | |
<div class="xui-u-flex-col"> | |
<button>Action</button> | |
</div> | |
</div> | |
<div class="xui-u-flex"> | |
<div class="xui-u-flex-col xui-u-flex-grow"> | |
<a href="#">Double Brown</a> - Workpaper available for review | |
<div class="xui-secondary-text">1 January - 28 February 2015</div> | |
</div> | |
<div class="xui-u-flex-col"> | |
<button>Action</button> | |
</div> | |
</div> | |
</div> | |
</li> | |
</ol> | |
</section> | |
<br/> | |
<table class="xui-content-block-container"> | |
<thead> | |
<tr class="xui-section-heading"> | |
<th class="xui-section-heading-text">Code</th> | |
<th class="xui-section-heading-text">Account</th> | |
<th class="xui-section-heading-text">Account Type</th> | |
<th class="xui-section-heading-text xui-content-block-number">Amount</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr class="xui-content-block"> | |
<td class="xui-content-block-text">300</td> | |
<td class="xui-content-block-text">Bank Account 01</td> | |
<td class="xui-content-block-text">3</td> | |
<td class="xui-content-block-text xui-content-block-number">400.00</td> | |
</tr> | |
<tr class="xui-content-block"> | |
<td class="xui-content-block-text">301</td> | |
<td class="xui-content-block-text">Bank Account 01</td> | |
<td class="xui-content-block-text">3</td> | |
<td class="xui-content-block-text xui-content-block-number">400.00</td> | |
</tr> | |
</tbody> | |
</table> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment