Current section

Files

Jump to
combo_new templates inertia-react assets src css app.css
Raw

templates/inertia-react/assets/src/css/app.css

/**
* The CSS Reset
* from: https://www.joshwcomeau.com/css/custom-css-reset/
*/
/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* 2. Remove default margin */
* {
margin: 0;
}
/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
html {
interpolate-size: allow-keywords;
}
}
body {
/* 4. Add accessible line-height */
line-height: 1.5;
/* 5. Improve text rendering */
-webkit-font-smoothing: antialiased;
}
/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}
/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
font: inherit;
}
/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}
/* 9. Improve line wrapping */
p {
text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
text-wrap: balance;
}
/*
10. Create a root stacking context
*/
#root,
#__next {
isolation: isolate;
}
/**
* The app's CSS
*/
* {
font-family:
"Instrument Sans Variable", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
.page-container {
min-height: 100vh;
padding: 1.5rem;
display: flex;
justify-content: center;
align-items: center;
background-color: #fdfdfc;
color: #706f6c;
@media (prefers-color-scheme: dark) {
background-color: #0a0a0a;
color: #a1a09a;
}
}
.main-container {
display: flex;
flex-direction: column;
}
.main-container > :not(:last-child) {
margin-block-start: 1.5rem;
margin-block-end: 1.5rem;
}
.logo {
width: 100%;
max-width: 250px;
}
.description {
font-size: 1.25rem;
line-height: calc(1.75 / 1.25);
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}