Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
148 additions
and
79 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
* http://en.wikipedia.org/wiki/Hierarchy_of_life | ||
|
||
organism | ||
organ | ||
tissue | ||
cell | ||
organelle | ||
molecule | ||
atom | ||
particle | ||
quark | ||
Classifications | ||
|
||
* organism | ||
* organ | ||
* tissue | ||
* cell | ||
* organelle | ||
* molecule | ||
* atom | ||
* particle | ||
* quark |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.atom[data-type="blockquote"] .content { | ||
padding: 0 0 0 100px; | ||
} | ||
|
||
.atom[data-type="blockquote"] [name="author"] { | ||
font-style: italic; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
.atom[data-type="heading"] td { | ||
font-weight: bold; | ||
font-size: 24px; | ||
} | ||
|
||
.atom[data-type="heading"] .content { | ||
padding: 1em 10px 10px; | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,86 @@ | ||
/** { | ||
.stack * { | ||
margin: 0; | ||
padding: 0; | ||
}*/ | ||
} | ||
|
||
.table { | ||
width: 100%; | ||
.stack { | ||
margin: 0 0 10px; | ||
font-family: "Lucida Grande", sans-serif; | ||
} | ||
|
||
.atoms { | ||
width: 50%; | ||
.stack .molecule { | ||
border: 1px solid #ccc; | ||
margin-bottom: 10px; | ||
text-align: left; | ||
} | ||
|
||
*:focus { | ||
background: red; | ||
.stack .table { | ||
border-collapse: collapse; | ||
border: none; | ||
width: 100%; | ||
} | ||
|
||
.cell { | ||
vertical-align: top; | ||
.stack .cell { | ||
border: none; | ||
} | ||
|
||
.content { | ||
height: 100%; | ||
.stack *:focus { | ||
background: #fffde8; | ||
outline: none; | ||
} | ||
|
||
/*.table { | ||
border-collapse: collapse; | ||
.stack .atom:focus { | ||
outline: 3px solid #CFE4FF; | ||
} | ||
|
||
.table, .cell { | ||
border: none; | ||
.stack .content { | ||
height: 100%; | ||
padding: 10px; | ||
} | ||
|
||
.cell { | ||
border-bottom: 1px solid transparent; | ||
border-right: 1px solid transparent; | ||
.stack .add { | ||
opacity: 0.25; | ||
} | ||
|
||
.atom .cell:last-child { | ||
border-right: none; | ||
.stack .add:hover { | ||
opacity: 1; | ||
} | ||
|
||
.atom:last-child tr:last-child .cell { | ||
border-bottom: none; | ||
.stack > .add a { | ||
display: block; | ||
border-radius: 5px; | ||
text-decoration: none; | ||
color: #999; | ||
padding: 5px 10px; | ||
font-size: 12px; | ||
background: whiteSmoke; | ||
text-shadow: 0 1px 0 #fff; | ||
} | ||
|
||
.molecule:hover .cell { | ||
border-color: #ccc; | ||
.stack .molecule > .add:before { | ||
content: "Add content: "; | ||
padding: 5px 5px 5px 0; | ||
display: inline-block; | ||
} | ||
|
||
*:focus { | ||
outline: none; | ||
.stack .molecule > .add { | ||
background: whiteSmoke; | ||
margin: 5px; | ||
padding: 5px; | ||
border-radius: 5px; | ||
list-style: none; | ||
color: #ccc; | ||
font-size: 12px; | ||
} | ||
|
||
.content { | ||
line-height: 1.4; | ||
font-size: 18px; | ||
padding: 10px; | ||
}*/ | ||
.stack .molecule > .add li { | ||
display: inline-block; | ||
} | ||
|
||
.stack .molecule > .add a { | ||
display: inline-block; | ||
padding: 5px 10px 5px 0; | ||
text-decoration: none; | ||
text-shadow: 0 1px 0 #fff; | ||
color: #999; | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
$(document).on('click', '.stack > .add a', function(e) { | ||
var $stack = $(this).parents('.stack').eq(0); | ||
$stack.trigger('add-molecule.stacks'); | ||
e.preventDefault(); | ||
}); | ||
|
||
$(document).on('add-molecule.stacks', '.stack', function(e) { | ||
var $molecule = $('<div class="molecule" />'); | ||
$(this).find('> .add').before($molecule); | ||
$molecule.trigger('render.stacks'); | ||
}); |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
$(document).on('render.stacks', '.atom[data-type="heading"]', function(e) { | ||
$(this).attr('data-focusable', false); | ||
}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
$(document).on('render.stacks', '.atom[data-type="list"]', function(e) { | ||
$(this).data('multiple', true); | ||
$(this).attr('data-focusable', false); | ||
}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
$(document).on('render.stacks', '.atom[data-type="paragraph"]', function(e) { | ||
$(this).attr('data-focusable', false); | ||
}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
$(function() { | ||
$('.atom').trigger('render.stacks'); | ||
$('.molecule').trigger('render.stacks'); | ||
}); |