summaryrefslogtreecommitdiff
path: root/source/features/clean-pinned-issues.css
blob: 431d0dca2b2e33488c99febd0935ff7f536abd55 (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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/* Changes the layout of pinned issues from side-by-side to a standard list. */
[rgh-clean-pinned-issues] .js-pinned-issues-reorder-container .f4 {
	display: none !important; /* Hide title */
}

[rgh-clean-pinned-issues] .js-pinned-issues-reorder-list {
	gap: 16px;
}

[rgh-clean-pinned-issues] .pinned-issue-item {
	width: auto !important;
	flex: 1;
	margin-inline: 0 !important;
}

@media (min-width: 700px) {
	[rgh-clean-pinned-issues] .js-pinned-issues-reorder-list {
		display: table !important;
		width: 100%;
		margin: 0;
		margin-bottom: 20px;

		/* Rounded table border https://stackoverflow.com/a/2586780/288906 */
		box-shadow: 0 0 0 2px var(--rgh-border-color);
		border-collapse: collapse;
		border-radius: 6px;
		border-style: hidden;
	}

	[rgh-clean-pinned-issues] .pinned-issue-item {
		display: table-row !important;
		border-color: var(--rgh-border-color) !important;
	}

	[rgh-clean-pinned-issues] .pinned-issue-item > * {
		display: table-cell !important;
		padding: 6px 12px;
		vertical-align: middle;
		white-space: nowrap;
	}

	/* Move `x` before the title and align both icons */
	[rgh-clean-pinned-issues] .pinned-issue-item > :first-child {
		display: flex !important;
		white-space: normal; /* Restore wrapping on title */
	}

	[rgh-clean-pinned-issues] .pinned-issue-handle {
		order: -1;
		margin-top: -2px;
	}

	[rgh-clean-pinned-issues] .pinned-issue-item form button {
		float: unset !important;
		margin-left: -10px;
		margin-right: 2px !important;
	}
}