summaryrefslogtreecommitdiff
path: root/app/assets
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-02-20 00:39:58 -0800
committerelijah <elijah@riseup.net>2013-02-20 00:39:58 -0800
commit10038e58efe3aa3c1725e2b5b0a0b7b2ce060df7 (patch)
tree53413a9cd679c6d22b405c1035f9c41546677c9a /app/assets
parent9c4e765c8fe972a4a9f49c3de7991b3925ddb97c (diff)
added support for pandoc and page properties in static markup.
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/stylesheets/application.scss7
-rw-r--r--app/assets/stylesheets/typography.scss44
2 files changed, 50 insertions, 1 deletions
diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss
index 50331b4..82f7e24 100644
--- a/app/assets/stylesheets/application.scss
+++ b/app/assets/stylesheets/application.scss
@@ -19,6 +19,13 @@ $fluidGridGutterWidth: 2.127659574% !default;
// side navigation
$side-columns: 3;
+//$linkColor: #2072FF;
+//$linkColor: #04c;
+//$linkVisitedColor: #40c;
+
+$linkColor: #00F;
+$linkVisitedColor: #339;
+
//
// IMPORT LIBRARIES
//
diff --git a/app/assets/stylesheets/typography.scss b/app/assets/stylesheets/typography.scss
index e96b02f..11519c4 100644
--- a/app/assets/stylesheets/typography.scss
+++ b/app/assets/stylesheets/typography.scss
@@ -28,7 +28,9 @@ h2 {
h1, h2, h3 {
&.first {
line-height: 0.8em;
- margin-bottom: 0.4em
+ margin-bottom: 0.4em;
+ //font-size: 3em;
+ //color: #333;
}
}
p.first {
@@ -48,3 +50,43 @@ p.first {
line-height: 140%;
margin: 20px 0;
}
+
+a:visited {
+ color: $linkVisitedColor;
+}
+
+//
+// Pandoc specific HTML
+//
+
+#TOC {
+ //ul {
+ // list-style-type: decimal;
+ // }
+ ul {
+ list-style-type: none;
+ counter-reset: level1;
+ }
+ ul li:before {
+ content: counter(level1) ". ";
+ counter-increment: level1;
+ }
+ ul li ul {
+ list-style-type: none;
+ counter-reset: level2;
+ }
+ ul li ul li:before {
+ content: counter(level1) "." counter(level2) " ";
+ counter-increment: level2;
+ }
+}
+
+a[href="#TOC"] {
+ color: black;
+ pointer-events: none;
+ cursor: default;
+ &:hover {
+ text-decoration: none;
+ }
+}
+