Replace some h2 with h1, set h:first-child, last-child margin=0.

This commit is contained in:
voussoir 2021-10-31 16:14:18 -07:00
parent 63af7b48e6
commit 2d4acfe511
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB
6 changed files with 26 additions and 22 deletions

View file

@ -27,7 +27,24 @@ iframe.embedded_search
border: none; border: none;
} }
p:last-of-type h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child,
p:first-child
{
margin-top: 0;
}
h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
h5:last-child,
h6:last-child,
p:last-child
{ {
margin-bottom: 0; margin-bottom: 0;
} }

View file

@ -3,10 +3,6 @@
{% macro shared_css() %} {% macro shared_css() %}
<style> <style>
h2, h3
{
margin-top: 0;
}
#hierarchy_self #hierarchy_self
{ {
display: grid; display: grid;
@ -105,7 +101,7 @@ h2, h3
<div id="content_body" class="sticky_side_right sticky_bottom_right"> <div id="content_body" class="sticky_side_right sticky_bottom_right">
<div id="left"> <div id="left">
<div id="album_list" class="panel"> <div id="album_list" class="panel">
<h2>Albums</h2> <h1>Albums</h1>
{% for album in albums %} {% for album in albums %}
{{cards.create_album_card(album, view=view, draggable=true)}} {{cards.create_album_card(album, view=view, draggable=true)}}
{% endfor %} {% endfor %}

View file

@ -35,7 +35,7 @@
{{header.make_header(session=session)}} {{header.make_header(session=session)}}
<div id="content_body"> <div id="content_body">
<div id="bookmark_list" class="panel"> <div id="bookmark_list" class="panel">
<h2>Bookmarks</h2> <h1>Bookmarks</h1>
{% for bookmark in bookmarks %} {% for bookmark in bookmarks %}
{{cards.create_bookmark_card(bookmark, add_delete_button=True, add_url_element=True)}} {{cards.create_bookmark_card(bookmark, add_delete_button=True, add_url_element=True)}}
{% endfor %} {% endfor %}

View file

@ -35,7 +35,7 @@ form
} }
form h2 form h2
{ {
margin: 0; margin-bottom: 0;
} }
#login_form { grid-area: login_form; } #login_form { grid-area: login_form; }
#register_form { grid-area: register_form; } #register_form { grid-area: register_form; }

View file

@ -21,17 +21,13 @@
<script src="/static/js/tag_autocomplete.js"></script> <script src="/static/js/tag_autocomplete.js"></script>
<style> <style>
h2, h3
{
margin-top: 0;
}
#left #left
{ {
display: grid; display: grid;
grid-row-gap: 8px; grid-row-gap: 8px;
grid-auto-rows: max-content; grid-auto-rows: max-content;
} }
#hierarchy_self h2 .editor_input #hierarchy_self h1 .editor_input
{ {
font-size: inherit; font-size: inherit;
font-weight: inherit; font-weight: inherit;
@ -95,11 +91,11 @@ h2, h3
<div id="left"> <div id="left">
{% if specific_tag %} {% if specific_tag %}
<div id="hierarchy_self" class="panel"> <div id="hierarchy_self" class="panel">
<h2>{{cards.create_tag_card( <h1>{{cards.create_tag_card(
specific_tag, specific_tag,
link="search", link="search",
id="name_text", id="name_text",
)}}</h2> )}}</h1>
<pre <pre
id="description_text" id="description_text"
@ -148,7 +144,7 @@ h2, h3
{% if specific_tag %} {% if specific_tag %}
<h3>{{tag_count - 1}} Descendants</h3> <h3>{{tag_count - 1}} Descendants</h3>
{% else %} {% else %}
<h2>{{tag_count}} Tags</h2> <h1>{{tag_count}} Tags</h1>
{% endif %} {% endif %}
<div id="filter_box_holder"> <div id="filter_box_holder">

View file

@ -16,11 +16,6 @@
<script src="/static/js/spinner.js"></script> <script src="/static/js/spinner.js"></script>
<style> <style>
h2, h3
{
margin-top: 0;
}
#content_body #content_body
{ {
grid-row-gap: 8px; grid-row-gap: 8px;
@ -33,7 +28,7 @@ h2, h3
{{header.make_header(session=session)}} {{header.make_header(session=session)}}
<div id="content_body"> <div id="content_body">
<div id="hierarchy_self" class="panel"> <div id="hierarchy_self" class="panel">
<h2 id="display_name">{{user.display_name}}</h2> <h1 id="display_name">{{user.display_name}}</h1>
<p>ID: <a href="/userid/{{user.id}}">{{user.id}}</a></p> <p>ID: <a href="/userid/{{user.id}}">{{user.id}}</a></p>
<p>User since <span title="{{user.created|int|timestamp_to_8601}}">{{user.created|timestamp_to_naturaldate}}.</span></p> <p>User since <span title="{{user.created|int|timestamp_to_8601}}">{{user.created|timestamp_to_naturaldate}}.</span></p>
</div> </div>