New theme structure
This commit is contained in:
parent
ae2bcec92f
commit
e23919cedc
|
@ -1,11 +1,14 @@
|
|||
# Firefox GNOME Theme
|
||||
A GNOME theme for Firefox 60+.
|
||||
|
||||
*This theme follows lastest GNOME default gtk theme adwaita*
|
||||
|
||||
![Screenshot of the theme](screenshot.png)
|
||||
![Screenshot of the theme](screenshot2.png)
|
||||
|
||||
## Description
|
||||
|
||||
This is a bunch of CSS code to make Firefox 57+ look closer to GNOME's default
|
||||
This is a bunch of CSS code to make Firefox look closer to GNOME's default
|
||||
theme. It styles the UI and internal Firefox' pages like `about:` and
|
||||
`view-source:`. Both light and dark variants are supported.
|
||||
|
||||
|
|
|
@ -1,55 +0,0 @@
|
|||
@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* Adjust empty space on the headerbar's sides */
|
||||
:root[tabsintitlebar]:not([inFullscreen]) #nav-bar {
|
||||
margin-left: 43px !important;
|
||||
margin-right: 43px !important;
|
||||
padding-left: 7px !important;
|
||||
padding-right: 7px !important;
|
||||
}
|
||||
|
||||
/* Remove window controls separator */
|
||||
:root[tabsintitlebar]:not([inFullscreen]) #nav-bar::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Remove the spacer pushing window controls to the right */
|
||||
:root[tabsintitlebar] #titlebar-spacer {
|
||||
display: none;
|
||||
}
|
||||
:root[tabsintitlebar] #titlebar {
|
||||
margin-left: -4px;
|
||||
}
|
||||
:root[tabsintitlebar] #titlebar-buttonbox {
|
||||
padding-left: 4px;
|
||||
}
|
||||
|
||||
/* Expand window controls' container to the window's width */
|
||||
:root[tabsintitlebar] #titlebar-content,
|
||||
:root[tabsintitlebar] #titlebar-buttonbox-container {
|
||||
display: block;
|
||||
}
|
||||
:root[tabsintitlebar] #titlebar-buttonbox {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
/* Don't let the title bar cover the headerbar */
|
||||
:root[tabsintitlebar] #nav-bar {
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* Reorder titlebar buttons */
|
||||
:root[tabsintitlebar] #titlebar-min {
|
||||
display: none;
|
||||
}
|
||||
:root[tabsintitlebar] #titlebar-buttonbox {
|
||||
direction: rtl;
|
||||
}
|
||||
:root[tabsintitlebar] #titlebar-buttonbox * {
|
||||
direction: initial;
|
||||
}
|
||||
|
||||
/* Move the close button to the left and the maximize button to the right */
|
||||
:root[tabsintitlebar] #titlebar-buttonbox {
|
||||
justify-content: space-between;
|
||||
}
|
|
@ -1,105 +0,0 @@
|
|||
@import "theme.css";
|
||||
@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* Colors */
|
||||
:root {
|
||||
/* Variables that start with --gnome- are added by me and are assigned
|
||||
* to elements somewhere in this code. The rest of the variables are
|
||||
* built-in in Firefox, so you need to add an !important if you wanna
|
||||
* override them. */
|
||||
|
||||
/* Browser area before a page starts loading */
|
||||
--gnome-browser-before-load-bgcolor: #2e3436;
|
||||
|
||||
/* Extra toolbars like the bookmark bar */
|
||||
--toolbar-bgcolor: var(--gnome-tabbar-bgcolor) !important;
|
||||
--toolbar-bgimage: none !important;
|
||||
|
||||
/* Header bar */
|
||||
--gnome-headerbar-bgimage: linear-gradient(rgb(67, 74, 74), rgb(57, 63, 63));
|
||||
--gnome-headerbar-border-bottom: 1px solid rgb(28, 31, 31);
|
||||
--gnome-headerbar-box-shadow: 0 -1px rgb(45, 50, 50) inset, 0 1px rgba(238, 238, 236, .1) inset;
|
||||
--gnome-headerbar-button-bgimage: linear-gradient(rgb(69, 76, 76), rgb(57, 63, 63) 40%, rgb(45, 50, 50));
|
||||
--gnome-headerbar-button-border: 1px solid rgba(28, 31, 31);
|
||||
--gnome-headerbar-button-border-bottom: var(--gnome-headerbar-button-border);
|
||||
--gnome-headerbar-button-box-shadow: 0 1px rgba(255, 255, 255, .1) inset, 0 1px rgba(238, 238, 236, .1);
|
||||
--gnome-headerbar-button-hover-bgimage: linear-gradient(rgb(91, 100, 100), rgb(67, 73, 73) 40%, rgb(55, 60, 60));
|
||||
--gnome-headerbar-button-active-bgimage: linear-gradient(rgb(35, 39, 39), rgb(41, 45, 45) 40%, rgb(45, 50, 50));
|
||||
--gnome-headerbar-button-active-box-shadow: 0 1px rgba(0, 0, 0, .07) inset, 0 2px 1px -2px rgba(0, 0, 0, .6) inset, 0 1px rgba(238, 238, 236, .1);
|
||||
--gnome-headerbar-button-disabled-bgcolor: #323636;
|
||||
--gnome-headerbar-button-disabled-border: var(--gnome-headerbar-button-border);
|
||||
--gnome-headerbar-button-disabled-box-shadow: 0 1px rgba(255, 255, 255, 0) inset, 0 1px rgba(238, 238, 236, .1);
|
||||
--gnome-inactive-headerbar-bgimage: linear-gradient(rgba(57, 63, 63), rgba(57, 63, 63));
|
||||
--gnome-inactive-headerbar-border-bottom: 1px solid rgb(30, 34, 34);
|
||||
--gnome-inactive-headerbar-box-shadow: 0 1px rgba(238, 238, 236, .1) inset;
|
||||
--gnome-inactive-headerbar-button-bgimage: linear-gradient(rgb(57, 63, 63), rgb(57, 63, 63));
|
||||
--gnome-inactive-headerbar-button-border: 1px solid rgba(30, 34, 34);
|
||||
--gnome-inactive-headerbar-button-border-bottom: var(--gnome-inactive-headerbar-button-border);
|
||||
--gnome-inactive-headerbar-button-box-shadow: 0 1px rgba(255, 255, 255, 0) inset, 0 1px rgba(238, 238, 236, 0);
|
||||
--gnome-inactive-headerbar-button-disabled-bgcolor: var(--gnome-headerbar-button-disabled-bgcolor);
|
||||
--gnome-inactive-headerbar-button-disabled-border: var(--gnome-inactive-headerbar-button-border);
|
||||
--gnome-inactive-headerbar-button-disabled-box-shadow: 0 1px rgba(255, 255, 255, 0) inset, 0 1px rgba(238, 238, 236, 0);
|
||||
|
||||
/* URL bar */
|
||||
--gnome-urlbar-bgimage: linear-gradient(rgb(28, 31, 31), rgb(35, 37, 37) 3px, rgb(41, 41, 41) 90%);
|
||||
--gnome-urlbar-border: 1px solid #1e2222;
|
||||
--gnome-urlbar-box-shadow: 0 0 0 1px rgba(33, 93, 156, 0) inset, 0 1px rgba(238, 238, 236, .1);
|
||||
--gnome-urlbar-color: #fff;
|
||||
--gnome-urlbar-height: 32px;
|
||||
--gnome-inactive-urlbar-bgimage: linear-gradient(rgb(44, 44, 44), rgb(44, 44, 44));
|
||||
--gnome-inactive-urlbar-border: 1px solid rgb(30, 34, 34);
|
||||
--gnome-inactive-urlbar-box-shadow: 0 1px rgba(238, 238, 236, 0);
|
||||
--gnome-inactive-urlbar-color: rgb(212, 212, 212);
|
||||
--gnome-focused-urlbar-border-color: #0f2a46;
|
||||
--gnome-focused-urlbar-outline: 1px solid #21578f;
|
||||
/* for private-urlbar.css only */
|
||||
--gnome-private-urlbar-bgimage: linear-gradient(#25003e, #25003e);
|
||||
|
||||
/* Tab bar */
|
||||
--gnome-tabbar-bgcolor: #2f3434;
|
||||
--gnome-tabbar-border-bottom: 1px solid #1e2222;
|
||||
--gnome-tabbar-tab-color: rgb(147, 150, 149);
|
||||
--gnome-tabbar-tab-hover-bgcolor: var(--gnome-tabbar-bgcolor);
|
||||
--gnome-tabbar-tab-hover-border-bottom: 3px solid #1c1f1f;
|
||||
--gnome-tabbar-tab-hover-border-sides: 1px solid #2a2f2f;
|
||||
--gnome-tabbar-tab-hover-color: rgb(192, 194, 192);
|
||||
--gnome-tabbar-tab-active-bgcolor: #343939;
|
||||
--gnome-tabbar-tab-active-border-bottom: 3px solid #215d9c;
|
||||
--gnome-tabbar-tab-active-border-color-sides: #282b2b;
|
||||
--gnome-tabbar-tab-active-color: rgb(238, 238, 236);
|
||||
--gnome-tabbar-tab-active-hover-bgcolor: #363c3c;
|
||||
--gnome-inactive-tabbar-bgcolor: var(--gnome-tabbar-bgcolor);
|
||||
--gnome-inactive-tabbar-border-bottom: var(--gnome-tabbar-border-bottom);
|
||||
--gnome-inactive-tabbar-tab-color: rgb(120, 126, 126);
|
||||
--gnome-inactive-tabbar-tab-active-bgcolor: #393f3f;
|
||||
--gnome-inactive-tabbar-tab-active-border-bottom: var(--gnome-tabbar-tab-active-border-bottom);
|
||||
--gnome-inactive-tabbar-tab-active-border-color-sides: #1e2222;
|
||||
--gnome-inactive-tabbar-tab-active-color: rgb(147, 150, 149);
|
||||
--gnome-tabbar-tab-icon-filter: invert(100%) sepia(100%) grayscale(100%) brightness(200%) brightness(85%);
|
||||
|
||||
/* Bookmark bar */
|
||||
--gnome-bookmarkbar-border-bottom: 1px solid #1e2222;
|
||||
--gnome-bookmarkbar-height: 38px;
|
||||
--gnome-inactive-bookmarkbar-border-bottom: var(--gnome-bookmarkbar-border-bottom);
|
||||
|
||||
/* Burger menu */
|
||||
/*--arrowpanel-padding: 10px;*/
|
||||
/*--arrowpanel-background: -moz-field;*/
|
||||
--arrowpanel-color: #d3d4d2 !important; /* applies to text and icons */
|
||||
/*--arrowpanel-border-color: ThreeDShadow;*/
|
||||
|
||||
/* Dirty hack for replaced symbolic icons, they load from
|
||||
* /usr/share/icons/<theme>/ and on some systems they need to be
|
||||
* inverted, on others they don't, adjusts the filters below to your
|
||||
* needs (you may also adjust icon brightness here). */
|
||||
--gnome-icons-hack-filter: invert(85%); /* without invert: none */
|
||||
--gnome-icons-hack-close-button-border: 1px solid #e3e0e0; /* without invert: 1px solid #1c1f1f */
|
||||
--gnome-icons-hack-close-button-border-bottom: var(--gnome-icons-hack-close-button-border);
|
||||
--gnome-icons-hack-close-button-filter: invert(100%); /* without invert: none */
|
||||
--gnome-icons-hack-close-button-hover-bgimage: none; /* without invert: none */
|
||||
--gnome-icons-hack-close-button-hover-box-shadow: none; /* without invert: none */
|
||||
--gnome-icons-hack-close-button-active-bgimage: linear-gradient(rgb(220, 216, 216), rgb(214, 210, 210) 40%, rgb(210, 205, 205));
|
||||
/* ^ without invert: linear-gradient(rgb(35, 39, 39), rgb(41, 45, 45) 40%, rgb(45, 50, 50)) */
|
||||
--gnome-icons-hack-close-button-active-box-shadow: 0 1px rgba(255, 255, 255, .07) inset, 0 2px 1px -2px rgba(255, 255, 255, .6) inset, 0 1px rgba(17, 17, 19, .1);
|
||||
/* ^ without invert: 0 1px rgba(0, 0, 0, .07) inset, 0 2px 1px -2px rgba(0, 0, 0, .6) inset, 0 1px rgba(238, 238, 236, .1) */
|
||||
}
|
|
@ -1,105 +0,0 @@
|
|||
@import "theme.css";
|
||||
@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* Colors */
|
||||
:root {
|
||||
/* Variables that start with --gnome- are added by me and are assigned
|
||||
* to elements somewhere in this code. The rest of the variables are
|
||||
* built-in in Firefox, so you need to add an !important if you wanna
|
||||
* override them. */
|
||||
|
||||
/* Browser area before a page starts loading */
|
||||
--gnome-browser-before-load-bgcolor: #d6d6d6;
|
||||
|
||||
/* Extra toolbars like the bookmark bar */
|
||||
--toolbar-bgcolor: var(--gnome-tabbar-bgcolor) !important;
|
||||
--toolbar-bgimage: none !important;
|
||||
|
||||
/* Header bar */
|
||||
--gnome-headerbar-bgimage: linear-gradient(rgb(247, 247, 247), rgb(237, 237, 237));
|
||||
--gnome-headerbar-border-bottom: 1px solid rgb(161, 161, 161);
|
||||
--gnome-headerbar-box-shadow: 0 -1px rgb(217, 217, 217) inset, 0 1px #fff inset;
|
||||
--gnome-headerbar-button-bgimage: linear-gradient(rgb(250, 250, 250), rgb(237, 237, 237) 40%, rgb(224, 224, 224));
|
||||
--gnome-headerbar-button-border: 1px solid rgba(161, 161, 161);
|
||||
--gnome-headerbar-button-border-bottom: var(--gnome-headerbar-button-border);
|
||||
--gnome-headerbar-button-box-shadow: 0 1px #fff inset, 0 1px #fff;
|
||||
--gnome-headerbar-button-hover-bgimage: linear-gradient(#fff, rgb(247, 247, 247) 40%, rgb(237, 237, 237));
|
||||
--gnome-headerbar-button-active-bgimage: linear-gradient(rgb(214, 214, 214), rgb(220, 220, 220) 40%, rgb(224, 224, 224));
|
||||
--gnome-headerbar-button-active-box-shadow: 0 1px rgba(0, 0, 0, .07) inset, 0 2px 0px -2px rgba(0, 0, 0, .6) inset, 0 1px #fff;
|
||||
--gnome-headerbar-button-disabled-bgcolor: rgb(244, 244, 244);
|
||||
--gnome-headerbar-button-disabled-border: var(--gnome-headerbar-button-border);
|
||||
--gnome-headerbar-button-disabled-box-shadow: 0 1px rgba(255, 255, 255, 0) inset, 0 1px rgba(255, 255, 255, 0);
|
||||
--gnome-inactive-headerbar-bgimage: linear-gradient(rgba(237, 237, 237), rgba(237, 237, 237));
|
||||
--gnome-inactive-headerbar-border-bottom: 1px solid rgb(168, 168, 168);
|
||||
--gnome-inactive-headerbar-box-shadow: 0 1px #fff inset;
|
||||
--gnome-inactive-headerbar-button-bgimage: linear-gradient(rgb(237, 237, 237), rgb(237, 237, 237));
|
||||
--gnome-inactive-headerbar-button-border: 1px solid rgb(168, 168, 168);
|
||||
--gnome-inactive-headerbar-button-border-bottom: var(--gnome-inactive-headerbar-button-border);
|
||||
--gnome-inactive-headerbar-button-box-shadow: 0 1px rgba(255, 255, 255, 0) inset, 0 1px rgba(255, 255, 255, 0);
|
||||
--gnome-inactive-headerbar-button-disabled-bgcolor: var(--gnome-headerbar-button-disabled-bgcolor);
|
||||
--gnome-inactive-headerbar-button-disabled-border: var(--gnome-inactive-headerbar-button-border);
|
||||
--gnome-inactive-headerbar-button-disabled-box-shadow: var(--gnome-headerbar-button-disabled-box-shadow);
|
||||
|
||||
/* URL bar */
|
||||
--gnome-urlbar-bgimage: linear-gradient(rgb(222, 222, 222), rgb(248, 248, 248) 3px, rgb(255, 255, 255) 90%);
|
||||
--gnome-urlbar-border: 1px solid rgb(161, 161, 161);
|
||||
--gnome-urlbar-box-shadow: 0 0 0 1px rgba(74, 144, 217, 0) inset, 0 1px #fff;
|
||||
--gnome-urlbar-color: #000;
|
||||
--gnome-urlbar-height: 32px;
|
||||
--gnome-inactive-urlbar-bgimage: linear-gradient(#fff, #fff);
|
||||
--gnome-inactive-urlbar-border: 1px solid rgb(168, 168, 168);
|
||||
--gnome-inactive-urlbar-box-shadow: 0 1px rgba(255, 255, 255, 0);
|
||||
--gnome-inactive-urlbar-color: rgb(50, 50, 50);
|
||||
--gnome-focused-urlbar-border-color: #0f2a46;
|
||||
--gnome-focused-urlbar-outline: 1px solid #21578f;
|
||||
/* for private-urlbar.css only */
|
||||
--gnome-private-urlbar-bgimage: linear-gradient(#e6c2ff, #e6c2ff);
|
||||
|
||||
/* Tab bar */
|
||||
--gnome-tabbar-bgcolor: #d6d6d6;
|
||||
--gnome-tabbar-border-bottom: 1px solid #a1a1a1;
|
||||
--gnome-tabbar-tab-color: rgb(141, 144, 145);
|
||||
--gnome-tabbar-tab-hover-bgcolor: var(--gnome-tabbar-bgcolor);
|
||||
--gnome-tabbar-tab-hover-border-bottom: 3px solid #a1a1a1;
|
||||
--gnome-tabbar-tab-hover-border-sides: 1px solid #c9c9c9;
|
||||
--gnome-tabbar-tab-hover-color: rgb(93, 98, 99);
|
||||
--gnome-tabbar-tab-active-bgcolor: #e1e1e1;
|
||||
--gnome-tabbar-tab-active-border-bottom: 4px solid #4a90d9;
|
||||
--gnome-tabbar-tab-active-border-color-sides: #c0c0c0;
|
||||
--gnome-tabbar-tab-active-color: rgb(46, 52, 54);
|
||||
--gnome-tabbar-tab-active-hover-bgcolor: #e6e6e6;
|
||||
--gnome-inactive-tabbar-bgcolor: #d4d4d4;
|
||||
--gnome-inactive-tabbar-border-bottom: 1px solid #a8a8a8;
|
||||
--gnome-inactive-tabbar-tab-color: rgb(170, 171, 172);
|
||||
--gnome-inactive-tabbar-tab-active-bgcolor: #ededed;
|
||||
--gnome-inactive-tabbar-tab-active-border-bottom: var(--gnome-tabbar-tab-active-border-bottom);
|
||||
--gnome-inactive-tabbar-tab-active-border-color-sides: #a8a8a8;
|
||||
--gnome-inactive-tabbar-tab-active-color: rgb(141, 144, 145);
|
||||
--gnome-tabbar-tab-icon-filter: invert(100%) sepia(100%) grayscale(100%) brightness(200%) brightness(85%) invert(100%);
|
||||
|
||||
/* Bookmark bar */
|
||||
--gnome-bookmarkbar-border-bottom: 1px solid #a1a1a1;
|
||||
--gnome-bookmarkbar-height: 38px;
|
||||
--gnome-inactive-bookmarkbar-border-bottom: var(--gnome-bookmarkbar-border-bottom);
|
||||
|
||||
/* Burger menu */
|
||||
/*--arrowpanel-padding: 10px;*/
|
||||
/*--arrowpanel-background: -moz-field;*/
|
||||
--arrowpanel-color: rgb(46, 52, 54) !important; /* applies to text and icons */
|
||||
/*--arrowpanel-border-color: ThreeDShadow;*/
|
||||
|
||||
/* Dirty hack for replaced symbolic icons, they load from
|
||||
* /usr/share/icons/<theme>/ and on some systems they need to be
|
||||
* inverted, on others they don't, adjusts the filters below to your
|
||||
* needs (you may also adjust icon brightness here). */
|
||||
--gnome-icons-hack-filter: invert(30%); /* with invert: invert(85%) */
|
||||
--gnome-icons-hack-close-button-border: 1px solid #a1a1a1; /* with invert: 1px solid #5e5e5e */
|
||||
--gnome-icons-hack-close-button-border-bottom: var(--gnome-icons-hack-close-button-border);
|
||||
--gnome-icons-hack-close-button-filter: none; /* with invert: invert(100%) */
|
||||
--gnome-icons-hack-close-button-hover-bgimage: none; /* without invert: none */
|
||||
--gnome-icons-hack-close-button-hover-box-shadow: none; /* without invert: none */
|
||||
--gnome-icons-hack-close-button-active-bgimage: linear-gradient(rgb(214, 214, 214), rgb(220, 220, 220) 40%, rgb(224, 224, 224));
|
||||
/* ^ with invert: linear-gradient(rgb(41, 41, 41), rgb(35, 35, 35) 40%, rgb(31, 31, 31)) */
|
||||
--gnome-icons-hack-close-button-active-box-shadow: 0 1px rgba(0, 0, 0, .07) inset, 0 2px 1px -2px rgba(0, 0, 0, .6) inset;
|
||||
/* ^ with invert: 0 1px rgba(255, 255, 255, .07) inset, 0 2px 1px -2px rgba(255, 255, 255, .6) inset */
|
||||
}
|
Loading…
Reference in New Issue