bite-templates
Version:
Tiny, Dependecy-Free JavaScript Templating
255 lines (213 loc) • 4.08 kB
CSS
*,
*:before,
*:after {
box-sizing: inherit;
}
html {
box-sizing: border-box;
min-width: 400px;
width: 100%;
height: 100%;
overflow-y: scroll;
background: #FFF;
font-family: Arial, sans-serif;
font-size: 20px;
}
body {
margin: 0;
min-width: 100%;
min-height: 100%;
}
img {
border: 0;
}
a {
color: #710069;
text-decoration: underline;
}
code,
.code-block {
background: #222;
color: #FFF;
font-size: 0.8rem;
font-family: monospace;
white-space: pre;
tab-size: 2;
}
code {
display: inline-block;
margin: 1px;
padding: 0.25rem;
}
.code-block {
display: block;
margin: 0;
padding: 0.5rem;
line-height: 1.3;
}
.colorcoded-wrapper {
width: 100%;
}
/* =============================================================================
/* Header
/* ========================================================================== */
.page-header {
display: block;
width: 100%;
padding: 1rem 1rem 1.5rem;
background: #323232 url(bg.png);
color: #EEEEEE;
text-align: center;
font-family: Century Gothic, CenturyGothic, AppleGothic, sans-serif;
}
.page-title {
margin: 0;
font-size: 3.5rem;
font-weight: bold;
}
.page-subtitle {
margin: 0.5rem 0 1.5rem;
font-size: 1.2rem;
font-weight: normal;
}
.button {
display: inline-block;
padding: 1rem 1rem;
border: 1px solid;
color: #EEEEEE;
text-decoration: none;
cursor: pointer;
}
.github-button {
display: inline-flex;
align-items: center;
border-color: #6D2167;
background: #52014C;
}
.github-button:hover {
border-color: #863380;
background: #710069;
}
.github-button:before {
content: '';
background: url(github.png) center no-repeat;
margin-right: 0.5rem;
width: 24px;
height: 24px;
}
/* =============================================================================
/* Content
/* ========================================================================== */
.page-content {
display: block;
margin: 0 auto;
padding: 0 1rem;
max-width: 1000px;
text-align: left;
}
.section-title {
margin: 1rem 0;
padding: 0.5rem;
background: #963A90;
color: #FFF;
font-size: 1.5rem;
font-weight: bold;
}
.section-content {
margin-left: 1rem;
}
/* =============================================================================
/* Feature List
/* ========================================================================== */
.feature-list {
margin: 0;
padding: 0;
list-style: none;
font-size: 1rem;
}
.feature-list li {
margin-bottom: 0.5rem;
}
.feature-list li:before {
content: '';
display: inline-block;
vertical-align: middle;
margin: -0.2rem 0.5rem 0 0;
width: 0.4rem;
height: 0.4rem;
background: #52014C;
}
/* =============================================================================
/* Demo
/* ========================================================================== */
.demo-text {
margin: 0 0 1rem 1rem;
}
.demo-columns {
display: flex;
}
.demo-section {
flex-grow: 1;
margin-bottom: 1rem;
}
.demo-columns .demo-section + .demo-section {
margin-left: 1rem;
}
.demo-section textarea {
width: 100%;
border: 1px solid #963A90;
white-space: pre;
resize: none;
}
.demo-title {
margin: 0;
padding: 0.5rem;
background: #963A90;
color: #FFF;
font-weight: bold;
}
#demo-template,
#demo-js {
height: 28rem;
overflow: scroll;
}
#demo-output,
#demo-compiled {
padding: 0.5rem;
border: 1px solid #963A90;
}
#demo-output.error {
color: #F00;
}
#demo-compiled {
display: block;
margin: 0;
background: #FFF;
color: #000;
white-space: normal;
}
/* =============================================================================
/* Documentation
/* ========================================================================== */
.api-table {
border-collapse: collapse;
border: 1px solid rgba(0, 0, 0, 0.2);
font-size: 0.8rem;
}
.api-table tr:nth-child(even) {
background: rgba(0, 0, 0, 0.05);
}
.api-table th,
.api-table td {
padding: 0.5rem;
border: 1px solid rgba(0, 0, 0, 0.1);
}
.api-table th {
background: rgba(0, 0, 0, 0.025);
font-weight: normal;
}
.api-table h3 {
font-size: 1.2rem;
margin: 0;
margin-bottom: 0.25rem;
}