-
Notifications
You must be signed in to change notification settings - Fork 0
/
facebook-focus-mode.user.css
125 lines (102 loc) · 2.98 KB
/
facebook-focus-mode.user.css
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/* ==UserStyle==
@name Facebook Focus Mode
@version v1.1.0
@namespace github.com/macx
@description Focus-Mode for Facebook on Desktop websites
@author macx
@license MIT
@homepageURL https://github.com/macx/Facebook-Focus-Mode
@supportURL https://github.com/macx/Facebook-Focus-Mode/issues
@updateURL https://raw.githubusercontent.com/macx/Facebook-Focus-Mode/main/facebook-focus-mode.user.css
==/UserStyle== */
@-moz-document domain("facebook.com") {
/* facebook.com*/
/*
┌──────────────────────────────────┐
NAV BAR
└──────────────────────────────────┘
*/
/* Set size of Navbar icons */
[aria-label='Facebook'] svg {
width: 24px;
}
[fill='url(#jsc_s_27)'] {
margin-left: 5px;
}
/* Remove background from icons */
.tdjehn4e {
background: none;
}
/*
┌──────────────────────────────────┐
CONTENT STAGE
└──────────────────────────────────┘
*/
/* Enlarge content width */
[data-pagelet='stories'],
.abvwweq7.abvwweq7 {
width: 680px;
}
/* Hide Rooms functions entierly */
[data-pagelet='VideoChatHomeUnit'] {
display: none;
}
/*
┌──────────────────────────────────┐
SIDEBARS
└──────────────────────────────────┘
*/
/* Hide Sidebars */
html:not(._9t1d) [role='banner'] ~ div [role='navigation'],
html:not(._9t1d) [role='banner'] ~ div [role='complementary'] {
flex: 0 1 280px;
background-color: rgba(0, 0, 0, 0.1);
opacity: 0.08;
transition: opacity 120ms ease-in-out;
filter: blur(10px);
}
html:not(._9t1d) [role='banner'] ~ div [role='navigation']:hover,
html:not(._9t1d) [role='banner'] ~ div [role='complementary']:hover {
opacity: 1;
background-color: var(--nav-bar-background);
box-shadow: 0 12px 12px var(--shadow-2), inset 0 0 0 0 var(--shadow-inset);
filter: none;
}
/* Make icons and spacing smaller */
.nddp3pr2.nddp3pr2 {
transform: scale(0.77777777);
}
.hx8drtub.hx8drtub {
margin-top: 4px;
}
.j13r6fgp.j13r6fgp {
margin-bottom: 4px;
}
.icc0peqn.icc0peqn {
margin-left: -4px;
}
.m6uieof3.m6uieof3 {
margin-right: 6px;
}
/* Remove top ad */
[data-pagelet='RightRail'] .sponsored_ad,
[data-pagelet='RightRail'] .l9j0dhe7 > div > span {
display: none;
}
/* Set icon size */
.nddp3pr2.nddp3pr2 {
transform: scale(0.77777777);
}
/* Hide Scrollbars */
.oj68ptkr {
display: none;
}
/* Hide Search until hover */
.poy2od1o .b3i9ofy5 {
opacity: 0;
transition: opacity 200ms ease-in-out;
}
.poy2od1o:hover .b3i9ofy5 {
opacity: 1;
}
}