Bladeren bron

some style changes

practices
Simon Bowie 1 jaar geleden
bovenliggende
commit
40fd3747c5
6 gewijzigde bestanden met toevoegingen van 8 en 4 verwijderingen
  1. +1
    -0
      web/app/practice.py
  2. +2
    -0
      web/app/relationships.py
  3. +2
    -1
      web/app/static/styles/main.css
  4. +1
    -1
      web/app/templates/base.html
  5. +1
    -1
      web/app/templates/book.html
  6. +1
    -1
      web/app/templates/resource.html

+ 1
- 0
web/app/practice.py Bestand weergeven

@@ -67,6 +67,7 @@ def get_practices():
def show_practice(practice_id):
practice = get_full_resource(practice_id)
# render Markdown as HTML
practice.description = markdown.markdown(practice.description)
practice.longDescription = markdown.markdown(practice.longDescription)
practice.experimental = markdown.markdown(practice.experimental)
practice.considerations = markdown.markdown(practice.considerations)

+ 2
- 0
web/app/relationships.py Bestand weergeven

@@ -46,6 +46,8 @@ def append_relationships(resource):
else:
resource.__dict__['tools'].append(relationship)
elif relationship.type == 'practice':
# render Markdown as HTML
relationship.description = markdown.markdown(relationship.description)
if 'practices' not in resource.__dict__.keys():
resource.__dict__['practices'] = []
resource.__dict__['practices'].append(relationship)

+ 2
- 1
web/app/static/styles/main.css Bestand weergeven

@@ -1190,7 +1190,8 @@ h1, h2, h3 {
@media (min-width: 1024px) {

.huge-title {
font-size: 4.2rem;
word-break: break-word;
font-size: 3.8rem;
line-height: 0.9;
}
}

+ 1
- 1
web/app/templates/base.html Bestand weergeven

@@ -120,7 +120,7 @@
{% endif %}
</div> -->

<form action="{{ url_for('search.basic_search') }}" class="hidden lg:block">
<form action="{{ url_for('search.basic_search') }}" class="{% if type=='top' %} hidden lg:block {% else %} block {% endif %}">
<label id="search-label" for="siteSearch" class="sr-only">Search</label>
<input type="text" name="query" class="text-center h-full text-base border-l-2 border-black pl-1"
aria-labelledby="search-label" placeholder="Search" hx-get="{{ url_for('search.basic_search') }}"

+ 1
- 1
web/app/templates/book.html Bestand weergeven

@@ -92,7 +92,7 @@
{% endif %}
{% if resource['author'] %}
<div class="">
<h3>Author</h3>
<h3>Author(s)</h3>
<div class="">{{ resource['author'] }}</div>
</div>
{% endif %}

+ 1
- 1
web/app/templates/resource.html Bestand weergeven

@@ -35,7 +35,7 @@
{% if resource['description'] %}
<div class="">
<h3>Description</h3>
{{ resource['description'] }}
{{ resource['description']|safe }}
</div>
{% endif %}
<!-- fields for tools -->

Laden…
Annuleren
Opslaan