Files
metabuilder/fakemui/styles/global/_reset.scss

100 lines
1.6 KiB
SCSS

// CSS Reset - Replaces @mui/material CssBaseline
// Modern, minimal reset for consistent cross-browser rendering
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
font-size: 16px;
-webkit-text-size-adjust: 100%;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
body {
min-height: 100vh;
font-family: var(--font-family);
font-size: var(--font-size-md);
line-height: 1.5;
color: var(--color-text);
background-color: var(--color-bg);
}
// Typography defaults
h1, h2, h3, h4, h5, h6 {
font-weight: 600;
line-height: 1.2;
}
// Lists
ul, ol {
list-style: none;
}
// Links
a {
color: var(--color-primary);
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
// Media elements
img, picture, video, canvas, svg {
display: block;
max-width: 100%;
height: auto;
}
// Form elements inherit fonts
input, button, textarea, select {
font: inherit;
color: inherit;
}
button {
cursor: pointer;
border: none;
background: none;
-webkit-tap-highlight-color: transparent;
}
// Tables
table {
border-collapse: collapse;
border-spacing: 0;
}
// Focus visible
:focus-visible {
outline: 2px solid var(--color-primary);
outline-offset: 2px;
}
// Disabled state
:disabled {
cursor: not-allowed;
opacity: 0.6;
}
// Text wrapping
p, h1, h2, h3, h4, h5, h6 {
overflow-wrap: break-word;
}
// Code blocks
code, kbd, samp, pre {
font-family: var(--font-mono);
}
// Hidden attribute
[hidden] {
display: none !important;
}