mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-17 10:15:50 +00:00
Use hierarchy for landings
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -88,6 +88,10 @@ a.card,
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.content .children-display > ul > li {
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Tables ------------------------------- */
|
||||
|
||||
@@ -18,6 +18,12 @@
|
||||
|
||||
|
||||
/* Common list modules (children, curated links) -------------------------- */
|
||||
|
||||
.level-1,
|
||||
.level-2{
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.curated-links ul,
|
||||
.curated-links ol,
|
||||
.children-display ul {
|
||||
@@ -30,22 +36,6 @@
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.level-1,
|
||||
.curated-links ul li {
|
||||
list-style-type: disc;
|
||||
}
|
||||
.level-1,
|
||||
.curated-links li {
|
||||
margin-top: 12px;
|
||||
margin-left: 16px;
|
||||
}
|
||||
|
||||
.level-1,
|
||||
.level-2,
|
||||
.curated-links li {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.card .level-1 a,
|
||||
.card .curated-links li a {
|
||||
padding: 8px;
|
||||
@@ -72,26 +62,33 @@
|
||||
line-height: 1.71em;
|
||||
}
|
||||
|
||||
.doc-index { // "All Pages" listings
|
||||
.level-1 {
|
||||
list-style-type: disc;
|
||||
margin-left: 1rem;
|
||||
}
|
||||
.level-2 {
|
||||
list-style-type: circle;
|
||||
margin-left: 30px;
|
||||
margin-left: 2rem;
|
||||
}
|
||||
.level-3 {
|
||||
list-style-type: square;
|
||||
margin-left: 45px;
|
||||
margin-left: 3rem;
|
||||
}
|
||||
.level-4 {
|
||||
margin-left: 60px;
|
||||
list-style-type: disc;
|
||||
margin-left: 4rem;
|
||||
}
|
||||
.level-5 {
|
||||
margin-left: 75px;
|
||||
margin-left: 5rem;
|
||||
list-style-type: circle;
|
||||
}
|
||||
.level-6 {
|
||||
/* Probably not used */
|
||||
margin-left: 90px;
|
||||
margin-left: 6rem;
|
||||
list-style-type: square;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Misc. ------------------------------------------------------------------ */
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
{% set show_blurbs = True %}
|
||||
{% set depth= 1 %}
|
||||
{% include 'template-page-children.html' %}
|
||||
{% include 'children.html' %}
|
||||
</article>
|
||||
</section>
|
||||
|
||||
@@ -19,10 +19,10 @@
|
||||
<section class="pt-3 p-md-3">
|
||||
<article class="content">
|
||||
<h1 id="main-page-header">{{ currentpage.name }}</h1>
|
||||
<p class="blurb">{{ currentpage.blurb }}</p>
|
||||
{% if currentpage.blurb != target.blurb %}<p class="blurb">{{ currentpage.blurb }}</p>{% endif %}
|
||||
{% set show_blurbs = True %}
|
||||
{% set depth= 1 %}
|
||||
{% include 'template-page-children.html' %}
|
||||
{% include 'children.html' %}
|
||||
</article>
|
||||
</section>
|
||||
{% endif %}
|
||||
|
||||
@@ -11,24 +11,7 @@
|
||||
|
||||
{% set flag_n = cycler(* range(1,99)) %}
|
||||
<section class="container-fluid card-grid card-grid-4xN">
|
||||
{% for page in pages|selectattr("doc_type", 'defined_and_equalto', "References")|selectattr("supercategory", "defined") %}
|
||||
{% if page == pages|selectattr("supercategory", 'defined_and_equalto', page.supercategory)|first %}
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><a href="{{page.html}}">{{page.name}}</a></h3>
|
||||
</div><!--/.card-header-->
|
||||
<div class="card-body">
|
||||
<p class="blurb">{{page.blurb}}</p>
|
||||
{% set depth = 1 %}
|
||||
{% set parent_page = page %}
|
||||
{% include 'template-page-children.html' %}
|
||||
</div><!--/.card-body-->
|
||||
</div><!--/.card-->
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% for page in pages|selectattr("doc_type", 'defined_and_equalto', "References")|selectattr("supercategory", "undefined") %}
|
||||
{% if loop.index != 1 and page == pages|selectattr("category", 'defined_and_equalto', page.category)|first %}
|
||||
{% for page in currentpage.children %}
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><a href="{{page.html}}">{{page.name}}</a></h3>
|
||||
@@ -46,14 +29,10 @@
|
||||
{% endif %}
|
||||
|
||||
{% set depth = 1 %}
|
||||
{% set parent_page = page %}
|
||||
{% include 'template-page-children.html' %}
|
||||
{% set parent_html = page.html %}
|
||||
{% include 'children.html' %}
|
||||
</div><!--/.card-body-->
|
||||
</div><!--/.card-->
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% for filler_n in range((flag_n.current+1) % 4) %}
|
||||
<div class="card"> </div>
|
||||
{% endfor %}
|
||||
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user