2023-03-14 13:18:55 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
2023-08-11 13:12:13 +00:00
|
|
|
* SPDX-License-Identifier: BUSL-1.1
|
2023-03-14 13:18:55 +00:00
|
|
|
*/
|
|
|
|
|
2019-06-14 17:27:37 +00:00
|
|
|
%tab-nav {
|
|
|
|
clear: both;
|
2020-12-16 09:19:00 +00:00
|
|
|
overflow: auto;
|
2019-06-14 17:27:37 +00:00
|
|
|
}
|
|
|
|
%tab-nav ul {
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
2020-05-05 16:31:18 +00:00
|
|
|
position: relative;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
2019-06-14 17:27:37 +00:00
|
|
|
}
|
2020-05-05 16:31:18 +00:00
|
|
|
%with-animated-tab-selection ul::after {
|
|
|
|
@extend %as-pseudo, %with-transition-500;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
height: 0;
|
|
|
|
border-top: 0;
|
|
|
|
width: calc(var(--selected-width, 0) * 1px);
|
|
|
|
transform: translate(calc(var(--selected-left, 0) * 1px), 0);
|
|
|
|
transition-property: transform, width;
|
2019-06-14 17:27:37 +00:00
|
|
|
}
|
|
|
|
%tab-button {
|
|
|
|
display: inline-block;
|
2020-05-05 16:31:18 +00:00
|
|
|
padding: 16px 13px;
|
2019-06-14 17:27:37 +00:00
|
|
|
}
|