Rename the tiddlers in the Snow White theme, and enable a static banner

The tiddlers in the Snow White theme weren't named as part of their
plugin.
This commit is contained in:
Jeremy Ruston 2013-05-31 17:44:09 +01:00
parent b0d183070c
commit ac32b09db3
11 changed files with 45 additions and 24 deletions

View File

@ -1,4 +1,4 @@
title: $:/core/templates/static.template.css
{{{ [is[system]type[text/css]] ||$:/core/templates/plain-text-tiddler}}}
{{$:/core/styles/base}}
{{{ [tag[$:/tags/stylesheet]] [is[shadow]tag[$:/tags/stylesheet]] ||$:/core/templates/wikified-tiddler}}}

View File

@ -14,10 +14,11 @@ type: text/vnd.tiddlywiki-html
{{{ [is[system]type[text/css]] ||$:/core/templates/css-tiddler}}}
</div>
<style type="text/css">
{{$:/core/styles/base}}
{{{ [tag[$:/tags/stylesheet]] [is[shadow]tag[$:/tags/stylesheet]] ||$:/core/templates/wikified-tiddler}}}
</style>
</head>
<body>
{{$:/StaticBanner||$:/core/templates/html-tiddler}}
{{$:/core/ui/PageTemplate||$:/core/templates/html-tiddler}}
</body>
</html>

View File

@ -11,6 +11,7 @@ title: $:/core/templates/static.tiddler.html
<title>`{{$:/core/wiki/title}}`</title>
</head>
<body>
`{{$:/StaticBanner||$:/core/templates/html-tiddler}}`
<section class="story-river">
<div class="tw-tiddler-frame">
`<$view tiddler="$:/core/ui/ViewTemplate" format="htmlwikified"/>`

View File

@ -0,0 +1,3 @@
title: $:/core/templates/wikified-tiddler
<$view field="text" format="wikified" />

View File

@ -0,0 +1,3 @@
title: $:/StaticBanner
<div class="tw-alert">This page is part of a static HTML representation of the TiddlyWiki at http://five.tiddlywiki.com/</div>

View File

@ -25,7 +25,7 @@ Store your tiddlers in a single HTML file along with the JS
# Create tiddlers, show links, missing, orphans, tags, tagging, references
# Use missing tiddlers to find a typo
# Show shadow tiddlers and system tiddlers
# Show stylesheet handling - [[$:/core/styles/base]]
# Show stylesheet handling - [[$:/themes/snowwhite/base]]
# Drag an image from the file system
# Use the image in a tiddler
# Edit the image

View File

@ -1,4 +1,4 @@
title: $:/core/styles/base
title: $:/themes/tiddlywiki/snowwhite/base
tags: [[$:/tags/stylesheet]]
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline
@ -44,7 +44,7 @@ background-image: -ms-linear-gradient($gradient$);
** Start with the normalize CSS reset, and then belay some of its effects
*/
{{$:/core/styles/reset}}
{{$:/themes/tiddlywiki/snowwhite/reset}}
*, input[type="search"] {
box-sizing: border-box;
@ -61,9 +61,9 @@ html {
}
body {
font-size: {{$:/core/styles/metrics##fontsize}};
line-height: {{$:/core/styles/metrics##lineheight}};
background-color: {{$:/core/styles/colourmappings##pagebackground}};
font-size: {{$:/themes/tiddlywiki/snowwhite/metrics##fontsize}};
line-height: {{$:/themes/tiddlywiki/snowwhite/metrics##lineheight}};
background-color: {{$:/themes/tiddlywiki/snowwhite/colourmappings##pagebackground}};
word-wrap: break-word;
}
@ -123,7 +123,7 @@ a.tw-tiddlylink {
text-decoration: none;
font-style: normal;
font-weight: normal;
color: {{$:/core/styles/colourmappings##linkforeground}};
color: {{$:/themes/tiddlywiki/snowwhite/colourmappings##linkforeground}};
}
.tw-sidebar-lists a.tw-tiddlylink {
@ -346,7 +346,7 @@ a.tw-tiddlylink-missing {
.tw-tiddler-frame {
position: relative;
margin-bottom: 2em;
background-color: {{$:/core/styles/colourmappings##tiddlerbackground}};
background-color: {{$:/themes/tiddlywiki/snowwhite/colourmappings##tiddlerbackground}};
}
.tw-tiddler-info {
@ -477,8 +477,8 @@ canvas.tw-edit-bitmapeditor {
.tw-drop-down {
min-width: 20em;
border: 1px solid {{$:/core/styles/colourmappings##dropdownborder}};
background-color: {{$:/core/styles/colourmappings##dropdownbackground}};
border: 1px solid {{$:/themes/tiddlywiki/snowwhite/colourmappings##dropdownborder}};
background-color: {{$:/themes/tiddlywiki/snowwhite/colourmappings##dropdownbackground}};
<<border-radius 4px>>
<<box-shadow "2px 2px 10px rgba(0, 0, 0, 0.5)">>
padding: 0.5em 0em 0.5em 0em;
@ -492,8 +492,8 @@ canvas.tw-edit-bitmapeditor {
}
.tw-drop-down a:hover {
color: {{$:/core/styles/colourmappings##linkbackground}};
background-color: {{$:/core/styles/colourmappings##linkforeground}};
color: {{$:/themes/tiddlywiki/snowwhite/colourmappings##linkbackground}};
background-color: {{$:/themes/tiddlywiki/snowwhite/colourmappings##linkforeground}};
text-decoration: none;
}
@ -666,3 +666,16 @@ canvas.tw-edit-bitmapeditor {
<<background-linear-gradient "left, rgb(236,236,236) 0%, rgb(255,255,255) 100%">>
border: none;
}
/*
** Alerts
*/
.tw-alert {
<<border-radius 6px>>
margin: 0.5em 0.5em 0.5em 0.5em;
padding: 1em 1em 1em 1em;
border: 3px solid #DBB727;
background-color: rgb(250, 210, 50);
}

View File

@ -1,9 +1,9 @@
title: $:/core/styles/colourmappings
title: $:/themes/tiddlywiki/snowwhite/colourmappings
type: application/x-tiddler-dictionary
tiddlerbackground: {{$:/core/styles/colours##background}}
pagebackground: {{$:/core/styles/colours##pagebackground}}
linkbackground: {{$:/core/styles/colours##background}}
linkforeground: {{$:/core/styles/colours##primary}}
dropdownbackground: {{$:/core/styles/colours##background}}
dropdownborder: {{$:/core/styles/colours##medium}}
tiddlerbackground: {{$:/themes/tiddlywiki/snowwhite/colours##background}}
pagebackground: {{$:/themes/tiddlywiki/snowwhite/colours##pagebackground}}
linkbackground: {{$:/themes/tiddlywiki/snowwhite/colours##background}}
linkforeground: {{$:/themes/tiddlywiki/snowwhite/colours##primary}}
dropdownbackground: {{$:/themes/tiddlywiki/snowwhite/colours##background}}
dropdownborder: {{$:/themes/tiddlywiki/snowwhite/colours##medium}}

View File

@ -1,4 +1,4 @@
title: $:/core/styles/colours
title: $:/themes/tiddlywiki/snowwhite/colours
type: application/x-tiddler-dictionary
primary: `#5959C0`

View File

@ -1,4 +1,4 @@
title: $:/core/styles/metrics
title: $:/themes/tiddlywiki/snowwhite/metrics
type: application/x-tiddler-dictionary
fontsize: `14px`

View File

@ -1,4 +1,4 @@
title: $:/core/styles/reset
title: $:/themes/tiddlywiki/snowwhite/reset
type: text/plain
/*! normalize.css v2.1.0 | MIT License | git.io/normalize */