mode styles into a class

This commit is contained in:
b1ek 2023-03-05 19:00:39 +10:00
parent 04f961e25d
commit 45d276c5af
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 20 additions and 3 deletions

View File

@ -31,15 +31,32 @@ html(style='overflow-y:auto' lang='en_US')
//- UX //- UX
meta(name='viewport' content='width=device-width, initial-scale=1') meta(name='viewport' content='width=device-width, initial-scale=1')
if (process.env.APP_DEBUG == 'true')
style.
.debug_warning {
margin:0;padding:0;
color:darkred;
font-weight:bold;
font-size:16pt;
position:fixed;
top:50%;
left:50%;
transform:translate(-50%,-50%);
text-align:center;
pointer-events:none;
opacity:0.4;
text-shadow:0 2px 1px #a07060a0
}
block head block head
body(style='overflow-y:auto') body(style='overflow-y:auto')
if (process.env.APP_DEBUG == 'true') if (process.env.APP_DEBUG == 'true')
p(style='color:darkred;font-weight:bold;font-size:16pt;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;pointer-events:none;opacity:0.25') p(class='debug_warning')
| Warning: THE WEBSITE IS IN DEBUG MODE! | Warning: THE WEBSITE IS IN DEBUG MODE!
br br
| If the site is running in production, please | If the site is not currently running locally, please
br br
| contact the maintainer and notify them of the issue. | contact the maintainers and notify them of the issue.
table(width='100%' height='100%' class='body_table') table(width='100%' height='100%' class='body_table')
tr tr
td(class='side_menu') td(class='side_menu')