Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List icon configurable #152

Merged
merged 9 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion assets/css/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@
/* === Footer === */
--footer-color-background: #22343a;
--footer-color: #bbc7cc;
}

/* === Lists === */
/* define list element for unnumbered lists, leave empty for default list element */
--ul-li-icon: fa-asterisk;
}
7 changes: 5 additions & 2 deletions assets/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,11 @@ var $sitehead = $("#site-head");
});
}

$('ul').addClass("fa-ul");
$("ul li").prepend('<span class="fa-li"><i class="fa fa-asterisk"></i></span>');
var ul-li-icon = getComputedStyle(document.documentElement).getPropertyValue('--ul-li-icon');
zjedi marked this conversation as resolved.
Show resolved Hide resolved
if (ul-li-icon.length > 0) {
$('ul').addClass("fa-ul");
$("ul li").prepend('<span class="fa-li"><i class="fa ' + ul-li-icon + '"></i></span>');
}
$("blockquote p").prepend('<span class="quo fa fa-quote-left"></span>');
$("blockquote p").append('<span class="quo fa fa-quote-right"></span>');
});
Expand Down
6 changes: 5 additions & 1 deletion exampleSite/layouts/partials/custom_head.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@
--section-light-bg-color: #ffdb8c!important;
--section-dark-bg-color: #035e00!important;
*/

/* define list element for unnumbered lists, leave empty for default list element */
/* fa-asterisk is the default icon if this variable definition is missing completely */
--ul-li-icon: fa-dashcube; /* this sets fa-dashcube as list icon */
--ul-li-icon: ; /* this sets the default html list icon */
}
</style>
-->


<!-- Custom CSS via "custom.css"-file
If you would rather place your custom CSS into
a separate file, create a "custom.css" in your
Expand Down