Small tidy ups.
This commit is contained in:
parent
7d351a5e87
commit
93e03656ca
4 changed files with 9 additions and 11 deletions
|
@ -20,7 +20,6 @@ def catch_etiquette_exception(function):
|
||||||
status = 404
|
status = 404
|
||||||
else:
|
else:
|
||||||
status = 400
|
status = 400
|
||||||
response = exc.jsonify()
|
response = flasktools.json_response(exc.jsonify(), status=status)
|
||||||
response = flasktools.json_response(response, status=status)
|
|
||||||
flask.abort(response)
|
flask.abort(response)
|
||||||
return wrapped
|
return wrapped
|
||||||
|
|
|
@ -47,6 +47,7 @@ def etiquette_flask_launch(
|
||||||
)
|
)
|
||||||
|
|
||||||
if localhost_only:
|
if localhost_only:
|
||||||
|
log.info('Setting localhost_only=True')
|
||||||
site.localhost_only = True
|
site.localhost_only = True
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -4,7 +4,8 @@ not specific to one project.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
These properties are used by javascript functions.
|
These properties are used by javascript functions in common.js.
|
||||||
|
See common.is_narrow_mode, is_wide_mode.
|
||||||
getComputedStyle(document.documentElement).getPropertyValue("--narrow").trim() === "1"
|
getComputedStyle(document.documentElement).getPropertyValue("--narrow").trim() === "1"
|
||||||
*/
|
*/
|
||||||
@media screen and (min-width: 800px)
|
@media screen and (min-width: 800px)
|
||||||
|
@ -22,11 +23,6 @@ getComputedStyle(document.documentElement).getPropertyValue("--narrow").trim() =
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.hidden
|
|
||||||
{
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
html
|
html
|
||||||
{
|
{
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
@ -83,6 +79,11 @@ pre
|
||||||
white-space: pre-line;
|
white-space: pre-line;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hidden
|
||||||
|
{
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
.bold
|
.bold
|
||||||
{
|
{
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
|
@ -44,9 +44,6 @@ body > .nice_link
|
||||||
height: 40px;
|
height: 40px;
|
||||||
background-color: var(--color_transparency);
|
background-color: var(--color_transparency);
|
||||||
}
|
}
|
||||||
.nice_link
|
|
||||||
{
|
|
||||||
}
|
|
||||||
.nice_link:hover
|
.nice_link:hover
|
||||||
{
|
{
|
||||||
background-color: var(--color_secondary);
|
background-color: var(--color_secondary);
|
||||||
|
|
Loading…
Reference in a new issue