summaryrefslogtreecommitdiff
path: root/source/features/readable-title-change-events.css
blob: 4cca2154035fef3ae4ba06287c7bb6e865b177c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* Stack titles in title edition events to improve readability */

.TimelineItem-body:has(del.markdown-title) {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.3em;
}

.TimelineItem-body :is(del, ins).markdown-title {
	flex-basis: 100%;
	order: 99;
	word-break: break-word !important;
}

/* TODO: Drop this whole rule when :has() is crossbrowser */
.TimelineItem[id^='event-'] .TimelineItem-body :is(ins, del) {
	display: block !important;
}

/*
Test URLs
https://github.com/refined-github/refined-github/pull/4030#event-4385348325
*/