fix broken nav parent tab indicator
This commit is contained in:
parent
6ef7158867
commit
39fe6d798c
2 changed files with 11 additions and 12 deletions
File diff suppressed because one or more lines are too long
|
|
@ -83,8 +83,7 @@ body {
|
|||
|
||||
&.parent {
|
||||
max-width: 150rem;
|
||||
// min-width: 0;
|
||||
flex:1;
|
||||
width:auto;
|
||||
position: relative;
|
||||
padding-right: 1rem;
|
||||
a {
|
||||
|
|
@ -94,22 +93,22 @@ body {
|
|||
content:"";
|
||||
display: block;
|
||||
position: absolute;
|
||||
border-left:calc(var(--nav-height)/2) solid var(--color-bg);
|
||||
border-bottom: calc(var(--nav-height)/2) solid transparent;
|
||||
border-top: calc(var(--nav-height)/2) solid transparent;
|
||||
border-left:calc(0.5 * var(--nav-height)) solid var(--color-bg);
|
||||
border-bottom: calc(0.5 * var(--nav-height)) solid transparent;
|
||||
border-top: calc(0.5 * var(--nav-height)) solid transparent;
|
||||
top:0;
|
||||
right:calc(1 - var(--nav-height)/2);
|
||||
right:calc(-0.5 * var(--nav-height) - 1rem);
|
||||
z-index: 1;
|
||||
}
|
||||
&:after {
|
||||
content:"";
|
||||
display: block;
|
||||
position: absolute;
|
||||
border-left:calc(var(--nav-height)/2) solid var(--color-raised);
|
||||
border-bottom: calc(var(--nav-height)/2) solid transparent;
|
||||
border-top: calc(var(--nav-height)/2) solid transparent;
|
||||
border-left:calc(0.5 * var(--nav-height)) solid var(--color-raised);
|
||||
border-bottom: calc(0.5 * var(--nav-height)) solid transparent;
|
||||
border-top: calc(0.5 * var(--nav-height)) solid transparent;
|
||||
top:0;
|
||||
right:calc(-1 - var(--nav-height)/2);
|
||||
right:calc(1rem - 0.5 * var(--nav-height));
|
||||
z-index: 2;
|
||||
}
|
||||
}
|
||||
|
|
@ -156,7 +155,7 @@ body {
|
|||
}
|
||||
}
|
||||
.parent + li a {
|
||||
padding-left: calc(5 + var(--nav-height)/2);
|
||||
padding-left: calc(5rem + 0.5 * var(--nav-height));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue