Skip to content

Instantly share code, notes, and snippets.

@Speedy37
Last active June 2, 2021 08:54
Show Gist options
  • Star 18 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Speedy37/63d37931601123178ac2221533292cdd to your computer and use it in GitHub Desktop.
Save Speedy37/63d37931601123178ac2221533292cdd to your computer and use it in GitHub Desktop.
[Proton] button to tabs, sound icon, menu padding
/** Add small space at the top */
.tab-stack {
margin-top: 4px;
}
/** Make tabs looks like tabs not buttons */
/* attach tabs to the toolbar */
.tab-background {
margin: 0px !important;
border-bottom-left-radius: 0 !important;
border-bottom-right-radius: 0 !important;
}
/* tab background with 2px line at the top */
.tab-background[selected="true"] {
background: linear-gradient(
to bottom,
rgb(64, 70, 168) 2px,
var(--toolbar-bgcolor) 2px,
var(--toolbar-bgcolor) 100%
) !important;
}
/** Move tab context line from top to bottom (multi container color line) */
.tab-context-line {
margin-top: 26px !important;
margin-left: 6px !important;
margin-right: 6px !important;
}
/** Fix tab icon (sound icon was replacing site icon) */
/* Always show tab icon */
.tab-icon-image {
opacity: 1 !important;
}
/* Move tab sound icon to the top left */
.tab-icon-overlay {
/* top - left */
top: -6px !important;
inset-inline-end: 6px !important;
width: 14px !important;
height: 14px !important;
padding: 1px !important;
/* background */
stroke: var(--tab-icon-overlay-stroke, black) !important;
background: var(--tab-icon-overlay-stroke, black) !important;
fill-opacity: 0.5 !important;
/* icon color */
color: var(--tab-icon-overlay-fill, white) !important;
/* circle */
border-radius: 10px !important;
}
.tab-icon-overlay:hover {
/* background */
fill-opacity: 1 !important;
}
/** Remove tab close button */
/* No Tab ⨉ */
.tab-close-button {
display: none;
}
/* Fix mask size */
.tabbrowser-tab {
--tab-label-mask-size: 1em !important;
}
/** Fix menu monster padding */
/* context menu padding */
menupopup > menuitem,
menupopup > menu {
padding-block: 0.15em !important;
}
/* menu item padding */
toolbarbutton {
--arrowpanel-menuitem-border-radius: 0px;
--arrowpanel-menuitem-padding: 2px 10px;
--arrowpanel-menuitem-margin: 0px;
}
/** Menu top items border and padding */
/* context menu top left button padding */
menugroup > menuitem:first-child {
padding-left: 10px;
}
/* context menu top right button padding */
menugroup > menuitem:last-child {
padding-right: 10px;
}
/* context menu top buttons padding */
menugroup > menuitem {
padding-top: 4px;
padding-bottom: 4px;
}
menugroup > menuitem > hbox > image {
border-radius: 6px !important;
}
.panel-header > .subviewbutton {
border-radius: 6px !important;
}
@Speedy37
Copy link
Author

Speedy37 commented Apr 24, 2021

Made for compact density!

Latest revision preview:
image
image

First revision

image
image

@ben2talk
Copy link

Nice. I have curves, and removed the highlight - but needs tidying, look at this
https://www.dropbox.com/s/n8039neih5i1ucd/chrome%20-%20untidy.zip?dl=0
Your code plus some extra for a bit of curve...

@Matthaiks
Copy link

Cool stuff. "Downloads" menu is still huge, though:
63623673277263

@rodrigopedra
Copy link

rodrigopedra commented Apr 25, 2021

Thank you very much!

Much saner to have the active tab connected into the UI.

I made some changes to bring tabs separators back.

https://gist.github.com/rodrigopedra/f2959ee4b7aa5c8141e318be60079eb3

image

I created a Reddit account just to comment in your posting there, but my comment keeps on submitting state. I tried again without embedding the screenshot and it worked.

Thanks again!

@Speedy37
Copy link
Author

New revision:

  • Fix tab icon (sound icon was replacing site icon)
  • Comments

@Speedy37
Copy link
Author

New revision: menu and context menu item padding is now properly done.

@Speedy37
Copy link
Author

image
image

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