Created
June 29, 2016 11:54
-
-
Save TaylanTatli/def5d3f3db1e6184caabcce5833d4a5a to your computer and use it in GitHub Desktop.
Firefox Style
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*=============================================== | |
Firefox Userstyle | |
by TaylanTatli (taylantatli.me) | |
=============================================== */ | |
/* AGENT_SHEET */ | |
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); | |
/* Htitle Window Controls */ | |
#window-controls { | |
-moz-box-align: center !important; | |
border-top: 1px solid #bbb8bb !important; | |
} | |
/* Move Tabs Bottom */ | |
#TabsToolbar { | |
-moz-box-ordinal-group: 10000 !important; | |
} | |
/* Full Width Tabs */ | |
.tabbrowser-tab { | |
text-align: center; | |
} | |
.tabbrowser-tab:not([pinned]) { | |
max-width: 2000px !important; | |
} | |
/* Hide Bookmark Star Icon */ | |
#bookmarks-menu-button .toolbarbutton-menubutton-button, | |
#bookmarks-menu-button > dropmarker::before { | |
display: none; | |
} | |
#bookmarks-menu-button > dropmarker::before { | |
display: none!important | |
} | |
.toolbarbutton-menubutton-dropmarker { | |
margin: 0 !important; | |
} | |
/* Center Adressbar */ | |
#urlbar { | |
max-width: 600px !important; | |
width: 600px !important; | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
margin-right: -50%; | |
transform: translate(-55%, -50%); | |
text-align: center !important; | |
border: 1px solid #bbb8bb !important; | |
border-radius: 4px !important; | |
min-height: 38px !important; | |
background-image: linear-gradient(to bottom, #fcfcfc, #f1f1f1) !important; | |
} | |
.textbox-input-box.urlbar-input-box { | |
min-height: 32px !important; | |
} | |
/* Center Url Text */ | |
.autocomplete-textbox-container.urlbar-textbox-container { | |
width: 100% !important; | |
} | |
/* Hide */ | |
#urlbar-go-button, | |
#urlbar-reload-button, | |
#urlbar-stop-button, | |
#reader-mode-button, | |
#readinglist-addremove-button, | |
#identity-box, | |
#alltabs-button, | |
.scrollbutton-down, | |
.scrollbutton-up { | |
display: none !important; | |
} | |
/* Show tab close button only when hover */ | |
.tabbrowser-tab .tab-close-button { | |
visibility: hidden !important; | |
} | |
.tabbrowser-tab:hover .tab-close-button { | |
visibility: visible !important; | |
} | |
/* Hide Awesome Bar Scrollbox */ | |
#PopupAutoCompleteRichResult .autocomplete-richlistbox > scrollbox { | |
overflow: visible !important; | |
} | |
/* Awesome Bar */ | |
#PopupAutoCompleteRichResult { | |
-moz-appearance: none!important; | |
box-shadow: none !important; | |
background: white !important; | |
border: 1px solid #bbb8bb !important; | |
border-top-width: 0px !important; | |
border-bottom-left-radius: 4px; | |
border-bottom-right-radius: 4px; | |
margin-top: -2px !important; | |
background-image: linear-gradient(to bottom, #f1f1f1, #fff) !important; | |
} | |
/* Awesome Bar Results */ | |
.autocomplete-richlistitem { | |
-moz-appearance: none!important; | |
border: 1px solid transparent !important; | |
border-radius: 0 !important; | |
margin: 0 !important; | |
outline: 0px !important; | |
padding: 2px !important; | |
} | |
/* Buttons */ | |
#back-button, | |
#forward-button, | |
#downloads-button, | |
#bookmarks-menu-button, | |
#PanelUI-button, | |
.toolbarbutton-1.chromeclass-toolbar-additional { | |
background-color: #fff !important; | |
padding: 0 5px !important; | |
border-radius: 4px !important; | |
border: 1px solid #bbb8bb !important; | |
block-size: 38px !important; | |
background-image: linear-gradient(to bottom, #fcfcfc, #f1f1f1) !important; | |
} | |
#back-button:hover, | |
#forward-button:hover, | |
#downloads-button:hover, | |
#bookmarks-menu-button:hover, | |
.toolbarbutton-1.chromeclass-toolbar-additional:hover { | |
background-color: #fff !important; | |
background-image: linear-gradient(to bottom, #fefefe, #f1f1f1) !important; | |
padding: 0 5px !important; | |
border-radius: 4px !important; | |
border: 1px solid #b5e7fe !important; | |
} | |
#PanelUI-button:hover { | |
background-color: #fff !important; | |
padding: 3px 0 !important; | |
border-radius: 4px !important; | |
border: 1px solid #b5e7fe !important; | |
} | |
#PanelUI-contents > .toolbarbutton-1, | |
#new-tab-button { | |
background-color: unset !important; | |
background-image: unset !important; | |
padding: unset !important; | |
border: none !important; | |
block-size: auto !important; | |
margin-right: 0px !important; | |
} | |
/* Button Hovers */ | |
.findbar-button:not(:-moz-any([checked="true"], [disabled="true"])):hover > .toolbarbutton-text, | |
:-moz-any(#TabsToolbar, #nav-bar) .toolbarbutton-1[open]:not([disabled=true]) > .toolbarbutton-menubutton-button > .toolbarbutton-icon, | |
:-moz-any(#TabsToolbar, #nav-bar) .toolbarbutton-1:not([disabled=true]):not([open]):hover > .toolbarbutton-menubutton-button > .toolbarbutton-icon, | |
:-moz-any(#TabsToolbar, #nav-bar) .toolbarbutton-1:not([disabled=true]):not([open]):hover > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon, | |
:-moz-any(#TabsToolbar, #nav-bar) .toolbarbutton-1:not([disabled=true]):hover > .toolbarbutton-badge-stack, | |
:-moz-any(#TabsToolbar, #nav-bar) .toolbarbutton-1:not([disabled=true]):hover > .toolbarbutton-icon { | |
background: none !important; | |
border-color: transparent !important; | |
box-shadow: none !important; | |
} | |
/* Button Hovers end */ | |
#back-button { | |
margin-left: 10px !important; | |
margin-right: 0px !important; | |
} | |
#PanelUI-button { | |
margin-right: 10px !important; | |
padding: 3px 0 !important; | |
} | |
#bookmarks-menu-button { | |
margin-right: 10px !important; | |
} | |
#downloads-button { | |
margin-right: 2px !important; | |
} | |
.toolbarbutton-1.chromeclass-toolbar-additional { | |
margin-right: 2px !important; | |
} | |
/* Nav Bar */ | |
#nav-bar { | |
background-image: linear-gradient(to bottom, #ebebeb, #dfdfdf) !important; | |
border-bottom: 1px solid #bbb8bb !important; | |
} | |
#navigator-toolbox { | |
border: 1px solid #bbb8bb !important; | |
} | |
/* Tab Style */ | |
#TabsToolbar { | |
background: #f8f8f9 !important; | |
background-image: linear-gradient(to bottom, #dddadd, #d4d2d6) !important; | |
margin-bottom: 0px !important; | |
margin-top: -4px !important; | |
} | |
#TabsToolbar .arrowscrollbox-scrollbox { | |
padding: 0 !important; | |
} | |
#TabsToolbar .tabbrowser-tab { | |
-moz-border-top-colors: none !important; | |
-moz-border-left-colors: none !important; | |
-moz-border-right-colors: none !important; | |
-moz-border-bottom-colors: none !important; | |
border-style: solid !important; | |
border-color: #bbb8bb !important; | |
border-width: 1px 1px 0 0 !important; | |
text-shadow: 0 0 4px rgba(255, 255, 255, .75) !important; | |
padding: 2px 0px !important; | |
background: #f8f8f9 !important; | |
background-image: linear-gradient(to bottom, #dddadd, #d4d2d6) !important; | |
background-clip: padding-box !important; | |
transition: all .1s !important; | |
} | |
#TabsToolbar .tabbrowser-tab[first-tab][last-tab], | |
#TabsToolbar .tabbrowser-tab[last-visible-tab] { | |
border-right-width: 1px !important; | |
} | |
#TabsToolbar .tabbrowser-tab[afterselected] { | |
border-left-color: #ececec !important; | |
} | |
#TabsToolbar .tabbrowser-tab[selected] { | |
color: rgba(0, 0, 0, 1) !important; | |
background: #F7F7F7 !important; | |
background-image: linear-gradient(to bottom, #dfdfdf, #dadada) !important; | |
background-clip: padding-box !important; | |
border-color: #bbb8bb !important; | |
border-width: 0 1px 0 0 !important; | |
} | |
#TabsToolbar .tabs-newtab-button:hover, | |
#TabsToolbar .tabbrowser-tab:hover:not([selected]) { | |
border-color: #bbb8bb !important; | |
background-color: rgba(255, 255, 255, .55) !important; | |
} | |
#TabsToolbar .tab-background { | |
margin: 0 !important; | |
background: transparent !important; | |
} | |
#TabsToolbar .tab-background-start, | |
#TabsToolbar .tab-background-end { | |
display: none !important; | |
} | |
#TabsToolbar .tab-background-middle { | |
margin: -4px -2px !important; | |
background: transparent !important; | |
} | |
#TabsToolbar .tabbrowser-tab:after, | |
#TabsToolbar .tabbrowser-tab:before { | |
display: none !important; | |
} | |
#TabsToolbar .tabs-newtab-button { | |
background-image: none !important; | |
border-width: 1px 1px 1px 1px !important; | |
margin: 0 !important; | |
width: auto !important; | |
padding: 0 5px !important; | |
border-color: #bbb8bb !important; | |
} | |
.tabs-newtab-button { | |
border-top: 1px solid transparent !important; | |
border-right: 1px solid transparent !important; | |
border-bottom: 1px solid transparent !important; | |
margin-right: auto !important; | |
} | |
#new-tab-button { | |
border: 1px solid transparent !important; | |
border-width: 1px 1px 0 1px !important; | |
border-spacing: solid !important; | |
border-color: #bbb8bb !important; | |
border-radius: 0 !important; | |
margin: 0 !important; | |
margin-left: -2px !important; | |
} | |
#tabbrowser-tabs .tabbrowser-tab[pinned] label { | |
display: none !important; | |
} | |
#tabbrowser-tabs .tabbrowser-tab[pinned] { | |
height: 31px !important; | |
} | |
#tabbrowser-tabs .tabbrowser-tab .tab-icon-image { | |
padding: 0px !important; | |
filter: grayscale(100%); | |
margin-top: 5px !important; | |
} | |
#tabbrowser-tabs .tabbrowser-tab:not([pinned]) .tab-icon-image { | |
display: none !important; | |
} | |
/* scrollbar */ | |
scrollbar { | |
-moz-appearance: none !important; | |
position: relative; | |
background: none transparent; | |
z-index: 2147483647; | |
padding: 0px 0px 0px 0px!important; | |
opacity: .45 !important; | |
} | |
scrollbar[orient="vertical"] { | |
-moz-margin-start: -6px; | |
min-width: 6px; | |
max-width: 6px; | |
padding: 0px 0px 0px 0px!important; | |
transition: .1s all; | |
} | |
scrollbar[orient="vertical"]:hover { | |
-moz-margin-start: -15px; | |
min-width: 15px; | |
max-width: 15px; | |
} | |
scrollbar[orient="horizontal"] { | |
margin-top: -6px; | |
min-height: 6px; | |
max-height: 6px; | |
transition: .1s all; | |
} | |
scrollbar[orient="horizontal"]:hover { | |
margin-top: -15px; | |
min-height: 15px; | |
max-height: 15px; | |
} | |
scrollbar thumb { | |
-moz-appearance: none !important; | |
border: none !important; | |
border-radius: 0 !important; | |
background: #e1485a!important; | |
} | |
scrollbar[orient="vertical"] thumb { | |
min-height: 100px!important; | |
} | |
scrollbar[orient="horizontal"] thumb { | |
min-width: 100px!important; | |
} | |
scrollbar scrollbarbutton { | |
visibility: collapse!important; | |
} | |
/* Context Menu */ | |
menuseparator { | |
-moz-appearance: none !important; | |
height: 1px !important; | |
margin: 0px !important; | |
border: none !important; | |
border-top: 1px solid #fff !important; | |
padding: 0px !important; | |
} | |
#context-back, | |
#context-forward, | |
#context-reload, | |
#context-stop, | |
#context-bookmarkpage { | |
-moz-appearance: none !important; | |
background: #222 !important; | |
padding: 0.5em !important; | |
} | |
#context-back image, | |
#context-forward image, | |
#context-reload image, | |
#context-stop image, | |
#context-bookmarkpage image { | |
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'invert\'>\ | |
<feColorMatrix in='SourceGraphic' type='matrix' values=\ | |
'1 0 0 0 1 \ | |
0 1 0 0 1 \ | |
0 0 1 0 1 \ | |
0 0 0 1 0 \'/></filter></svg>#invert") !important; | |
} | |
.arrowscrollbox-overflow-end-indicator, | |
.arrowscrollbox-overflow-start-indicator { | |
background-image: none !important; | |
} | |
/* Popup menus */ | |
.panel-arrow { | |
list-style-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACcAAAANCAMAAAAdSodXAAAAFVBMVEUAAAASEhKVlZX19fX////v7+////8mB6J1AAAABXRSTlMAAAAAAMJrBrEAAABHSURBVHjancoxDoBADMTA5ULy/ydDc7LkAhBuPTm/9dtV5UjtHlxWr7y7m82GcmYDlBMDyokB5cSAcmJAnpggU0yQ2zSu6QLAywgP5psoeQAAAABJRU5ErkJggg==) !important; | |
} | |
.panel-arrowcontent { | |
background-color: #fff !important; | |
border-radius: 3px !important; | |
border-color: #efefef !important; | |
color: #383838 !important; | |
opacity: 1 !important; | |
} | |
/* Custom Buttons */ | |
#custombuttons-button2, | |
#custombuttons-button3, | |
#custombuttons-button4 { | |
background: transparent !important; | |
padding: 0 !important; | |
margin: 0 !important; | |
border-radius: 0 !important; | |
border: none !important; | |
block-size: unset !important; | |
} | |
#custombuttons-button3 { | |
margin-right: 4px !important; | |
} | |
#custombuttons-button2:hover > .toolbarbutton-icon, | |
#custombuttons-button3:hover > .toolbarbutton-icon, | |
#custombuttons-button4:hover > .toolbarbutton-icon { | |
filter: brightness(125%) !important; | |
} | |
/* MISC */ | |
.chromeclass-toolbar { | |
-moz-appearance: none !important; | |
background: #dee4e7 !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
@-moz-document url("chrome://browser/content/browser.xul") { | |
/* enable rounded corners, uncomment this section to have resizing bugs :) */ | |
#main-window[sizemode="normal"][htitlemode="always"] { | |
-moz-appearance: none !important; | |
background: transparent !important; | |
border-radius: 7px 7px 0px 0px; | |
} | |
#main-window[sizemode="normal"]:not(:-moz-lwtheme) > #tab-view-deck { | |
background: Window; | |
} | |
:-moz-any( | |
#main-window[htitlemode="always"], | |
#main-window:not([sizemode="normal"])[htitlemode="auto"], | |
#main-window:not([sizemode="normal"])[htitlemode="legacy"] | |
) #toolbar-menubar:not(:-moz-lwtheme) { | |
-moz-appearance: none; | |
} | |
#main-window:not([customize-entered])[htitlemode="always"] #navigator-toolbox:not(:-moz-lwtheme) #nav-bar { | |
border-radius: 7px 7px 0 0; | |
} | |
#main-window:not([darkvariant]):not([sizemode="normal"]) #navigator-toolbox:not(:-moz-lwtheme) #nav-bar, | |
#main-window:not([darkvariant])[sizemode="normal"][htitlemode="always"] #navigator-toolbox:not(:-moz-lwtheme) #nav-bar { | |
background-image: linear-gradient(to bottom, #f7f7f7, #ededed); | |
box-shadow: inset 0 0px #d9d9d9, inset 0 1px white; | |
} | |
#main-window[darkvariant]:not([sizemode="normal"]) #navigator-toolbox:not(:-moz-lwtheme) #nav-bar, | |
#main-window[darkvariant][sizemode="normal"][htitlemode="always"] #navigator-toolbox:not(:-moz-lwtheme) #nav-bar{ | |
background-image: linear-gradient(to bottom, #434a4a, #393f3f); | |
box-shadow: inset 0 -1px #2d3232, inset 0 1px rgba(238, 238, 236, 0.1); | |
} | |
/* Paddings */ | |
#main-window:not([sizemode="normal"]) #navigator-toolbox:not(:-moz-lwtheme) #nav-bar, | |
#main-window[sizemode="normal"][htitlemode="always"] #navigator-toolbox:not(:-moz-lwtheme) #nav-bar { | |
padding: 6px 3px !important; | |
} | |
#nav-bar[reliefbuttons="true"] .toolbarbutton-1 { | |
min-width: 34px !important; | |
} | |
:-moz-any(#window-controls, .window-controls) > toolbarbutton { | |
min-width: 34px !important; | |
} | |
#nav-bar :-moz-any(#back-button, #forward-button), | |
#nav-bar[reliefbuttons="true"] :-moz-any(#back-button, #forward-button) { | |
min-width: 33px !important; | |
} | |
#main-window:not([sizemode="normal"]) #navigator-toolbox:not(:-moz-lwtheme) #urlbar, | |
#main-window[sizemode="normal"][htitlemode="always"] #navigator-toolbox:not(:-moz-lwtheme) #urlbar { | |
margin: 0 36px !important; | |
} | |
.panel-arrow { | |
padding-top: 9px; | |
} | |
} |
Author
TaylanTatli
commented
Jun 29, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment