Skip to content

Instantly share code, notes, and snippets.

@budu
Created October 8, 2020 15:47
Show Gist options
  • Save budu/07c8c46df4594816090143639b72b40f to your computer and use it in GitHub Desktop.
Save budu/07c8c46df4594816090143639b72b40f to your computer and use it in GitHub Desktop.
Quick fix for FB desktop layout
/* move middle part of top nav on the side */
div[role="banner"] > div:nth-child(3) {
right: auto;
top: 70px;
}
/* remove extra padding from main nav */
div[role="banner"] > div:nth-child(3) ul {
padding: 0;
}
/* move right part of top nav on the side */
div[role="banner"] > div:nth-child(4) {
right: auto;
top: 140px;
}
/* move left side nav further from top */
div.lpgh02oy:nth-child(2),
.be9z9djy.hybvsw6c {
top: 205px;
}
/* widen main content */
div.oh7imozk:nth-child(1) {
width: 900px;
}
/* remove stories */
div.tr9rh885:nth-child(1) > div:nth-child(2) {
display: none;
}
/* remove video chat rooms */
div.sjgh65i0:nth-child(4) {
display: none;
}
/* make main content start at top */
.be9z9djy {
top: 0;
}
/* make main content start at top */
div.lpgh02oy:nth-child(3) {
top: 0 !important;
}
/* make left sidebar start at top */
div.lpgh02oy:nth-child(6) {
top: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment