Skip to content

Commit 64e82d4

Browse files
Better megabar implementation, closes #90
1 parent 1d76300 commit 64e82d4

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

theme/parts/headerbar-urlbar.css

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
}
99

1010
/* Megabar reset */
11-
1211
#urlbar.megabar {
1312
border: 0 !important;
1413
box-shadow: none !important;
@@ -32,15 +31,21 @@
3231

3332
/* Megabar breakout styles */
3433
#urlbar.megabar[breakout][breakout-extend][open] {
35-
box-shadow: var(--gnome-popover-shadow) !important;
3634
border-radius: 5px 5px 9px 9px !important;
3735
}
3836
#urlbar.megabar[breakout][breakout-extend][open] #urlbar-input-container {
39-
border-bottom-color: transparent !important;
4037
border-radius: 5px 5px 0 0 !important;
38+
border-color: var(--gnome-focused-urlbar-border-color) !important;
39+
border-bottom-color: transparent !important;
40+
border-width: 2px !important;
41+
}
42+
#urlbar.megabar[breakout][breakout-extend][open] #identity-box {
43+
padding-inline-start: 5px !important;
4144
}
4245
#urlbar.megabar[breakout][breakout-extend][open] .urlbarView {
4346
border-radius: 0 0 5px 5px !important;
47+
border-color: var(--gnome-focused-urlbar-border-color) !important;
48+
border-width: 2px !important;
4449
}
4550

4651
/* Center the URL bar */
@@ -79,8 +84,7 @@ toolbarspring {
7984
right: var(--item-padding-end) !important;
8085
top: 40px !important;
8186
z-index: 10 !important;
82-
max-width: 100% !important;
83-
87+
max-width: 100% !important;
8488
background: var(--gnome-popover-background) !important;
8589
border: 1px solid !important;
8690
border-color: var(--gnome-popover-border-color) !important;
@@ -116,10 +120,11 @@ toolbarspring {
116120
background: var(--gnome-entry-background) !important;
117121
width: 100% !important;
118122
margin: 0 !important;
119-
margin-top: -40px !important;
123+
margin-top: -42px !important;
120124
box-shadow: none !important;
121125
border-top: 0 !important;
122126
padding: 0px !important;
127+
border-color: var(--gnome-entry-border-color) !important;
123128
}
124129
#urlbar.megabar .urlbarView-body-outer {
125130
padding: 0 8px !important;

0 commit comments

Comments
 (0)