overleaf/services/web/frontend/stylesheets/bootstrap-5/pages/website-redesign.scss
Davinder Singh 248fc3699a CMS Bootstrap 5 migration - Tabs using bootstrap 5 classes (#20478)
* adding classes according to bootstrap 5 tabs

* adding JS for tabs handeling in BS5

* adding styling for tabs to match the redesign styling

* making sure tabs are being highlighted when active

* adding a scroll-margin-top to have some extra space

* removing extra import, it is not needed here because we already import it in bootstrap-x.js files

* using the media-breakpoint-down for a media query styling

* introducing .nav-tabs-container to make the tab triggers horizontally scrollable

* creating a mixin box-shadow-button-input under scss for bootstrap-5

* moving border-width-base to tabs.scss

* aligning tabs to the left under screen size of 768px

* removing focus-style mixin from scss files becuase it was a duplicate

GitOrigin-RevId: 45780c62681fc9b61961f5436d2d55de66a976b6
2024-09-25 08:05:21 +00:00

43 lines
868 B
SCSS

// TODO: .website-redesign to be removed once fully rolled out
.website-redesign {
// hero section of features, enterprises, and universities will have an image that will overflow the page
overflow-x: hidden;
a {
text-decoration: none;
&:focus,
&:focus-visible {
outline: 0;
}
&:focus-visible {
@include box-shadow-button-input;
}
// TODO: remove visited?
i {
vertical-align: middle;
margin-left: var(--spacing-02);
}
&.link-lg {
font-size: var(--font-size-04);
line-height: var(--line-height-03);
i {
font-size: 24px;
line-height: inherit;
}
}
}
.card {
--bs-card-bg: var(--neutral-10);
--bs-card-border-radius: var(--border-radius-large);
--bs-card-spacer-y: var(--spacing-08);
--bs-card-spacer-x: var(--spacing-08);
}
}