From 3b080f596d93e6eaa4ad667dacf5568c447550cb Mon Sep 17 00:00:00 2001 From: daria <95225431+dariiing@users.noreply.github.com> Date: Thu, 3 Jul 2025 17:00:54 +0300 Subject: [PATCH] update icons on features page --- customize.dist/features.html | 1 + customize.dist/pages/features.js | 2 +- .../src/less2/pages/page-features.less | 17 +++++------------ customize.dist/template.js | 3 +-- 4 files changed, 8 insertions(+), 15 deletions(-) diff --git a/customize.dist/features.html b/customize.dist/features.html index 5ee0c5333..ccd2823fe 100644 --- a/customize.dist/features.html +++ b/customize.dist/features.html @@ -15,6 +15,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later + diff --git a/customize.dist/pages/features.js b/customize.dist/pages/features.js index c402159d7..88985f6db 100644 --- a/customize.dist/pages/features.js +++ b/customize.dist/pages/features.js @@ -27,7 +27,7 @@ define([ var groupItemTemplate = function (title, content) { return h('li.list-group-item', [ - h('div.cp-check'), + h('i', {'data-lucide':'check', 'aria-hidden':'true'}), h('div.cp-content', [ h('div.cp-feature', title), h('div.cp-note', content), diff --git a/customize.dist/src/less2/pages/page-features.less b/customize.dist/src/less2/pages/page-features.less index 261f74cd7..20ef18c3e 100644 --- a/customize.dist/src/less2/pages/page-features.less +++ b/customize.dist/src/less2/pages/page-features.less @@ -76,22 +76,15 @@ .list-group { li { display: flex; + align-items: center; padding-left: 0; padding-right: 5px; + svg { + width: 30px; + color: @cryptpad_color_brand; + } } div { - &.cp-check { - width: 30px; - display: flex; - align-items: center; - justify-content: center; - &:before { - content: "\f00c"; - font-family: "FontAwesome"; - font-size: 14px; - color: @cryptpad_color_brand; - } - } &.cp-content { flex: 1; display: flex; diff --git a/customize.dist/template.js b/customize.dist/template.js index 84682526b..78fc88c5b 100644 --- a/customize.dist/template.js +++ b/customize.dist/template.js @@ -16,7 +16,6 @@ define([ $(function () { var $body = $('body'); - var pathname = location.pathname; // add class on info-pages @@ -58,7 +57,7 @@ $(function () { titleSuffix = window.location.hostname; } document.title = document.title + ' - ' + titleSuffix; - + setTimeout(() => lucide.createIcons(), 0); $('#placeholder').remove(); $body.append($main);