mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 23:38:56 +00:00
3926cc0220
* refactor: CSS variables to use fixit-var for consistency across styles * refactor: reorganize CSS structure and consolidate imports for improved maintainability * refactor: unify CSS variable usage and improve structure across stylesheets * refactor: standardize CSS variable usage for layout * refactor: standardize CSS variable usage for archive and special pages * refactor: standardize CSS variable usage for single page * refactor: standardize CSS variable usage for widgets * refactor(css): refactors the border-radius mixin and adds the .rounded-full utility class * refactor: standardize z-index usage across components * refactor(css): removes deprecated compatibility mixins and replaces them with native CSS properties * feat: unify color variable naming and update theme color values - Rename `global-font-secondary-color` to `global-placeholder-color` for more accurate description of its purpose - Update multiple style references to use the new `secondary` theme color variable - Update theme color mapping to the new color values for improved visual consistency - Fixed the use of search box placeholder colors and removed hard-coded transparency values - Added color preview test documentation for easier verification of color rendering - Cleaned up some duplicate dark mode styles and replaced them with unified CSS variables * refactor: remove the `hr-background-color` variable and uses `global-border-color` uniformly * feat(CSE): add dark theme style to Google CSE search box and results container * fix(task-lists): fixed styling and rendering issues with nested task lists
85 lines
1.4 KiB
SCSS
85 lines
1.4 KiB
SCSS
@import "../../lib/normalize/normalize";
|
|
|
|
html {
|
|
font-family: fixit-var(global-font-family);
|
|
font-weight: fixit-var(global-font-weight);
|
|
font-display: swap;
|
|
font-size: fixit-var(global-font-size);
|
|
line-height: fixit-var(global-line-height);
|
|
width: 100%;
|
|
scroll-behavior: smooth;
|
|
overflow: auto;
|
|
}
|
|
|
|
@media screen and (prefers-reduced-motion: reduce) {
|
|
html {
|
|
scroll-behavior: auto;
|
|
}
|
|
}
|
|
|
|
::selection {
|
|
background-color: fixit-var(selection-color);
|
|
}
|
|
|
|
body {
|
|
background-color: fixit-var(global-background-color);
|
|
color: fixit-var(global-font-color);
|
|
@include overflow-wrap(break-word);
|
|
}
|
|
|
|
iframe {
|
|
border: 0;
|
|
@include 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;
|
|
@include border-radius;
|
|
}
|
|
|
|
dialog {
|
|
padding: 0;
|
|
}
|
|
|
|
details {
|
|
&.center {
|
|
summary {
|
|
text-align: center;
|
|
}
|
|
}
|
|
}
|
|
|
|
%code {
|
|
padding: 0.2em 0.4em;
|
|
margin: 0;
|
|
font-size: fixit-var(code-font-size);
|
|
line-height: fixit-var(code-font-size);
|
|
font-family: fixit-var(code-font-family);
|
|
color: fixit-var(code-color);
|
|
background-color: fixit-var(code-inline-background-color);
|
|
text-decoration: inherit;
|
|
@include border-radius;
|
|
@include overflow-wrap(break-word);
|
|
}
|
|
|
|
@include link(true, true);
|