Take a look at the unmodified wikitext code for TiddlyTools/Time/SidebarClocks. In particular, note that the digital clock macro is enclosed in a <div class=tt-sidebar-clocks-digital ...>
wrapper. What is not obvious from that code is that the clock
macro itself also wraps the time output within a $button
widget.
Thus, to affect CSS changes to the appearance of the digital clock, you can create a tiddler (e.g., MyDigitalClockStyles
), tagged with $:/tags/Stylesheet
, containing something like this:
.tt-sidebar-clocks-digital button {
font-weight:bold; font-size:4em; color:blue; text-transform:lowercase;
}
You don’t need to make any changes directly in the TiddlyTools/Time/SidebarClocks tiddler.
Addendum: since all you want is the digital clock, you can actually omit the TiddlyTools/Time/SidebarClocks
, $:/config/TiddlyTools/Time
and TiddlyTools/Time/Setup
tiddlers entirely.
You could also combine the CSS and the clock output in a single tiddler, eliminating the need for a separate stylesheet tiddler. Just create your own “MySidebarClock” tiddler, tagged with $:/tags/SideBarSegment
, containing:
<style>
.tt-sidebar-clocks-digital button {
font-weight:bold; font-size:4em; color:blue; text-transform:lowercase;
}
</style>
<div class="tt-sidebar-clocks-digital">
<<clock type:"digital" format:"0DD0hh0mmmmm" offset:"localtime">>
</div>
enjoy,
-e