| 1 |
/* ── NotificationX Countdown Timer Widget ─────────────────────────────────── */ |
| 2 |
|
| 3 |
.nx-countdown-wrapper { |
| 4 |
display: block; |
| 5 |
} |
| 6 |
|
| 7 |
.nx-countdown-container { |
| 8 |
display: flex; |
| 9 |
flex-wrap: wrap; |
| 10 |
align-items: center; |
| 11 |
list-style: none; |
| 12 |
margin: 0; |
| 13 |
padding: 0; |
| 14 |
} |
| 15 |
|
| 16 |
/* ── Layout: Grid View (side by side) ────────────────────────────────────── */ |
| 17 |
.nx-countdown-layout-grid { |
| 18 |
flex-direction: row; |
| 19 |
flex-wrap: wrap; |
| 20 |
display: table; |
| 21 |
table-layout: fixed; |
| 22 |
width: 100%; |
| 23 |
} |
| 24 |
|
| 25 |
.nx-countdown-layout-grid .nx-countdown-item { |
| 26 |
display: table-cell; |
| 27 |
} |
| 28 |
|
| 29 |
/* ── Layout: List View (stacked full-width) ──────────────────────────────── */ |
| 30 |
.nx-countdown-layout-list { |
| 31 |
flex-direction: column; |
| 32 |
} |
| 33 |
|
| 34 |
.nx-countdown-layout-list .nx-countdown-item { |
| 35 |
display: block; |
| 36 |
width: 100%; |
| 37 |
} |
| 38 |
|
| 39 |
.nx-countdown-layout-list .nx-countdown-item > div { |
| 40 |
width: 100%; |
| 41 |
box-sizing: border-box; |
| 42 |
} |
| 43 |
|
| 44 |
/* ── Each time unit item ──────────────────────────────────────────────────── */ |
| 45 |
.nx-countdown-item { |
| 46 |
display: flex; |
| 47 |
} |
| 48 |
|
| 49 |
.nx-countdown-item > div { |
| 50 |
display: flex; |
| 51 |
flex-direction: column; |
| 52 |
align-items: center; |
| 53 |
justify-content: center; |
| 54 |
padding: 20px 24px; |
| 55 |
text-align: center; |
| 56 |
} |
| 57 |
|
| 58 |
/* ── Digits ──────────────────────────────────────────────────────────────── */ |
| 59 |
.nx-countdown-digits { |
| 60 |
position: relative; |
| 61 |
display: block; |
| 62 |
width: 100%; |
| 63 |
font-size: 48px; |
| 64 |
font-weight: 700; |
| 65 |
line-height: 1; |
| 66 |
color: #fec503; |
| 67 |
} |
| 68 |
|
| 69 |
/* ── Labels ──────────────────────────────────────────────────────────────── */ |
| 70 |
.nx-countdown-label { |
| 71 |
display: block; |
| 72 |
font-size: 13px; |
| 73 |
font-weight: 600; |
| 74 |
text-transform: uppercase; |
| 75 |
letter-spacing: 0.08em; |
| 76 |
margin-top: 6px; |
| 77 |
color: #aaaaaa; /* explicit fallback — overridden by the style control */ |
| 78 |
} |
| 79 |
|
| 80 |
/* ── Label position variants ─────────────────────────────────────────────── */ |
| 81 |
.nx-countdown-label-inline .nx-countdown-label { |
| 82 |
display: inline-block; |
| 83 |
margin-top: 0; |
| 84 |
} |
| 85 |
|
| 86 |
/* ── Separator (pseudo-element on the digits wrapper) ────────────────────── */ |
| 87 |
.nx-countdown-item > div { |
| 88 |
position: relative; |
| 89 |
} |
| 90 |
|
| 91 |
.nx-countdown-show-separator .nx-countdown-digits::after { |
| 92 |
content: ':'; |
| 93 |
position: absolute; |
| 94 |
top: 50%; |
| 95 |
right: calc(-1 * (var(--nx-countdown-box-spacing, 15px) + 4px)); |
| 96 |
transform: translateY(-50%); |
| 97 |
font-size: inherit; |
| 98 |
font-weight: inherit; |
| 99 |
pointer-events: none; |
| 100 |
} |
| 101 |
|
| 102 |
.nx-countdown-show-separator.nx-countdown-separator-dotted .nx-countdown-digits::after { |
| 103 |
content: '·'; |
| 104 |
font-size: 2em; |
| 105 |
line-height: 0; |
| 106 |
} |
| 107 |
|
| 108 |
.nx-countdown-show-separator .nx-countdown-item:last-child .nx-countdown-digits::after { |
| 109 |
display: none; |
| 110 |
} |
| 111 |
|
| 112 |
/* ── Finish / expiry message ─────────────────────────────────────────────── */ |
| 113 |
.nx-countdown-finish-message { |
| 114 |
padding: 16px; |
| 115 |
} |
| 116 |
|
| 117 |
.nx-countdown-finish-message .nx-expiry-title { |
| 118 |
margin-top: 0; |
| 119 |
margin-bottom: 8px; |
| 120 |
} |
| 121 |
|
| 122 |
/* ── Template expiry (hidden by default, shown by JS) ───────────────────── */ |
| 123 |
.nx-countdown-expiry-template { |
| 124 |
display: none; |
| 125 |
} |
| 126 |
|