mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 23:38:56 +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
99 lines
1.7 KiB
SCSS
99 lines
1.7 KiB
SCSS
@import "../../lib/normalize/normalize";
|
|
|
|
html {
|
|
font-family: $global-font-family;
|
|
font-weight: $global-font-weight;
|
|
font-display: swap;
|
|
font-size: $global-font-size;
|
|
line-height: $global-line-height;
|
|
width: 100%;
|
|
scroll-behavior: smooth;
|
|
overflow: overlay;
|
|
}
|
|
|
|
@media screen and (prefers-reduced-motion: reduce) {
|
|
html {
|
|
scroll-behavior: auto;
|
|
}
|
|
}
|
|
|
|
::selection {
|
|
background-color: $selection-color;
|
|
|
|
[data-theme='dark'] & {
|
|
background-color: $selection-color-dark;
|
|
}
|
|
}
|
|
|
|
body {
|
|
background-color: $global-background-color;
|
|
color: $global-font-color;
|
|
@include overflow-wrap(break-word);
|
|
|
|
[data-theme='dark'] & {
|
|
color: $global-font-color-dark;
|
|
background-color: $global-background-color-dark;
|
|
}
|
|
}
|
|
|
|
iframe {
|
|
border: 0;
|
|
@include border-radius($global-border-radius);
|
|
}
|
|
|
|
[role='button'] {
|
|
cursor: pointer;
|
|
}
|
|
|
|
summary {
|
|
cursor: pointer;
|
|
}
|
|
|
|
abbr[title] {
|
|
cursor: help;
|
|
text-decoration-skip-ink: none;
|
|
}
|
|
|
|
img {
|
|
object-fit: cover;
|
|
}
|
|
|
|
img,video {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
details {
|
|
&.center {
|
|
summary {
|
|
text-align: center;
|
|
}
|
|
}
|
|
}
|
|
|
|
%code {
|
|
padding: 0.2em 0.4em;
|
|
margin: 0;
|
|
font-size: $code-font-size;
|
|
font-family: $code-font-family;
|
|
color: $code-color;
|
|
background-color: var(#{$rootPrefix}code-inline-background-color);
|
|
text-decoration: inherit;
|
|
@include border-radius($global-border-radius);
|
|
@include overflow-wrap(break-word);
|
|
@include line-break(auto);
|
|
|
|
[data-theme='dark'] & {
|
|
color: $code-color-dark;
|
|
}
|
|
}
|
|
|
|
@include link(true, true);
|
|
|
|
@import '../_partials/scrollbar';
|
|
@import '../_partials/mask';
|
|
@import '../_partials/img';
|
|
@import '../_partials/icon';
|
|
@import '../_partials/details';
|
|
@import '../_partials/widgets';
|