summaryrefslogtreecommitdiff
path: root/source/features/clean-dashboard.css
blob: 7dcda0081ed6c5496baeaca173342bbea2f44ff0 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/**
* Reduce dashboard activity cards
*
* Notes:
* `.flex-items-baseline` excludes label events
* `.border-gray` excludes grouped events
* `.js-news-feed-event-group` is only for grouped events
*/

/* Hide duplicate repo name in some non-grouped events */
.dashboard .watch_started .border-gray.flex-items-baseline .text-bold.text-gray-dark,
.dashboard .repo .border-gray.flex-items-baseline .text-bold.text-gray-dark,
.dashboard .public .border-gray.flex-items-baseline .text-bold.text-gray-dark {
	display: none;
}

/* Add background and border Whole list */
.dashboard .js-all-activity-header + div {
	background-color: #fff;
	border: 1px solid var(--github-border-color);
	border-radius: 6px;
	margin-top: 8px !important;
}

/* Drop "box" style for all events */
.dashboard .js-all-activity-header + div .Box {
	padding: 0 !important;
	border: none;
	background: none;
}

/* Restore "row"-like spacing for all events */
.dashboard .body > .border-bottom {
	margin: 0;
	padding-left: 16px;
	padding-right: 16px;
}

/* Align avatar with first 2 lines */
.dashboard .flex-items-baseline.py-3 {
	align-items: flex-start !important;
}

.dashboard .body .mr-3 + div {
	margin-top: -5px;
	margin-bottom: -5px;
}

/* Reduce spacing after repo description */
.dashboard .repo-description p:last-child {
	margin-bottom: 0;
}

/* Hide footer date on Created Repository events */
.dashboard .repo .f6.text-gray {
	display: none;
}

/* Grouped events: Make repo name smaller */
.dashboard .Details .flex-items-baseline .text-bold.text-gray-dark {
	font-size: 1em !important;
}

/* Grouped events: Show separator */
.dashboard-rollup-items .body {
	border-top: 1px solid var(--github-border-color);
	margin-top: 8px;
}

/* Grouped events: Bring horizontal lines to right border */
.js-news-feed-event-group {
	padding-right: 0 !important;
}

/* Grouped events: Keep open */
.Details.js-news-feed-event-group .js-details-target {
	/* Hide toggle */
	display: none;
}

.Details:not(.Details--on) .Details-content--hidden.dashboard-rollup-items {
	/* Always show content. */
	/* Selector must be stronger to override the native one. Yes, even with !important, for some reason. Firefox */
	display: block !important;
}

/* Hide star button */
.dashboard .flex-items-baseline [value='Star'],
.dashboard .flex-items-baseline [value='Unstar'] {
	display: none;
}

/* Fade out last line */
.dashboard .flex-items-baseline .f6.mt-2 {
	opacity: 50%;
}

/* Remove the "New repository" button in the dashboard sidebar */
.dashboard-sidebar a[href='/new'] {
	display: none;
}

.dashboard-sidebar .Box-title {
	padding-top: 4px !important;
	padding-bottom: 4px !important;
}

/* Hide "Security" ad */
[data-ga-load='Dashboard, view, Advanced Security'] {
	display: none;
}