Skip to content

Commit 07cd407

Browse files
committed
fix: Make maintenance mode a little cleaner.
1 parent 87417d4 commit 07cd407

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

inc/lib/init.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ function show_maintenance_message()
181181
echo '<div class="error notice"><p><strong>' . __('Maintenance Mode', 'tofino') . '</strong> ' . get_field('maintenance_mode_text', 'option') . '</p></div>';
182182

183183
if (!isset($_COOKIE['tofino_maintenance_alert_dismissed'])) {
184-
echo '<div class="maintenance-mode-alert"><h1>' . __('Maintenance Mode', 'tofino') . '</h1><p>' . get_field('maintenance_mode_text', 'option') . '</p><button type="button">' . __('I understand', 'tofino') . '</button></div>';
184+
echo '<div class="maintenance-mode-alert"><div><h1>' . __('Maintenance Mode', 'tofino') . '</h1><p>' . get_field('maintenance_mode_text', 'option') . '</p><button type="button">' . __('I understand', 'tofino') . '</button></div></div>';
185185
}
186186
}
187187
}

src/css/base/admin.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
.maintenance-mode-alert {
2-
@apply fixed inset-0 z-[99999] bg-red-600 p-5 text-center text-white;
2+
@apply fixed inset-0 z-[99999] flex justify-center bg-red-600 p-5 text-center text-white;
3+
4+
div {
5+
@apply self-center;
6+
}
37

48
h1 {
59
@apply text-white;
610
}
711

812
p {
9-
@apply text-sm;
13+
@apply text-lg;
14+
}
15+
16+
button {
17+
@apply border-none bg-white px-4 py-2 font-medium uppercase;
1018
}
1119
}
1220

0 commit comments

Comments
 (0)