2018-09-12 09:54:09 -04:00
|
|
|
.ol-tabs {
|
|
|
|
// Overrides for nav.less
|
|
|
|
.nav-tabs {
|
2019-12-05 14:09:31 -05:00
|
|
|
border: 0 !important;
|
2018-09-21 18:11:47 -04:00
|
|
|
margin-bottom: 0;
|
2018-09-12 09:54:09 -04:00
|
|
|
margin-top: -@line-height-computed; //- adjusted for portal-name
|
|
|
|
padding: @padding-lg 0 @padding-md;
|
|
|
|
text-align: center;
|
2018-09-24 10:59:22 -04:00
|
|
|
}
|
2018-09-12 09:54:09 -04:00
|
|
|
|
2018-09-24 10:59:22 -04:00
|
|
|
.nav-tabs > li {
|
|
|
|
display: inline-block;
|
|
|
|
float: none;
|
2018-09-20 09:53:23 -04:00
|
|
|
a {
|
2018-09-24 10:59:22 -04:00
|
|
|
border: 0;
|
2018-09-24 17:05:28 -04:00
|
|
|
color: @link-color-alt;
|
2019-12-05 14:09:31 -05:00
|
|
|
&:focus,
|
|
|
|
&:hover {
|
|
|
|
background-color: transparent !important;
|
2018-11-30 08:03:35 -05:00
|
|
|
border: 0;
|
2018-09-27 12:50:38 -04:00
|
|
|
color: @link-hover-color-alt;
|
2018-09-20 09:53:23 -04:00
|
|
|
}
|
2018-09-12 09:54:09 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
li.active > a {
|
2019-12-05 14:09:31 -05:00
|
|
|
background-color: transparent !important;
|
|
|
|
border: 0 !important;
|
2018-09-12 09:54:09 -04:00
|
|
|
border-bottom: 1px solid @accent-color-secondary!important;
|
|
|
|
color: @accent-color-secondary!important;
|
|
|
|
&:hover {
|
2018-09-21 13:26:49 -04:00
|
|
|
border-bottom: 1px solid @accent-color-secondary!important;
|
2018-09-12 09:54:09 -04:00
|
|
|
color: @accent-color-secondary!important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.tab-content:extend(.container) {
|
2019-12-05 14:09:31 -05:00
|
|
|
background-color: transparent !important;
|
|
|
|
border: none !important;
|
2018-09-12 09:54:09 -04:00
|
|
|
}
|
2018-11-30 08:03:35 -05:00
|
|
|
}
|
2021-09-21 09:46:44 -04:00
|
|
|
|
2024-06-26 10:20:43 -04:00
|
|
|
.ol-tabs-scrollable {
|
2024-06-13 10:08:19 -04:00
|
|
|
// Styling for Website redesign, it will be used in CMS Later on.
|
2024-06-26 10:20:43 -04:00
|
|
|
max-width: 800px;
|
|
|
|
margin: 0 auto;
|
2024-06-13 10:08:19 -04:00
|
|
|
|
2024-06-26 10:20:43 -04:00
|
|
|
.nav-tabs-container {
|
|
|
|
overflow-x: auto;
|
|
|
|
margin-bottom: var(--spacing-11);
|
2024-08-13 10:02:04 -04:00
|
|
|
text-align: center;
|
2024-06-26 10:20:43 -04:00
|
|
|
.nav-tabs {
|
2024-08-13 10:02:04 -04:00
|
|
|
display: inline-flex;
|
|
|
|
border-bottom: var(--border-width-base) solid var(--neutral-20);
|
2024-06-26 10:20:43 -04:00
|
|
|
margin: 0 auto;
|
|
|
|
padding: 0;
|
|
|
|
text-align: center;
|
|
|
|
min-width: max-content; // This is for horizontal scrolling
|
2024-08-13 10:02:04 -04:00
|
|
|
border-top: 2px solid transparent; // so that top focus border is visible
|
2024-06-13 10:08:19 -04:00
|
|
|
|
2024-06-26 10:20:43 -04:00
|
|
|
li {
|
|
|
|
display: inline-block;
|
|
|
|
float: none;
|
2024-08-13 10:02:04 -04:00
|
|
|
margin-bottom: calc(var(--border-width-base) * -1);
|
|
|
|
margin-right: var(--spacing-04);
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2024-06-26 10:20:43 -04:00
|
|
|
|
|
|
|
a {
|
|
|
|
border: 0;
|
2024-08-13 10:02:04 -04:00
|
|
|
border-radius: 0;
|
|
|
|
color: var(--neutral-70);
|
2024-06-26 10:20:43 -04:00
|
|
|
margin-right: unset;
|
|
|
|
padding: var(--spacing-04);
|
2024-08-13 10:02:04 -04:00
|
|
|
line-height: var(--line-height-03);
|
2024-06-26 10:20:43 -04:00
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
|
|
|
border: 0;
|
|
|
|
}
|
2024-08-13 10:02:04 -04:00
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&:focus-visible {
|
|
|
|
background-color: unset;
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--neutral-10);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus-visible {
|
|
|
|
.box-shadow-button-input();
|
|
|
|
}
|
2024-06-26 10:20:43 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
li.active > a {
|
2024-06-13 10:08:19 -04:00
|
|
|
background-color: transparent !important;
|
2024-06-26 10:20:43 -04:00
|
|
|
border: 0 !important;
|
2024-08-01 11:14:57 -04:00
|
|
|
border-bottom: 3px solid var(--green-50) !important;
|
2024-06-26 10:20:43 -04:00
|
|
|
color: @neutral-90 !important;
|
|
|
|
|
|
|
|
&:hover {
|
2024-08-01 11:14:57 -04:00
|
|
|
border-bottom: 3px solid var(--green-50) !important;
|
2024-06-26 10:20:43 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: @screen-xs-max) {
|
|
|
|
text-align: left;
|
2024-06-13 10:08:19 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-26 10:20:43 -04:00
|
|
|
.tab-content {
|
|
|
|
border: 0 !important; //override navs.less
|
|
|
|
padding: 0 !important; //override navs.less
|
2024-06-13 10:08:19 -04:00
|
|
|
}
|
|
|
|
|
2024-06-26 10:20:43 -04:00
|
|
|
.ol-accordions-container :first-child {
|
|
|
|
// remove top padding so we have spacing-11 between tab nav and tab content
|
|
|
|
padding-top: 0px !important;
|
2024-06-13 10:08:19 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-21 09:46:44 -04:00
|
|
|
// 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
|
|
|
|
);
|
|
|
|
}
|