mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-25 07:48:54 +00:00
56836eb077
* feat: add tabs and tab shortcodes support Powered by https://github.com/github/tab-container-element * fix: adjust tab-container styles for improved layout and responsiveness - [x] Underline Style (Default) - [x] Pill Style - [x] Card Style - [x] Segment Style * test: add tabs comprehensive test cases * style: code optimization * fix: add tabs support in home scope * docs: add `<tab-container>` element reference to README files * feat: enhance tab-container with loading mixin and simplify code * refactor: update variable references to use root prefix in styles * docs: add tabs shortcode support to README files * fix: ensure shortcode is enclosed within a tabs block * feat: add responsive design for tab-container on smaller screens * test: remove unnecessary placement attribute for segment tabs * refactor: remove unused vertical attribute from tabs shortcode * fix: set default tab type to 'underline' for consistency * refactor: update tab-button and tab-panel selectors for improved specificity
50 lines
1014 B
SCSS
50 lines
1014 B
SCSS
.breadcrumb-container {
|
|
padding-inline: 1rem;
|
|
font-size: 0.75rem;
|
|
background-color: $global-background-color;
|
|
@include z-index(1);
|
|
@extend .print-d-none;
|
|
|
|
[data-theme='dark'] & {
|
|
background-color: $global-background-color-dark;
|
|
}
|
|
|
|
&.sticky {
|
|
position: sticky;
|
|
top: $header-height;
|
|
}
|
|
|
|
.breadcrumb {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
padding: 0.5rem 0;
|
|
margin: 0 auto;
|
|
list-style: none;
|
|
border-bottom: 1px inset $global-border-color;
|
|
@extend %page-style;
|
|
|
|
[data-theme='dark'] & {
|
|
border-bottom-color: $global-border-color-dark;
|
|
}
|
|
|
|
.breadcrumb-item {
|
|
display: flex;
|
|
|
|
+ .breadcrumb-item::before {
|
|
content: attr(data-separator);
|
|
display: inline-block;
|
|
padding-inline: 0.5rem;
|
|
color: $global-font-secondary-color;
|
|
|
|
[data-theme='dark'] & {
|
|
color: $global-font-secondary-color-dark;
|
|
}
|
|
}
|
|
|
|
&.active {
|
|
color: var(#{$rootPrefix}secondary);
|
|
}
|
|
}
|
|
}
|
|
}
|