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

57 lines
1.5 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-26 05:17:01 +00:00
width: min(<<get.theme.metric storywidth>>,calc(100% - (2 * <<get.theme.metric sidebarminwidth>>)));
padding: 42px <<get.theme.metric storypaddingright>> 42px <<get.theme.metric storypaddingleft>>;
2013-07-03 21:59:35 +00:00
margin: 0 auto;
text-align: left;
}
html body.tc-body .tc-sidebar-left .tc-story-river {
2024-10-19 06:46:57 +00:00
margin: 0 auto;
2024-10-26 05:17:01 +00:00
padding-right: <<get.theme.metric storypaddingright>>;
padding-left: <<get.theme.metric storypaddingleft>>;
2024-10-19 06:46:57 +00:00
}
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-26 05:17:01 +00:00
margin-left: min(calc((100% - (2 * <<get.theme.metric sidebarminwidth>>)) / 2 - 42px),calc(<<get.theme.metric 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
body.tc-body .tc-sidebar-left .tc-sidebar-scrollable {
2024-10-19 06:46:57 +00:00
margin-left: 0;
right: 50%;
left: 0;
2024-10-26 05:17:01 +00:00
margin-right: min(calc((100% - (2 * <<get.theme.metric sidebarminwidth>>)) / 2 - 42px),calc(<<get.theme.metric storywidth>> / 2 - 42px));
2024-10-20 17:24:02 +00:00
padding-right: 0px;
padding-left: 42px;
}
html[dir="rtl"] .tc-sidebar-left .tc-sidebar-scrollable {
2024-10-19 06:46:57 +00:00
padding-right: 42px;
padding-left: 0;
}
2024-10-20 17:24:02 +00:00
html[dir="rtl"] .tc-story-river, html[dir="rtl"] .tc-sidebar-scrollable {
text-align: right;
}
2024-10-08 16:44:13 +00:00
html .tc-tiddler-frame {
width: 100%;
}
2024-10-10 03:18:55 +00:00
2013-07-03 21:59:35 +00:00
}