Fossil SCM
In the Refined skins, draw horizontal rules in chat messages in the message's text color so they show on colored bubbles.
Commit
4081bf2e3c81e6d81d596ecb59d1f5ede380b0816dc27c8d4dcfc7150d065f52
Parent
75d41911e005650…
2 files changed
+9
+9
| --- skins/refined-dark/css.txt | ||
| +++ skins/refined-dark/css.txt | ||
| @@ -1037,5 +1037,14 @@ | ||
| 1037 | 1037 | /* Space the buttons so neighboring borders do not double up. */ |
| 1038 | 1038 | body.chat #chat-buttons-wrapper { gap: 4px; } |
| 1039 | 1039 | /* Light-mode bubbles keep the sender's own color, on which the page link |
| 1040 | 1040 | blue measured 4.0:1. Links in messages use the darker on-tint blue. */ |
| 1041 | 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 | +} | |
| 1042 | 1051 |
| --- 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 @@ | ||
| 1024 | 1024 | /* Space the buttons so neighboring borders do not double up. */ |
| 1025 | 1025 | body.chat #chat-buttons-wrapper { gap: 4px; } |
| 1026 | 1026 | /* Light-mode bubbles keep the sender's own color, on which the page link |
| 1027 | 1027 | blue measured 4.0:1. Links in messages use the darker on-tint blue. */ |
| 1028 | 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 | +} | |
| 1029 | 1038 |
| --- 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 |