Add newspaper theme

This commit is contained in:
Jason McBrayer 2024-02-22 08:58:38 -05:00
parent 9bcf350c8c
commit ca5f2da34a
2 changed files with 84 additions and 1 deletions

View File

@ -71,10 +71,11 @@ def set_up_default_themes(apps, schema_editor):
name="vt240 green", main_css="css/vt240don-green.css", is_brutalist=True
)
vt240_green.save()
newspaper = Theme(name="Newspaper", main_css="css/newspaper.css", is_brutalist=True)
newspaper.save()
minimal = Theme(name="No styling at all", main_css=None, is_brutalist=True)
minimal.save()
def delete_themes(apps, schema_editor):
Theme = apps.get_model("brutaldon" "Theme")
for theme in Theme.objects.all():

View File

@ -0,0 +1,82 @@
body {
padding: 3rem 1rem;
line-height: 1.75;
font-size: 1.25em;
font-family: Spectral, serif;
background-color: #FCFCFC;
color: #000
}
main {
max-width: 70ch;
margin: auto;
}
#main-nav-bar *,
nav.level * {
display: inline;
padding-right: .25rem;
text-decoration: none;
}
#main-nav-bar {
border-bottom: 1px solid black;
padding-bottom: .25rem;
width: 100%;
position: fixed;
top: 0;
background: #FCFCFC;
color: black;
opacity: 100%
}
.navbar-item img.avatar {
margin-top: 16px;
}
p {
text-align: justify;
hyphens: auto;
}
article {
border: 1px solid #CCC;
padding: 2rem;
/* max-height: 80vh;
overflow: scroll; */
}
.card {
border: 1px dotted #888;
padding: 1.5rem;
font-size: 0.75rem;
max-height: 10rem;
overflow: clip;
}
.user-card {
font-size: 1rem;
max-height: 100%;
overflow: auto;
}
.reblog-icon {
position: static;
margin-left: 48px;
margin-top: -24px;
}
.image.is-max-256 {
max-width: 100%;
margin: auto;
}
#id_spoiler_text {
width: 80%;
}
#id_status {
width: 80%;
height: 8rem;
}