* improved list css
* added layout support for org-mode * added 'stuff' category * fixed phaidros metadatamaster
parent
68e9cd9aa3
commit
84ce8e58c6
2
Rules
2
Rules
|
@ -87,12 +87,12 @@ compile '*' do
|
|||
filter :erb
|
||||
filter :kramdown
|
||||
filter :colorize_syntax, :default_colorizer => :pygmentize
|
||||
layout 'default'
|
||||
when "org" # org-mode pages
|
||||
filter :org
|
||||
end
|
||||
|
||||
# layout
|
||||
layout 'default'
|
||||
filter :tidy
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
---
|
||||
title: Phaidros
|
||||
title: Phaidros (D&Dis character)
|
||||
short_title: Phaidros
|
||||
date: 2011-10-10
|
||||
techne: :done
|
||||
episteme: :done
|
||||
episteme: :fiction
|
||||
---
|
||||
|
||||
* Notes
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: stuff
|
||||
is_category: true
|
||||
---
|
||||
|
||||
<%= category :stuff %>
|
|
@ -1,208 +1,207 @@
|
|||
body {
|
||||
background: #ffffcc;
|
||||
color: #222;
|
||||
font-size: 1em;
|
||||
font-weight: normal;
|
||||
font-family: serif;
|
||||
line-height: 1.3;
|
||||
text-align: justify;
|
||||
background: #ffffcc;
|
||||
color: #222;
|
||||
font-size: 1em;
|
||||
font-weight: normal;
|
||||
font-family: serif;
|
||||
line-height: 1.3;
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
div.main {
|
||||
margin-top: 3.5em;
|
||||
margin-bottom: 3.5em;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 40em;
|
||||
padding: 0;
|
||||
margin-top: 3.5em;
|
||||
margin-bottom: 3.5em;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 40em;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div.crumb {
|
||||
background: #562D6F;
|
||||
color: #d9d9d9;
|
||||
left: 0;
|
||||
line-height: 2em;
|
||||
position: fixed;
|
||||
text-align: center;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
background: #562D6F;
|
||||
color: #d9d9d9;
|
||||
left: 0;
|
||||
line-height: 2em;
|
||||
position: fixed;
|
||||
text-align: center;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
div.title {
|
||||
background: #562D6F;
|
||||
color: #d9d9d9;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
line-height: 1.3;
|
||||
text-align: center;
|
||||
background: #562D6F;
|
||||
color: #d9d9d9;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
line-height: 1.3;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
a:link.title, a:hover.title, a:visited.title, a:active.title {
|
||||
font-size: 1.7em;
|
||||
color: #d9d9d9;
|
||||
font-size: 1.7em;
|
||||
color: #d9d9d9;
|
||||
}
|
||||
|
||||
/* don't underline titles */
|
||||
a:link.title, a:visited.title, a:active.title {
|
||||
text-decoration: none;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
div.footnotes {
|
||||
border-top: 10px solid #7D9B3E;
|
||||
border-top: 10px solid #7D9B3E;
|
||||
}
|
||||
|
||||
sup {
|
||||
margin-left: 0.2em;
|
||||
margin-left: 0.2em;
|
||||
/* font-size: 1em; */
|
||||
}
|
||||
|
||||
a:link.crumb, a:hover.crumb, a:visited.crumb, a:active.crumb {
|
||||
color: #d9d9d9;
|
||||
font-size: 1.3em;
|
||||
font-weight: bold;
|
||||
color: #d9d9d9;
|
||||
font-size: 1.3em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
background: #057dff;
|
||||
color: #fff;
|
||||
background: #057dff;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* epistemic states should stand out from normal links */
|
||||
a.episteme {
|
||||
color: #057dff;
|
||||
color: #057dff;
|
||||
}
|
||||
|
||||
a.episteme:hover {
|
||||
background: #7D9B3E;
|
||||
color: black;
|
||||
background: #7D9B3E;
|
||||
color: black;
|
||||
}
|
||||
|
||||
/* episteme header */
|
||||
div.episteme {
|
||||
background: #c4f3af;
|
||||
line-height: 2em;
|
||||
background: #c4f3af;
|
||||
line-height: 2em;
|
||||
}
|
||||
|
||||
/* move paragraphs a bit closer to the center, with list exceptions */
|
||||
p {
|
||||
margin-left: 1em;
|
||||
margin-right: 1em;
|
||||
margin-left: 1em;
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
ul p {
|
||||
margin-left: 0;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
ol p {
|
||||
margin-left: 0;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
/* category items */
|
||||
.align_left {
|
||||
text-align: left;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.align_right {
|
||||
float: right;
|
||||
text-align: right;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
ul.table .align_right {
|
||||
margin-right: 1em;
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
ul.table li {
|
||||
margin-left: 0;
|
||||
margin-left: -1em;
|
||||
}
|
||||
|
||||
/* general lists */
|
||||
li {
|
||||
margin-left: 1em;
|
||||
padding-left: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
ol {
|
||||
margin-left: 1em;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
padding-left: 1em;
|
||||
margin-left: 2em;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
padding-left: 1em;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style-type: square;
|
||||
margin-left: 1em;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
padding-left: 1em;
|
||||
list-style-type: square;
|
||||
margin-left: 2em;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
padding-left: 1em;
|
||||
}
|
||||
|
||||
em {
|
||||
color: #562D6F;
|
||||
font-style: italic;
|
||||
color: #562D6F;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
strong {
|
||||
color: green;
|
||||
font-weight: bold;
|
||||
color: green;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
img {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 100%;
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
div.figure {
|
||||
text-align: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h1 {
|
||||
background: #7D9B3E;
|
||||
color: #000000;
|
||||
font-size: 2em;
|
||||
line-height: 1.3;
|
||||
text-align: center;
|
||||
background: #7D9B3E;
|
||||
color: #000000;
|
||||
font-size: 2em;
|
||||
line-height: 1.3;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h1 a:link, h1 a:visited, h1 a:active {
|
||||
color: #000;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
h2 {
|
||||
background: #AAd398;
|
||||
color: #000000;
|
||||
font-size: 1.3em;
|
||||
font-weight:normal;
|
||||
line-height: 1.3;
|
||||
margin-left: 0.2em;
|
||||
margin-right: 0.2em;
|
||||
padding-left: 0.5em;
|
||||
background: #AAd398;
|
||||
color: #000000;
|
||||
font-size: 1.3em;
|
||||
font-weight:normal;
|
||||
line-height: 1.3;
|
||||
margin-left: 0.2em;
|
||||
margin-right: 0.2em;
|
||||
padding-left: 0.5em;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
border-left: 10px solid #A6A542;
|
||||
border-right: 10px solid #A6A542;
|
||||
margin-left: 1em;
|
||||
margin-right: 1em;
|
||||
padding-left: 0;
|
||||
border-left: 10px solid #A6A542;
|
||||
border-right: 10px solid #A6A542;
|
||||
margin-left: 1em;
|
||||
margin-right: 1em;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
/* fix indentation if blockquote is already indented */
|
||||
li blockquote {
|
||||
padding-left: 1em;
|
||||
margin-right: 2em;
|
||||
padding-left: 1em;
|
||||
margin-right: 2em;
|
||||
}
|
||||
|
||||
pre {
|
||||
background: #FFF8D9;
|
||||
border: 1px dashed green;
|
||||
font-family: monospace !important;
|
||||
line-height: 1.3em;
|
||||
overflow: auto;
|
||||
padding: 0.5em 1em;
|
||||
background: #FFF8D9;
|
||||
border: 1px dashed green;
|
||||
font-family: monospace !important;
|
||||
line-height: 1.3em;
|
||||
overflow: auto;
|
||||
padding: 0.5em 1em;
|
||||
}
|
||||
|
||||
/* pygments code highlighting */
|
||||
|
|
|
@ -54,8 +54,8 @@
|
|||
<!-- breadcrumb navigation -->
|
||||
<div class="crumb">
|
||||
<%= breadcrumbs_trail.map do |crumb|
|
||||
target = crumb[:short_title] || crumb[:title] || crumb.name
|
||||
"<a class='crumb' href='#{crumb.identifier}'>#{target}</a>"
|
||||
target = crumb[:short_title] || crumb[:title] || crumb.name
|
||||
"<a class='crumb' href='#{crumb.identifier}'>#{target}</a>"
|
||||
end.join(" » ") %>
|
||||
</div>
|
||||
</body>
|
||||
|
|
Loading…
Reference in New Issue