Tab bar: Make bottom border span the whole window (#3066)
This commit is contained in:
parent
16ef1c476e
commit
fdcb12df92
2 changed files with 42 additions and 10 deletions
|
@ -1,5 +1,32 @@
|
||||||
#tab-bar-container {
|
#tab-bar-container {
|
||||||
|
// These variables can be overridden in platform styles to set platform-specific safe areas
|
||||||
|
--safe-area-start: 0;
|
||||||
|
--safe-area-end: 0;
|
||||||
|
|
||||||
min-height: 30px;
|
min-height: 30px;
|
||||||
|
|
||||||
|
&:not([hidden]) {
|
||||||
|
// display: flex overrides the hidden attribute
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
content: '';
|
||||||
|
min-width: var(--safe-area-start);
|
||||||
|
// Add bottom border to safe area space
|
||||||
|
border-bottom: $tab-border;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
content: '';
|
||||||
|
min-width: var(--safe-area-end);
|
||||||
|
// Add bottom border to safe area space
|
||||||
|
border-bottom: $tab-border;
|
||||||
|
}
|
||||||
|
|
||||||
|
& > div {
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-bar-inner-container {
|
.tab-bar-inner-container {
|
||||||
|
@ -18,6 +45,11 @@
|
||||||
color: #bebebe;
|
color: #bebebe;
|
||||||
display: none;
|
display: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
|
// Add bottom border to scroll arrows,
|
||||||
|
// and negate the extra vertical pixel added by the border with a negative margin
|
||||||
|
border-bottom: $tab-border;
|
||||||
|
margin-bottom: -1px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -78,17 +110,17 @@
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
content: "";
|
content: "";
|
||||||
width: 0px;
|
width: 0;
|
||||||
min-width: 0px;
|
min-width: 0;
|
||||||
border-bottom: $tab-border;
|
|
||||||
border-inline-end: $tab-border;
|
border-inline-end: $tab-border;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:after {
|
&:after {
|
||||||
content: "";
|
content: "";
|
||||||
flex: 1 0 0%;
|
flex: 1 0 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-width: 0px;
|
min-width: 0;
|
||||||
|
// Add bottom border to the space between the last tab and the spacer in #tab-bar-container::after
|
||||||
border-bottom: $tab-border;
|
border-bottom: $tab-border;
|
||||||
border-inline-start: $tab-border;
|
border-inline-start: $tab-border;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
#tab-bar-container {
|
||||||
|
--safe-area-start: 78px;
|
||||||
|
--safe-area-end: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
.tabs {
|
.tabs {
|
||||||
-moz-window-dragging: drag;
|
-moz-window-dragging: drag;
|
||||||
}
|
}
|
||||||
|
@ -5,8 +10,3 @@
|
||||||
.tab {
|
.tab {
|
||||||
-moz-window-dragging: no-drag;
|
-moz-window-dragging: no-drag;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-bar-inner-container {
|
|
||||||
margin-inline-start: 78px;
|
|
||||||
margin-inline-end: 20px;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue