update icons on features page

This commit is contained in:
daria 2025-07-03 17:00:54 +03:00
parent c13b904b2f
commit 3b080f596d
No known key found for this signature in database
GPG Key ID: 3B75240E6B2F2701
4 changed files with 8 additions and 15 deletions

View File

@ -15,6 +15,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
<script src="/customize/pre-loading.js?ver=1.1"></script>
<link href="/customize/src/pre-loading.css?ver=1.0" rel="stylesheet" type="text/css">
<script async data-bootload="/customize/template.js" data-main="/common/boot.js?ver=1.0" src="/components/requirejs/require.js?ver=2.3.7"></script>
<script src="/customize/fonts/lucide.js"></script>
</head>
<body class="html">
<noscript></noscript>

View File

@ -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),

View File

@ -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;

View File

@ -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);