I want to make following changes
https://i.imgur.com/gHZDTa5.png
Please guide me how do I make these changes.
div.tc-search {
position: fixed;
top: 0px;
left: 0px;
}
div.tc-page-controls {
position: fixed;
top: 0px;
right: 0px;
}
div.tc-sidebar-header h1.tc-site-title,
div.tc-sidebar-header div.tc-site-subtitle {
display:none;
}
Otherwise it is also a matter of looking at the tiddlers that currently generate the content in the side bar and cut and copy as needed.
Your changes to shadow tiddlers will replace the underlying tiddler but can be deleted, restoring the shadow tiddler.
Regards
Tony
Can you please point me towards some such tiddlers so that I can inspect their code?
Thank you Stephan. I used following code
div.tc-search {
position: fixed;
top: 0px;
left: 300px;
}
div.tc-page-controls {
position: fixed;
top: 0px;
left: 0px;
}
div.tc-sidebar-header h1.tc-site-title,
div.tc-sidebar-header div.tc-site-subtitle {
display:none;
}
My intention was to keep the page controls and search always visible, even if sidebar is collapsed. It seems my approach is wrong. The page control and search bar has moved to the top but they disappear when I hide the sidebar.
Not sure it is possible or not. Perhaps I will have to override the shadow tiddlers that Tony mentioned.
Update
I added
{{||$:/core/ui/PageTemplate/pagecontrols}}
to a tiddler and tag it with $:/tags/AboveStory. The result is

I am half way there. Now need to figure out how to put search field in the tiddler.
<$set name="searchTiddler" value="$:/temp/search">
<$edit-text tiddler="$:/temp/search" type="search" tag="input" focus={{$:/config/Search/AutoFocus}} focusPopup=<<qualify "$:/state/popup/search-dropdown">> class="tc-popup-handle"/>
<$reveal state="$:/temp/search" type="nomatch" text="">
<$button tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class="tc-btn-invisible">
<$action-setfield $tiddler="$:/temp/advancedsearch" text={{$:/temp/search}}/>
<$action-setfield $tiddler="$:/temp/search" text=""/>
<$action-navigate $to="$:/AdvancedSearch"/>
{{$:/core/images/advanced-search-button}}
</$button>
<$button class="tc-btn-invisible">
<$action-setfield $tiddler="$:/temp/search" text="" />
{{$:/core/images/close-button}}
</$button>
<$button popup=<<qualify "$:/state/popup/search-dropdown">> class="tc-btn-invisible">
{{$:/core/images/down-arrow}}
<$list filter="[{$:/temp/search}minlength{$:/config/Search/MinLength}limit[1]]" variable="listItem">
<$set name="resultCount" value="""<$count filter="[!is[system]search{$(searchTiddler)$}]"/>""">
{{$:/language/Search/Matches}}
</$set>
</$list>
</$button>
</$reveal>
<$reveal state="$:/temp/search" type="match" text="">
<$button to="$:/AdvancedSearch" tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class="tc-btn-invisible">
{{$:/core/images/advanced-search-button}}
</$button>
</$reveal>
<$reveal tag="div" class="tc-block-dropdown-wrapper" state="$:/temp/search" type="nomatch" text="">
<$reveal tag="div" class="tc-block-dropdown tc-search-drop-down tc-popup-handle" state=<<qualify "$:/state/popup/search-dropdown">> type="nomatch" text="" default="">
<$list filter="[{$:/temp/search}minlength{$:/config/Search/MinLength}limit[1]]" emptyMessage="""<div class="tc-search-results">{{$:/language/Search/Search/TooShort}}</div>""" variable="listItem">
{{$:/core/ui/SearchResults}}
</$list>
</$reveal>
</$reveal>
</$set>\define config-title()
$:/config/PageControlButtons/Visibility/$(listItem)$
\end
<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]" variable="listItem">
<$reveal type="nomatch" state=<<config-title>> text="hide">
<$set name="tv-config-toolbar-class" filter="[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]">
<$transclude tiddler=<<listItem>> mode="inline"/>
</$set>
</$reveal>
</$list>
@@float:right;padding-left:200px; {{$:/_topsearch}}@@
.tc-sidebar-scrollable { top: -55px; }
.tc-sidebar-header .tc-site-title,
.tc-sidebar-header .tc-site-subtitle,
.tc-sidebar-header .tc-page-controls {display:none;
}
.tc-sidebar-lists .tc-search {display:none}
.tc-topbar-left {
margin-left: 0px;
margin-right: 2em;
}
html .tc-topbar svg {
height: 1.4em;
width: 1.4em;
}Thank you everyone for their input. It indeed is tricky to customize the layout. I am going to pause further customization till I get my hand on the next release which Tony and Mat have mentioned is going to easier to customize. For now I have made following changes to get this result


It’s not perfect and not exactly what I had in mind, but it will do for now.
I created a tiddler, title $:/talha131/Template/Header, and tag $:/tags/AboveStory
<div class="talha131-header">
{{||$:/core/ui/PageTemplate/pagecontrols}}
<$set name="searchTiddler" value="$:/temp/search">
<div class="tc-search"></div>
<$reveal tag="div" class="tc-block-dropdown-wrapper" state="$:/temp/search" type="nomatch" text="">
<$reveal tag="div" class="tc-block-dropdown tc-search-drop-down tc-popup-handle" state=<<qualify "$:/state/popup/search-dropdown">> type="nomatch" text="" default="">
<$list filter="[{$:/temp/search}minlength{$:/config/Search/MinLength}limit[1]]" emptyMessage="""<div class="tc-search-results">{{$:/language/Search/Search/TooShort}}</div>""" variable="listItem">
{{$:/core/ui/SearchResults}}
</$list>
</$reveal>
</$reveal>
</$set>
</div>
The {{||$:/core/ui/PageTemplate/pagecontrols}} and rest of the code is extracted from the shadow tiddlers. I just wrapped them in <div class="talha131-header">.
I created another tiddler, $:/talha131/CSS/Header with tag $:/tags/Stylesheet.
div.talha131-header { background: #f0851d; border-radius: 5px; display: flex; left: 29px; padding: 5px; position: fixed; top: 5px; z-index: 1200; } div.talha131-header div.tc-page-controls { margin-top: 0px; } .tc-page-controls svg { fill: white; }
This gave me the result I shared above.
I shouldn’t probably customize the page controls svg fill color using .tc-page-controls svg. It’d be better to modify them using color palettes, I suppose.
Also, the page controls come on top of the tiddler title.
Page Tags
$:/tags/TopLeftBar
$:/tags/TopRightBar
$:/tags/AboveStory
$:/tags/BelowStory
Page Template tiddlersAll tiddlers tagged: $:/tags/PageTemplate
$:/core/ui/PageTemplate/topleftbar
$:/core/ui/PageTemplate/toprightbar
$:/core/ui/PageTemplate/sidebar
$:/core/ui/PageTemplate/story
$:/core/ui/PageTemplate/alerts