Style changes
This commit is contained in:
parent
c53cc54d1a
commit
4097e79bbb
3 changed files with 17 additions and 13 deletions
2
app.py
2
app.py
|
|
@ -139,7 +139,7 @@ class Page(BaseModel):
|
||||||
def get_url(self):
|
def get_url(self):
|
||||||
return '/' + self.url + '/' if self.url else '/p/{}/'.format(self.id)
|
return '/' + self.url + '/' if self.url else '/p/{}/'.format(self.id)
|
||||||
def short_desc(self):
|
def short_desc(self):
|
||||||
text = remove_tags(self.latest.text)
|
text = remove_tags(self.latest.text, convert = not _getconf('site', 'simple_remove_tags', False))
|
||||||
return text[:200] + ('\u2026' if len(text) > 200 else '')
|
return text[:200] + ('\u2026' if len(text) > 200 else '')
|
||||||
def change_tags(self, new_tags):
|
def change_tags(self, new_tags):
|
||||||
old_tags = set(x.name for x in self.tags)
|
old_tags = set(x.name for x in self.tags)
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,7 @@ input[type="submit"],input[type="reset"],input[type="button"],button{font-family
|
||||||
.page-tags .tag-count{color:#3c3;font-size:smaller;font-weight:600}
|
.page-tags .tag-count{color:#3c3;font-size:smaller;font-weight:600}
|
||||||
.search-wrapper {display:flex;width:90%;margin:auto}
|
.search-wrapper {display:flex;width:90%;margin:auto}
|
||||||
.search-wrapper > input {flex:1}
|
.search-wrapper > input {flex:1}
|
||||||
|
.preview-subtitle {text-align: center; margin-top: -1em}
|
||||||
|
|
||||||
/* Circles extension */
|
/* Circles extension */
|
||||||
.circles-red{color: #e14}
|
.circles-red{color: #e14}
|
||||||
|
|
|
||||||
|
|
@ -16,22 +16,25 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% if preview %}
|
{% if preview %}
|
||||||
<h1>{{ pl_title }} (preview)</h1>
|
<article>
|
||||||
|
<h1 id="firstHeading">{{ pl_title }}</h1>
|
||||||
|
<div class="preview-subtitle">Preview</div>
|
||||||
|
|
||||||
<div class="preview-area">
|
<div class="preview-area">
|
||||||
<div class="preview-warning">
|
<div class="preview-warning">
|
||||||
Remember this is only a preview.
|
Remember this is only a preview.
|
||||||
<strong>Your changes were not saved yet!</strong>
|
<strong>Your changes were not saved yet!</strong>
|
||||||
<a href="#editing-area">Jump to editing area</a></div>
|
<a href="#editing-area">Jump to editing area</a></div>
|
||||||
<div class="inner-content">{{ preview|safe }}</div>
|
<div class="inner-content">{{ preview|safe }}</div>
|
||||||
<div style="clear:both"></div>
|
<div style="clear:both"></div>
|
||||||
</div>
|
</div>
|
||||||
|
</article>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<form method="POST">
|
<form method="POST">
|
||||||
<div>
|
<div>
|
||||||
<label for="title">URL: </label>
|
<label for="title"><span class="material-icons">link</span> /</label>
|
||||||
<input type="text" name="url" class="url-input" placeholder="No URL" maxlength="64" value="{{ pl_url or '' }}">
|
<input type="text" name="url" class="url-input" placeholder="(No URL)" maxlength="64" value="{{ pl_url or '' }}">
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<input type="text" required name="title" placeholder="Title (required)" class="title-input" maxlength="256" value="{{ pl_title }}">
|
<input type="text" required name="title" placeholder="Title (required)" class="title-input" maxlength="256" value="{{ pl_title }}">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue