From 9ffcc4c0cdfc6ace0ea2a364ed78d8fea200c3c4 Mon Sep 17 00:00:00 2001 From: daria <95225431+dariiing@users.noreply.github.com> Date: Fri, 5 Sep 2025 16:53:48 +0300 Subject: [PATCH] remove fa occurences --- customize.dist/src/less2/include/corner.less | 7 ------ customize.dist/src/less2/include/export.less | 3 --- customize.dist/src/less2/include/icons.less | 2 +- .../src/less2/include/leftside-menu.less | 6 ----- .../src/less2/include/markdown.less | 19 ---------------- customize.dist/src/less2/include/support.less | 3 +-- customize.dist/src/less2/include/toolbar.less | 22 ------------------- www/common/common-ui-elements.js | 2 +- www/settings/app-settings.less | 3 --- 9 files changed, 3 insertions(+), 64 deletions(-) diff --git a/customize.dist/src/less2/include/corner.less b/customize.dist/src/less2/include/corner.less index 6970a8843..4d307b828 100644 --- a/customize.dist/src/less2/include/corner.less +++ b/customize.dist/src/less2/include/corner.less @@ -72,10 +72,6 @@ .cp-corner-dontshow { cursor: pointer; - .fa { - margin-right: 0.3em; - font-size: 1.1em; - } &:hover { color: @corner-fg-alt; @@ -125,9 +121,6 @@ text-transform: uppercase; border: 1px solid @corner-fg; border-radius: @variables_radius; - .fa, .cptools { - margin-right: 0.3em; - } &.cp-corner-primary { background-color: @corner-fg; color: @corner-bg; diff --git a/customize.dist/src/less2/include/export.less b/customize.dist/src/less2/include/export.less index d2dee00cf..41a66c2b1 100644 --- a/customize.dist/src/less2/include/export.less +++ b/customize.dist/src/less2/include/export.less @@ -50,9 +50,6 @@ display: flex; align-items: center; padding: 5px 0; - .fa { - width: 25px; - } } } .cp-export-actions { diff --git a/customize.dist/src/less2/include/icons.less b/customize.dist/src/less2/include/icons.less index 913e2a4f6..8ced268e5 100644 --- a/customize.dist/src/less2/include/icons.less +++ b/customize.dist/src/less2/include/icons.less @@ -51,7 +51,7 @@ } &.cp-app-disabled { cursor: not-allowed !important; - .fa, .cptools { cursor: not-allowed !important; } + svg { cursor: not-allowed !important; } opacity: 0.5; } } diff --git a/customize.dist/src/less2/include/leftside-menu.less b/customize.dist/src/less2/include/leftside-menu.less index fb90678f0..c3a11cdfd 100644 --- a/customize.dist/src/less2/include/leftside-menu.less +++ b/customize.dist/src/less2/include/leftside-menu.less @@ -16,12 +16,6 @@ height: @variables_bar-height; border-radius: @variables_radius; background-color: @cp_sidebar-left-item-bg; - .fa, .cptools { - display: inline-flex; - justify-content: center; - margin-right: 5px; - min-width: 20px; - } &:hover { background: @cryptpad_text_col_inv; } diff --git a/customize.dist/src/less2/include/markdown.less b/customize.dist/src/less2/include/markdown.less index 5d1386936..0f1a95bf4 100644 --- a/customize.dist/src/less2/include/markdown.less +++ b/customize.dist/src/less2/include/markdown.less @@ -99,9 +99,6 @@ max-width: 250px; min-height: 38px; justify-content: center; - .fa { - margin-right: 5px; - } b { margin-left: 5px; white-space: nowrap; @@ -210,16 +207,6 @@ a { color: @cryptpad_text_col; font-size: 0.8em; - &.cp-remote-img::before { // .fa.fa-question-circle - font-family: FontAwesome; - //content: "\f08e\00a0"; - content: "\f08e\00a0\00a0"; - } - &.cp-learn-more::before { // .fa.fa-external-link - font-family: FontAwesome; - content: "\f059\00a0"; - //content: "\f059\00a0\00a0"; - } } } } @@ -237,12 +224,6 @@ } .todo-list-item { list-style: none; - position: relative; - .fa { - position: absolute; - margin-left: -17px; - margin-top: 4px; - } } .mediatag_cryptpad(); diff --git a/customize.dist/src/less2/include/support.less b/customize.dist/src/less2/include/support.less index 090b0946d..065ec13e6 100644 --- a/customize.dist/src/less2/include/support.less +++ b/customize.dist/src/less2/include/support.less @@ -43,9 +43,8 @@ } .cp-support-attachments { display: flex; - .fa { + svg { cursor: pointer; - margin-right: 10px; } &> span { border: 1px solid @fromme-bg; diff --git a/customize.dist/src/less2/include/toolbar.less b/customize.dist/src/less2/include/toolbar.less index 0721d310c..bb4ffa725 100644 --- a/customize.dist/src/less2/include/toolbar.less +++ b/customize.dist/src/less2/include/toolbar.less @@ -364,10 +364,6 @@ width: 200px; display: flex; align-items: center; - .fa, .cptools { - font-size: 32px; - min-width: 50px; - } .cp-icons-name { height: auto; text-align: left; @@ -1218,9 +1214,6 @@ z-index: 10000; //Z cp-toolbar-drawer-content color: @cp_dropdown-fg; .tools_unselectable(); - .fa { - font-size: 17px; - } &> span { order: 8; box-sizing: border-box; @@ -1268,27 +1261,12 @@ min-width: 200px; box-sizing: border-box; margin-bottom: 5px; - &> span.fa { - height: 20px; - width: 20px; - //margin: 8px; - line-height: 20px; - font-size: 20px; - text-align: center; - } } .cp-toolbar-readonly { margin-right: 5px; font-weight: bold; text-transform: uppercase; } - .cp-toolbar-share { - a { - .fa { - margin-right: 5px; - } - } - } } diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 524c2eba1..d14f55bac 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -2951,7 +2951,7 @@ define([ name: Messages.creation_newTemplate, id: -1, //icon: h('span.fa.fa-bookmark') - icon: h('span.cptools.cptools-new-template') + icon: Icons.get('file-template') }); }*/ allData.unshift({ diff --git a/www/settings/app-settings.less b/www/settings/app-settings.less index 58237f921..511699705 100644 --- a/www/settings/app-settings.less +++ b/www/settings/app-settings.less @@ -153,9 +153,6 @@ } .cp-settings-drive-backup { button { - span.fa { - margin-right: 5px; - } margin-right: 5px; } }