more css yknow

This commit is contained in:
trinkey 2024-12-23 22:39:08 -05:00
parent 468e062a23
commit e2f78b77fa
3 changed files with 31 additions and 4 deletions

View file

@ -2,8 +2,15 @@ from typing import Literal
DEBUG = True
# Config for tAuth
ALLOW_NEW_USERS = True
# The following timestamps are in hours:
# How long to keep a session logged in without any activity
MAX_SESSION_TIMEOUT = 24 * 7 if DEBUG else 24 * 60
# How long to keep a session valid since it was initially logged in (-1 to disable)
MAX_SESSION_LENGTH = -1
# DON'T PUT A TRAILING SLASH ON URLS!
# Use a local url for faster communication for INTERNAL urls.
# ---------------------------------------

View file

@ -29,14 +29,23 @@ body {
color: rgb(var(--base));
}
code, pre {
code, pre:not(.not-code) {
font-family: "Ubuntu Mono";
background-color: rgb(var(--mantle));
padding: 2px 5px;
border-radius: 3px;
}
small, i {
pre.not-code {
font-family: "DejaVu Sans";
white-space: pre-wrap;
}
i {
color: rgb(var(--subtext0));
}
small {
color: rgb(var(--subtext0));
font-size: 12px;
}
@ -45,6 +54,12 @@ small a {
opacity: 80%;
}
blockquote {
margin: 0;
padding-left: 15px;
border-left: 3px solid rgb(var(--accent));
}
h1 {
color: rgb(var(--accent));
}
@ -71,7 +86,7 @@ textarea {
transition: outline-color 0.25s, background-color 0.25s;
}
textarea {
textarea.auto-size {
resize: vertical;
max-width: 400px;
width: 90vw;
@ -179,6 +194,8 @@ button:active {
.cursor-pointer { cursor: pointer; }
.not-bold { font-weight: 400 !important; }
.success-anim {
animation: kf-success-anim 0.5s forwards ease-in;
outline: 1px solid;

View file

@ -4,7 +4,8 @@ from django.core.handlers.wsgi import WSGIRequest
from django.http import HttpResponse
from config import (ALLOW_NEW_USERS, DEBUG, ENABLED_APPLICATIONS,
tCOMMON_TOKEN, tCOMMON_URL_INTERNAL, tCOMMON_URL_PUBLIC)
MAX_SESSION_LENGTH, MAX_SESSION_TIMEOUT, tCOMMON_TOKEN,
tCOMMON_URL_INTERNAL, tCOMMON_URL_PUBLIC)
from tcommon.settings import VERSION
@ -23,6 +24,8 @@ def initialize(request: WSGIRequest) -> HttpResponse:
"version": list(VERSION),
"version_str": ".".join([str(i) for i in VERSION]),
"new_users": ALLOW_NEW_USERS,
"session_timeout": MAX_SESSION_TIMEOUT,
"session_length": MAX_SESSION_LENGTH,
"success": True,
"services": {
"common": {