@@ -9,6 +9,13 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
99%include ./ macos.inc .css
1010%endif
1111
12+ /* Pulse specific variables */
13+ : root {
14+ --tab-rounding-size : 8px ;
15+ --tab-rounding-size-neg : -8px ;
16+ }
17+
18+
1219: root {
1320 /* Colors */
1421 --gradient-orientation : 90deg ;
@@ -22,25 +29,23 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
2229 --tab-block-margin : 0 !important ; /* The padding around each tab. In proton, this is what makes them float */
2330 --tab-border-radius : 0 !important ; /* The border radius of the tab */
2431 --tab-padding-inline : 0 !important ; /* Padding to the left and right of the tab. **Focus Browser custom** */
32+
33+ --toolbarbutton-border-radius : 4px ;
2534
2635 /* Toolbar area */
2736 --toolbar-field-border-color : transparent !important ; /* The border color of the search input */
28- --toolbarbutton-border-radius : 0 !important ; /* The border radius of the search input */
29- --urlbar-icon-border-radius : 0 !important ; /* The border radius of the identity box icon */
3037
3138 /* App Menu styling */
32- --arrowpanel-menuitem-border-radius : 0 !important ; /* The border radius of the app menu items */
33- --arrowpanel-border-radius : 0 !important ; /* The border radius of the app menu */
3439 --panel-separator-zap-gradient : var (
3540 --gradient
3641 ) !important ; /* The gradient used for the app menu separator */
3742
3843 /* Panel variables */
39- --panel-footer-item-border-radius : 0 ; /* The border radius of the panel footer items */
44+ --panel-footer-item-border-radius : 8 px ; /* The border radius of the panel footer items */
4045
4146 /* Bookmark panel */
42- --bookmark-panel-image-border-radius : 0 ; /* The border radius of the bookmark panel image */
43- --bookmark-panel-favicon-border-radius : 0 ; /* The border radius of the bookmark panel favicon */
47+ --bookmark-panel-image-border-radius : 8 px ; /* The border radius of the bookmark panel image */
48+ --bookmark-panel-favicon-border-radius : 8 px ; /* The border radius of the bookmark panel favicon */
4449 --bookmark-panel-menulist-padding : 5px ;
4550 --bookmark-panel-input-border-radius : 0 ; /* The border radius of the bookmark panel input */
4651 --bookmark-panel-border-radius : var (
@@ -50,33 +55,118 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
5055 /* Custom elements */
5156
5257 /* Menulist */
53- --menulist-border-radius : 0 ; /* The border radius of the menulist */
58+ --menulist-border-radius : 8 px ; /* The border radius of the menulist */
5459
5560 /* Dialog variables */
56- --dialog-border-radius : 0 ; /* The border radius of the dialog */
61+ --dialog-border-radius : 8 px ; /* The border radius of the dialog */
5762
5863 /* Make the tabs a touch wider */
59- --tab-min-height : 40px ;
64+ --tab-min-height : 38px ;
65+ }
66+
67+ # tabs-newtab-button .toolbarbutton-icon {
68+ width : 24px ;
69+ height : 24px ;
70+ margin-left : 8px ;
71+ padding : 4px !important ;
72+ }
73+
74+ .toolbarbutton-icon , .tab-close-button {
75+ border-radius : 4px !important ;
6076}
6177
6278.container .infobar ::before {
6379 --gradient-orientation : 0 ;
6480 background-image : var (--gradient ) !important ;
6581}
6682
83+ /* ========================================================================== */
84+ /* Tab style */
85+
86+ /* BUG GH#54: The container color does not show up in the pulse theme */
87+ .tabbrowser-tab {
88+ border-top : 2px solid var (--identity-tab-color );
89+ }
90+
91+ .tab-background [selected = "true" ]::before , .tab-background [selected = "true" ]::after {
92+ content : "" ;
93+ position : absolute;
94+ bottom : 0 ;
95+
96+ background-size : cover;
97+ color : var (--lwt-selected-tab-background-color );
98+ -moz-context-properties : fill, fill-opacity;
99+ fill : currentColor;
100+
101+ width : var (--tab-rounding-size );
102+ height : var (--tab-rounding-size );
103+ }
104+
105+ .tab-background [selected = "true" ]::before {
106+ background-image : url ("chrome://global/skin/icons/tab-rising-edge.svg" );
107+ left : var (--tab-rounding-size-neg );
108+ }
109+
110+ .tab-background [selected = "true" ]::after {
111+ background-image : url ("chrome://global/skin/icons/tab-falling-edge.svg" );
112+ right : var (--tab-rounding-size-neg );
113+ }
114+
67115# tabbrowser-arrowscrollbox .tabbrowser-tab {
68116 /* Specifies the padding to the left and right of the tab */
69117 padding-inline : var (--tab-padding-inline ) !important ;
70118}
71119
120+ /* ========================================================================== */
121+ /* Sidebar tabs */
122+ .sidebar-item-background [checked = "true" ]::before , .sidebar-item-background [checked = "true" ]::after {
123+ content : "" ;
124+ position : absolute;
125+ right : 0 ;
126+
127+ background-size : cover;
128+ color : var (--lwt-selected-tab-background-color );
129+ -moz-context-properties : fill, fill-opacity;
130+ fill : currentColor;
131+
132+ width : var (--tab-rounding-size );
133+ height : var (--tab-rounding-size );
134+
135+ /* HACK: Stops the hoverstate from the next tab over from intersecting with the current tab */
136+ z-index : 10 ;
137+ }
138+
139+ .sidebar-item-background [checked = "true" ]::before {
140+ background-image : url ("chrome://global/skin/icons/tab-rising-edge.svg" );
141+ top : var (--tab-rounding-size-neg );
142+ }
143+
144+ .sidebar-item-background [checked = "true" ]::after {
145+ background-image : url ("chrome://global/skin/icons/tab-falling-edge.svg" );
146+ bottom : var (--tab-rounding-size-neg );
147+ transform : rotate (180deg );
148+ }
149+
150+ /* =========================================================================- */
151+ /* General sidebar stuff */
152+ .sidebar-splitter {
153+ border-style : none;
154+ }
155+
72156/* Panel footer styles */
73157.panel-footer > button {
74158 /* The border radius of the panel footer items */
75159 border-radius : var (--panel-footer-item-border-radius );
76160}
77161
162+ /* ========================================================================== */
78163/* Bookmark styles */
79164
165+ /* Remove messy seperators */
166+ # editBookmarkHeaderSeparator , # editBookmarkSeparator {
167+ display : none;
168+ }
169+
80170# editBookmarkPanelImage {
81171 /* The border radius of the bookmark panel image */
82172 border-radius : var (--bookmark-panel-image-border-radius ) !important ;
@@ -122,11 +212,7 @@ menulist:host(:not([native])) {
122212 * If you have any issues with this style, please open a ticket at https://github.com/NiklasGollenstede/unload-tabs
123213 */
124214
125- @-moz-document url(chrome: / / browser/ content/ browser.xhtml),
126- url(chrome: / / browser/ content/ browser.xul)
127- {
128- tab [pending ],
129- # alltabs-popup menuitem [pending ] {
130- opacity : 0.6 !important ;
131- }
215+ tab [pending ],
216+ # alltabs-popup menuitem [pending ] {
217+ opacity : 0.6 !important ;
132218}
0 commit comments