diff --git a/core/ui/PageTemplate/alerts.tid b/core/ui/PageTemplate/alerts.tid new file mode 100644 index 000000000..006871282 --- /dev/null +++ b/core/ui/PageTemplate/alerts.tid @@ -0,0 +1,8 @@ +title: $:/core/ui/PageTemplate/alerts +tags: $:/tags/PageTemplate + +
+ +<$list filter="[is[shadow]!has[draft.of]tag[$:/tags/Alert]] [!is[shadow]!has[draft.of]tag[$:/tags/Alert]] +[sort[modified]]" template="$:/core/ui/AlertTemplate" storyview="pop"/> + +
diff --git a/core/ui/PageTemplate/sidebar.tid b/core/ui/PageTemplate/sidebar.tid index 80ca0fb9f..231866642 100644 --- a/core/ui/PageTemplate/sidebar.tid +++ b/core/ui/PageTemplate/sidebar.tid @@ -1,6 +1,10 @@ title: $:/core/ui/PageTemplate/sidebar tags: $:/tags/PageTemplate +
+ +<$scrollable fallthrough="no" class="tw-sidebar-scrollable"> + + + diff --git a/core/ui/PageTemplate/story.tid b/core/ui/PageTemplate/story.tid index 2e3ef58f7..f2a09e8f3 100644 --- a/core/ui/PageTemplate/story.tid +++ b/core/ui/PageTemplate/story.tid @@ -1,17 +1,12 @@ title: $:/core/ui/PageTemplate/story tags: $:/tags/PageTemplate +<$scrollable class="tw-story-scrollable"> +
- -
- -<$list filter="[is[shadow]!has[draft.of]tag[$:/tags/Alert]] [!is[shadow]!has[draft.of]tag[$:/tags/Alert]] +[sort[modified]]" template="$:/core/ui/AlertTemplate" storyview="pop"/> - -
- - <$list filter="[list[$:/StoryList]]" history="$:/HistoryList" template="$:/core/ui/ViewTemplate" editTemplate="$:/core/ui/EditTemplate" storyview={{$:/view}} /> -
+ + diff --git a/core/wiki/tags/PageTemplate.tid b/core/wiki/tags/PageTemplate.tid index 9fb5a3594..38839744f 100644 --- a/core/wiki/tags/PageTemplate.tid +++ b/core/wiki/tags/PageTemplate.tid @@ -1,3 +1,3 @@ title: $:/tags/PageTemplate -list: [[$:/core/ui/PageTemplate/sidebar]] [[$:/core/ui/PageTemplate/story]] +list: [[$:/core/ui/PageTemplate/sidebar]] [[$:/core/ui/PageTemplate/story]] [[$:/core/ui/PageTemplate/alerts]] diff --git a/themes/tiddlywiki/centralised/styles.tid b/themes/tiddlywiki/centralised/styles.tid index dd8948448..aee3ec050 100644 --- a/themes/tiddlywiki/centralised/styles.tid +++ b/themes/tiddlywiki/centralised/styles.tid @@ -17,10 +17,10 @@ tags: [[$:/tags/stylesheet]] text-align: left; } - html .sidebar-header { + html .tw-sidebar-scrollable { text-align: left; left: 50%; right: 0; - padding-left: 413px; + margin-left: 343px; } } diff --git a/themes/tiddlywiki/starlight/styles.tid b/themes/tiddlywiki/starlight/styles.tid index 769fb4cc2..47726310b 100644 --- a/themes/tiddlywiki/starlight/styles.tid +++ b/themes/tiddlywiki/starlight/styles.tid @@ -14,7 +14,7 @@ Placeholder for a more thorough refinement of Snow White src: local("Arvo"), url(<>) format("woff"); } -html body { +html body, .tw-sidebar-scrollable-backdrop { font-family: "Arvo", "Times"; background: url(<>); } diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 9ef831530..c8e113cf8 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -386,6 +386,7 @@ a.tw-tiddlylink-external:hover { } @media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics##storywidth}}) { + .sidebar-header { padding: 14px; } @@ -397,7 +398,21 @@ a.tw-tiddlylink-external:hover { } @media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics##storywidth}}) { - .sidebar-header { + + .tw-story-scrollable { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + } + + .tw-message-box { + margin: 21px -21px 21px -21px; + } + + .tw-sidebar-scrollable { + z-index: 1100; position: fixed; top: {{$:/themes/tiddlywiki/vanilla/metrics##storytop}}; left: {{$:/themes/tiddlywiki/vanilla/metrics##storyright}}; @@ -410,6 +425,18 @@ a.tw-tiddlylink-external:hover { padding: 70px 0 28px 42px; } + .tw-sidebar-scrollable-backdrop { + z-index: 1000; + position: fixed; + top: {{$:/themes/tiddlywiki/vanilla/metrics##storytop}}; + left: {{$:/themes/tiddlywiki/vanilla/metrics##storyright}}; + bottom: 0; + right: 0; + margin: 0 0 0 -42px; + background-color: <>; + opacity: 0.8; + } + .story-river { position: relative; left: {{$:/themes/tiddlywiki/vanilla/metrics##storyleft}}; @@ -1067,7 +1094,6 @@ canvas.tw-edit-bitmapeditor { border: 1px solid <>; background: <>; padding: 0px 21px 0px 21px; - margin: 21px -21px 21px -21px; font-size: 12px; line-height: 18px; color: <>; @@ -1122,3 +1148,5 @@ canvas.tw-edit-bitmapeditor { margin: 4px; border: 1px solid #000; } + +