mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-25 17:23:00 +00:00
Improve appearence of the tag list page.
This commit is contained in:
parent
f39c8f84ca
commit
48f77b7b84
4 changed files with 9 additions and 5 deletions
|
@ -311,6 +311,8 @@ textarea ~ input[type=submit] { margin: 0.5rem 0.8rem; padding: 0.5rem; font-wei
|
||||||
.page-tags-display li::before { content: \"\\A\"; position: relative; top: 0.03rem; left: -0.9rem; width: 0; height: 0; border-top: 0.6rem solid transparent; border-bottom: 0.6rem solid transparent; border-right: 0.5rem solid #D2C3DD; }
|
.page-tags-display li::before { content: \"\\A\"; position: relative; top: 0.03rem; left: -0.9rem; width: 0; height: 0; border-top: 0.6rem solid transparent; border-bottom: 0.6rem solid transparent; border-right: 0.5rem solid #D2C3DD; }
|
||||||
|
|
||||||
.page-list td { padding: 0.5rem 0.2rem 0.5rem 0.2rem; }
|
.page-list td { padding: 0.5rem 0.2rem 0.5rem 0.2rem; }
|
||||||
|
.tag-list { list-style-type: none; margin: 0.5rem; padding: 0.5rem; }
|
||||||
|
.tag-list li { margin: 1rem }
|
||||||
.mini-tag { background: #d2c3dd; padding: 0.2rem 0.4rem; color: #fb701a; text-decoration: none; }
|
.mini-tag { background: #d2c3dd; padding: 0.2rem 0.4rem; color: #fb701a; text-decoration: none; }
|
||||||
|
|
||||||
footer { padding: 2rem; }
|
footer { padding: 2rem; }
|
||||||
|
@ -2847,10 +2849,10 @@ register_module([
|
||||||
}
|
}
|
||||||
|
|
||||||
$content = "<h1>All tags</h1>
|
$content = "<h1>All tags</h1>
|
||||||
<ul>\n";
|
<ul class='tag-list'>\n";
|
||||||
foreach($all_tags as $tag)
|
foreach($all_tags as $tag)
|
||||||
{
|
{
|
||||||
$content .= " <li><a href='?action=list-tags&tag=" . rawurlencode($tag) . "'>$tag</a></li>\n";
|
$content .= " <li><a href='?action=list-tags&tag=" . rawurlencode($tag) . "' class='mini-tag'>$tag</a></li>\n";
|
||||||
}
|
}
|
||||||
$content .= "</ul>";
|
$content .= "</ul>";
|
||||||
|
|
||||||
|
|
|
@ -113,7 +113,7 @@
|
||||||
"author": "Starbeamrainbowlabs",
|
"author": "Starbeamrainbowlabs",
|
||||||
"description": "Adds a page that lists all the pages in the index along with their metadata.",
|
"description": "Adds a page that lists all the pages in the index along with their metadata.",
|
||||||
"id": "page-list",
|
"id": "page-list",
|
||||||
"lastupdate": 1449951207,
|
"lastupdate": 1449952102,
|
||||||
"optional": false
|
"optional": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -36,10 +36,10 @@ register_module([
|
||||||
}
|
}
|
||||||
|
|
||||||
$content = "<h1>All tags</h1>
|
$content = "<h1>All tags</h1>
|
||||||
<ul>\n";
|
<ul class='tag-list'>\n";
|
||||||
foreach($all_tags as $tag)
|
foreach($all_tags as $tag)
|
||||||
{
|
{
|
||||||
$content .= " <li><a href='?action=list-tags&tag=" . rawurlencode($tag) . "'>$tag</a></li>\n";
|
$content .= " <li><a href='?action=list-tags&tag=" . rawurlencode($tag) . "' class='mini-tag'>$tag</a></li>\n";
|
||||||
}
|
}
|
||||||
$content .= "</ul>";
|
$content .= "</ul>";
|
||||||
|
|
||||||
|
|
|
@ -300,6 +300,8 @@ textarea ~ input[type=submit] { margin: 0.5rem 0.8rem; padding: 0.5rem; font-wei
|
||||||
.page-tags-display li::before { content: \"\\A\"; position: relative; top: 0.03rem; left: -0.9rem; width: 0; height: 0; border-top: 0.6rem solid transparent; border-bottom: 0.6rem solid transparent; border-right: 0.5rem solid #D2C3DD; }
|
.page-tags-display li::before { content: \"\\A\"; position: relative; top: 0.03rem; left: -0.9rem; width: 0; height: 0; border-top: 0.6rem solid transparent; border-bottom: 0.6rem solid transparent; border-right: 0.5rem solid #D2C3DD; }
|
||||||
|
|
||||||
.page-list td { padding: 0.5rem 0.2rem 0.5rem 0.2rem; }
|
.page-list td { padding: 0.5rem 0.2rem 0.5rem 0.2rem; }
|
||||||
|
.tag-list { list-style-type: none; margin: 0.5rem; padding: 0.5rem; }
|
||||||
|
.tag-list li { margin: 1rem }
|
||||||
.mini-tag { background: #d2c3dd; padding: 0.2rem 0.4rem; color: #fb701a; text-decoration: none; }
|
.mini-tag { background: #d2c3dd; padding: 0.2rem 0.4rem; color: #fb701a; text-decoration: none; }
|
||||||
|
|
||||||
footer { padding: 2rem; }
|
footer { padding: 2rem; }
|
||||||
|
|
Loading…
Reference in a new issue