Browse Source

some style changes

practices
Simon Bowie 1 year ago
parent
commit
40fd3747c5
6 changed files with 8 additions and 4 deletions
  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 View File

def show_practice(practice_id): def show_practice(practice_id):
practice = get_full_resource(practice_id) practice = get_full_resource(practice_id)
# render Markdown as HTML # render Markdown as HTML
practice.description = markdown.markdown(practice.description)
practice.longDescription = markdown.markdown(practice.longDescription) practice.longDescription = markdown.markdown(practice.longDescription)
practice.experimental = markdown.markdown(practice.experimental) practice.experimental = markdown.markdown(practice.experimental)
practice.considerations = markdown.markdown(practice.considerations) practice.considerations = markdown.markdown(practice.considerations)

+ 2
- 0
web/app/relationships.py View File

else: else:
resource.__dict__['tools'].append(relationship) resource.__dict__['tools'].append(relationship)
elif relationship.type == 'practice': elif relationship.type == 'practice':
# render Markdown as HTML
relationship.description = markdown.markdown(relationship.description)
if 'practices' not in resource.__dict__.keys(): if 'practices' not in resource.__dict__.keys():
resource.__dict__['practices'] = [] resource.__dict__['practices'] = []
resource.__dict__['practices'].append(relationship) resource.__dict__['practices'].append(relationship)

+ 2
- 1
web/app/static/styles/main.css View File

@media (min-width: 1024px) { @media (min-width: 1024px) {


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

+ 1
- 1
web/app/templates/base.html View File

{% endif %} {% endif %}
</div> --> </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> <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" <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') }}" aria-labelledby="search-label" placeholder="Search" hx-get="{{ url_for('search.basic_search') }}"

+ 1
- 1
web/app/templates/book.html View File

{% endif %} {% endif %}
{% if resource['author'] %} {% if resource['author'] %}
<div class=""> <div class="">
<h3>Author</h3>
<h3>Author(s)</h3>
<div class="">{{ resource['author'] }}</div> <div class="">{{ resource['author'] }}</div>
</div> </div>
{% endif %} {% endif %}

+ 1
- 1
web/app/templates/resource.html View File

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

Loading…
Cancel
Save