1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Add big block quote style

This commit is contained in:
Jermolene 2017-04-17 17:53:19 +01:00
parent 2e0c119d5b
commit 202ffd9c51
2 changed files with 50 additions and 1 deletions

View File

@ -1,6 +1,6 @@
caption: Block Quotes caption: Block Quotes
created: 20131206154636572 created: 20131206154636572
modified: 20160607092444424 modified: 20170417165145317
tags: WikiText tags: WikiText
title: Block Quotes in WikiText title: Block Quotes in WikiText
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki
@ -35,6 +35,13 @@ Operating systems are like a brick wall for our minds
<<< Nobody <<< Nobody
">> ">>
The core includes the class `tc-big-quote` that renders block quotes with outsize double quotes:
<<wikitext-example src:"<<<.tc-big-quote
A dramatic quote
<<< Somebody Important
">>
! Single-line Block Quotes ! Single-line Block Quotes
The single-line syntax for block quotes is actually an extension of the syntax for [[Lists in WikiText]]. For example: The single-line syntax for block quotes is actually an extension of the syntax for [[Lists in WikiText]]. For example:

View File

@ -119,6 +119,48 @@ blockquote {
border-left: 5px solid <<colour blockquote-bar>>; border-left: 5px solid <<colour blockquote-bar>>;
margin-left: 25px; margin-left: 25px;
padding-left: 10px; padding-left: 10px;
quotes: "\201C""\201D""\2018""\2019";
}
blockquote.tc-big-quote {
font-family: Georgia, serif;
position: relative;
background: <<colour pre-background>>;
border-left: none;
margin-left: 50px;
margin-right: 50px;
padding: 10px;
border-radius: 8px;
}
blockquote.tc-big-quote cite:before {
content: "\2014 \2009";
}
blockquote.tc-big-quote:before {
font-family: Georgia, serif;
color: <<colour blockquote-bar>>;
content: open-quote;
font-size: 8em;
line-height: 0.1em;
margin-right: 0.25em;
vertical-align: -0.4em;
position: absolute;
left: -50px;
top: 42px;
}
blockquote.tc-big-quote:after {
font-family: Georgia, serif;
color: <<colour blockquote-bar>>;
content: close-quote;
font-size: 8em;
line-height: 0.1em;
margin-right: 0.25em;
vertical-align: -0.4em;
position: absolute;
right: -80px;
bottom: -20px;
} }
dl dt { dl dt {