1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-10 17:30:26 +00:00
TiddlyWiki5/themes/tiddlywiki/centralised/styles.tid

58 lines
2.2 KiB
Plaintext
Raw Normal View History

2013-07-03 21:59:35 +00:00
title: $:/themes/tiddlywiki/centralised/styles.tid
tags: [[$:/tags/Stylesheet]]
2013-07-03 21:59:35 +00:00
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline
@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {
2013-07-03 21:59:35 +00:00
2014-08-28 18:41:29 +00:00
html .tc-page-container {
2013-07-03 21:59:35 +00:00
text-align: center;
}
html .tc-story-river {
position: relative;
2024-10-08 17:45:26 +00:00
width: min({{$:/themes/tiddlywiki/centralised/metrics/storywidth}},calc(100% - (2 * {{$:/themes/tiddlywiki/centralised/metrics/sidebarminwidth}})));
2024-10-10 09:27:37 +00:00
padding: 42px {{$:/themes/tiddlywiki/centralised/metrics/storypaddingright}} 42px {{$:/themes/tiddlywiki/centralised/metrics/storypaddingleft}};
2013-07-03 21:59:35 +00:00
margin: 0 auto;
text-align: left;
}
2024-10-19 06:46:57 +00:00
html[dir="rtl"] .tc-story-river {
text-align: right;
margin: 0 auto;
padding-right: {{$:/themes/tiddlywiki/centralised/metrics/storypaddingright}};
padding-left: {{$:/themes/tiddlywiki/centralised/metrics/storypaddingleft}};
}
2014-08-28 18:41:29 +00:00
html .tc-sidebar-scrollable {
2013-07-03 21:59:35 +00:00
text-align: left;
left: 50%;
right: 0;
2024-10-08 17:45:26 +00:00
margin-left: min(calc((100% - (2 * {{$:/themes/tiddlywiki/centralised/metrics/sidebarminwidth}})) / 2 - 42px),calc({{$:/themes/tiddlywiki/centralised/metrics/storywidth}} / 2 - 42px));
2024-10-08 13:07:52 +00:00
width: auto;
2013-07-03 21:59:35 +00:00
}
2024-10-08 16:44:13 +00:00
2024-10-19 06:46:57 +00:00
html[dir="rtl"] .tc-sidebar-scrollable {
text-align: right;
margin-left: 0;
right: 50%;
left: 0;
margin-right: min(calc((100% - (2 * {{$:/themes/tiddlywiki/centralised/metrics/sidebarminwidth}})) / 2 - 42px),calc({{$:/themes/tiddlywiki/centralised/metrics/storywidth}} / 2 - 42px));
padding-right: 42px;
padding-left: 0;
}
2024-10-08 16:44:13 +00:00
html .tc-tiddler-frame {
width: 100%;
}
2024-10-10 03:18:55 +00:00
html .tc-sidebar-resizer {
left: min(calc(50% + ({{$:/themes/tiddlywiki/centralised/metrics/storywidth}} / 2) - (2 * {{$:/themes/tiddlywiki/centralised/metrics/storypaddingright}} / 3)),calc(100% - {{$:/themes/tiddlywiki/centralised/metrics/sidebarminwidth}} - (2 * {{$:/themes/tiddlywiki/centralised/metrics/storypaddingright}} / 3)));
}
2024-10-19 06:46:57 +00:00
html[dir="rtl"] .tc-sidebar-resizer {
left: auto;
right: min(calc(50% + ({{$:/themes/tiddlywiki/centralised/metrics/storywidth}} / 2) - (2 * {{$:/themes/tiddlywiki/centralised/metrics/storypaddingright}} / 3)),calc(100% - {{$:/themes/tiddlywiki/centralised/metrics/sidebarminwidth}} - (2 * {{$:/themes/tiddlywiki/centralised/metrics/storypaddingright}} / 3)));
}
2013-07-03 21:59:35 +00:00
}