mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-25 10:02:42 +00:00
ba460a6755
De-Angularise bookmarkable-tabset GitOrigin-RevId: fc80f0c42fded9b0856dc7c62de2c87e66b5d85c
51 lines
1.3 KiB
Text
51 lines
1.3 KiB
Text
.ol-tabs {
|
|
// Overrides for nav.less
|
|
.nav-tabs {
|
|
border: 0 !important;
|
|
margin-bottom: 0;
|
|
margin-top: -@line-height-computed; //- adjusted for portal-name
|
|
padding: @padding-lg 0 @padding-md;
|
|
text-align: center;
|
|
}
|
|
|
|
.nav-tabs > li {
|
|
display: inline-block;
|
|
float: none;
|
|
a {
|
|
border: 0;
|
|
color: @link-color-alt;
|
|
&:focus,
|
|
&:hover {
|
|
background-color: transparent !important;
|
|
border: 0;
|
|
color: @link-hover-color-alt;
|
|
}
|
|
}
|
|
}
|
|
|
|
li.active > a {
|
|
background-color: transparent !important;
|
|
border: 0 !important;
|
|
border-bottom: 1px solid @accent-color-secondary!important;
|
|
color: @accent-color-secondary!important;
|
|
&:hover {
|
|
border-bottom: 1px solid @accent-color-secondary!important;
|
|
color: @accent-color-secondary!important;
|
|
}
|
|
}
|
|
.tab-content:extend(.container) {
|
|
background-color: transparent !important;
|
|
border: none !important;
|
|
}
|
|
}
|
|
|
|
// 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: calc(
|
|
@line-height-computed + // Computed text height
|
|
20px + // nav-link-padding top & bottom
|
|
@padding-md + // ol-tabs bottom padding
|
|
(@line-height-computed / 2) // tab-content top padding
|
|
);
|
|
}
|