Files
overleaf-cep/services/web/frontend/stylesheets/components/tabs.scss
Rebeka Dekany 3f11776ecd Remove LESS stylesheets and dependencies (#27409)
* Remove components, core and modules LESS stylesheets

* Remove variables LESS stylesheets

* Remove app LESS stylesheets

* Remove github-sync, onboarding LESS stylesheets

* Remove main-light and IEEE LESS stylesheets

* Remove Less loader configuration

* Remove bootstrap-3 entrypoint

* Rename bootstrap-5 entrypoint to bootstrap

* Remove bootstrap-5 CSS folder and move stylesheets

* Update CSS variables

* Restore and update github-sync.scss path

* Fix try-premium.scss path and fix undefined mixin error

* Restore entrypoints

* Simplify buildCssPath to always use main-style.css

* Remove less from prettier formatting scripts

* Remove less from addHook extension

* Source format

* Remove nvd3 file reference from prettierignore (equivalent of nvd3.scss)

* Remove less and less-loader

* Add SCSS files to pirates require hook

GitOrigin-RevId: bd83c79f4d6ef7305d75993959a4dc5e7714ef9c
2025-08-06 08:05:38 +00:00

89 lines
1.9 KiB
SCSS

.ol-tabs {
--border-width-base: 3px;
.nav-tabs-container {
overflow-x: auto;
display: flex;
flex-direction: column;
@include media-breakpoint-down(md) {
display: block;
}
.nav-tabs {
display: inline-flex;
gap: var(--spacing-04);
margin: 0 auto;
padding: 0;
border-bottom: var(--border-width-base) solid var(--border-divider);
text-align: center;
border-top: 2px solid transparent; // so that top focus border is visible
min-width: max-content; // This is for horizontal scrolling
li {
display: inline-block;
float: none;
margin-bottom: calc(var(--border-width-base) * -0.6);
&:last-child {
margin-right: 0;
}
a,
button {
border: 0;
border-radius: 0;
color: var(--content-secondary);
margin-right: unset;
padding: var(--spacing-04);
line-height: var(--line-height-03);
text-decoration: none;
&:focus,
&:hover {
border: 0;
}
&:focus,
&:focus-visible {
background-color: unset;
outline: 0;
}
&:hover {
background-color: var(--bg-light-secondary);
text-decoration: none;
}
&:focus-visible {
@include box-shadow-button-input;
}
}
}
li > a.active,
li > button.active {
background-color: transparent;
border: 0;
border-bottom: 3px solid var(--green-50);
color: var(--content-primary);
}
&.align-left {
margin-left: 0;
margin-right: 0;
}
}
}
.tab-content {
margin-top: var(--spacing-11);
}
}
// Scroll the page up a bit to allow tab links to be shown when navigating to
// a bookmarked tab hash
[data-ol-bookmarkable-tabset] .tab-pane {
scroll-margin-top: 120px;
}