Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Navigation bar no longer centered #5615

Merged
merged 1 commit into from
Nov 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions less/navigationBar.less
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
}

#navigator {
margin-right: 0px;

.homeButton {
margin: 0 0 3px 0;
}
Expand Down Expand Up @@ -469,6 +471,8 @@
@centerOffset: 2 * (@navbarButtonWidth + @navbarButtonSpacing) // width area on the left
- (@navbarBraveButtonWidth + 2 * @navbarButtonSpacing);

@rightMargin: @navbarLeftMarginDarwin / 2;

display: flex;

// Buttons on the left
Expand Down Expand Up @@ -498,6 +502,7 @@
flex-grow: 1;
min-width: 0%; // allow the navigator to shrink
max-width: 900px;
margin-right: @rightMargin;

&.titleMode {
padding-right: @centerOffset;
Expand Down Expand Up @@ -552,10 +557,12 @@
}
}

.extraDragArea {
display: flex;
flex-grow: 0;
width: @navbarBraveButtonMarginLeft;
@media (max-width: @breakpointWideViewport) {
.extraDragArea {
display: flex;
flex-grow: 0;
width: @navbarBraveButtonMarginLeft;
}
}
}
}
Expand Down Expand Up @@ -846,13 +853,6 @@

> * {
-webkit-app-region: no-drag;

&.endButtons {
margin-right: 20px;
@media (max-width: @breakpointNarrowViewport) {
margin-right: 0px;
}
}
}

.inputbar-wrapper {
Expand Down
3 changes: 2 additions & 1 deletion less/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
@bookmarksFolderIconSize: 15px;

@navbarButtonSpacing: 4px;
@navbarButtonWidth: 30px;
@navbarButtonWidth: 20px;
@navbarBraveButtonWidth: 23px;
@navbarBraveButtonMarginLeft: 80px;
@navbarLeftMarginDarwin: 76px;
Expand Down Expand Up @@ -133,6 +133,7 @@
@zindexWindowFullScreen: 4000;
@zindexWindowFullScreenBanner: 4100;

@breakpointWideViewport: 1000px;
@breakpointNarrowViewport: 600px;
@breakpointExtensionButtonPadding: 720px;
@breakpointSmallWin32: 650px;
Expand Down