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"/]
Years
0
0
Months
0
1
Days
1
9
Hours
0
0
Minutes
0
0
Seconds
0
0
Years
0
0
Months
0
3
Days
1
8
Hours
0
0
Minutes
0
0
Seconds
0
0
Years
0
0
Months
0
3
Weeks
0
2
Days
0
4
Hours
0
0
Minutes
0
0
Seconds
0
0
[tminus t="2018-04-11" omitweeks="true" style="c-3po-mini" minutes="mins." seconds="secs."/]
Years
0
0
Months
0
1
Days
2
4
Hours
0
0
mins.
0
0
secs.
0
0
Years
0
0
Months
0
3
Days
2
1
Hours
0
0
mins.
0
0
secs.
0
0
Years
0
0
Months
0
3
Weeks
0
3
Days
0
0
Hours
0
0
mins.
0
0
secs.
0
0

sith

[tminus t="2018-04-11" omitweeks="true" style="sith"/]
Years
0
0
Months
0
1
Days
1
9
Hours
0
0
Minutes
0
0
Seconds
0
0
Years
0
0
Months
0
3
Days
1
8
Hours
0
0
Minutes
0
0
Seconds
0
0
Years
0
0
Months
0
3
Weeks
0
2
Days
0
4
Hours
0
0
Minutes
0
0
Seconds
0
0

carbonlite

[tminus t="2018-04-11" omitweeks="true" style="carbonlite"/]
Years
0
0
Months
0
1
Days
1
9
Hours
0
0
Minutes
0
0
Seconds
0
0
Years
0
0
Months
0
3
Days
1
8
Hours
0
0
Minutes
0
0
Seconds
0
0
Years
0
0
Months
0
3
Weeks
0
2
Days
0
4
Hours
0
0
Minutes
0
0
Seconds
0
0

cloud-city

[tminus t="2018-04-11" omitweeks="true" style="cloud-city"/]
Years
0
0
Months
0
1
Days
1
9
Hours
0
0
Minutes
0
0
Seconds
0
0
Years
0
0
Months
0
3
Days
1
8
Hours
0
0
Minutes
0
0
Seconds
0
0
Years
0
0
Months
0
3
Weeks
0
2
Days
0
4
Hours
0
0
Minutes
0
0
Seconds
0
0

Jedi

[tminus t="2018-04-11" omitweeks="true"/]
Years
0
0
Months
0
1
Days
1
9
Hours
0
0
Minutes
0
0
Seconds
0
0
Years
0
0
Months
0
3
Days
1
8
Hours
0
0
Minutes
0
0
Seconds
0
0
Years
0
0
Months
0
3
Weeks
0
2
Days
0
4
Hours
0
0
Minutes
0
0
Seconds
0
0

circle

[tminus t="2018-04-11" style="circle" omitweeks="true"/]
Years
0
0
Months
0
1
Days
1
9
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