Fossil SCM

In the Refined skins, draw horizontal rules in chat messages in the message's text color so they show on colored bubbles.

dmestas 2026-11-24 20:42 UTC trunk
Commit 4081bf2e3c81e6d81d596ecb59d1f5ede380b0816dc27c8d4dcfc7150d065f52
--- skins/refined-dark/css.txt
+++ skins/refined-dark/css.txt
@@ -1037,5 +1037,14 @@
10371037
/* Space the buttons so neighboring borders do not double up. */
10381038
body.chat #chat-buttons-wrapper { gap: 4px; }
10391039
/* Light-mode bubbles keep the sender's own color, on which the page link
10401040
blue measured 4.0:1. Links in messages use the darker on-tint blue. */
10411041
body.chat .message-widget-content a, body.chat .message-widget-content a:visited { color: var(--link-on-tint) !important; }
1042
+
1043
+/* Chat bubbles take the sender's color, on which the --border gray of an
1044
+ <hr> nearly vanished (1.05:1 on a green bubble). Draw it in the message's
1045
+ text color at half strength; browsers give <hr> its own gray color, so
1046
+ inherit first. */
1047
+body.chat .message-widget-content hr {
1048
+ color: inherit;
1049
+ border-top-color: color-mix(in srgb, currentColor 50%, transparent);
1050
+}
10421051
--- skins/refined-dark/css.txt
+++ skins/refined-dark/css.txt
@@ -1037,5 +1037,14 @@
1037 /* Space the buttons so neighboring borders do not double up. */
1038 body.chat #chat-buttons-wrapper { gap: 4px; }
1039 /* Light-mode bubbles keep the sender's own color, on which the page link
1040 blue measured 4.0:1. Links in messages use the darker on-tint blue. */
1041 body.chat .message-widget-content a, body.chat .message-widget-content a:visited { color: var(--link-on-tint) !important; }
 
 
 
 
 
 
 
 
 
1042
--- skins/refined-dark/css.txt
+++ skins/refined-dark/css.txt
@@ -1037,5 +1037,14 @@
1037 /* Space the buttons so neighboring borders do not double up. */
1038 body.chat #chat-buttons-wrapper { gap: 4px; }
1039 /* Light-mode bubbles keep the sender's own color, on which the page link
1040 blue measured 4.0:1. Links in messages use the darker on-tint blue. */
1041 body.chat .message-widget-content a, body.chat .message-widget-content a:visited { color: var(--link-on-tint) !important; }
1042
1043 /* Chat bubbles take the sender's color, on which the --border gray of an
1044 <hr> nearly vanished (1.05:1 on a green bubble). Draw it in the message's
1045 text color at half strength; browsers give <hr> its own gray color, so
1046 inherit first. */
1047 body.chat .message-widget-content hr {
1048 color: inherit;
1049 border-top-color: color-mix(in srgb, currentColor 50%, transparent);
1050 }
1051
--- skins/refined-light/css.txt
+++ skins/refined-light/css.txt
@@ -1024,5 +1024,14 @@
10241024
/* Space the buttons so neighboring borders do not double up. */
10251025
body.chat #chat-buttons-wrapper { gap: 4px; }
10261026
/* Light-mode bubbles keep the sender's own color, on which the page link
10271027
blue measured 4.0:1. Links in messages use the darker on-tint blue. */
10281028
body.chat .message-widget-content a, body.chat .message-widget-content a:visited { color: var(--link-on-tint) !important; }
1029
+
1030
+/* Chat bubbles take the sender's color, on which the --border gray of an
1031
+ <hr> nearly vanished (1.05:1 on a green bubble). Draw it in the message's
1032
+ text color at half strength; browsers give <hr> its own gray color, so
1033
+ inherit first. */
1034
+body.chat .message-widget-content hr {
1035
+ color: inherit;
1036
+ border-top-color: color-mix(in srgb, currentColor 50%, transparent);
1037
+}
10291038
--- skins/refined-light/css.txt
+++ skins/refined-light/css.txt
@@ -1024,5 +1024,14 @@
1024 /* Space the buttons so neighboring borders do not double up. */
1025 body.chat #chat-buttons-wrapper { gap: 4px; }
1026 /* Light-mode bubbles keep the sender's own color, on which the page link
1027 blue measured 4.0:1. Links in messages use the darker on-tint blue. */
1028 body.chat .message-widget-content a, body.chat .message-widget-content a:visited { color: var(--link-on-tint) !important; }
 
 
 
 
 
 
 
 
 
1029
--- skins/refined-light/css.txt
+++ skins/refined-light/css.txt
@@ -1024,5 +1024,14 @@
1024 /* Space the buttons so neighboring borders do not double up. */
1025 body.chat #chat-buttons-wrapper { gap: 4px; }
1026 /* Light-mode bubbles keep the sender's own color, on which the page link
1027 blue measured 4.0:1. Links in messages use the darker on-tint blue. */
1028 body.chat .message-widget-content a, body.chat .message-widget-content a:visited { color: var(--link-on-tint) !important; }
1029
1030 /* Chat bubbles take the sender's color, on which the --border gray of an
1031 <hr> nearly vanished (1.05:1 on a green bubble). Draw it in the message's
1032 text color at half strength; browsers give <hr> its own gray color, so
1033 inherit first. */
1034 body.chat .message-widget-content hr {
1035 color: inherit;
1036 border-top-color: color-mix(in srgb, currentColor 50%, transparent);
1037 }
1038

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button