Skip to content

EspoCRM – Open Source CRM Application

Text link color

Yuriic348f94c3544
diff --git a/frontend/less/dark/variables.less b/frontend/less/dark/variables.less
index daae19cb18..edbb149a58 100644
--- a/frontend/less/dark/variables.less
+++ b/frontend/less/dark/variables.less
@@ -39,6 +39,8 @@
@link-color-value: #92b9db;
+@text-link-color-value: @link-color-value;
+
@table-bg-value: @panel-bg-value;
@table-bg-accent-value: #1a1a1a;
diff --git a/frontend/less/espo/custom.less b/frontend/less/espo/custom.less
index 2ed01d9e48..6a397e499a 100644
--- a/frontend/less/espo/custom.less
+++ b/frontend/less/espo/custom.less
@@ -2728,6 +2728,15 @@ table.table td.cell .html-container {
}
}
+ a {
+ color: var(--text-link-color);
+
+ &:hover,
+ &:focus {
+ color: var(--text-link-hover-color);
+ }
+ }
+
h1 {
font-size: calc(var(--font-size-base) * 1.4);
font-weight: 500;
diff --git a/frontend/less/espo/iframe/iframe.less b/frontend/less/espo/iframe/iframe.less
index 945b078047..34d3ef6f74 100644
--- a/frontend/less/espo/iframe/iframe.less
+++ b/frontend/less/espo/iframe/iframe.less
@@ -24,7 +24,13 @@ body {
}
a {
- color: @link-color;
+ color: var(--text-link-color);
+
+ &:hover,
+ &:focus {
+ color: var(--text-link-hover-color);
+ }
+
text-decoration: none;
&:hover {
diff --git a/frontend/less/espo/misc/wysiwyg.less b/frontend/less/espo/misc/wysiwyg.less
index 735c150f85..3e9228b015 100644
--- a/frontend/less/espo/misc/wysiwyg.less
+++ b/frontend/less/espo/misc/wysiwyg.less
@@ -86,6 +86,15 @@
border: var(--1px) solid;
}
}
+
+ a {
+ color: var(--text-link-color);
+
+ &:hover,
+ &:focus {
+ color: var(--text-link-hover-color);
+ }
+ }
}
&.note-frame {
diff --git a/frontend/less/espo/root-variables.less b/frontend/less/espo/root-variables.less
index d7cdb0ce24..89b45b2e99 100644
--- a/frontend/less/espo/root-variables.less
+++ b/frontend/less/espo/root-variables.less
@@ -418,6 +418,9 @@
--link-color: @link-color-value;
--link-hover-color: @link-hover-color-value;
+ --text-link-color: @text-link-color-value;
+ --text-link-hover-color: @text-link-hover-color-value;
+
--table-bg: @table-bg-value;
--table-bg-accent: @table-bg-accent-value;
diff --git a/frontend/less/espo/value-variables.less b/frontend/less/espo/value-variables.less
index e1384fb475..e69e56bae0 100644
--- a/frontend/less/espo/value-variables.less
+++ b/frontend/less/espo/value-variables.less
@@ -100,6 +100,9 @@
@link-color-value: #376085;
@link-hover-color-value: darken(@link-color-value, 15%);
+@text-link-color-value: #2679c3;
+@text-link-hover-color-value: darken(@text-link-color-value, 15%);
+
// Should be in with unit to work in CSS math functions.
@panel-border-width-value: var(--1px);
@panel-heading-height-value: var(--30px);
diff --git a/frontend/less/glass/variables.less b/frontend/less/glass/variables.less
index de3c576dc8..6cc9cbc1b9 100644
--- a/frontend/less/glass/variables.less
+++ b/frontend/less/glass/variables.less
@@ -42,6 +42,8 @@
@link-color-value: #99bce9;
+@text-link-color-value: @link-color-value;
+
@table-bg-value: @panel-bg-value;
@table-bg-accent-value: #1e25303d;
diff --git a/frontend/less/light/variables.less b/frontend/less/light/variables.less
index a8a2ce2631..21b8b3f4a6 100644
--- a/frontend/less/light/variables.less
+++ b/frontend/less/light/variables.less
@@ -9,6 +9,8 @@
@link-color-value: #3f72b5;
+@text-link-color-value: #2D74D2;
+
@main-gray-value: #E4E7F2;
@gray-soft-value: #8a8a8a;