Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/non_floating_sharp_tabs.css made available under Mozilla Public License v. 2.0
- See the above repository for updates as well as full license text. */
- /* This style makes tabs and related items non-rounded and connects tabs to toolbars like in previous Firefox versions. */
- :root[id]{
- --proton-tab-block-margin: 0px !important;
- --tab-block-margin: 0px !important;
- --tabs-shadow-size: 1px !important;
- /* Remove next line if you want selected tab to have color other than toolbar background - then it follows your theme color */
- --lwt-selected-tab-background-color: var(--toolbar-bgcolor) !important;
- }
- /* Uncomment next line to force specific color for tab top line */
- /* #tabbrowser-tabs{ --tab-line-color: blue !important; } */
- /* These next two rules set a color for border around tabs and between tabs & navigation toolbars. Set to transparent to remove the border.*/
- #nav-bar{
- /* This overrides value in compact_proton.css */
- box-shadow: 0 -1px 0 0 color-mix(in srgb, currentcolor 30%, transparent) !important;
- }
- .tab-background[selected]{
- border-inline: 1px solid color-mix(in srgb, currentcolor 30%, transparent) !important;
- }
- #TabsToolbar{
- --toolbarbutton-inner-padding: 7px !important;
- }
- #navigator-toolbox:not([movingtab]) > #titlebar > #TabsToolbar{
- --toolbar-bgcolor: transparent;
- }
- #TabsToolbar .toolbarbutton-1 > .toolbarbutton-badge-stack,
- #TabsToolbar .toolbarbutton-1 > .toolbarbutton-icon{ border-radius: 2px !important; }
- #scrollbutton-up,
- #scrollbutton-down{ border-radius: 0 !important; border-width: 0 !important; padding-inline: 3px !important; }
- /* tab shaping */
- .tabbrowser-tab{ padding-inline: 0 !important; }
- :root[uidensity="compact"] #tabbrowser-tabs[positionpinnedtabs] .tabbrowser-tab[pinned]{ min-height: calc(var(--tab-min-height) + 2px) !important; }
- .tab-content[pinned]{ padding-inline: 11px !important; }
- .tab-background{
- border-radius: 0 !important;
- box-shadow: none !important;
- }
- /* Line to mark selected tab */
- .tab-background[selected]::before,
- .tabbrowser-tab:hover > stack > .tab-background::before{
- display: -moz-box;
- height: 2px;
- content: "";
- }
- .tab-stack:hover > .tab-background::before{
- background-color: inherit;
- }
- .tab-stack > .tab-background[selected]::before{
- background-color: highlight;
- background-image: linear-gradient(var(--tab-line-color),var(--tab-line-color));
- }
- /* Photon-like tab on hover animation for the top line */
- @keyframes tab-onhover-line-anim{ from{ margin-inline: 20px } to { margin-inline: 0 } }
- .tab-stack:hover > .tab-background::before{ animation: tab-onhover-line-anim 160ms }
- /* Disable animation for selected and pinned tabs */
- .tabbrowser-tab:is([pinned],[selected]) > .tab-stack > .tab-background::before{ animation: none }
- /* moves context-line to the bottom */
- .tab-context-line{ -moz-box-ordinal-group: 2; margin-inline: 10px !important; }
- /* gets rid of the space at the end of the tab bar */
- .titlebar-spacer[type="post-tabs"]{ display: none }
- /* ### ### PhotonUI Sharp Tabs, Non floating ### ### */
- @import "non_floating_sharp_tabs.css";
- /* DISABLE URL BORDER FATNESS */
- #nav-bar{ --toolbar-field-focus-border-color: transparent}
- /* This gets rid of the shadow, prevents the expansion of the URL bar*/
- #urlbar:focus-within > #urlbar-background {
- box-shadow: none !important;
- border-color: -moz-accent-color !important;
- border-width: 1px !important;
- }
- /*#urlbar[breakout][breakout-extend] {
- /* top: calc((var(--urlbar-toolbar-height) - var(--urlbar-height)) / 2) !important;
- /* left: 0 !important;
- /* width: 100% !important;
- /*}
- #urlbar[breakout][breakout-extend] > #urlbar-input-container {
- height: var(--urlbar-height) !important;
- padding-block: 0 !important;
- padding-inline: 0 !important;
- }
- /*** Tighten up vertical drop-down(bookmark)/context/popup menu spacing ***/
- menupopup:not(.in-menulist) > menuitem, menupopup:not(.in-menulist) > menu {
- padding-block: 1px !important;
- }
- :root {
- --arrowpanel-menuitem-padding: 1px 2px !important;
- }
- .menu-iconic.bookmark-item,
- .menuitem-iconic.bookmark-item{
- padding-block: 4px !important;
- }
- /* Source file https://teddit.net/r/FirefoxCSS/comments/oiycgx/restore_tab_separator_lines/h4yuli3/#c */
- /* Bring back tab separator lines that were removed in Proton */
- .tabbrowser-tab:not(:hover, [beforehovered], [selected], [last-visible-tab], [beforeselected-visible])::after {
- content: "";
- display: block;
- border-left: 1px solid currentColor;
- margin-block: 1px;
- margin-left: -1px;
- opacity: 0.3;
- }
- /* No round shapes */
- * {
- border-radius: 0 !important;
- }
- #alltabs-button { list-style-image: url("chrome://global/skin/icons/arrow-down-12.svg") !important; }
- /* hide favicon when audio is playing (like FF 135) */
- #tabbrowser-tabs:is([orient="vertical"][expanded], [orient="horizontal"]) .tabbrowser-tab:not([pinned]):not([crashed]):is([soundplaying], [muted], [activemedia-blocked]) {
- .tab-content .tab-icon-image {
- display: none;
- }
- .tab-audio-button {
- --button-size-icon-small: 18px !important;
- --button-min-height-small: 16px !important;
- margin: auto 4.5px auto -1px !important;
- transform: translateY(-0px);
- }
- }
- /* prevent audio playing tabs from modifying tab width */
- .tabbrowser-tab {
- &:is([muted], [soundplaying], [activemedia-blocked]) {
- #tabbrowser-tabs[orient="horizontal"] &:not([pinned]) {
- --tab-min-width: unset !important;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment