1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-10 17:30:26 +00:00
TiddlyWiki5/themes/tiddlywiki/centralised/styles.tid
BurningTreeC b888ac2100 updates
2024-10-26 20:06:14 +02:00

57 lines
1.6 KiB
Plaintext

title: $:/themes/tiddlywiki/centralised/styles.tid
tags: [[$:/tags/Stylesheet]]
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline
@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {
html .tc-page-container {
text-align: center;
}
html .tc-story-river {
position: relative;
width: min(<<get.theme.metric storywidth>>,calc(100% - (2 * <<get.theme.metric sidebarminwidth>>)));
padding: 42px <<get.theme.metric storypaddingright>> 42px <<get.theme.metric storypaddingleft>>;
margin: 0 auto;
text-align: left;
}
html body.tc-body .tc-sidebar-left .tc-story-river {
margin: 0 auto;
padding-right: <<get.theme.metric storypaddingright>>;
padding-left: <<get.theme.metric storypaddingleft>>;
}
html .tc-sidebar-scrollable {
text-align: left;
left: 50%;
right: 0;
margin-left: min(calc((100% - (2 * <<get.theme.metric sidebarminwidth>>)) / 2 - <<get.theme.metric storypaddingright>>),calc(<<get.theme.metric storywidth>> / 2 - <<get.theme.metric storypaddingright>>));
width: auto;
}
body.tc-body .tc-sidebar-left .tc-sidebar-scrollable {
margin-left: 0;
right: 50%;
left: 0;
margin-right: min(calc((100% - (2 * <<get.theme.metric sidebarminwidth>>)) / 2 - <<get.theme.metric storypaddingleft>>),calc(<<get.theme.metric storywidth>> / 2 - <<get.theme.metric storypaddingleft>>));
padding-right: 0px;
padding-left: 42px;
}
html[dir="rtl"] .tc-sidebar-left .tc-sidebar-scrollable {
padding-right: 42px;
padding-left: 0;
}
html[dir="rtl"] .tc-story-river, html[dir="rtl"] .tc-sidebar-scrollable {
text-align: right;
}
html .tc-tiddler-frame {
width: 100%;
}
}