Merge pull request #18986 from overleaf/jel-faq-tabs-match-figma

[web] Style updates to new tab style to match Figma

GitOrigin-RevId: d78101cc53e00f309e52798214b9bc97d047828f
This commit is contained in:
Jessica Lawshe
2024-08-14 08:05:07 +00:00
committed by Copybot
parent 541defcfe9
commit cacaea3515
2 changed files with 30 additions and 9 deletions
@@ -128,7 +128,7 @@
&:focus { &:focus {
background-color: unset; background-color: unset;
border: 1px solid var(--green-50); outline: 0;
} }
&:hover { &:hover {
@@ -137,8 +137,8 @@
// tab navigation focus style // tab navigation focus style
&:focus-visible { &:focus-visible {
&:extend(.input-focus-style); .box-shadow-button-input();
background-color: white; outline: 0;
} }
@media (max-width: @screen-xs-max) { @media (max-width: @screen-xs-max) {
@@ -47,31 +47,52 @@
.nav-tabs-container { .nav-tabs-container {
overflow-x: auto; overflow-x: auto;
margin-bottom: var(--spacing-11); margin-bottom: var(--spacing-11);
text-align: center;
.nav-tabs { .nav-tabs {
border: 0 !important; display: inline-flex;
border-bottom: var(--border-width-base) solid var(--neutral-20);
margin: 0 auto; margin: 0 auto;
padding: 0; padding: 0;
text-align: center; text-align: center;
min-width: max-content; // This is for horizontal scrolling min-width: max-content; // This is for horizontal scrolling
border-top: 2px solid transparent; // so that top focus border is visible
li { li {
display: inline-block; display: inline-block;
float: none; float: none;
margin-bottom: 0; //override navs.less margin-bottom: calc(var(--border-width-base) * -1);
margin-right: var(--spacing-04);
&:last-child {
margin-right: 0;
}
a { a {
border: 0; border: 0;
color: @neutral-70; border-radius: 0;
border-bottom: 3px solid @neutral-20 !important; color: var(--neutral-70);
margin-right: unset; margin-right: unset;
padding: var(--spacing-04); padding: var(--spacing-04);
line-height: var(--line-height-03);
&:focus, &:focus,
&:hover { &:hover {
background-color: transparent !important;
border: 0; border: 0;
} }
&:focus,
&:focus-visible {
background-color: unset;
outline: 0;
}
&:hover {
background-color: var(--neutral-10);
}
&:focus-visible {
.box-shadow-button-input();
}
} }
} }