Skip to content

Instantly share code, notes, and snippets.

@MagicalBlob
Last active May 12, 2024 00:49
Show Gist options
  • Save MagicalBlob/d1f26d6dd6e9bffd124c84557cccb0cf to your computer and use it in GitHub Desktop.
Save MagicalBlob/d1f26d6dd6e9bffd124c84557cccb0cf to your computer and use it in GitHub Desktop.
My Firefox userChrome.css & userContent.css
/* Move Find Bar position. Based on: https://pastebin.com/sucmEx7N */
.browserContainer > findbar {
/* Position the Find Bar above the page */
order: -1 !important;
/* Move Find Bar border from top to bottom */
border-top: none !important;
border-bottom: 1px solid hsl(240, 5%, 5%) !important;
}
/* ACTIVITY STREAM */
@-moz-document url(about:home), url(about:newtab)
{
/* Round Top Sites tiles */
.activity-stream .top-site-outer .tile, .activity-stream .top-site-outer .top-site-icon, .activity-stream .top-site-outer .letter-fallback {
border-radius: 25% !important;
}
/* Fit Top Sites icons to wrapper */
.activity-stream .top-site-outer:not(.add-button) .tile .icon-wrapper {
width: 100% !important;
height: 100% !important;
}
/* Remove shadow from placeholder tile */
.activity-stream .top-site-outer.placeholder .tile {
box-shadow: none !important;
}
/* Remove background from placeholder tile */
.activity-stream .top-site-outer.placeholder.add-button .tile {
background-color: transparent !important;
}
/* Remove title from placeholder tile */
.activity-stream .top-site-outer.placeholder.add-button .title {
opacity: 0;
}
/* Lower the Top Sites context menu to the inside of the inner container */
.activity-stream .top-site-outer .context-menu-button {
top: 0px !important;
}
/* Hide pinned icon on Top Sites */
.activity-stream .icon.icon-pin-small {
display: none !important;
}
/* Change Top Sites title weight */
.activity-stream .title.pinned span {
font-weight: bold;
}
}
@robin-a-meade
Copy link

Nice. This fixed up my top sites. Probably should embed it within
@-moz-document url(about:newtab) { ... }
https://developer.mozilla.org/en-US/docs/Web/CSS/Mozilla_Extensions#at-rules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment