Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*** Megabar Styler General ***/
- /*** General Preferences ***/
- :root {
- /* Number of pixels of enlargement when URL bar is focused */
- --mbarstyler-popout-pixels: 0px; /* [0px - 7px] */
- /* Top Bar Display or Not */
- --mbarstyler-top-bar-display: none; /* [block,none] */
- /* Font sizes (default: 13.8px for title, 10.2px for URL) */
- --mbarstyler-title-font-size: 16px; /* [13px - 18px] */
- --mbarstyler-url-font-size: 14px; /* [12px - 16px] */
- /* Rows to show without scrolling */
- --mbarstyler-max-rows-without-scrolling: 10;
- /* Bottom border for each result row */
- --mbarstyler-bottom-border-width: 1px; /* [0px or 1px] */
- /* Match display style */
- --mbarstyler-match-weight: 700; /* [400,700] */
- --mbarstyler-match-background-opacity: 0.05; /* [0.0,0.05,0.1] */
- }
- /*** URL bar enlargement or lack thereof ***/
- /* Compute new position, width, and padding */
- #urlbar[breakout][breakout-extend] {
- top: calc(5px - var(--mbarstyler-popout-pixels)) !important;
- left: calc(0px - var(--mbarstyler-popout-pixels)) !important;
- width: calc(100% + (2 * var(--mbarstyler-popout-pixels))) !important;
- padding: var(--mbarstyler-popout-pixels) !important;
- }
- [uidensity="compact"] #urlbar[breakout][breakout-extend] {
- top: calc(3px - var(--mbarstyler-popout-pixels)) !important;
- }
- [uidensity="touch"] #urlbar[breakout][breakout-extend] {
- top: calc(4px - var(--mbarstyler-popout-pixels)) !important;
- }
- /* Prevent shift of URL bar contents */
- #urlbar[breakout][breakout-extend] > #urlbar-input-container {
- height: var(--urlbar-height) !important;
- padding: 0 !important;
- }
- /* Do not animate */
- #urlbar[breakout][breakout-extend] > #urlbar-background {
- animation: none !important;;
- }
- /* Remove shadows */
- #urlbar[breakout][breakout-extend] > #urlbar-background {
- box-shadow: none !important;
- }
- /*** Top "Blue Bar" Display ***/
- .urlbarView-row:first-of-type {
- display: var(--mbarstyler-top-bar-display) !important;
- }
- /*** Font Sizes and Scrolling ***/
- /* Title font-size */
- .urlbarView-row .urlbarView-title {
- font-size: var(--mbarstyler-title-font-size) !important;
- }
- /* URL / action font-size */
- .urlbarView-row .urlbarView-secondary,
- .urlbarView-row .urlbarView-url,
- .urlbarView-row .urlbarView-action {
- font-size: var(--mbarstyler-url-font-size) !important;
- }
- /* Set max-height for items visible without scrolling */
- #urlbarView-results, #urlbar-results {
- height: unset !important;
- max-height: calc(2.5 * (var(--mbarstyler-title-font-size) + var(--mbarstyler-bottom-border-width)) * var(--mbarstyler-max-rows-without-scrolling)) !important;
- }
- #urlbar-results {
- overflow-y: auto !important;
- }
- /* Clean up extra spacing at the top and bottom */
- #urlbar-results {
- padding-top: 0 !important;
- padding-bottom: 0 !important;
- }
- /* Subtle border between results */
- .urlbarView-row:not(:last-of-type) {
- border-bottom: var(--mbarstyler-bottom-border-width) solid rgba(0, 0, 0, 0.1) !important;
- }
- /* Match Styling Like Fx43-47 */
- [lwt-popup-darktext] .urlbarView-row:not([selected]) .urlbarView-title strong,
- [lwt-popup-darktext] .urlbarView-row:not([selected]) .urlbarView-url strong {
- font-weight: var(--mbarstyler-match-weight) !important;
- box-shadow: inset 0 0 1px 1px rgba(0, 0, 0, calc(var(--mbarstyler-match-background-opacity) * 2));
- background-color: rgba(0, 0, 0, var(--mbarstyler-match-background-opacity));
- border-radius: 2px;
- }
- [lwt-popup-brighttext] .urlbarView-row:not([selected]) .urlbarView-title strong,
- [lwt-popup-brighttext] .urlbarView-row:not([selected]) .urlbarView-url strong {
- font-weight: var(--mbarstyler-match-weight) !important;
- box-shadow: inset 0 0 1px 1px rgba(255, 255, 255, calc(var(--mbarstyler-match-background-opacity) * 2));
- background-color: rgba(255, 255, 255, var(--mbarstyler-match-background-opacity));
- border-radius: 2px;
- }
- /*** End of: Megabar Styler General ***/
- /*** Megabar Styler Two-Row Flex Layout - version 2020-04-12 ***/
- /* !!! Requires variables from Megabar Styler General !!! */
- /* Adjust heights for scrolling */
- #urlbarView-results, #urlbar-results {
- max-height: calc(1.825 * (var(--mbarstyler-title-font-size) + var(--mbarstyler-url-font-size) + var(--mbarstyler-bottom-border-width)) * var(--mbarstyler-max-rows-without-scrolling)) !important;
- }
- /* Wrap the url (adapted from Fx75 narrow bar design) */
- .urlbarView-row-inner {
- flex-wrap: wrap !important;
- padding-top: 20 !important;
- padding-bottom: 4px !important;
- }
- .urlbarView-no-wrap {
- max-width: 100% !important;
- flex-basis: 100% !important;
- position: relative;
- }
- /* Adjust horizontal and vertical URL position */
- .urlbarView-row[has-url] > .urlbarView-row-inner > .urlbarView-url {
- padding-inline-start: calc(6px + 2px + /* favicon */ 16px) !important;
- margin-top: calc(6px + (var(--mbarstyler-url-font-size) - var(--mbarstyler-title-font-size)));
- }
- /* Hide the separator if there's a URL */
- .urlbarView.megabar[actionoverride] .urlbarView-row[has-url] .urlbarView-title-separator,
- .urlbarView.megabar .urlbarView-row[has-url]:not([type$=tab]) .urlbarView-title-separator,
- .urlbarView.megabar .urlbarView-row[type=remotetab]:-moz-any(:hover, [selected]) .urlbarView-title-separator {
- display: none !important;
- }
- /* Move Switch Tab info to URL line :: added 2020-04-12 */
- /* Make sure URL is always visible */
- .urlbarView-row[type="switchtab"][has-url="true"] .urlbarView-url {
- visibility: visible !important;
- }
- /* Show Switch to Tab or Open depending on [actionoverride] */
- .urlbarView:not([actionoverride]) .urlbarView-row[type="switchtab"][has-url="true"] .urlbarView-url::before {
- content: "Switch to Tab: ";
- font-style: italic;
- color: var(--urlbar-popup-action-color);
- }
- .urlbarView[actionoverride] .urlbarView-row[type="switchtab"][has-url="true"] .urlbarView-url::before {
- content: "Open: ";
- font-style: italic;
- color: var(--urlbar-popup-action-color);
- }
- /* Hide the existing Action phrase and separator */
- .urlbarView-row[type="switchtab"][has-url="true"] .urlbarView-action,
- .urlbarView-row[type="switchtab"][has-url="true"] .urlbarView-title-separator {
- display: none !important;
- }
- /*** End of: Megabar Styler Two-Row Flex Layout ***/
- /*SHARP TABS*/
- :root[id]{
- --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{ --lwt-tab-line-color: white !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{
- 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;
- border-bottom-color: transparent !important;
- }
- */
- #TabsToolbar{
- --toolbarbutton-inner-padding: 7px !important;
- }
- /* Few exceptions for default light theme */
- #navigator-toolbox:not([movingtab]):-moz-lwtheme > #titlebar > #TabsToolbar{
- --toolbar-bgcolor: transparent;
- }
- .tab-background[selected]:not(:-moz-lwtheme){ background: var(--toolbar-bgcolor) !important; }
- #TabsToolbar-customization-target > .toolbarbutton-1 > .toolbarbutton-badge-stack,
- #TabsToolbar-customization-target > .toolbarbutton-1 > .toolbarbutton-icon{ border-radius: 2px !important; }
- /* tabs newtab button needs some special styling... */
- #tabs-newtab-button{
- padding-inline: 0 !important;
- -moz-box-align: stretch !important; /* Fx < 112 compatibility */
- align-items: stretch !important;
- }
- /* We draw the icon as background-image to get correct scaling regardless of toolbar height */
- #tabs-newtab-button > .toolbarbutton-icon{
- border-radius: 0 !important;
- width: var(--tab-min-height) !important;
- height: initial !important;
- list-style-image: none;
- background-image: url(chrome://global/skin/icons/plus.svg);
- background-position: center;
- background-repeat: no-repeat;
- }
- #scrollbutton-up,
- #scrollbutton-down{
- border-radius: 0 !important;
- border-width: 0 !important;
- padding-inline: 3px !important;
- margin-bottom: var(--uc-compat-scrollbutton-margin,0px) !important; /* set in hide_tabs_scrollbuttons.css */
- }
- /* This is for hide_tabs_scrollbuttons.css compatibility since we modify scrollbutton width */
- #tabbrowser-tabs[overflow]{
- --uc-scrollbox-base-margin: -22px !important;
- }
- /* Selected tab needs to be relative so it gets drawn over nav-bar top "border" */
- .tabbrowser-tab[selected]{
- position: relative;
- z-index: 1;
- }
- /* 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;
- border-top: 0 !important;
- outline: none !important;
- }
- .tab-background:not([selected])[multiselected]{
- background: color-mix(in srgb, currentColor 11%, transparent) !important;
- margin-inline-start: -1px;
- }
- /* Line to mark selected tab */
- .tab-background[selected]::before,
- .tabbrowser-tab:hover > stack > .tab-background::before{
- display: flex;
- 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(--lwt-tab-line-color),var(--lwt-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; /* Fx < 112 compatibility */
- order: 2;
- margin-inline: 10px !important;
- }
- #nav-bar { border-top: 0px !important }
- /*RELOAD BUTTON*/
- #tabContextMenu #context_reloadTab {
- order: -1 !important;
- }
- #tabContextMenu #context_reloadSelectedTabs {
- order: -1 !important;
- }
- /*** Tighten up vertical drop-down(bookmark)/context/popup menu spacing ***/
- menupopup > menuitem, menupopup > menu {
- padding-block: 3px !important;
- }
- :root {
- --arrowpanel-menuitem-padding: 1px 2px !important;
- }
- /*SHARP CORNERS*/
- :root{
- --arrowpanel-border-radius: 0 !important;
- --tab-border-radius: 0 !important;
- --toolbarbutton-border-radius: 0 !important;
- --arrowpanel-menuitem-border-radius: 0 !important;
- }
- .menupopup-arrowscrollbox{ border-radius: 0px !important; }
- menupopup {
- border-radius: 0 !important;
- --panel-border-radius: 0 !important;
- }
- #nav-bar:-moz-lwtheme {
- box-shadow: none !important;
- }
- /* Tab list button */
- #tabbrowser-tabs:not([overflow]) ~ #alltabs-button {
- display: none !important;
- }
Add Comment
Please, Sign In to add comment