summaryrefslogtreecommitdiffstats
path: root/sass/base
diff options
context:
space:
mode:
authorStrand <strand@Strands-MacBook-Air.local>2012-03-16 01:40:36 +0100
committerStrand <strand@Strands-MacBook-Air.local>2012-03-16 01:40:36 +0100
commite0816c8daceb55d3d6e4432840ea11e59c05a325 (patch)
treedb9160234f0ebe3cac0646fa22ff4112c9d5fa47 /sass/base
parenta69c7b4ac045bd53c84667cf4a4d7c0db33ff31a (diff)
downloadoctopress-theme-jeyzu-e0816c8daceb55d3d6e4432840ea11e59c05a325.zip
octopress-theme-jeyzu-e0816c8daceb55d3d6e4432840ea11e59c05a325.tar.gz
first attempt at adding pullquotes to Slash theme.
Diffstat (limited to 'sass/base')
-rw-r--r--sass/base/_typography.scss26
1 files changed, 26 insertions, 0 deletions
diff --git a/sass/base/_typography.scss b/sass/base/_typography.scss
new file mode 100644
index 0000000..57f5e1f
--- /dev/null
+++ b/sass/base/_typography.scss
@@ -0,0 +1,26 @@
+.pullquote-right:before,
+.pullquote-left:before {
+ /* Reset metrics. */
+ padding: 0;
+ border: none;
+
+ /* Content */
+ content: attr(data-pullquote);
+
+ /* Pull out to the right, modular scale based margins. */
+ float: right;
+ width: 45%;
+ margin: .5em 0 1em 1.5em;
+
+ /* Baseline correction */
+ position: relative;
+ top: 7px;
+ font-size: 1.4em;
+ line-height: 1.45em;
+}
+
+.pullquote-left:before {
+ /* Make left pullquotes align properly. */
+ float: left;
+ margin: .5em 1.5em 1em 0;
+} \ No newline at end of file