T(-) Countdown Omitweeks Width Issue

This post investigates issues with the width of a countdown that has the weeks omitted. Since the width should auto-adjust based on the displayed time units.

c-3po

We’ll start with the c-3po style based on this issue on the WordPress Forums.

[tminus t="2018-04-11" omitweeks="true" style="c-3po"/]
days
5
0
hours
0
0
minutes
0
0
seconds
0
0
days
1
1
0
hours
0
0
minutes
0
0
seconds
0
0
weeks
1
5
days
0
5
hours
0
0
minutes
0
0
seconds
0
0
[tminus t="2018-04-11" omitweeks="true" style="c-3po-mini" minutes="mins." seconds="secs."/]
days
5
5
hours
0
0
mins.
0
0
secs.
0
0
days
1
1
3
hours
0
0
mins.
0
0
secs.
0
0
weeks
1
6
days
0
1
hours
0
0
mins.
0
0
secs.
0
0

sith

[tminus t="2018-04-11" omitweeks="true" style="sith"/]
days
5
0
hours
0
0
minutes
0
0
seconds
0
0
days
1
1
0
hours
0
0
minutes
0
0
seconds
0
0
weeks
1
5
days
0
5
hours
0
0
minutes
0
0
seconds
0
0

carbonlite

[tminus t="2018-04-11" omitweeks="true" style="carbonlite"/]
days
5
0
hours
0
0
minutes
0
0
seconds
0
0
days
1
1
0
hours
0
0
minutes
0
0
seconds
0
0
weeks
1
5
days
0
5
hours
0
0
minutes
0
0
seconds
0
0

cloud-city

[tminus t="2018-04-11" omitweeks="true" style="cloud-city"/]
days
5
0
hours
0
0
minutes
0
0
seconds
0
0
days
1
1
0
hours
0
0
minutes
0
0
seconds
0
0
weeks
1
5
days
0
5
hours
0
0
minutes
0
0
seconds
0
0

Jedi

[tminus t="2018-04-11" omitweeks="true"/]
days
5
0
hours
0
0
minutes
0
0
seconds
0
0
days
1
1
0
hours
0
0
minutes
0
0
seconds
0
0
weeks
1
5
days
0
5
hours
0
0
minutes
0
0
seconds
0
0

circle

[tminus t="2018-04-11" style="circle" omitweeks="true"/]
days
5
0
hours
0
0
minutes
0
0
seconds
0
0

Collapse-O-Matic > Lock Open

An element can be set to ‘lock open’ once it has been expanded by setting trigclass=”colomat-expand-only”:

I am a normal expand
yay
I am a locked open expand
yay

Also works for grouping (Star Wars will lock open):

Fiction

Star Wars
Target Content
Star Trek
Target Content
Battlestar Galactica
Target Content

Fact

Space Race
Target Content
Ansari X Prize
Target Content

Also works for highlander-grouping (Monkeys will lock open):

Fiction

Monkeys
Target Content
Donkeys
Target Content

Also works for nested elements (level 3 will stay open):

Root Level
Nested Level 1
Nested Level 2
Nested Level 3
Nested Level 4
Nested Level 5
Nested Level 6
Nested Level 7

And of course expand/collapse all triggers:

Expand All
Collapse All