Skip to content

Instantly share code, notes, and snippets.

View jonesy827's full-sized avatar

Michael jonesy827

View GitHub Profile
@jonesy827
jonesy827 / lemmy-compact.css
Created June 27, 2023 17:23
Lemmy compact user theme extension - for litely or darkly.
/* Full width of page */
.home.container-lg, .navbar.container-lg, main > .post, .community.container-lg {
max-width: 100% !important;
}
/* Hide text of post (helps compact lines) */
.col-sm-9 .text-body {
display: none !important;
}
#menuBar li:hover,
.authorized_li:hover {
cursor: pointer;
background-color: #5FB61150;
}
.functionList1 > li,
.list-unstyled > li,
.badge-lists > li,
#photolist > ol > li {
@jonesy827
jonesy827 / knockout-select2.js
Last active May 23, 2018 14:47
Knockout Select2 version 3.x binding
ko.bindingHandlers.select2 = {
init: function (el, valueAccessor, allBindingsAccessor, viewModel) {
ko.utils.domNodeDisposal.addDisposeCallback(el, function () {
$(el).select2('destroy');
});
var allBindings = allBindingsAccessor();
var valueProperty = allBindings.valueProperty || 'value';
var textProperty = allBindings.textProperty || 'text';