mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
colibris: do not color link with primary color when author color are on
Change link color to blue Still color the link the authorship have been cleared closes #3960
This commit is contained in:
parent
ff1191d24a
commit
a522db3ef4
3 changed files with 8 additions and 14 deletions
|
@ -34,6 +34,14 @@ html.inner-editor {
|
|||
padding-bottom: 10px; /* some space when we scroll to the bottom */
|
||||
}
|
||||
|
||||
#innerdocbody a {
|
||||
color: #2e96f3;
|
||||
}
|
||||
#innerdocbody.authorColors [class^='author-'] a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
|
||||
/* --------------------- */
|
||||
/* -- BROWSER SUPPORT -- */
|
||||
/* --------------------- */
|
||||
|
|
|
@ -249,7 +249,6 @@ function Ace2Inner(){
|
|||
|
||||
var authorStyle = dynamicCSS.selectorStyle(authorSelector);
|
||||
var parentAuthorStyle = parentDynamicCSS.selectorStyle(authorSelector);
|
||||
var anchorStyle = dynamicCSS.selectorStyle(authorSelector + ' > a')
|
||||
|
||||
// author color
|
||||
authorStyle.backgroundColor = bgcolor;
|
||||
|
@ -258,14 +257,6 @@ function Ace2Inner(){
|
|||
var textColor = colorutils.textColorFromBackgroundColor(bgcolor, parent.parent.clientVars.skinName);
|
||||
authorStyle.color = textColor;
|
||||
parentAuthorStyle.color = textColor;
|
||||
|
||||
// anchor text contrast
|
||||
if(colorutils.luminosity(colorutils.css2triple(bgcolor)) < 0.55)
|
||||
{
|
||||
anchorStyle.color = colorutils.triple2css(colorutils.complementary(colorutils.css2triple(bgcolor)));
|
||||
}else{
|
||||
anchorStyle.color = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,9 +17,4 @@
|
|||
|
||||
option {
|
||||
text-transform: capitalize;
|
||||
}
|
||||
|
||||
#innerdocbody a {
|
||||
color: #64d29b;
|
||||
color: var(--primary-color);
|
||||
}
|
Loading…
Reference in a new issue